blob: 87fd2f3f5bce1198d80617adfdad8d8026a163ce [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.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006# 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.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040090as_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
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400135# 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400193test 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 :
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400239 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"
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400355 } || 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400359
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
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400403# 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400410 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400415 $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
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400488 # 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.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400526 # 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 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400528 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400535 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400547as_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.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400561# 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
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100628BUILD_LDFLAGS
629BUILD_CFLAGS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400630INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100631DO_TEST_SUITE
632ET_DIR
633SS_DIR
634LDFLAG_STATIC
635root_sysconfdir
636root_libdir
637root_sbindir
638root_bindir
639root_prefix
640UNIX_CMT
641CYGWIN_CMT
642LINUX_CMT
643UNI_DIFF_OPTS
644SEM_INIT_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100645SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400646SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100647SIZEOF_LONG_LONG
648SIZEOF_LONG
649SIZEOF_INT
650SIZEOF_SHORT
651BUILD_CC
652MAKEINFO
653STRIP
654AR
655LDCONFIG
656PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100657AWK
658CHMOD
659RM
660CP
661MV
662LN_S
663LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400664ifNotGNUmake
665ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100666BINARY_TYPE
667POSUB
668LTLIBINTL
669LIBINTL
670INTLLIBS
671INTL_LIBTOOL_SUFFIX_PREFIX
672INTLOBJS
673GENCAT
674INSTOBJEXT
675DATADIRNAME
676CATOBJEXT
677USE_INCLUDED_LIBINTL
678BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400679LTLIBC
680WINDRES
681WOE32
682WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100683HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400684HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100685HAVE_SNPRINTF
686HAVE_ASPRINTF
687HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400688INTL_DEFAULT_VERBOSITY
689INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100690GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400691INTLBISON
692LTLIBICONV
693LIBICONV
694LTLIBMULTITHREAD
695LIBMULTITHREAD
696LTLIBTHREAD
697LIBTHREAD
698LIBPTH_PREFIX
699LTLIBPTH
700LIBPTH
701PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100702ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400703HAVE_VISIBILITY
704CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100705RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400706GLIBC2
707XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100708MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400709XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100710XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400711GMSGFMT_015
712MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100713GMSGFMT
714MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400715GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100716USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400717SED
718MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722SET_MAKE
723VERSION
724PACKAGE
725GETTEXT_PACKAGE
726UUIDD_CMT
727E2INITRD_MAN
728E2INITRD_PROG
729FSCK_MAN
730FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500731DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100732RESIZER_CMT
733IMAGER_CMT
734DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700735QUOTA_CMT
736DEPPROFILED_LIBQUOTA
737PROFILED_LIBQUOTA
738DEPSTATIC_LIBQUOTA
739STATIC_LIBQUOTA
740DEPLIBQUOTA
741LIBQUOTA
Eric Sandeenf5589f42013-10-14 08:54:15 -0400742QUOTA_MAN_COMMENT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100743BLKID_CMT
744DEPPROFILED_LIBBLKID
745PROFILED_LIBBLKID
746DEPSTATIC_LIBBLKID
747STATIC_LIBBLKID
748DEPLIBBLKID
749LIBBLKID
750UUID_CMT
751DEPPROFILED_LIBUUID
752PROFILED_LIBUUID
753DEPSTATIC_LIBUUID
754STATIC_LIBUUID
755DEPLIBUUID
756LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400757PKG_CONFIG_LIBDIR
758PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100759PKG_CONFIG
760TEST_IO_CMT
761PRIVATE_LIBS_CMT
762LDFLAG_DYNAMIC
763PROFILED_LIB_EXT
764STATIC_LIB_EXT
765LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100766PROFILE_CMT
767BSDLIB_CMT
768ELF_CMT
769HTREE_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
821localstatedir
822sharedstatedir
823sysconfdir
824datadir
825datarootdir
826libexecdir
827sbindir
828bindir
829program_transform_name
830prefix
831exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500832PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100833PACKAGE_BUGREPORT
834PACKAGE_STRING
835PACKAGE_VERSION
836PACKAGE_TARNAME
837PACKAGE_NAME
838PATH_SEPARATOR
839SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400840ac_subst_files='MCONFIG
841MAKEFILE_ELF
842MAKEFILE_BSDLIB
843MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400844MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400845ASM_TYPES_HEADER
846PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100847ac_user_opts='
848enable_option_checking
849with_diet_libc
850with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100851with_ccopts
852with_ldopts
853with_root_prefix
854enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400855enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400856enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400857enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400858enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400859enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100860enable_compression
861enable_htree
862enable_elf_shlibs
863enable_bsd_shlibs
864enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500865enable_gcov
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100866enable_jbd_debug
867enable_blkid_debug
868enable_testio_debug
869enable_libuuid
870enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500871enable_quota
Theodore Ts'o3df60142013-06-16 16:14:40 -0400872enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100873enable_debugfs
874enable_imager
875enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500876enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100877enable_fsck
878enable_e2initrd_helper
879enable_tls
880enable_uuidd
881enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400882enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100883with_gnu_ld
884enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400885with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100886with_libiconv_prefix
887with_included_gettext
888with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400889with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100890'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400891 ac_precious_vars='build_alias
892host_alias
893target_alias
894CC
895CFLAGS
896LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400897LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400898CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400899CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400900PKG_CONFIG
901PKG_CONFIG_PATH
902PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400903
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000904
905# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500906ac_init_help=
907ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100908ac_unrecognized_opts=
909ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000910# The variables have the same names as the options, with
911# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500912cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000913exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000914no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000915no_recursion=
916prefix=NONE
917program_prefix=NONE
918program_suffix=NONE
919program_transform_name=s,x,x,
920silent=
921site=
922srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000923verbose=
924x_includes=NONE
925x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500926
927# Installation directory options.
928# These are left unexpanded so users can "make install exec_prefix=/foo"
929# and all the variables that are supposed to be based on exec_prefix
930# by default will actually change.
931# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400932# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000933bindir='${exec_prefix}/bin'
934sbindir='${exec_prefix}/sbin'
935libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400936datarootdir='${prefix}/share'
937datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000938sysconfdir='${prefix}/etc'
939sharedstatedir='${prefix}/com'
940localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000941includedir='${prefix}/include'
942oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400943docdir='${datarootdir}/doc/${PACKAGE}'
944infodir='${datarootdir}/info'
945htmldir='${docdir}'
946dvidir='${docdir}'
947pdfdir='${docdir}'
948psdir='${docdir}'
949libdir='${exec_prefix}/lib'
950localedir='${datarootdir}/locale'
951mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000952
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000953ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400954ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000955for ac_option
956do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400959 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000960 ac_prev=
961 continue
962 fi
963
Theodore Ts'oe1052142006-10-21 21:46:47 -0400964 case $ac_option in
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400965 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 *=) ac_optarg= ;;
967 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400968 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000969
970 # Accept the important Cygnus configure options, so we can diagnose typos.
971
Theodore Ts'oe1052142006-10-21 21:46:47 -0400972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000975
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500979 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000980
981 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500982 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500984 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000995
Theodore Ts'oe1052142006-10-21 21:46:47 -0400996 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000997 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500999 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001000
Theodore Ts'oe1052142006-10-21 21:46:47 -04001001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001008 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001010 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001012 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017"enable_$ac_useropt"
1018"*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001033
1034 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001036 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001038 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043"enable_$ac_useropt"
1044"*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001057 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001069
1070 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001071 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001072 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001073 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001074
Theodore Ts'oe1052142006-10-21 21:46:47 -04001075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001086 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001091 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001096 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001103 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001104
Theodore Ts'oe1052142006-10-21 21:46:47 -04001105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001110 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001111 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001115 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001120 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001121
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001127 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001141 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001142
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001146 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001153 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001160 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001177 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001178
Theodore Ts'oe1052142006-10-21 21:46:47 -04001179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 ac_prev=sbindir ;;
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001197 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001198
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1202 | --sha | --sh)
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001208 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001209
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001210 -site | --site | --sit)
1211 ac_prev=site ;;
1212 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001213 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001214
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 ac_prev=srcdir ;;
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001218 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001219
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001225 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001226
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001227 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001228 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001230 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001231
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 verbose=yes ;;
1234
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001237
1238 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001239 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001240 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001242 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247"with_$ac_useropt"
1248"*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001253
1254 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001258 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263"with_$ac_useropt"
1264"*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001269
1270 --x)
1271 # Obsolete; use --with-x.
1272 with_x=yes ;;
1273
1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275 | --x-incl | --x-inc | --x-in | --x-i)
1276 ac_prev=x_includes ;;
1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001279 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001280
1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283 ac_prev=x_libraries ;;
1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001286 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001287
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001288 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001290 ;;
1291
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001292 *=*)
1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001295 case $ac_envvar in #(
1296 '' | [0-9]* | *[!_$as_cr_alnum]* )
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001297 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001298 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001299 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001300 export $ac_envvar ;;
1301
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001302 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001303 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001308 ;;
1309
1310 esac
1311done
1312
1313if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001315 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001316fi
1317
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001318if test -n "$ac_unrecognized_opts"; then
1319 case $enable_option_checking in
1320 no) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001321 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 esac
1324fi
1325
1326# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001327for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001331do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001332 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001333 # Remove trailing slashes.
1334 case $ac_val in
1335 */ )
1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\$ac_val;;
1338 esac
1339 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001340 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001343 esac
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001344 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001345done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001346
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001347# There might be people who depend on the old broken behavior: `$host'
1348# used to hold the argument of --host etc.
1349# FIXME: To remove some day.
1350build=$build_alias
1351host=$host_alias
1352target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001353
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001354# FIXME: To remove some day.
1355if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1360 fi
1361fi
1362
1363ac_tool_prefix=
1364test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366test "$silent" = yes && exec 6>/dev/null
1367
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001368
Theodore Ts'oe1052142006-10-21 21:46:47 -04001369ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370ac_ls_di=`ls -di .` &&
1371ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001372 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001373test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001374 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001375
1376
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001377# Find the source files, if location was not specified.
1378if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001380 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001381 ac_confdir=`$as_dirname -- "$as_myself" ||
1382$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\).*/{
1400 s//\1/
1401 q
1402 }
1403 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001404 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001405 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001406 srcdir=..
1407 fi
1408else
1409 ac_srcdir_defaulted=no
1410fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001411if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001414fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001415ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416ac_abs_confdir=`(
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001418 pwd)`
1419# When building in place, set srcdir=.
1420if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 srcdir=.
1422fi
1423# Remove unnecessary trailing slashes from srcdir.
1424# Double slashes in file names in object file debugging info
1425# mess up M-x gdb in Emacs.
1426case $srcdir in
1427*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428esac
1429for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001436#
1437# Report the --help message.
1438#
1439if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1442 cat <<_ACEOF
1443\`configure' configures this package to adapt to many kinds of systems.
1444
1445Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448VAR=VALUE. See below for descriptions of some of the useful variables.
1449
1450Defaults for the options are specified in brackets.
1451
1452Configuration:
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001457 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001463Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001465 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001467 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001468
1469By default, \`make install' will install all the files in
1470\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472for instance \`--prefix=\$HOME'.
1473
1474For better control, use the options below.
1475
1476Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --libdir=DIR object code libraries [EPREFIX/lib]
1484 --includedir=DIR C header files [PREFIX/include]
1485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1488 --infodir=DIR info documentation [DATAROOTDIR/info]
1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1490 --mandir=DIR man documentation [DATAROOTDIR/man]
1491 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1492 --htmldir=DIR html documentation [DOCDIR]
1493 --dvidir=DIR dvi documentation [DOCDIR]
1494 --pdfdir=DIR pdf documentation [DOCDIR]
1495 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001496_ACEOF
1497
1498 cat <<\_ACEOF
1499
1500System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503_ACEOF
1504fi
1505
1506if test -n "$ac_init_help"; then
1507
1508 cat <<\_ACEOF
1509
1510Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001511 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001514 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001515 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001516 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001517
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001518 --enable-symlink-build use symlinks while building instead of hard links
1519 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001520 --enable-compression enable EXPERIMENTAL compression support
1521 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001522 --enable-elf-shlibs select ELF shared libraries
1523 --enable-bsd-shlibs select BSD shared libraries
1524 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001525 --enable-gcov build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001526 --enable-jbd-debug enable journal debugging
1527 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001528 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001529 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001530 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001531 --enable-quota enable quota support
Theodore Ts'o3df60142013-06-16 16:14:40 -04001532 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001533 --disable-debugfs disable support of debugfs program
1534 --disable-imager disable support of e2image program
1535 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001536 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001537 --enable-fsck build fsck wrapper program
1538 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001539 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001540 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001541 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001542 --enable-threads={posix|solaris|pth|windows}
1543 specify multithreading API
1544 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001545 --disable-rpath do not hardcode runtime library paths
1546
1547Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001550 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001551 --with-cc no longer supported, use CC= instead
1552 --with-ccopts no longer supported, use CFLAGS= instead
1553 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001554 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001555 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1556 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1557 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001558 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1559 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1560 --with-included-gettext use the GNU gettext library included here
1561 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1562 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001563 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001564
1565Some influential environment variables:
1566 CC C compiler command
1567 CFLAGS C compiler flags
1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1569 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001570 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001571 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001572 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001573 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001574 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001575 PKG_CONFIG_PATH
1576 directories to add to pkg-config's search path
1577 PKG_CONFIG_LIBDIR
1578 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001583Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001584_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001585ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001594 ac_builddir=.
1595
Theodore Ts'oe1052142006-10-21 21:46:47 -04001596case "$ac_dir" in
1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001600 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001602 case $ac_top_builddir_sub in
1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605 esac ;;
1606esac
1607ac_abs_top_builddir=$ac_pwd
1608ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609# for backward compatibility:
1610ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001611
1612case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001613 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001614 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001618 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001619 ac_top_srcdir=$srcdir
1620 ac_abs_top_srcdir=$srcdir ;;
1621 *) # Relative name.
1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001625esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001627
Theodore Ts'oe1052142006-10-21 21:46:47 -04001628 cd "$ac_dir" || { ac_status=$?; continue; }
1629 # Check for guested configure.
1630 if test -f "$ac_srcdir/configure.gnu"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633 elif test -f "$ac_srcdir/configure"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001636 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001638 fi || ac_status=$?
1639 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001640 done
1641fi
1642
Theodore Ts'oe1052142006-10-21 21:46:47 -04001643test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001644if $ac_init_version; then
1645 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001646configure
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001647generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001648
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001649Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001650This configure script is free software; the Free Software Foundation
1651gives unlimited permission to copy, distribute and modify it.
1652_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001653 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001654fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001655
1656## ------------------------ ##
1657## Autoconf initialization. ##
1658## ------------------------ ##
1659
1660# ac_fn_c_try_compile LINENO
1661# --------------------------
1662# Try to compile conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_compile ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext
1667 if { { ac_try="$ac_compile"
1668case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_compile") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest.$ac_objext; then :
1686 ac_retval=0
1687else
1688 $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001694 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001695
1696} # ac_fn_c_try_compile
1697
1698# ac_fn_c_try_link LINENO
1699# -----------------------
1700# Try to link conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_link ()
1702{
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 rm -f conftest.$ac_objext conftest$ac_exeext
1705 if { { ac_try="$ac_link"
1706case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest$ac_exeext && {
1724 test "$cross_compiling" = yes ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001725 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001726 }; then :
1727 ac_retval=0
1728else
1729 $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1
1733fi
1734 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1735 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1736 # interfere with the next link command; also delete a directory that is
1737 # left behind by Apple's compiler. We do this before executing the actions.
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001740 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001741
1742} # ac_fn_c_try_link
1743
1744# ac_fn_c_try_cpp LINENO
1745# ----------------------
1746# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1747ac_fn_c_try_cpp ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_cpp conftest.$ac_ext"
1751case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1763 fi
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001765 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 }; then :
1769 ac_retval=0
1770else
1771 $as_echo "$as_me: failed program was:" >&5
1772sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1
1775fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001777 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001778
1779} # ac_fn_c_try_cpp
1780
1781# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1782# -------------------------------------------------------
1783# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1784# the include files in INCLUDES and setting the cache variable VAR
1785# accordingly.
1786ac_fn_c_check_header_mongrel ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001789 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001792if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001793 $as_echo_n "(cached) " >&6
1794fi
1795eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798else
1799 # Is the header compilable?
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1801$as_echo_n "checking $2 usability... " >&6; }
1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h. */
1804$4
1805#include <$2>
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_header_compiler=yes
1809else
1810 ac_header_compiler=no
1811fi
1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1814$as_echo "$ac_header_compiler" >&6; }
1815
1816# Is the header present?
1817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1818$as_echo_n "checking $2 presence... " >&6; }
1819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h. */
1821#include <$2>
1822_ACEOF
1823if ac_fn_c_try_cpp "$LINENO"; then :
1824 ac_header_preproc=yes
1825else
1826 ac_header_preproc=no
1827fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001828rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1830$as_echo "$ac_header_preproc" >&6; }
1831
1832# So? What about this header?
1833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1834 yes:no: )
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1836$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 ;;
1840 no:yes:* )
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1842$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1844$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1846$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1848$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851 ;;
1852esac
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001855if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001856 $as_echo_n "(cached) " >&6
1857else
1858 eval "$3=\$ac_header_compiler"
1859fi
1860eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001865
1866} # ac_fn_c_check_header_mongrel
1867
Theodore Ts'o93613952014-07-03 23:44:13 -04001868# ac_fn_c_try_run LINENO
1869# ----------------------
1870# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1871# that executables *can* be run.
1872ac_fn_c_try_run ()
1873{
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_link"
1876case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879esac
1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881$as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_link") 2>&5
1883 ac_status=$?
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1886 { { case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889esac
1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891$as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_try") 2>&5
1893 ac_status=$?
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; }; }; then :
1896 ac_retval=0
1897else
1898 $as_echo "$as_me: program exited with status $ac_status" >&5
1899 $as_echo "$as_me: failed program was:" >&5
1900sed 's/^/| /' conftest.$ac_ext >&5
1901
1902 ac_retval=$ac_status
1903fi
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1907
1908} # ac_fn_c_try_run
1909
1910# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1911# -------------------------------------------------------
1912# Tests whether HEADER exists and can be compiled using the include files in
1913# INCLUDES, setting the cache variable VAR accordingly.
1914ac_fn_c_check_header_compile ()
1915{
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918$as_echo_n "checking for $2... " >&6; }
1919if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1921else
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h. */
1924$4
1925#include <$2>
1926_ACEOF
1927if ac_fn_c_try_compile "$LINENO"; then :
1928 eval "$3=yes"
1929else
1930 eval "$3=no"
1931fi
1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933fi
1934eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939} # ac_fn_c_check_header_compile
1940
1941# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1942# -------------------------------------------
1943# Tests whether TYPE exists after having included INCLUDES, setting cache
1944# variable VAR accordingly.
1945ac_fn_c_check_type ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949$as_echo_n "checking for $2... " >&6; }
1950if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1952else
1953 eval "$3=no"
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h. */
1956$4
1957int
1958main ()
1959{
1960if (sizeof ($2))
1961 return 0;
1962 ;
1963 return 0;
1964}
1965_ACEOF
1966if ac_fn_c_try_compile "$LINENO"; then :
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h. */
1969$4
1970int
1971main ()
1972{
1973if (sizeof (($2)))
1974 return 0;
1975 ;
1976 return 0;
1977}
1978_ACEOF
1979if ac_fn_c_try_compile "$LINENO"; then :
1980
1981else
1982 eval "$3=yes"
1983fi
1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985fi
1986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993} # ac_fn_c_check_type
1994
1995# ac_fn_c_check_func LINENO FUNC VAR
1996# ----------------------------------
1997# Tests whether FUNC exists, setting the cache variable VAR accordingly
1998ac_fn_c_check_func ()
1999{
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002$as_echo_n "checking for $2... " >&6; }
2003if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h. */
2008/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2010#define $2 innocuous_$2
2011
2012/* System header to define __stub macros and hopefully few prototypes,
2013 which can conflict with char $2 (); below.
2014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2015 <limits.h> exists even on freestanding compilers. */
2016
2017#ifdef __STDC__
2018# include <limits.h>
2019#else
2020# include <assert.h>
2021#endif
2022
2023#undef $2
2024
2025/* Override any GCC internal prototype to avoid an error.
2026 Use char because int might match the return type of a GCC
2027 builtin and then its argument prototype would still apply. */
2028#ifdef __cplusplus
2029extern "C"
2030#endif
2031char $2 ();
2032/* The GNU C library defines this for functions which it implements
2033 to always fail with ENOSYS. Some functions are actually named
2034 something starting with __ and the normal name is an alias. */
2035#if defined __stub_$2 || defined __stub___$2
2036choke me
2037#endif
2038
2039int
2040main ()
2041{
2042return $2 ();
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_link "$LINENO"; then :
2048 eval "$3=yes"
2049else
2050 eval "$3=no"
2051fi
2052rm -f core conftest.err conftest.$ac_objext \
2053 conftest$ac_exeext conftest.$ac_ext
2054fi
2055eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060} # ac_fn_c_check_func
2061
2062# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2063# ---------------------------------------------
2064# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2065# accordingly.
2066ac_fn_c_check_decl ()
2067{
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 as_decl_name=`echo $2|sed 's/ *(.*//'`
2070 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2072$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2073if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078$4
2079int
2080main ()
2081{
2082#ifndef $as_decl_name
2083#ifdef __cplusplus
2084 (void) $as_decl_use;
2085#else
2086 (void) $as_decl_name;
2087#endif
2088#endif
2089
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$3=yes"
2096else
2097 eval "$3=no"
2098fi
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100fi
2101eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106} # ac_fn_c_check_decl
2107
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002108# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109# --------------------------------------------
2110# Tries to find the compile-time value of EXPR in a program that includes
2111# INCLUDES, setting VAR accordingly. Returns whether the value could be
2112# computed
2113ac_fn_c_compute_int ()
2114{
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if test "$cross_compiling" = yes; then
2117 # Depending upon the size, compute the lo and hi bounds.
2118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h. */
2120$4
2121int
2122main ()
2123{
2124static int test_array [1 - 2 * !(($2) >= 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002125test_array [0] = 0;
2126return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002127
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_lo=0 ac_mid=0
2134 while :; do
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */
2137$4
2138int
2139main ()
2140{
2141static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002142test_array [0] = 0;
2143return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002144
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=$ac_mid; break
2151else
2152 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2153 if test $ac_lo -le $ac_mid; then
2154 ac_lo= ac_hi=
2155 break
2156 fi
2157 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161else
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163/* end confdefs.h. */
2164$4
2165int
2166main ()
2167{
2168static int test_array [1 - 2 * !(($2) < 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002169test_array [0] = 0;
2170return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002171
2172 ;
2173 return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_hi=-1 ac_mid=-1
2178 while :; do
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182int
2183main ()
2184{
2185static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002186test_array [0] = 0;
2187return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002188
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_lo=$ac_mid; break
2195else
2196 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2197 if test $ac_mid -le $ac_hi; then
2198 ac_lo= ac_hi=
2199 break
2200 fi
2201 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 done
2205else
2206 ac_lo= ac_hi=
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209fi
2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211# Binary search between lo and hi bounds.
2212while test "x$ac_lo" != "x$ac_hi"; do
2213 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h. */
2216$4
2217int
2218main ()
2219{
2220static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002221test_array [0] = 0;
2222return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002223
2224 ;
2225 return 0;
2226}
2227_ACEOF
2228if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_hi=$ac_mid
2230else
2231 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2232fi
2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234done
2235case $ac_lo in #((
2236?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2237'') ac_retval=1 ;;
2238esac
2239 else
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241/* end confdefs.h. */
2242$4
2243static long int longval () { return $2; }
2244static unsigned long int ulongval () { return $2; }
2245#include <stdio.h>
2246#include <stdlib.h>
2247int
2248main ()
2249{
2250
2251 FILE *f = fopen ("conftest.val", "w");
2252 if (! f)
2253 return 1;
2254 if (($2) < 0)
2255 {
2256 long int i = longval ();
2257 if (i != ($2))
2258 return 1;
2259 fprintf (f, "%ld", i);
2260 }
2261 else
2262 {
2263 unsigned long int i = ulongval ();
2264 if (i != ($2))
2265 return 1;
2266 fprintf (f, "%lu", i);
2267 }
2268 /* Do not output a trailing newline, as this causes \r\n confusion
2269 on some platforms. */
2270 return ferror (f) || fclose (f) != 0;
2271
2272 ;
2273 return 0;
2274}
2275_ACEOF
2276if ac_fn_c_try_run "$LINENO"; then :
2277 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2278else
2279 ac_retval=1
2280fi
2281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282 conftest.$ac_objext conftest.beam conftest.$ac_ext
2283rm -f conftest.val
2284
2285 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002287 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002288
2289} # ac_fn_c_compute_int
2290
2291# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2292# ----------------------------------------------------
2293# Tries to find if the field MEMBER exists in type AGGR, after including
2294# INCLUDES, setting cache variable VAR accordingly.
2295ac_fn_c_check_member ()
2296{
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2299$as_echo_n "checking for $2.$3... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002300if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002301 $as_echo_n "(cached) " >&6
2302else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h. */
2305$5
2306int
2307main ()
2308{
2309static $2 ac_aggr;
2310if (ac_aggr.$3)
2311return 0;
2312 ;
2313 return 0;
2314}
2315_ACEOF
2316if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$4=yes"
2318else
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320/* end confdefs.h. */
2321$5
2322int
2323main ()
2324{
2325static $2 ac_aggr;
2326if (sizeof ac_aggr.$3)
2327return 0;
2328 ;
2329 return 0;
2330}
2331_ACEOF
2332if ac_fn_c_try_compile "$LINENO"; then :
2333 eval "$4=yes"
2334else
2335 eval "$4=no"
2336fi
2337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338fi
2339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340fi
2341eval ac_res=\$$4
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002345
2346} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002347cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002348This file contains any messages produced by compilers while
2349running configure, to aid debugging if configure makes a mistake.
2350
2351It was created by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002352generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002353
2354 $ $0 $@
2355
2356_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002357exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002358{
2359cat <<_ASUNAME
2360## --------- ##
2361## Platform. ##
2362## --------- ##
2363
2364hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2365uname -m = `(uname -m) 2>/dev/null || echo unknown`
2366uname -r = `(uname -r) 2>/dev/null || echo unknown`
2367uname -s = `(uname -s) 2>/dev/null || echo unknown`
2368uname -v = `(uname -v) 2>/dev/null || echo unknown`
2369
2370/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2371/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2372
2373/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2374/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2375/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002376/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002377/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2378/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2379/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2380
2381_ASUNAME
2382
2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384for as_dir in $PATH
2385do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002388 $as_echo "PATH: $as_dir"
2389 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002390IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002391
2392} >&5
2393
2394cat >&5 <<_ACEOF
2395
2396
2397## ----------- ##
2398## Core tests. ##
2399## ----------- ##
2400
2401_ACEOF
2402
2403
2404# Keep a trace of the command line.
2405# Strip out --no-create and --no-recursion so they do not pile up.
2406# Strip out --silent because we don't want to record it for future runs.
2407# Also quote any args containing shell meta-characters.
2408# Make two passes to allow for proper duplicate-argument suppression.
2409ac_configure_args=
2410ac_configure_args0=
2411ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002412ac_must_keep_next=false
2413for ac_pass in 1 2
2414do
2415 for ac_arg
2416 do
2417 case $ac_arg in
2418 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2420 | -silent | --silent | --silen | --sile | --sil)
2421 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002422 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002423 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002424 esac
2425 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002426 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002427 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002428 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002429 if test $ac_must_keep_next = true; then
2430 ac_must_keep_next=false # Got value, back to normal.
2431 else
2432 case $ac_arg in
2433 *=* | --config-cache | -C | -disable-* | --disable-* \
2434 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2435 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2436 | -with-* | --with-* | -without-* | --without-* | --x)
2437 case "$ac_configure_args0 " in
2438 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2439 esac
2440 ;;
2441 -* ) ac_must_keep_next=true ;;
2442 esac
2443 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002444 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002445 ;;
2446 esac
2447 done
2448done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002449{ ac_configure_args0=; unset ac_configure_args0;}
2450{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002451
2452# When interrupted or exit'd, cleanup temporary files, and complete
2453# config.log. We remove comments because anyway the quotes in there
2454# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002455# WARNING: Use '\'' to represent an apostrophe within the trap.
2456# 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 -05002457trap 'exit_status=$?
2458 # Save into config.log some information that might help in debugging.
2459 {
2460 echo
2461
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002462 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002463## Cache variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002464## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002465 echo
2466 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002467(
2468 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2469 eval ac_val=\$$ac_var
2470 case $ac_val in #(
2471 *${as_nl}*)
2472 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002473 *_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 +01002474$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002475 esac
2476 case $ac_var in #(
2477 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002479 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002480 esac ;;
2481 esac
2482 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002483 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002484 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2485 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002486 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002487 "s/'\''/'\''\\\\'\'''\''/g;
2488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2489 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002490 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002493 esac |
2494 sort
2495)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002496 echo
2497
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002498 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002499## Output variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002500## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002501 echo
2502 for ac_var in $ac_subst_vars
2503 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002504 eval ac_val=\$$ac_var
2505 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002507 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002508 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002509 done | sort
2510 echo
2511
2512 if test -n "$ac_subst_files"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002513 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002514## File substitutions. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002515## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516 echo
2517 for ac_var in $ac_subst_files
2518 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002519 eval ac_val=\$$ac_var
2520 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002521 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002522 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002523 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002524 done | sort
2525 echo
2526 fi
2527
2528 if test -s confdefs.h; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002529 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002530## confdefs.h. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002531## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002532 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002533 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002534 echo
2535 fi
2536 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002537 $as_echo "$as_me: caught signal $ac_signal"
2538 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002539 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002540 rm -f core *.core core.conftest.* &&
2541 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002543' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002544for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002545 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002546done
2547ac_signal=0
2548
2549# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002550rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002551
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002552$as_echo "/* confdefs.h */" > confdefs.h
2553
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002554# Predefined preprocessor variables.
2555
2556cat >>confdefs.h <<_ACEOF
2557#define PACKAGE_NAME "$PACKAGE_NAME"
2558_ACEOF
2559
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002560cat >>confdefs.h <<_ACEOF
2561#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2562_ACEOF
2563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002564cat >>confdefs.h <<_ACEOF
2565#define PACKAGE_VERSION "$PACKAGE_VERSION"
2566_ACEOF
2567
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002568cat >>confdefs.h <<_ACEOF
2569#define PACKAGE_STRING "$PACKAGE_STRING"
2570_ACEOF
2571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002572cat >>confdefs.h <<_ACEOF
2573#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2574_ACEOF
2575
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_URL "$PACKAGE_URL"
2578_ACEOF
2579
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002580
2581# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002582# Prefer an explicitly selected file to automatically selected ones.
2583ac_site_file1=NONE
2584ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002585if test -n "$CONFIG_SITE"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002586 # We do not want a PATH search for config.site.
2587 case $CONFIG_SITE in #((
2588 -*) ac_site_file1=./$CONFIG_SITE;;
2589 */*) ac_site_file1=$CONFIG_SITE;;
2590 *) ac_site_file1=./$CONFIG_SITE;;
2591 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002592elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002593 ac_site_file1=$prefix/share/config.site
2594 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002595else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002596 ac_site_file1=$ac_default_prefix/share/config.site
2597 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002598fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002599for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002600do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002601 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002602 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002604$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002605 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002606 . "$ac_site_file" \
2607 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609as_fn_error $? "failed to load site script $ac_site_file
2610See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002611 fi
2612done
2613
2614if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002615 # Some versions of bash will fail to source /dev/null (special files
2616 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2617 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002618 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002619$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002620 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002621 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002623 esac
2624 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002625else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002627$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002628 >$cache_file
2629fi
2630
Theodore Ts'o93613952014-07-03 23:44:13 -04002631gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002632as_fn_append ac_header_list " stdlib.h"
2633as_fn_append ac_header_list " unistd.h"
2634as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002635as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002636# Check that the precious variables saved in the cache have kept the same
2637# value.
2638ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002639for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002640 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2641 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002642 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2643 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002644 case $ac_old_set,$ac_new_set in
2645 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002646 { $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 +01002647$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 -05002648 ac_cache_corrupted=: ;;
2649 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002650 { $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 +01002651$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002652 ac_cache_corrupted=: ;;
2653 ,);;
2654 *)
2655 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002656 # differences in whitespace do not lead to failure.
2657 ac_old_val_w=`echo x $ac_old_val`
2658 ac_new_val_w=`echo x $ac_new_val`
2659 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002660 { $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 +01002661$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2662 ac_cache_corrupted=:
2663 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002664 { $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 +01002665$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2666 eval $ac_var=\$ac_old_val
2667 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002668 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002669$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002670 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002671$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002672 fi;;
2673 esac
2674 # Pass precious variables to config.status.
2675 if test "$ac_new_set" = set; then
2676 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002677 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002678 *) ac_arg=$ac_var=$ac_new_val ;;
2679 esac
2680 case " $ac_configure_args " in
2681 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002682 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002683 esac
2684 fi
2685done
2686if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002689 { $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 +01002690$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002691 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002692fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002693## -------------------- ##
2694## Main body of script. ##
2695## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002696
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002697ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002698ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2701ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002702
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002703
2704
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002705ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002706for ac_dir in config "$srcdir"/config; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002707 if test -f "$ac_dir/install-sh"; then
2708 ac_aux_dir=$ac_dir
2709 ac_install_sh="$ac_aux_dir/install-sh -c"
2710 break
2711 elif test -f "$ac_dir/install.sh"; then
2712 ac_aux_dir=$ac_dir
2713 ac_install_sh="$ac_aux_dir/install.sh -c"
2714 break
2715 elif test -f "$ac_dir/shtool"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/shtool install -c"
2718 break
2719 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002720done
2721if test -z "$ac_aux_dir"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002722 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 +00002723fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002724
2725# These three variables are undocumented and unsupported,
2726# and are intended to be withdrawn in a future Autoconf release.
2727# They can cause serious problems if a builder's source tree is in a directory
2728# whose full name contains unusual characters.
2729ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2730ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2731ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2732
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002733
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002734ac_config_headers="$ac_config_headers lib/config.h"
2735
2736
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002737MCONFIG=./MCONFIG
2738
Theodore Ts'o74becf31997-04-26 14:37:06 +00002739BINARY_TYPE=bin
2740E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2741 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2742DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2743 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002744E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002745MONTH=`echo $DATE | awk -F- '{print $2}'`
2746YEAR=`echo $DATE | awk -F- '{print $3}'`
2747
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002748if expr $YEAR ">" 1900 > /dev/null ; then
2749 E2FSPROGS_YEAR=$YEAR
2750elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002751 E2FSPROGS_YEAR=19$YEAR
2752else
2753 E2FSPROGS_YEAR=20$YEAR
2754fi
2755
2756case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002757Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2758Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2759Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2760Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2761May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2762Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2763Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2764Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2765Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2766Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2767Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2768Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002769*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002770$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002771esac
2772
Andreas Dilger927566a2006-11-12 19:41:25 -05002773base_ver=`echo $E2FSPROGS_VERSION | \
2774 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002775
2776date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2777
2778case $E2FSPROGS_VERSION in
2779*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002780 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002781 ;;
2782*)
2783 E2FSPROGS_PKGVER="$base_ver"
2784 ;;
2785esac
2786
2787unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002788{ $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 +01002789$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002791$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002792
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002793
2794
2795
Andreas Dilger927566a2006-11-12 19:41:25 -05002796
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002797WITH_DIET_LIBC=
2798
2799# Check whether --with-diet-libc was given.
2800if test "${with_diet_libc+set}" = set; then :
2801 withval=$with_diet_libc; CC="diet cc -nostdinc"
2802WITH_DIET_LIBC=yes
2803if test -z "$LIBS"
2804then
2805 LIBS="-lcompat"
2806else
2807 LIBS="$LIBS -lcompat"
2808fi
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2810$as_echo "CC=$CC" >&6; }
2811fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002812# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002813$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002814 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002815
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002817$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002818if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002819 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002820else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002821 ac_build_alias=$build_alias
2822test "x$ac_build_alias" = x &&
2823 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2824test "x$ac_build_alias" = x &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002825 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002826ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002827 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002829fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002831$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002832case $ac_cv_build in
2833*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002834*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002835esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002836build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002837ac_save_IFS=$IFS; IFS='-'
2838set x $ac_cv_build
2839shift
2840build_cpu=$1
2841build_vendor=$2
2842shift; shift
2843# Remember, the first character of IFS is used to create $*,
2844# except with old shells:
2845build_os=$*
2846IFS=$ac_save_IFS
2847case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002848
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002849
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002851$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002852if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002853 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002854else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002855 if test "x$host_alias" = x; then
2856 ac_cv_host=$ac_cv_build
2857else
2858 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002859 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002860fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002861
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002862fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002864$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002865case $ac_cv_host in
2866*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002867*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002868esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002869host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002870ac_save_IFS=$IFS; IFS='-'
2871set x $ac_cv_host
2872shift
2873host_cpu=$1
2874host_vendor=$2
2875shift; shift
2876# Remember, the first character of IFS is used to create $*,
2877# except with old shells:
2878host_os=$*
2879IFS=$ac_save_IFS
2880case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002881
2882
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002883DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002884ac_ext=c
2885ac_cpp='$CPP $CPPFLAGS'
2886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2891set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002893$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002894if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002895 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002896else
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2899else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901for as_dir in $PATH
2902do
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002905 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002907 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002909 break 2
2910 fi
2911done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002912 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002913IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002914
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002915fi
2916fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002917CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002918if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002920$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002921else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002923$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002924fi
2925
Theodore Ts'oe1052142006-10-21 21:46:47 -04002926
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002927fi
2928if test -z "$ac_cv_prog_CC"; then
2929 ac_ct_CC=$CC
2930 # Extract the first word of "gcc", so it can be a program name with args.
2931set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002933$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002934if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002935 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936else
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002945 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002947 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002949 break 2
2950 fi
2951done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002952 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002953IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002954
2955fi
2956fi
2957ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002960$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002963$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002964fi
2965
Theodore Ts'oe1052142006-10-21 21:46:47 -04002966 if test "x$ac_ct_CC" = x; then
2967 CC=""
2968 else
2969 case $cross_compiling:$ac_tool_warned in
2970yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002971{ $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 +01002972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002973ac_tool_warned=yes ;;
2974esac
2975 CC=$ac_ct_CC
2976 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002977else
2978 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002979fi
2980
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002981if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002982 if test -n "$ac_tool_prefix"; then
2983 # 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 -05002984set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002986$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002987if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002988 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002989else
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2992else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002998 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003000 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003002 break 2
3003 fi
3004done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003005 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003006IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003007
3008fi
3009fi
3010CC=$ac_cv_prog_CC
3011if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003013$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003014else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003016$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003017fi
3018
Theodore Ts'oe1052142006-10-21 21:46:47 -04003019
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003020 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021fi
3022if test -z "$CC"; then
3023 # Extract the first word of "cc", so it can be a program name with args.
3024set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003026$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003027if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003028 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003029else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003033 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003039 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3042 ac_prog_rejected=yes
3043 continue
3044 fi
3045 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003047 break 2
3048 fi
3049done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003050 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003051IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003052
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003053if test $ac_prog_rejected = yes; then
3054 # We found a bogon in the path, so make sure we never use it.
3055 set dummy $ac_cv_prog_CC
3056 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003057 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003058 # We chose a different compiler from the bogus one.
3059 # However, it has the same basename, so the bogon will be chosen
3060 # first if we set CC to just the basename; use the full file name.
3061 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003062 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003063 fi
3064fi
3065fi
3066fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003067CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003068if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003070$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003071else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003073$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003074fi
3075
Theodore Ts'oe1052142006-10-21 21:46:47 -04003076
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003077fi
3078if test -z "$CC"; then
3079 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003080 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003081 do
3082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003085$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003086if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003087 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003088else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003097 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003099 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003101 break 2
3102 fi
3103done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003104 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003105IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003106
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003107fi
3108fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003109CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003110if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003112$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003113else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003115$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003116fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003117
Theodore Ts'oe1052142006-10-21 21:46:47 -04003118
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003119 test -n "$CC" && break
3120 done
3121fi
3122if test -z "$CC"; then
3123 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003124 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003125do
3126 # Extract the first word of "$ac_prog", so it can be a program name with args.
3127set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003129$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003130if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003131 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003132else
3133 if test -n "$ac_ct_CC"; then
3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135else
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003141 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003143 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003145 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003146 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003147done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003148 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003149IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003150
3151fi
3152fi
3153ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003156$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003157else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003159$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003160fi
3161
Theodore Ts'oe1052142006-10-21 21:46:47 -04003162
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003163 test -n "$ac_ct_CC" && break
3164done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003165
Theodore Ts'oe1052142006-10-21 21:46:47 -04003166 if test "x$ac_ct_CC" = x; then
3167 CC=""
3168 else
3169 case $cross_compiling:$ac_tool_warned in
3170yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003171{ $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 +01003172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003173ac_tool_warned=yes ;;
3174esac
3175 CC=$ac_ct_CC
3176 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003177fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003178
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003179fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003180
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003181
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003182test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003184as_fn_error $? "no acceptable C compiler found in \$PATH
3185See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003186
3187# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003188$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003189set X $ac_compile
3190ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003191for ac_option in --version -v -V -qversion; do
3192 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003193case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198$as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003200 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003201 if test -s conftest.err; then
3202 sed '10a\
3203... rest of stderr output deleted ...
3204 10q' conftest.err >conftest.er1
3205 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003206 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003207 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3210done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003211
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003213/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003215int
3216main ()
3217{
3218
3219 ;
3220 return 0;
3221}
3222_ACEOF
3223ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003224ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003225# Try to create an executable without -o first, disregard a.out.
3226# It will help us diagnose broken compilers, and finding out an intuition
3227# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3229$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003230ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3231
3232# The possible output files:
3233ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3234
Theodore Ts'oe1052142006-10-21 21:46:47 -04003235ac_rmfiles=
3236for ac_file in $ac_files
3237do
3238 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003240 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3241 esac
3242done
3243rm -f $ac_rmfiles
3244
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003245if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003246case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003252 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003253 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003256 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3257# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3258# in a Makefile. We should not override ac_cv_exeext if it was cached,
3259# so that the user can short-circuit this test for compilers unknown to
3260# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003261for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003262do
3263 test -f "$ac_file" || continue
3264 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003266 ;;
3267 [ab].out )
3268 # We found the default executable, but exeext='' is most
3269 # certainly right.
3270 break;;
3271 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003272 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003273 then :; else
3274 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275 fi
3276 # We set ac_cv_exeext here because the later test for it is not
3277 # safe: cross compilers may not add the suffix if given an `-o'
3278 # argument, so we may need to know it at that point already.
3279 # Even if this section looks crufty: it has the advantage of
3280 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003281 break;;
3282 * )
3283 break;;
3284 esac
3285done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003286test "$ac_cv_exeext" = no && ac_cv_exeext=
3287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003288else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003289 ac_file=''
3290fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003291if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003295sed 's/^/| /' conftest.$ac_ext >&5
3296
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003297{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003299as_fn_error 77 "C compiler cannot create executables
3300See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003301else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003304fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306$as_echo_n "checking for C compiler default output file name... " >&6; }
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3308$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003309ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003310
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003311rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003312ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003314$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003315if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003316case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003322 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003323 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003326 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3327# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3328# work properly (i.e., refer to `conftest.exe'), while it won't with
3329# `rm'.
3330for ac_file in conftest.exe conftest conftest.*; do
3331 test -f "$ac_file" || continue
3332 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003334 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003335 break;;
3336 * ) break;;
3337 esac
3338done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003339else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003342as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3343See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003344fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003345rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003347$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003348
3349rm -f conftest.$ac_ext
3350EXEEXT=$ac_cv_exeext
3351ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353/* end confdefs.h. */
3354#include <stdio.h>
3355int
3356main ()
3357{
3358FILE *f = fopen ("conftest.out", "w");
3359 return ferror (f) || fclose (f) != 0;
3360
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365ac_clean_files="$ac_clean_files conftest.out"
3366# Check that the compiler produces executables we can run. If not, either
3367# the compiler is broken, or we cross compile.
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3369$as_echo_n "checking whether we are cross compiling... " >&6; }
3370if test "$cross_compiling" != yes; then
3371 { { ac_try="$ac_link"
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377$as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_link") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }
3382 if { ac_try='./conftest$ac_cv_exeext'
3383 { { case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388$as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_try") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; }; then
3393 cross_compiling=no
3394 else
3395 if test "$cross_compiling" = maybe; then
3396 cross_compiling=yes
3397 else
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003400as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003401If you meant to cross compile, use \`--host'.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003402See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003403 fi
3404 fi
3405fi
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3407$as_echo "$cross_compiling" >&6; }
3408
3409rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3410ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003412$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003413if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003414 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003415else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003417/* end confdefs.h. */
3418
3419int
3420main ()
3421{
3422
3423 ;
3424 return 0;
3425}
3426_ACEOF
3427rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003428if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003435 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003436 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003439 for ac_file in conftest.o conftest.obj conftest.*; do
3440 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003441 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003443 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3444 break;;
3445 esac
3446done
3447else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003448 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003449sed 's/^/| /' conftest.$ac_ext >&5
3450
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003451{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003453as_fn_error $? "cannot compute suffix of object files: cannot compile
3454See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003455fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003456rm -f conftest.$ac_cv_objext conftest.$ac_ext
3457fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003459$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003460OBJEXT=$ac_cv_objext
3461ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003462{ $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 +01003463$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003464if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003465 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003466else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003468/* end confdefs.h. */
3469
3470int
3471main ()
3472{
3473#ifndef __GNUC__
3474 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003475#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003476
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003477 ;
3478 return 0;
3479}
3480_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003481if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003482 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003483else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003484 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003487ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003488
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003489fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003491$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3492if test $ac_compiler_gnu = yes; then
3493 GCC=yes
3494else
3495 GCC=
3496fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003497ac_test_CFLAGS=${CFLAGS+set}
3498ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003500$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003501if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003502 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003503else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003504 ac_save_c_werror_flag=$ac_c_werror_flag
3505 ac_c_werror_flag=yes
3506 ac_cv_prog_cc_g=no
3507 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003509/* end confdefs.h. */
3510
3511int
3512main ()
3513{
3514
3515 ;
3516 return 0;
3517}
3518_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003519if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003520 ac_cv_prog_cc_g=yes
3521else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003522 CFLAGS=""
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003524/* end confdefs.h. */
3525
3526int
3527main ()
3528{
3529
3530 ;
3531 return 0;
3532}
3533_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003534if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003535
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003536else
3537 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003538 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003540/* end confdefs.h. */
3541
3542int
3543main ()
3544{
3545
3546 ;
3547 return 0;
3548}
3549_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003550if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003551 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003552fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003554fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3559fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003561$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003562if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003563 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003564elif test $ac_cv_prog_cc_g = yes; then
3565 if test "$GCC" = yes; then
3566 CFLAGS="-g -O2"
3567 else
3568 CFLAGS="-g"
3569 fi
3570else
3571 if test "$GCC" = yes; then
3572 CFLAGS="-O2"
3573 else
3574 CFLAGS=
3575 fi
3576fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003578$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003579if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003580 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003581else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003582 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003583ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003585/* end confdefs.h. */
3586#include <stdarg.h>
3587#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003588struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003589/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3590struct buf { int x; };
3591FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592static char *e (p, i)
3593 char **p;
3594 int i;
3595{
3596 return p[i];
3597}
3598static char *f (char * (*g) (char **, int), char **p, ...)
3599{
3600 char *s;
3601 va_list v;
3602 va_start (v,p);
3603 s = g (p, va_arg (v,int));
3604 va_end (v);
3605 return s;
3606}
3607
3608/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3609 function prototypes and stuff, but not '\xHH' hex character constants.
3610 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003611 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3613 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003614 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003615int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616
Theodore Ts'oe1052142006-10-21 21:46:47 -04003617/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618 inside strings and character constants. */
3619#define FOO(x) 'x'
3620int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3621
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003622int test (int i, double x);
3623struct s1 {int (*f) (int a);};
3624struct s2 {int (*f) (double a);};
3625int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626int argc;
3627char **argv;
3628int
3629main ()
3630{
3631return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3632 ;
3633 return 0;
3634}
3635_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003636for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003638do
3639 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003640 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003641 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003642fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003643rm -f core conftest.err conftest.$ac_objext
3644 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003645done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003646rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003647CC=$ac_save_CC
3648
3649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003650# AC_CACHE_VAL
3651case "x$ac_cv_prog_cc_c89" in
3652 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003654$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003655 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003657$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003658 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003659 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003661$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003662esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003663if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003664
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003665fi
3666
3667ac_ext=c
3668ac_cpp='$CPP $CPPFLAGS'
3669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672
3673
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3675$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003676if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003677 $as_echo_n "(cached) " >&6
3678else
3679 ac_check_lib_save_LIBS=$LIBS
3680LIBS="-ldl $LIBS"
3681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h. */
3683
3684/* Override any GCC internal prototype to avoid an error.
3685 Use char because int might match the return type of a GCC
3686 builtin and then its argument prototype would still apply. */
3687#ifdef __cplusplus
3688extern "C"
3689#endif
3690char dlopen ();
3691int
3692main ()
3693{
3694return dlopen ();
3695 ;
3696 return 0;
3697}
3698_ACEOF
3699if ac_fn_c_try_link "$LINENO"; then :
3700 ac_cv_lib_dl_dlopen=yes
3701else
3702 ac_cv_lib_dl_dlopen=no
3703fi
3704rm -f core conftest.err conftest.$ac_objext \
3705 conftest$ac_exeext conftest.$ac_ext
3706LIBS=$ac_check_lib_save_LIBS
3707fi
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3709$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003710if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003711 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003712
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003713$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3714
3715fi
3716
3717
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003718
3719# Check whether --with-cc was given.
3720if test "${with_cc+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003721 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003722fi
3723
3724
3725# Check whether --with-ccopts was given.
3726if test "${with_ccopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003727 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003728fi
3729
3730
3731# Check whether --with-ldopts was given.
3732if test "${with_ldopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003733 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003734fi
3735
3736ac_ext=c
3737ac_cpp='$CPP $CPPFLAGS'
3738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741if test -n "$ac_tool_prefix"; then
3742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3743set dummy ${ac_tool_prefix}gcc; ac_word=$2
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003746if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003747 $as_echo_n "(cached) " >&6
3748else
3749 if test -n "$CC"; then
3750 ac_cv_prog_CC="$CC" # Let the user override the test.
3751else
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003759 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3762 fi
3763done
3764 done
3765IFS=$as_save_IFS
3766
3767fi
3768fi
3769CC=$ac_cv_prog_CC
3770if test -n "$CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3772$as_echo "$CC" >&6; }
3773else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775$as_echo "no" >&6; }
3776fi
3777
3778
3779fi
3780if test -z "$ac_cv_prog_CC"; then
3781 ac_ct_CC=$CC
3782 # Extract the first word of "gcc", so it can be a program name with args.
3783set dummy gcc; ac_word=$2
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003786if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003787 $as_echo_n "(cached) " >&6
3788else
3789 if test -n "$ac_ct_CC"; then
3790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3791else
3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003799 ac_cv_prog_ac_ct_CC="gcc"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803done
3804 done
3805IFS=$as_save_IFS
3806
3807fi
3808fi
3809ac_ct_CC=$ac_cv_prog_ac_ct_CC
3810if test -n "$ac_ct_CC"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3812$as_echo "$ac_ct_CC" >&6; }
3813else
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815$as_echo "no" >&6; }
3816fi
3817
3818 if test "x$ac_ct_CC" = x; then
3819 CC=""
3820 else
3821 case $cross_compiling:$ac_tool_warned in
3822yes:)
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825ac_tool_warned=yes ;;
3826esac
3827 CC=$ac_ct_CC
3828 fi
3829else
3830 CC="$ac_cv_prog_CC"
3831fi
3832
3833if test -z "$CC"; then
3834 if test -n "$ac_tool_prefix"; then
3835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3836set dummy ${ac_tool_prefix}cc; ac_word=$2
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003839if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003840 $as_echo_n "(cached) " >&6
3841else
3842 if test -n "$CC"; then
3843 ac_cv_prog_CC="$CC" # Let the user override the test.
3844else
3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH
3847do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003852 ac_cv_prog_CC="${ac_tool_prefix}cc"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 break 2
3855 fi
3856done
3857 done
3858IFS=$as_save_IFS
3859
3860fi
3861fi
3862CC=$ac_cv_prog_CC
3863if test -n "$CC"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3865$as_echo "$CC" >&6; }
3866else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868$as_echo "no" >&6; }
3869fi
3870
3871
3872 fi
3873fi
3874if test -z "$CC"; then
3875 # Extract the first word of "cc", so it can be a program name with args.
3876set dummy cc; ac_word=$2
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003879if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003880 $as_echo_n "(cached) " >&6
3881else
3882 if test -n "$CC"; then
3883 ac_cv_prog_CC="$CC" # Let the user override the test.
3884else
3885 ac_prog_rejected=no
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3894 ac_prog_rejected=yes
3895 continue
3896 fi
3897 ac_cv_prog_CC="cc"
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901done
3902 done
3903IFS=$as_save_IFS
3904
3905if test $ac_prog_rejected = yes; then
3906 # We found a bogon in the path, so make sure we never use it.
3907 set dummy $ac_cv_prog_CC
3908 shift
3909 if test $# != 0; then
3910 # We chose a different compiler from the bogus one.
3911 # However, it has the same basename, so the bogon will be chosen
3912 # first if we set CC to just the basename; use the full file name.
3913 shift
3914 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3915 fi
3916fi
3917fi
3918fi
3919CC=$ac_cv_prog_CC
3920if test -n "$CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922$as_echo "$CC" >&6; }
3923else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925$as_echo "no" >&6; }
3926fi
3927
3928
3929fi
3930if test -z "$CC"; then
3931 if test -n "$ac_tool_prefix"; then
3932 for ac_prog in cl.exe
3933 do
3934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003938if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003939 $as_echo_n "(cached) " >&6
3940else
3941 if test -n "$CC"; then
3942 ac_cv_prog_CC="$CC" # Let the user override the test.
3943else
3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH
3946do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003951 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955done
3956 done
3957IFS=$as_save_IFS
3958
3959fi
3960fi
3961CC=$ac_cv_prog_CC
3962if test -n "$CC"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3964$as_echo "$CC" >&6; }
3965else
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967$as_echo "no" >&6; }
3968fi
3969
3970
3971 test -n "$CC" && break
3972 done
3973fi
3974if test -z "$CC"; then
3975 ac_ct_CC=$CC
3976 for ac_prog in cl.exe
3977do
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979set dummy $ac_prog; ac_word=$2
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003982if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003983 $as_echo_n "(cached) " >&6
3984else
3985 if test -n "$ac_ct_CC"; then
3986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3987else
3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH
3990do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003995 ac_cv_prog_ac_ct_CC="$ac_prog"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999done
4000 done
4001IFS=$as_save_IFS
4002
4003fi
4004fi
4005ac_ct_CC=$ac_cv_prog_ac_ct_CC
4006if test -n "$ac_ct_CC"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4008$as_echo "$ac_ct_CC" >&6; }
4009else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011$as_echo "no" >&6; }
4012fi
4013
4014
4015 test -n "$ac_ct_CC" && break
4016done
4017
4018 if test "x$ac_ct_CC" = x; then
4019 CC=""
4020 else
4021 case $cross_compiling:$ac_tool_warned in
4022yes:)
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4025ac_tool_warned=yes ;;
4026esac
4027 CC=$ac_ct_CC
4028 fi
4029fi
4030
4031fi
4032
4033
4034test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004036as_fn_error $? "no acceptable C compiler found in \$PATH
4037See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004038
4039# Provide some information about the compiler.
4040$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4041set X $ac_compile
4042ac_compiler=$2
4043for ac_option in --version -v -V -qversion; do
4044 { { ac_try="$ac_compiler $ac_option >&5"
4045case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048esac
4049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050$as_echo "$ac_try_echo"; } >&5
4051 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4052 ac_status=$?
4053 if test -s conftest.err; then
4054 sed '10a\
4055... rest of stderr output deleted ...
4056 10q' conftest.err >conftest.er1
4057 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004058 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004059 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }
4062done
4063
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4065$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004066if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004067 $as_echo_n "(cached) " >&6
4068else
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070/* end confdefs.h. */
4071
4072int
4073main ()
4074{
4075#ifndef __GNUC__
4076 choke me
4077#endif
4078
4079 ;
4080 return 0;
4081}
4082_ACEOF
4083if ac_fn_c_try_compile "$LINENO"; then :
4084 ac_compiler_gnu=yes
4085else
4086 ac_compiler_gnu=no
4087fi
4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089ac_cv_c_compiler_gnu=$ac_compiler_gnu
4090
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4093$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4094if test $ac_compiler_gnu = yes; then
4095 GCC=yes
4096else
4097 GCC=
4098fi
4099ac_test_CFLAGS=${CFLAGS+set}
4100ac_save_CFLAGS=$CFLAGS
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4102$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004103if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004104 $as_echo_n "(cached) " >&6
4105else
4106 ac_save_c_werror_flag=$ac_c_werror_flag
4107 ac_c_werror_flag=yes
4108 ac_cv_prog_cc_g=no
4109 CFLAGS="-g"
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h. */
4112
4113int
4114main ()
4115{
4116
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121if ac_fn_c_try_compile "$LINENO"; then :
4122 ac_cv_prog_cc_g=yes
4123else
4124 CFLAGS=""
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
4138else
4139 ac_c_werror_flag=$ac_save_c_werror_flag
4140 CFLAGS="-g"
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142/* end confdefs.h. */
4143
4144int
4145main ()
4146{
4147
4148 ;
4149 return 0;
4150}
4151_ACEOF
4152if ac_fn_c_try_compile "$LINENO"; then :
4153 ac_cv_prog_cc_g=yes
4154fi
4155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156fi
4157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158fi
4159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4161fi
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4163$as_echo "$ac_cv_prog_cc_g" >&6; }
4164if test "$ac_test_CFLAGS" = set; then
4165 CFLAGS=$ac_save_CFLAGS
4166elif test $ac_cv_prog_cc_g = yes; then
4167 if test "$GCC" = yes; then
4168 CFLAGS="-g -O2"
4169 else
4170 CFLAGS="-g"
4171 fi
4172else
4173 if test "$GCC" = yes; then
4174 CFLAGS="-O2"
4175 else
4176 CFLAGS=
4177 fi
4178fi
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4180$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004181if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004182 $as_echo_n "(cached) " >&6
4183else
4184 ac_cv_prog_cc_c89=no
4185ac_save_CC=$CC
4186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h. */
4188#include <stdarg.h>
4189#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004190struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004191/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4192struct buf { int x; };
4193FILE * (*rcsopen) (struct buf *, struct stat *, int);
4194static char *e (p, i)
4195 char **p;
4196 int i;
4197{
4198 return p[i];
4199}
4200static char *f (char * (*g) (char **, int), char **p, ...)
4201{
4202 char *s;
4203 va_list v;
4204 va_start (v,p);
4205 s = g (p, va_arg (v,int));
4206 va_end (v);
4207 return s;
4208}
4209
4210/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4211 function prototypes and stuff, but not '\xHH' hex character constants.
4212 These don't provoke an error unfortunately, instead are silently treated
4213 as 'x'. The following induces an error, until -std is added to get
4214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4215 array size at least. It's necessary to write '\x00'==0 to get something
4216 that's true only with -std. */
4217int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4218
4219/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4220 inside strings and character constants. */
4221#define FOO(x) 'x'
4222int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4223
4224int test (int i, double x);
4225struct s1 {int (*f) (int a);};
4226struct s2 {int (*f) (double a);};
4227int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4228int argc;
4229char **argv;
4230int
4231main ()
4232{
4233return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4234 ;
4235 return 0;
4236}
4237_ACEOF
4238for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4239 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4240do
4241 CC="$ac_save_CC $ac_arg"
4242 if ac_fn_c_try_compile "$LINENO"; then :
4243 ac_cv_prog_cc_c89=$ac_arg
4244fi
4245rm -f core conftest.err conftest.$ac_objext
4246 test "x$ac_cv_prog_cc_c89" != "xno" && break
4247done
4248rm -f conftest.$ac_ext
4249CC=$ac_save_CC
4250
4251fi
4252# AC_CACHE_VAL
4253case "x$ac_cv_prog_cc_c89" in
4254 x)
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4256$as_echo "none needed" >&6; } ;;
4257 xno)
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4259$as_echo "unsupported" >&6; } ;;
4260 *)
4261 CC="$CC $ac_cv_prog_cc_c89"
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4263$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4264esac
4265if test "x$ac_cv_prog_cc_c89" != xno; then :
4266
4267fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004268
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004269ac_ext=c
4270ac_cpp='$CPP $CPPFLAGS'
4271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004275if test "$GCC" = yes; then
4276 RDYNAMIC="-rdynamic"
4277
4278fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004279ac_ext=c
4280ac_cpp='$CPP $CPPFLAGS'
4281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004285$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004286# On Suns, sometimes $CPP names a directory.
4287if test -n "$CPP" && test -d "$CPP"; then
4288 CPP=
4289fi
4290if test -z "$CPP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004291 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004292 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004293else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004294 # Double quotes because CPP needs to be expanded
4295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4296 do
4297 ac_preproc_ok=false
4298for ac_c_preproc_warn_flag in '' yes
4299do
4300 # Use a header file that comes with gcc, so configuring glibc
4301 # with a fresh cross-compiler works.
4302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4303 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004304 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004305 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004307/* end confdefs.h. */
4308#ifdef __STDC__
4309# include <limits.h>
4310#else
4311# include <assert.h>
4312#endif
4313 Syntax error
4314_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004315if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004316
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004317else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004318 # Broken: fails on valid input.
4319continue
4320fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004321rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004322
Theodore Ts'oe1052142006-10-21 21:46:47 -04004323 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004324 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004326/* end confdefs.h. */
4327#include <ac_nonexistent.h>
4328_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004329if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004330 # Broken: success on invalid input.
4331continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004332else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004333 # Passes both tests.
4334ac_preproc_ok=:
4335break
4336fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004337rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004338
4339done
4340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004341rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004342if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004343 break
4344fi
4345
4346 done
4347 ac_cv_prog_CPP=$CPP
4348
4349fi
4350 CPP=$ac_cv_prog_CPP
4351else
4352 ac_cv_prog_CPP=$CPP
4353fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004355$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004356ac_preproc_ok=false
4357for ac_c_preproc_warn_flag in '' yes
4358do
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 # <limits.h> exists even on freestanding compilers.
4363 # On the NeXT, cc -E runs the code through the compiler's parser,
4364 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004366/* end confdefs.h. */
4367#ifdef __STDC__
4368# include <limits.h>
4369#else
4370# include <assert.h>
4371#endif
4372 Syntax error
4373_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004374if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004375
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004376else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004377 # Broken: fails on valid input.
4378continue
4379fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004380rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004381
Theodore Ts'oe1052142006-10-21 21:46:47 -04004382 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004383 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004385/* end confdefs.h. */
4386#include <ac_nonexistent.h>
4387_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004388if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004389 # Broken: success on invalid input.
4390continue
4391else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004392 # Passes both tests.
4393ac_preproc_ok=:
4394break
4395fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004396rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004397
4398done
4399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004400rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004401if $ac_preproc_ok; then :
4402
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004403else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004406as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4407See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004408fi
4409
4410ac_ext=c
4411ac_cpp='$CPP $CPPFLAGS'
4412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004417$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004418if test "$GCC" = yes
4419then
4420 case "$host_cpu" in
4421 alpha) addcflags="-mieee" ;;
4422 esac
4423fi
4424if test "x$addcflags" != x
4425then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004427$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004428 CFLAGS="$addcflags $CFLAGS"
4429else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004431$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004432fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004433
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4435$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4436if ${ac_cv_path_GREP+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438else
4439 if test -z "$GREP"; then
4440 ac_path_GREP_found=false
4441 # Loop through the user's path and test for each of PROGNAME-LIST
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_prog in grep ggrep; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4450 as_fn_executable_p "$ac_path_GREP" || continue
4451# Check for GNU ac_path_GREP and select it if it is found.
4452 # Check for GNU $ac_path_GREP
4453case `"$ac_path_GREP" --version 2>&1` in
4454*GNU*)
4455 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4456*)
4457 ac_count=0
4458 $as_echo_n 0123456789 >"conftest.in"
4459 while :
4460 do
4461 cat "conftest.in" "conftest.in" >"conftest.tmp"
4462 mv "conftest.tmp" "conftest.in"
4463 cp "conftest.in" "conftest.nl"
4464 $as_echo 'GREP' >> "conftest.nl"
4465 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4466 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4467 as_fn_arith $ac_count + 1 && ac_count=$as_val
4468 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4469 # Best one so far, save it but keep looking for a better one
4470 ac_cv_path_GREP="$ac_path_GREP"
4471 ac_path_GREP_max=$ac_count
4472 fi
4473 # 10*(2^10) chars as input seems more than enough
4474 test $ac_count -gt 10 && break
4475 done
4476 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4477esac
4478
4479 $ac_path_GREP_found && break 3
4480 done
4481 done
4482 done
4483IFS=$as_save_IFS
4484 if test -z "$ac_cv_path_GREP"; then
4485 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4486 fi
4487else
4488 ac_cv_path_GREP=$GREP
4489fi
4490
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4493$as_echo "$ac_cv_path_GREP" >&6; }
4494 GREP="$ac_cv_path_GREP"
4495
4496
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4498$as_echo_n "checking for egrep... " >&6; }
4499if ${ac_cv_path_EGREP+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501else
4502 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4503 then ac_cv_path_EGREP="$GREP -E"
4504 else
4505 if test -z "$EGREP"; then
4506 ac_path_EGREP_found=false
4507 # Loop through the user's path and test for each of PROGNAME-LIST
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4510do
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
4513 for ac_prog in egrep; do
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4516 as_fn_executable_p "$ac_path_EGREP" || continue
4517# Check for GNU ac_path_EGREP and select it if it is found.
4518 # Check for GNU $ac_path_EGREP
4519case `"$ac_path_EGREP" --version 2>&1` in
4520*GNU*)
4521 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4522*)
4523 ac_count=0
4524 $as_echo_n 0123456789 >"conftest.in"
4525 while :
4526 do
4527 cat "conftest.in" "conftest.in" >"conftest.tmp"
4528 mv "conftest.tmp" "conftest.in"
4529 cp "conftest.in" "conftest.nl"
4530 $as_echo 'EGREP' >> "conftest.nl"
4531 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4533 as_fn_arith $ac_count + 1 && ac_count=$as_val
4534 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4535 # Best one so far, save it but keep looking for a better one
4536 ac_cv_path_EGREP="$ac_path_EGREP"
4537 ac_path_EGREP_max=$ac_count
4538 fi
4539 # 10*(2^10) chars as input seems more than enough
4540 test $ac_count -gt 10 && break
4541 done
4542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4543esac
4544
4545 $ac_path_EGREP_found && break 3
4546 done
4547 done
4548 done
4549IFS=$as_save_IFS
4550 if test -z "$ac_cv_path_EGREP"; then
4551 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4552 fi
4553else
4554 ac_cv_path_EGREP=$EGREP
4555fi
4556
4557 fi
4558fi
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4560$as_echo "$ac_cv_path_EGREP" >&6; }
4561 EGREP="$ac_cv_path_EGREP"
4562
4563
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4565$as_echo_n "checking for ANSI C header files... " >&6; }
4566if ${ac_cv_header_stdc+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568else
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h. */
4571#include <stdlib.h>
4572#include <stdarg.h>
4573#include <string.h>
4574#include <float.h>
4575
4576int
4577main ()
4578{
4579
4580 ;
4581 return 0;
4582}
4583_ACEOF
4584if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_cv_header_stdc=yes
4586else
4587 ac_cv_header_stdc=no
4588fi
4589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590
4591if test $ac_cv_header_stdc = yes; then
4592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594/* end confdefs.h. */
4595#include <string.h>
4596
4597_ACEOF
4598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 $EGREP "memchr" >/dev/null 2>&1; then :
4600
4601else
4602 ac_cv_header_stdc=no
4603fi
4604rm -f conftest*
4605
4606fi
4607
4608if test $ac_cv_header_stdc = yes; then
4609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611/* end confdefs.h. */
4612#include <stdlib.h>
4613
4614_ACEOF
4615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616 $EGREP "free" >/dev/null 2>&1; then :
4617
4618else
4619 ac_cv_header_stdc=no
4620fi
4621rm -f conftest*
4622
4623fi
4624
4625if test $ac_cv_header_stdc = yes; then
4626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4627 if test "$cross_compiling" = yes; then :
4628 :
4629else
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h. */
4632#include <ctype.h>
4633#include <stdlib.h>
4634#if ((' ' & 0x0FF) == 0x020)
4635# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4636# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4637#else
4638# define ISLOWER(c) \
4639 (('a' <= (c) && (c) <= 'i') \
4640 || ('j' <= (c) && (c) <= 'r') \
4641 || ('s' <= (c) && (c) <= 'z'))
4642# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4643#endif
4644
4645#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4646int
4647main ()
4648{
4649 int i;
4650 for (i = 0; i < 256; i++)
4651 if (XOR (islower (i), ISLOWER (i))
4652 || toupper (i) != TOUPPER (i))
4653 return 2;
4654 return 0;
4655}
4656_ACEOF
4657if ac_fn_c_try_run "$LINENO"; then :
4658
4659else
4660 ac_cv_header_stdc=no
4661fi
4662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4663 conftest.$ac_objext conftest.beam conftest.$ac_ext
4664fi
4665
4666fi
4667fi
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4669$as_echo "$ac_cv_header_stdc" >&6; }
4670if test $ac_cv_header_stdc = yes; then
4671
4672$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4673
4674fi
4675
4676# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4677for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4678 inttypes.h stdint.h unistd.h
4679do :
4680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4681ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4682"
4683if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4684 cat >>confdefs.h <<_ACEOF
4685#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4686_ACEOF
4687
4688fi
4689
4690done
4691
4692
4693
4694 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4695if test "x$ac_cv_header_minix_config_h" = xyes; then :
4696 MINIX=yes
4697else
4698 MINIX=
4699fi
4700
4701
4702 if test "$MINIX" = yes; then
4703
4704$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4705
4706
4707$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4708
4709
4710$as_echo "#define _MINIX 1" >>confdefs.h
4711
4712 fi
4713
4714
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4716$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4717if ${ac_cv_safe_to_define___extensions__+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719else
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721/* end confdefs.h. */
4722
4723# define __EXTENSIONS__ 1
4724 $ac_includes_default
4725int
4726main ()
4727{
4728
4729 ;
4730 return 0;
4731}
4732_ACEOF
4733if ac_fn_c_try_compile "$LINENO"; then :
4734 ac_cv_safe_to_define___extensions__=yes
4735else
4736 ac_cv_safe_to_define___extensions__=no
4737fi
4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739fi
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4741$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4742 test $ac_cv_safe_to_define___extensions__ = yes &&
4743 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4744
4745 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4746
4747 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4748
4749 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4750
4751 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4752
4753
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004754LIB_EXT=.a
4755STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004756PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004757
Theodore Ts'oe1052142006-10-21 21:46:47 -04004758# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004759if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004760 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004761else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004762 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004763fi
4764# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004765if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004766 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004767then
4768 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004770$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004771else
4772 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004774$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004775fi
4776
4777else
4778 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004780$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004781
Theodore Ts'oe1052142006-10-21 21:46:47 -04004782fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004783
Theodore Ts'oe1052142006-10-21 21:46:47 -04004784
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004785# Check whether --enable-symlink-install was given.
4786if test "${enable_symlink_install+set}" = set; then :
4787 enableval=$enable_symlink_install; if test "$enableval" = "no"
4788then
4789 LINK_INSTALL_FLAGS=-f
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4791$as_echo "Disabling symlinks for install" >&6; }
4792else
4793 LINK_INSTALL_FLAGS=-sf
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4795$as_echo "Enabling symlinks for install" >&6; }
4796fi
4797
4798else
4799 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4801$as_echo "Disabling symlinks for install by default" >&6; }
4802
4803fi
4804
4805
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004806relative_symlink_defined=
4807# Check whether --enable-relative-symlinks was given.
4808if test "${enable_relative_symlinks+set}" = set; then :
4809 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004810then
4811 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004812 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4814$as_echo "Disabling relative symlinks for install" >&6; }
4815else
4816 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004817 relative_symlink_defined=yes
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4819$as_echo "Enabling relative symlinks for install" >&6; }
4820fi
4821fi
4822
4823# Check whether --enable-symlink-relative-symlinks was given.
4824if test "${enable_symlink_relative_symlinks+set}" = set; then :
4825 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4826then
4827 SYMLINK_RELATIVE=yes
4828 { $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
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4833$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004834fi
4835
4836else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004837 if test -z "$relative_symlink_defined"
4838then
4839 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4841$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004842fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004843
4844fi
4845
4846
4847# Check whether --enable-symlink-build was given.
4848if test "${enable_symlink_build+set}" = set; then :
4849 enableval=$enable_symlink_build; if test "$enableval" = "no"
4850then
4851 LINK_BUILD_FLAGS=
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4853$as_echo "Disabling symlinks for build" >&6; }
4854else
4855 LINK_BUILD_FLAGS=-s
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4857$as_echo "Enabling symlinks for build" >&6; }
4858fi
4859
4860else
4861 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4863$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004864
4865fi
4866
4867
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004868# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004869if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004870 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4871then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004873$as_echo "Disabling verbose make commands" >&6; }
4874 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004875 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004876 Q=@
4877else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004879$as_echo "Enabling verbose make commands" >&6; }
4880 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004881 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004882 Q=
4883fi
4884
4885else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004887$as_echo "Disabling verbose make commands" >&6; }
4888E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004889ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004890Q=@
4891
4892fi
4893
4894
4895
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004896
Theodore Ts'oe1052142006-10-21 21:46:47 -04004897# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004898if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004899 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004900then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004902$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004903else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004904
4905$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004906
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004908$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004910$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004911fi
4912
4913else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004915$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004916
Theodore Ts'oe1052142006-10-21 21:46:47 -04004917fi
4918
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004919
Theodore Ts'oe1052142006-10-21 21:46:47 -04004920# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004921if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004922 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004923then
4924 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004926$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004927else
4928 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004929 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004930
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004932$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004933fi
4934
4935else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004936 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004937$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004938
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004940$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004941
Theodore Ts'oe1052142006-10-21 21:46:47 -04004942fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004943
Theodore Ts'oe1052142006-10-21 21:46:47 -04004944
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004945E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004946LDFLAG_DYNAMIC=
4947PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004948# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004949if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004950 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004951then
4952 ELF_CMT=#
4953 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004955$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004956else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004957 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004958 ELF_CMT=
4959 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004960 case "$host_os" in
4961 solaris2.*)
4962 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4963 ;;
4964 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004965 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004966 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004967 PRIVATE_LIBS_CMT=#
4968 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004970$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004971fi
4972
4973else
4974 MAKEFILE_ELF=/dev/null
4975ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004977$as_echo "Disabling ELF 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-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004984if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004985 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004986then
4987 BSDLIB_CMT=#
4988 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004990$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004991else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004992 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004993 BSDLIB_CMT=
4994 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004995 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004996 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004997 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004998 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4999 LIB_EXT=.dylib
5000 ;;
5001 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005003$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005004fi
5005
5006else
5007 MAKEFILE_BSDLIB=/dev/null
5008BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005010$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005011
Theodore Ts'oe1052142006-10-21 21:46:47 -04005012fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005013
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005014
Theodore Ts'oe1052142006-10-21 21:46:47 -04005015
5016# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005017if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005018 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005019then
5020 PROFILE_CMT=#
5021 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005023$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005024else
5025 PROFILE_CMT=
5026 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5027 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005029$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005030fi
5031
5032else
5033 PROFILE_CMT=#
5034MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005036$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005037
Theodore Ts'oe1052142006-10-21 21:46:47 -04005038fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005039
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005040
Theodore Ts'oe1052142006-10-21 21:46:47 -04005041
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005042# Check whether --enable-gcov was given.
5043if test "${enable_gcov+set}" = set; then :
5044 enableval=$enable_gcov; if test "$enableval" = "yes"
5045then
5046 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5047 LDFLAGS="-fprofile-arcs -ftest-coverage"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5049$as_echo "Enabling gcov support" >&6; }
5050fi
5051
5052fi
5053
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005054
5055
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005056
Theodore Ts'oe1052142006-10-21 21:46:47 -04005057
Theodore Ts'o55da9872008-09-02 23:12:38 -04005058
5059
Theodore Ts'oe1052142006-10-21 21:46:47 -04005060# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005061if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005062 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005063then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005065$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005066else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005067
5068$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005069
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005071$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005072fi
5073
5074else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005076$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005077
Theodore Ts'oe1052142006-10-21 21:46:47 -04005078fi
5079
5080# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005081if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005082 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005083then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005085$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005086else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005087
5088$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005089
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005091$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005092fi
5093
5094else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005096$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005097
Theodore Ts'oe1052142006-10-21 21:46:47 -04005098fi
5099
5100# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005101if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005102 enableval=$enable_testio_debug;
5103if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005104then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005106$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005107 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005108else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005109 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005110 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005111
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005113$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005114fi
5115
5116else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005118$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005119$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005120
5121TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005122
Theodore Ts'oe1052142006-10-21 21:46:47 -04005123fi
5124
Theodore Ts'oaf773652008-09-01 11:27:27 -04005125
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005126
5127
Theodore Ts'o93613952014-07-03 23:44:13 -04005128
5129
5130
5131
5132
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005133if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005134 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005135 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5136set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005138$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005139if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005140 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005141else
5142 case $PKG_CONFIG in
5143 [\\/]* | ?:[\\/]*)
5144 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5145 ;;
5146 *)
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005152 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005154 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005156 break 2
5157 fi
5158done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005159 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005160IFS=$as_save_IFS
5161
5162 ;;
5163esac
5164fi
5165PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5166if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005168$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005169else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005171$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005172fi
5173
5174
5175fi
5176if test -z "$ac_cv_path_PKG_CONFIG"; then
5177 ac_pt_PKG_CONFIG=$PKG_CONFIG
5178 # Extract the first word of "pkg-config", so it can be a program name with args.
5179set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005181$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005182if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005183 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005184else
5185 case $ac_pt_PKG_CONFIG in
5186 [\\/]* | ?:[\\/]*)
5187 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5188 ;;
5189 *)
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005195 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005197 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005199 break 2
5200 fi
5201done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005202 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005203IFS=$as_save_IFS
5204
5205 ;;
5206esac
5207fi
5208ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5209if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005211$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005212else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005214$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005215fi
5216
5217 if test "x$ac_pt_PKG_CONFIG" = x; then
5218 PKG_CONFIG=""
5219 else
5220 case $cross_compiling:$ac_tool_warned in
5221yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005222{ $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 +01005223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005224ac_tool_warned=yes ;;
5225esac
5226 PKG_CONFIG=$ac_pt_PKG_CONFIG
5227 fi
5228else
5229 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5230fi
5231
5232fi
5233if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005234 _pkg_min_version=0.9.0
5235 { $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 +01005236$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005237 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005239$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005242$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005243 PKG_CONFIG=""
5244 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005245fi
5246LIBUUID=
5247DEPLIBUUID=
5248STATIC_LIBUUID=
5249DEPSTATIC_LIBUUID=
5250PROFILED_LIBUUID=
5251DEPPROFILED_LIBUUID=
5252UUID_CMT=
5253# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005254if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005255 enableval=$enable_libuuid; if test "$enableval" = "no"
5256then
5257 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005258 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005259 fi
5260
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005262$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005263if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005264 $as_echo_n "(cached) " >&6
5265else
5266 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005267LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005269/* end confdefs.h. */
5270
5271/* Override any GCC internal prototype to avoid an error.
5272 Use char because int might match the return type of a GCC
5273 builtin and then its argument prototype would still apply. */
5274#ifdef __cplusplus
5275extern "C"
5276#endif
5277char uuid_generate ();
5278int
5279main ()
5280{
5281return uuid_generate ();
5282 ;
5283 return 0;
5284}
5285_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005286if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005287 ac_cv_lib_uuid_uuid_generate=yes
5288else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005289 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005290fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005291rm -f core conftest.err conftest.$ac_objext \
5292 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005293LIBS=$ac_check_lib_save_LIBS
5294fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005296$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005297if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005298 LIBUUID=`$PKG_CONFIG --libs uuid`;
5299 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5300else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005301 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005302fi
5303
5304 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005306$as_echo "Disabling private uuid library" >&6; }
5307else
5308 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5309 DEPLIBUUID=$LIBUUID
5310 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5311 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5312 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5313 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005315$as_echo "Enabling private uuid library" >&6; }
5316fi
5317
5318else
5319 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5320DEPLIBUUID=$LIBUUID
5321STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5322DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5323PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5324DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005326$as_echo "Enabling private uuid library by default" >&6; }
5327
5328fi
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
Theodore Ts'o93613952014-07-03 23:44:13 -04005339
5340
5341
5342
5343
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005344if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005345 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005346 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5347set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005349$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005350if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005351 $as_echo_n "(cached) " >&6
5352else
5353 case $PKG_CONFIG in
5354 [\\/]* | ?:[\\/]*)
5355 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5356 ;;
5357 *)
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005363 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005365 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005367 break 2
5368 fi
5369done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005370 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005371IFS=$as_save_IFS
5372
5373 ;;
5374esac
5375fi
5376PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5377if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005379$as_echo "$PKG_CONFIG" >&6; }
5380else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005382$as_echo "no" >&6; }
5383fi
5384
5385
5386fi
5387if test -z "$ac_cv_path_PKG_CONFIG"; then
5388 ac_pt_PKG_CONFIG=$PKG_CONFIG
5389 # Extract the first word of "pkg-config", so it can be a program name with args.
5390set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005392$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005393if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005394 $as_echo_n "(cached) " >&6
5395else
5396 case $ac_pt_PKG_CONFIG in
5397 [\\/]* | ?:[\\/]*)
5398 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5399 ;;
5400 *)
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH
5403do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005406 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005408 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005410 break 2
5411 fi
5412done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005413 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005414IFS=$as_save_IFS
5415
5416 ;;
5417esac
5418fi
5419ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5420if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005422$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5423else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005425$as_echo "no" >&6; }
5426fi
5427
5428 if test "x$ac_pt_PKG_CONFIG" = x; then
5429 PKG_CONFIG=""
5430 else
5431 case $cross_compiling:$ac_tool_warned in
5432yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005433{ $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 +01005434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435ac_tool_warned=yes ;;
5436esac
5437 PKG_CONFIG=$ac_pt_PKG_CONFIG
5438 fi
5439else
5440 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5441fi
5442
5443fi
5444if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005445 _pkg_min_version=0.9.0
5446 { $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 +01005447$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005448 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005450$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005453$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005454 PKG_CONFIG=""
5455 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005456fi
5457LIBBLKID=
5458DEPLIBBLKID=
5459STATIC_LIBBLKID=
5460DEPSTATIC_LIBBLKID=
5461PROFILED_LIBBLKID=
5462DEPPROFILED_LIBBLKID=
5463BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005464
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005465# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005466if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005467 enableval=$enable_libblkid; if test "$enableval" = "no"
5468then
5469 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005470 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005471 fi
5472
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005474$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005475if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005476 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005477else
5478 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005479LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005481/* end confdefs.h. */
5482
5483/* Override any GCC internal prototype to avoid an error.
5484 Use char because int might match the return type of a GCC
5485 builtin and then its argument prototype would still apply. */
5486#ifdef __cplusplus
5487extern "C"
5488#endif
5489char blkid_get_cache ();
5490int
5491main ()
5492{
5493return blkid_get_cache ();
5494 ;
5495 return 0;
5496}
5497_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005498if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005499 ac_cv_lib_blkid_blkid_get_cache=yes
5500else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005501 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005502fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005503rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005505LIBS=$ac_check_lib_save_LIBS
5506fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005508$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005509if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005510 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5511 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5512else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005513 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005514fi
5515
5516 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005518$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005519else
5520 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5521 DEPLIBBLKID=$LIBBLKID
5522 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5523 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5524 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5525 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005526 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005527
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005529$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005530fi
5531
5532else
5533 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5534DEPLIBBLKID=$LIBBLKID
5535STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5536DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5537PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5538DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005539$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005540
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005542$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005543
5544fi
5545
5546
5547
5548
5549
5550
5551
5552
Eric Sandeenf5589f42013-10-14 08:54:15 -04005553QUOTA_MAN_COMMENT='.\"'
Niu Yawei43075b42013-10-14 09:49:27 -04005554QUOTA_CMT=
Eric Sandeenf5589f42013-10-14 08:54:15 -04005555
Aditya Kalif239fef2011-07-20 11:40:02 -07005556
5557
Theodore Ts'o93613952014-07-03 23:44:13 -04005558
5559
5560
5561
5562
Aditya Kalif239fef2011-07-20 11:40:02 -07005563if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005564 if test -n "$ac_tool_prefix"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005565 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5566set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005569if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005570 $as_echo_n "(cached) " >&6
5571else
5572 case $PKG_CONFIG in
5573 [\\/]* | ?:[\\/]*)
5574 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5575 ;;
5576 *)
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578for as_dir in $PATH
5579do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005584 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588done
5589 done
5590IFS=$as_save_IFS
5591
5592 ;;
5593esac
5594fi
5595PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5596if test -n "$PKG_CONFIG"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5598$as_echo "$PKG_CONFIG" >&6; }
5599else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604
5605fi
5606if test -z "$ac_cv_path_PKG_CONFIG"; then
5607 ac_pt_PKG_CONFIG=$PKG_CONFIG
5608 # Extract the first word of "pkg-config", so it can be a program name with args.
5609set dummy pkg-config; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005612if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005613 $as_echo_n "(cached) " >&6
5614else
5615 case $ac_pt_PKG_CONFIG in
5616 [\\/]* | ?:[\\/]*)
5617 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5618 ;;
5619 *)
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005627 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631done
5632 done
5633IFS=$as_save_IFS
5634
5635 ;;
5636esac
5637fi
5638ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5639if test -n "$ac_pt_PKG_CONFIG"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5641$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5642else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644$as_echo "no" >&6; }
5645fi
5646
5647 if test "x$ac_pt_PKG_CONFIG" = x; then
5648 PKG_CONFIG=""
5649 else
5650 case $cross_compiling:$ac_tool_warned in
5651yes:)
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654ac_tool_warned=yes ;;
5655esac
5656 PKG_CONFIG=$ac_pt_PKG_CONFIG
5657 fi
5658else
5659 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5660fi
5661
5662fi
5663if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005664 _pkg_min_version=0.9.0
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005666$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005667 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005669$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005672$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005673 PKG_CONFIG=""
5674 fi
Aditya Kalif239fef2011-07-20 11:40:02 -07005675fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005676
5677# Check whether --enable-quota was given.
5678if test "${enable_quota+set}" = set; then :
5679 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005680then
Niu Yawei43075b42013-10-14 09:49:27 -04005681 QUOTA_CMT=#
Theodore Ts'o7becb202011-11-14 10:40:43 -05005682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5683$as_echo "Disabling quota support" >&6; }
5684else
Niu Yawei43075b42013-10-14 09:49:27 -04005685 QUOTA_CMT=
Theodore Ts'o7becb202011-11-14 10:40:43 -05005686 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005687
Theodore Ts'o7becb202011-11-14 10:40:43 -05005688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5689$as_echo "Enabling quota support" >&6; }
Eric Sandeenf5589f42013-10-14 08:54:15 -04005690 QUOTA_MAN_COMMENT=""
5691
Aditya Kalif239fef2011-07-20 11:40:02 -07005692fi
5693
5694else
Niu Yawei43075b42013-10-14 09:49:27 -04005695 QUOTA_CMT=#
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
Theodore Ts'o7becb202011-11-14 10:40:43 -05005697$as_echo "Disabling quota support by default" >&6; }
5698
5699fi
5700
5701LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005702DEPLIBQUOTA=$LIBQUOTA
5703STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5704DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5705PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5706DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005707
5708
5709
5710
5711
5712
5713
Theodore Ts'o3df60142013-06-16 16:14:40 -04005714
5715# Check whether --enable-backtrace was given.
5716if test "${enable_backtrace+set}" = set; then :
5717 enableval=$enable_backtrace; if test "$enableval" = "no"
5718then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5720$as_echo "Disabling use of backtrace" >&6; }
5721 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5722
5723else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5725$as_echo "Enabling use of backtrace" >&6; }
5726fi
5727
5728else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5730$as_echo "Enabling use of backtrace by default" >&6; }
5731
5732fi
5733
Theodore Ts'oe1052142006-10-21 21:46:47 -04005734# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005735if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005736 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005737then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005739$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005740 DEBUGFS_CMT="#"
5741else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005742 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005744$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005745fi
5746
5747else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005749$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005750DEBUGFS_CMT=
5751
Theodore Ts'oe1052142006-10-21 21:46:47 -04005752fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005753
Theodore Ts'oe1052142006-10-21 21:46:47 -04005754
5755# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005756if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005757 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005758then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005760$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005761 IMAGER_CMT="#"
5762else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005763 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005765$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005766fi
5767
5768else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005770$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005771IMAGER_CMT=
5772
Theodore Ts'oe1052142006-10-21 21:46:47 -04005773fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005774
Theodore Ts'oe1052142006-10-21 21:46:47 -04005775
5776# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005777if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005778 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005779then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005781$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005782 RESIZER_CMT="#"
5783else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005784 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005786$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005787fi
5788
5789else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005791$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005792RESIZER_CMT=
5793
Theodore Ts'oe1052142006-10-21 21:46:47 -04005794fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005795
Theodore Ts'oe1052142006-10-21 21:46:47 -04005796
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005797# Check whether --enable-defrag was given.
5798if test "${enable_defrag+set}" = set; then :
5799 enableval=$enable_defrag; if test "$enableval" = "no"
5800then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5802$as_echo "Disabling e4defrag support" >&6; }
5803 DEFRAG_CMT="#"
5804else
5805 DEFRAG_CMT=
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5807$as_echo "Enabling e4defrag support" >&6; }
5808fi
5809
5810else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005811 if test -z "$WITH_DIET_LIBC"
5812then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005814$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005815 DEFRAG_CMT=
5816else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5818$as_echo "Disabling e4defrag support by default" >&6; }
5819 DEFRAG_CMT="#"
5820fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005821
5822fi
5823
5824
Theodore Ts'oe1052142006-10-21 21:46:47 -04005825# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005826if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005827 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005828then
5829 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005831$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005832else
5833 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005835$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005836fi
5837
5838else
5839 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005840 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005841 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005843$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005844 ;;
5845 *)
5846 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005848$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005849esac
5850
Theodore Ts'oe1052142006-10-21 21:46:47 -04005851fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005852
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005853
Theodore Ts'oe1052142006-10-21 21:46:47 -04005854
5855# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005856if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005857 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005858then
5859 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005861$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005862else
5863 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005865$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005866fi
5867
5868else
5869 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005871$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005872
Theodore Ts'oe1052142006-10-21 21:46:47 -04005873fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005874
5875
Theodore Ts'oe1052142006-10-21 21:46:47 -04005876
Theodore Ts'o32493942007-12-31 10:45:01 -05005877# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005878if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005879 enableval=$enable_tls; if test "$enableval" = "no"
5880then
5881 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005883$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005884else
5885 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005887$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005888fi
5889
5890else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005891 if test -n "$WITH_DIET_LIBC"
5892then
5893 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005894 { $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 +01005895$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005896else
5897 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005899$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005900fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005901
5902fi
5903
5904if test "$try_tls" = "yes"
5905then
5906
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005908$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005909 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005910 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005911else
5912
5913 ax_tls_keywords="__thread __declspec(thread) none"
5914 for ax_tls_keyword in $ax_tls_keywords; do
5915 case $ax_tls_keyword in
5916 none) ac_cv_tls=none ; break ;;
5917 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005919/* end confdefs.h. */
5920#include <stdlib.h>
5921 static void
5922 foo(void) {
5923 static $ax_tls_keyword int bar;
5924 exit(1);
5925 }
5926int
5927main ()
5928{
5929
5930 ;
5931 return 0;
5932}
5933_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005934if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005935 ac_cv_tls=$ax_tls_keyword ; break
5936else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005937 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005938
5939fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 esac
5942 done
5943
5944fi
5945
5946
5947 if test "$ac_cv_tls" != "none"; then
5948
5949cat >>confdefs.h <<_ACEOF
5950#define TLS $ac_cv_tls
5951_ACEOF
5952
5953 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005955$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005956
5957fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005958
Theodore Ts'o5610f992007-12-31 11:16:56 -05005959# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005960if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005961 enableval=$enable_uuidd; if test "$enableval" = "no"
5962then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005964$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005965 UUIDD_CMT="#"
5966else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005967 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005968
5969 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005971$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005972fi
5973
5974else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005975 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005976
5977UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005979$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005980
5981fi
5982
5983
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005984MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5985
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005986GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005987PACKAGE=e2fsprogs
5988VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005989VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005990
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005991cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005992#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005993_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005994
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005995
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005996cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005997#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005998_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005999
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006000
6001
6002
6003
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006005$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6006set x ${MAKE-make}
6007ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006008if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006009 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006010else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006011 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006012SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006013all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006014 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006015_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006016# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006017case `${MAKE-make} -f conftest.make 2>/dev/null` in
6018 *@@@%%%=?*=@@@%%%*)
6019 eval ac_cv_prog_make_${ac_make}_set=yes;;
6020 *)
6021 eval ac_cv_prog_make_${ac_make}_set=no;;
6022esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006023rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006024fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006025if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006027$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006028 SET_MAKE=
6029else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006031$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006032 SET_MAKE="MAKE=${MAKE-make}"
6033fi
6034
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006035# Find a good install program. We prefer a C program (faster),
6036# so one script is as good as another. But avoid the broken or
6037# incompatible versions:
6038# SysV /etc/install, /usr/sbin/install
6039# SunOS /usr/etc/install
6040# IRIX /sbin/install
6041# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006042# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006043# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6044# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6045# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006046# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006047# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006048# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006050$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006051if test -z "$INSTALL"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006052if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006053 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006054else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056for as_dir in $PATH
6057do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006060 # Account for people who put trailing slashes in PATH elements.
6061case $as_dir/ in #((
6062 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006064 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006065 /usr/ucb/* ) ;;
6066 *)
6067 # OSF1 and SCO ODT 3.0 have their own names for install.
6068 # Don't use installbsd from OSF since it installs stuff as root
6069 # by default.
6070 for ac_prog in ginstall scoinst install; do
6071 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006072 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006073 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006074 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006075 # AIX install. It has an incompatible calling convention.
6076 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006077 elif test $ac_prog = install &&
6078 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6079 # program-specific install script used by HP pwplus--don't use.
6080 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006081 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006082 rm -rf conftest.one conftest.two conftest.dir
6083 echo one > conftest.one
6084 echo two > conftest.two
6085 mkdir conftest.dir
6086 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6087 test -s conftest.one && test -s conftest.two &&
6088 test -s conftest.dir/conftest.one &&
6089 test -s conftest.dir/conftest.two
6090 then
6091 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6092 break 3
6093 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006094 fi
6095 fi
6096 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006097 done
6098 ;;
6099esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006100
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006101 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006102IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006103
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006104rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006105
6106fi
6107 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006108 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006109 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006110 # As a last resort, use the slow shell script. Don't cache a
6111 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006112 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006113 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006114 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006115 fi
6116fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006118$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006119
6120# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6121# It thinks the first close brace ends the variable substitution.
6122test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6123
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006124test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006125
6126test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6127
Theodore Ts'o93613952014-07-03 23:44:13 -04006128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6129$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6130if test -z "$MKDIR_P"; then
6131 if ${ac_cv_path_mkdir+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_prog in mkdir gmkdir; do
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6142 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6143 'mkdir (GNU coreutils) '* | \
6144 'mkdir (coreutils) '* | \
6145 'mkdir (fileutils) '4.1*)
6146 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6147 break 3;;
6148 esac
6149 done
6150 done
6151 done
6152IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006153
Theodore Ts'o93613952014-07-03 23:44:13 -04006154fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006155
Theodore Ts'o93613952014-07-03 23:44:13 -04006156 test -d ./--version && rmdir ./--version
6157 if test "${ac_cv_path_mkdir+set}" = set; then
6158 MKDIR_P="$ac_cv_path_mkdir -p"
6159 else
6160 # As a last resort, use the slow shell script. Don't cache a
6161 # value for MKDIR_P within a source directory, because that will
6162 # break other packages using the cache if that directory is
6163 # removed, or if the value is a relative name.
6164 MKDIR_P="$ac_install_sh -d"
6165 fi
6166fi
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6168$as_echo "$MKDIR_P" >&6; }
6169
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6171$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6172if ${ac_cv_path_SED+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174else
6175 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6176 for ac_i in 1 2 3 4 5 6 7; do
6177 ac_script="$ac_script$as_nl$ac_script"
6178 done
6179 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6180 { ac_script=; unset ac_script;}
6181 if test -z "$SED"; then
6182 ac_path_SED_found=false
6183 # Loop through the user's path and test for each of PROGNAME-LIST
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_prog in sed gsed; do
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6192 as_fn_executable_p "$ac_path_SED" || continue
6193# Check for GNU ac_path_SED and select it if it is found.
6194 # Check for GNU $ac_path_SED
6195case `"$ac_path_SED" --version 2>&1` in
6196*GNU*)
6197 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6198*)
6199 ac_count=0
6200 $as_echo_n 0123456789 >"conftest.in"
6201 while :
6202 do
6203 cat "conftest.in" "conftest.in" >"conftest.tmp"
6204 mv "conftest.tmp" "conftest.in"
6205 cp "conftest.in" "conftest.nl"
6206 $as_echo '' >> "conftest.nl"
6207 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6209 as_fn_arith $ac_count + 1 && ac_count=$as_val
6210 if test $ac_count -gt ${ac_path_SED_max-0}; then
6211 # Best one so far, save it but keep looking for a better one
6212 ac_cv_path_SED="$ac_path_SED"
6213 ac_path_SED_max=$ac_count
6214 fi
6215 # 10*(2^10) chars as input seems more than enough
6216 test $ac_count -gt 10 && break
6217 done
6218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6219esac
6220
6221 $ac_path_SED_found && break 3
6222 done
6223 done
6224 done
6225IFS=$as_save_IFS
6226 if test -z "$ac_cv_path_SED"; then
6227 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6228 fi
6229else
6230 ac_cv_path_SED=$SED
6231fi
6232
6233fi
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6235$as_echo "$ac_cv_path_SED" >&6; }
6236 SED="$ac_cv_path_SED"
6237 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006238
6239
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006241$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006242 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006243if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006244 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006245else
6246 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006247fi
6248
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006250$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006251
6252
6253
6254
Theodore Ts'o93613952014-07-03 23:44:13 -04006255 GETTEXT_MACRO_VERSION=0.18
6256
6257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006258
6259
6260# Prepare PATH_SEPARATOR.
6261# The user is always right.
6262if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006263 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6264 # contains only /bin. Note that ksh looks also at the FPATH variable,
6265 # so we have to set that as well for the test.
6266 PATH_SEPARATOR=:
6267 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6268 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6269 || PATH_SEPARATOR=';'
6270 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006271fi
6272
6273# Find out how to test for executable files. Don't use a zero-byte file,
6274# as systems may use methods other than mode bits to determine executability.
6275cat >conf$$.file <<_ASEOF
6276#! /bin/sh
6277exit 0
6278_ASEOF
6279chmod +x conf$$.file
6280if test -x conf$$.file >/dev/null 2>&1; then
6281 ac_executable_p="test -x"
6282else
6283 ac_executable_p="test -f"
6284fi
6285rm -f conf$$.file
6286
6287# Extract the first word of "msgfmt", so it can be a program name with args.
6288set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006290$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006291if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006292 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006293else
6294 case "$MSGFMT" in
6295 [\\/]* | ?:[\\/]*)
6296 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6297 ;;
6298 *)
6299 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6300 for ac_dir in $PATH; do
6301 IFS="$ac_save_IFS"
6302 test -z "$ac_dir" && ac_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006305 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6306 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006307 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6308 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6309 break 2
6310 fi
6311 fi
6312 done
6313 done
6314 IFS="$ac_save_IFS"
6315 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6316 ;;
6317esac
6318fi
6319MSGFMT="$ac_cv_path_MSGFMT"
6320if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006322$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006323else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006325$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006326fi
6327
6328 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6329set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006331$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006332if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006333 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006334else
6335 case $GMSGFMT in
6336 [\\/]* | ?:[\\/]*)
6337 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6338 ;;
6339 *)
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341for as_dir in $PATH
6342do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006345 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006347 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006349 break 2
6350 fi
6351done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006352 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006353IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006354
6355 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6356 ;;
6357esac
6358fi
6359GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006360if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006362$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006363else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006365$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006366fi
6367
6368
6369
Theodore Ts'o93613952014-07-03 23:44:13 -04006370 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6371 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6372 *) MSGFMT_015=$MSGFMT ;;
6373 esac
6374
6375 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6376 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6377 *) GMSGFMT_015=$GMSGFMT ;;
6378 esac
6379
6380
Theodore Ts'oe1052142006-10-21 21:46:47 -04006381
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006382# Prepare PATH_SEPARATOR.
6383# The user is always right.
6384if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006385 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6386 # contains only /bin. Note that ksh looks also at the FPATH variable,
6387 # so we have to set that as well for the test.
6388 PATH_SEPARATOR=:
6389 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6390 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6391 || PATH_SEPARATOR=';'
6392 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006393fi
6394
6395# Find out how to test for executable files. Don't use a zero-byte file,
6396# as systems may use methods other than mode bits to determine executability.
6397cat >conf$$.file <<_ASEOF
6398#! /bin/sh
6399exit 0
6400_ASEOF
6401chmod +x conf$$.file
6402if test -x conf$$.file >/dev/null 2>&1; then
6403 ac_executable_p="test -x"
6404else
6405 ac_executable_p="test -f"
6406fi
6407rm -f conf$$.file
6408
6409# Extract the first word of "xgettext", so it can be a program name with args.
6410set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006412$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006413if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006414 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006415else
6416 case "$XGETTEXT" in
6417 [\\/]* | ?:[\\/]*)
6418 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6419 ;;
6420 *)
6421 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6422 for ac_dir in $PATH; do
6423 IFS="$ac_save_IFS"
6424 test -z "$ac_dir" && ac_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006427 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6428 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 -05006429 (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
6430 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6431 break 2
6432 fi
6433 fi
6434 done
6435 done
6436 IFS="$ac_save_IFS"
6437 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6438 ;;
6439esac
6440fi
6441XGETTEXT="$ac_cv_path_XGETTEXT"
6442if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006444$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006445else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006447$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006448fi
6449
6450 rm -f messages.po
6451
Theodore Ts'o93613952014-07-03 23:44:13 -04006452 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6453 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6454 *) XGETTEXT_015=$XGETTEXT ;;
6455 esac
6456
6457
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006458
6459# Prepare PATH_SEPARATOR.
6460# The user is always right.
6461if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006462 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6463 # contains only /bin. Note that ksh looks also at the FPATH variable,
6464 # so we have to set that as well for the test.
6465 PATH_SEPARATOR=:
6466 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6467 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6468 || PATH_SEPARATOR=';'
6469 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006470fi
6471
6472# Find out how to test for executable files. Don't use a zero-byte file,
6473# as systems may use methods other than mode bits to determine executability.
6474cat >conf$$.file <<_ASEOF
6475#! /bin/sh
6476exit 0
6477_ASEOF
6478chmod +x conf$$.file
6479if test -x conf$$.file >/dev/null 2>&1; then
6480 ac_executable_p="test -x"
6481else
6482 ac_executable_p="test -f"
6483fi
6484rm -f conf$$.file
6485
6486# Extract the first word of "msgmerge", so it can be a program name with args.
6487set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006489$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006490if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006491 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006492else
6493 case "$MSGMERGE" in
6494 [\\/]* | ?:[\\/]*)
6495 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6496 ;;
6497 *)
6498 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6499 for ac_dir in $PATH; do
6500 IFS="$ac_save_IFS"
6501 test -z "$ac_dir" && ac_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006504 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6505 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006506 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6507 break 2
6508 fi
6509 fi
6510 done
6511 done
6512 IFS="$ac_save_IFS"
6513 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6514 ;;
6515esac
6516fi
6517MSGMERGE="$ac_cv_path_MSGMERGE"
6518if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006520$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006521else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006523$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006524fi
6525
6526
Theodore Ts'o93613952014-07-03 23:44:13 -04006527 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006529
Theodore Ts'o93613952014-07-03 23:44:13 -04006530 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6531
6532
6533 ac_config_commands="$ac_config_commands po-directories"
6534
6535
6536
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6538$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6539if ${ac_cv_gnu_library_2+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541else
6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543/* end confdefs.h. */
6544
6545#include <features.h>
6546#ifdef __GNU_LIBRARY__
6547 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6548 Lucky GNU user
6549 #endif
6550#endif
6551
6552_ACEOF
6553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6554 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6555 ac_cv_gnu_library_2=yes
6556else
6557 ac_cv_gnu_library_2=no
6558fi
6559rm -f conftest*
6560
6561
6562
6563fi
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6565$as_echo "$ac_cv_gnu_library_2" >&6; }
6566
6567 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006568
6569
6570if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6572set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006574$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006575if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006576 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006577else
6578 if test -n "$RANLIB"; then
6579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6580else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006586 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006590 break 2
6591 fi
6592done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006593 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006594IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006595
6596fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006597fi
6598RANLIB=$ac_cv_prog_RANLIB
6599if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006601$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006602else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006604$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006605fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006606
Theodore Ts'oe1052142006-10-21 21:46:47 -04006607
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006608fi
6609if test -z "$ac_cv_prog_RANLIB"; then
6610 ac_ct_RANLIB=$RANLIB
6611 # Extract the first word of "ranlib", so it can be a program name with args.
6612set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006614$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006615if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006616 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006617else
6618 if test -n "$ac_ct_RANLIB"; then
6619 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006626 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006628 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006630 break 2
6631 fi
6632done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006633 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006634IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006635
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636fi
6637fi
6638ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6639if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006641$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006642else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006644$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006645fi
6646
Theodore Ts'oe1052142006-10-21 21:46:47 -04006647 if test "x$ac_ct_RANLIB" = x; then
6648 RANLIB=":"
6649 else
6650 case $cross_compiling:$ac_tool_warned in
6651yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006652{ $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 +01006653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006654ac_tool_warned=yes ;;
6655esac
6656 RANLIB=$ac_ct_RANLIB
6657 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658else
6659 RANLIB="$ac_cv_prog_RANLIB"
6660fi
6661
6662
Theodore Ts'o93613952014-07-03 23:44:13 -04006663
6664 CFLAG_VISIBILITY=
6665 HAVE_VISIBILITY=0
6666 if test -n "$GCC"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6668$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6669 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006670 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006671else
Theodore Ts'o93613952014-07-03 23:44:13 -04006672
6673 gl_save_CFLAGS="$CFLAGS"
6674 CFLAGS="$CFLAGS -Werror"
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006676/* end confdefs.h. */
6677
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006678int
6679main ()
6680{
Theodore Ts'o93613952014-07-03 23:44:13 -04006681
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006682 ;
6683 return 0;
6684}
6685_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006686if ac_fn_c_try_compile "$LINENO"; then :
6687 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006688else
Theodore Ts'o93613952014-07-03 23:44:13 -04006689 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006690fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006693fi
6694
Theodore Ts'o93613952014-07-03 23:44:13 -04006695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6696$as_echo "$gl_cv_cc_vis_werror" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6698$as_echo_n "checking for simple visibility declarations... " >&6; }
6699 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006700 $as_echo_n "(cached) " >&6
6701else
Theodore Ts'o93613952014-07-03 23:44:13 -04006702
6703 gl_save_CFLAGS="$CFLAGS"
6704 CFLAGS="$CFLAGS -fvisibility=hidden"
6705 if test $gl_cv_cc_vis_werror = yes; then
6706 CFLAGS="$CFLAGS -Werror"
6707 fi
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709/* end confdefs.h. */
6710extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6711 extern __attribute__((__visibility__("default"))) int exportedvar;
6712 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6713 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6714 void dummyfunc (void) {}
6715
6716int
6717main ()
6718{
6719
6720 ;
6721 return 0;
6722}
6723_ACEOF
6724if ac_fn_c_try_compile "$LINENO"; then :
6725 gl_cv_cc_visibility=yes
6726else
6727 gl_cv_cc_visibility=no
6728fi
6729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 CFLAGS="$gl_save_CFLAGS"
6731fi
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6734$as_echo "$gl_cv_cc_visibility" >&6; }
6735 if test $gl_cv_cc_visibility = yes; then
6736 CFLAG_VISIBILITY="-fvisibility=hidden"
6737 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006738 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006739 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006740
6741
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006742
Theodore Ts'o93613952014-07-03 23:44:13 -04006743cat >>confdefs.h <<_ACEOF
6744#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006745_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006746
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006747
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006749$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006750if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006751 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006752else
6753 ac_cv_c_inline=no
6754for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006756/* end confdefs.h. */
6757#ifndef __cplusplus
6758typedef int foo_t;
6759static $ac_kw foo_t static_foo () {return 0; }
6760$ac_kw foo_t foo () {return 0; }
6761#endif
6762
6763_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006764if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006765 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006766fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006769done
6770
6771fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006773$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006774
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006775case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006776 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006777 *)
6778 case $ac_cv_c_inline in
6779 no) ac_val=;;
6780 *) ac_val=$ac_cv_c_inline;;
6781 esac
6782 cat >>confdefs.h <<_ACEOF
6783#ifndef __cplusplus
6784#define inline $ac_val
6785#endif
6786_ACEOF
6787 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006788esac
6789
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006790ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006791if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006792
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006793else
6794
6795cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006796#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797_ACEOF
6798
6799fi
6800
6801
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006803$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006804if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006805 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006806else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006808/* end confdefs.h. */
6809#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006810 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006811int
6812main ()
6813{
Theodore Ts'o93613952014-07-03 23:44:13 -04006814uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815 ;
6816 return 0;
6817}
6818_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006819if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006820 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006821else
Theodore Ts'o93613952014-07-03 23:44:13 -04006822 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006823fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006825fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6827$as_echo "$gl_cv_header_stdint_h" >&6; }
6828 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006829
6830cat >>confdefs.h <<_ACEOF
6831#define HAVE_STDINT_H_WITH_UINTMAX 1
6832_ACEOF
6833
6834 fi
6835
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006836# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6837# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006839$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006840if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006841 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006842else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006844/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006845#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006846int
6847main ()
6848{
6849char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006850 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006851 ;
6852 return 0;
6853}
6854_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006855if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006856 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006857else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006858 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006859fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006860rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006864$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006865if test $ac_cv_working_alloca_h = yes; then
6866
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006867$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006868
6869fi
6870
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006872$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006873if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006874 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006875else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006877/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006878#ifdef __GNUC__
6879# define alloca __builtin_alloca
6880#else
6881# ifdef _MSC_VER
6882# include <malloc.h>
6883# define alloca _alloca
6884# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006885# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006886# include <alloca.h>
6887# else
6888# ifdef _AIX
6889 #pragma alloca
6890# else
6891# ifndef alloca /* predefined by HP cc +Olibcalls */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006892void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006893# endif
6894# endif
6895# endif
6896# endif
6897#endif
6898
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006899int
6900main ()
6901{
6902char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006903 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006904 ;
6905 return 0;
6906}
6907_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006908if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006909 ac_cv_func_alloca_works=yes
6910else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006911 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006912fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006913rm -f core conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006917$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006919if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006920
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006921$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006922
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006923else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006924 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6925# that cause trouble. Some versions do not even contain alloca or
6926# contain a buggy version. If you still want to use their alloca,
6927# use ar to extract alloca.o from them instead of compiling alloca.c.
6928
Theodore Ts'oe1052142006-10-21 21:46:47 -04006929ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006930
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006931$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006932
6933
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006935$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006936if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006937 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006938else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006940/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006941#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006942webecray
6943#else
6944wenotbecray
6945#endif
6946
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006947_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006949 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006950 ac_cv_os_cray=yes
6951else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006952 ac_cv_os_cray=no
6953fi
6954rm -f conftest*
6955
6956fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006958$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006959if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006960 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006962ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006963if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006964
6965cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006966#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006967_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006968
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006969 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006970fi
6971
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006972 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006973fi
6974
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006976$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006977if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006978 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006979else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006980 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006981 ac_cv_c_stack_direction=0
6982else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006984/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006985$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006986int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006987find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006988{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006989 int dir, dummy = 0;
6990 if (! addr)
6991 addr = &dummy;
6992 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6993 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6994 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006995}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006996
6997int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006998main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006999{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007000 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007001}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007002_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007003if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007004 ac_cv_c_stack_direction=1
7005else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007006 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007007fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7009 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007012fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007014$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007015cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007016#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007017_ACEOF
7018
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007019
7020fi
7021
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007022
7023
7024
7025 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007026do :
7027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007028ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7029"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007030if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007031 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007032#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007033_ACEOF
7034
7035fi
7036
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007037done
7038
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007039
7040
7041
7042
7043
7044
7045
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007046for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007047do :
7048 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007049if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007050 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007051#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007052_ACEOF
7053
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007054fi
7055done
7056
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007058$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007059if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007060 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007061else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007062 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007063 ac_cv_func_mmap_fixed_mapped=no
7064else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007066/* end confdefs.h. */
7067$ac_includes_default
7068/* malloc might have been renamed as rpl_malloc. */
7069#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007070
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007071/* Thanks to Mike Haertel and Jim Avera for this test.
7072 Here is a matrix of mmap possibilities:
7073 mmap private not fixed
7074 mmap private fixed at somewhere currently unmapped
7075 mmap private fixed at somewhere already mapped
7076 mmap shared not fixed
7077 mmap shared fixed at somewhere currently unmapped
7078 mmap shared fixed at somewhere already mapped
7079 For private mappings, we should verify that changes cannot be read()
7080 back from the file, nor mmap's back from the file at a different
7081 address. (There have been systems where private was not correctly
7082 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007083 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007084 like early versions of FreeBSD and possibly contemporary NetBSD.)
7085 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007086 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007087
7088 Grep wants private fixed already mapped.
7089 The main things grep needs to know about mmap are:
7090 * does it exist and is it safe to write into the mmap'd area
7091 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007092
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007093#include <fcntl.h>
7094#include <sys/mman.h>
7095
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007096#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007097char *malloc ();
7098#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007099
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007100/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007101#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007102# ifdef _SC_PAGESIZE
7103# define getpagesize() sysconf(_SC_PAGESIZE)
7104# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007105# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007106# include <sys/param.h>
7107# ifdef EXEC_PAGESIZE
7108# define getpagesize() EXEC_PAGESIZE
7109# else /* no EXEC_PAGESIZE */
7110# ifdef NBPG
7111# define getpagesize() NBPG * CLSIZE
7112# ifndef CLSIZE
7113# define CLSIZE 1
7114# endif /* no CLSIZE */
7115# else /* no NBPG */
7116# ifdef NBPC
7117# define getpagesize() NBPC
7118# else /* no NBPC */
7119# ifdef PAGESIZE
7120# define getpagesize() PAGESIZE
7121# endif /* PAGESIZE */
7122# endif /* no NBPC */
7123# endif /* no NBPG */
7124# endif /* no EXEC_PAGESIZE */
7125# else /* no HAVE_SYS_PARAM_H */
7126# define getpagesize() 8192 /* punt totally */
7127# endif /* no HAVE_SYS_PARAM_H */
7128# endif /* no _SC_PAGESIZE */
7129
7130#endif /* no HAVE_GETPAGESIZE */
7131
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007132int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007133main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007134{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007135 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007136 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007137 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007138 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007139
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007140 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007141
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007142 /* First, make a file with some known garbage in it. */
7143 data = (char *) malloc (pagesize);
7144 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007145 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007146 for (i = 0; i < pagesize; ++i)
7147 *(data + i) = rand ();
7148 umask (0);
7149 fd = creat ("conftest.mmap", 0600);
7150 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007151 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007152 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007153 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007154 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007155
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007156 /* Next, check that the tail of a page is zero-filled. File must have
7157 non-zero length, otherwise we risk SIGBUS for entire page. */
7158 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7159 if (fd2 < 0)
7160 return 4;
7161 cdata2 = "";
7162 if (write (fd2, cdata2, 1) != 1)
7163 return 5;
7164 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7165 if (data2 == MAP_FAILED)
7166 return 6;
7167 for (i = 0; i < pagesize; ++i)
7168 if (*(data2 + i))
7169 return 7;
7170 close (fd2);
7171 if (munmap (data2, pagesize))
7172 return 8;
7173
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007174 /* Next, try to mmap the file at a fixed address which already has
7175 something else allocated at it. If we can, also make sure that
7176 we see the same garbage. */
7177 fd = open ("conftest.mmap", O_RDWR);
7178 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007179 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7181 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007182 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007183 for (i = 0; i < pagesize; ++i)
7184 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007185 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007186
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007187 /* Finally, make sure that changes to the mapped area do not
7188 percolate back to the file as seen by read(). (This is a bug on
7189 some variants of i386 svr4.0.) */
7190 for (i = 0; i < pagesize; ++i)
7191 *(data2 + i) = *(data2 + i) + 1;
7192 data3 = (char *) malloc (pagesize);
7193 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007194 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007195 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007196 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007197 for (i = 0; i < pagesize; ++i)
7198 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007199 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007200 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007201 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007202}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007203_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007204if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007205 ac_cv_func_mmap_fixed_mapped=yes
7206else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007207 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007208fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7210 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007211fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007212
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007213fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007215$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007216if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007217
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007218$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007219
7220fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007221rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007222
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007224
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007226$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007227if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007228 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007229else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007230
Theodore Ts'o93613952014-07-03 23:44:13 -04007231 gt_cv_int_divbyzero_sigfpe=
7232 case "$host_os" in
7233 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7234 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7235 # compiling. If we were to perform the real test, 1 Crash Report
7236 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007237 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007238 i[34567]86 | x86_64)
7239 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007240 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007241 ;;
7242 esac
7243 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7244 if test "$cross_compiling" = yes; then :
7245
7246 # Guess based on the CPU.
7247 case "$host_cpu" in
7248 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7249 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7250 *)
7251 gt_cv_int_divbyzero_sigfpe="guessing no";;
7252 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007253
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007254else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007256/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007257
7258#include <stdlib.h>
7259#include <signal.h>
7260
7261static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007262sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007263{
7264 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7265 exit (sig != SIGFPE);
7266}
7267
7268int x = 1;
7269int y = 0;
7270int z;
7271int nan;
7272
7273int main ()
7274{
7275 signal (SIGFPE, sigfpe_handler);
7276/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7277#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7278 signal (SIGTRAP, sigfpe_handler);
7279#endif
7280/* Linux/SPARC yields signal SIGILL. */
7281#if defined (__sparc__) && defined (__linux__)
7282 signal (SIGILL, sigfpe_handler);
7283#endif
7284
7285 z = x / y;
7286 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007287 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007288}
7289
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007290_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007291if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007292 gt_cv_int_divbyzero_sigfpe=yes
7293else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007294 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007295fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7297 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007298fi
7299
Theodore Ts'o93613952014-07-03 23:44:13 -04007300 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007301
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007302fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007304$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007305 case "$gt_cv_int_divbyzero_sigfpe" in
7306 *yes) value=1;;
7307 *) value=0;;
7308 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007309
7310cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007311#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007312_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007313
7314
7315
Theodore Ts'o93613952014-07-03 23:44:13 -04007316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7317$as_echo_n "checking for inttypes.h... " >&6; }
7318if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007319 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007320else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007322/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007323
7324#include <sys/types.h>
7325#include <inttypes.h>
7326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007327int
7328main ()
7329{
Theodore Ts'o93613952014-07-03 23:44:13 -04007330uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007331 ;
7332 return 0;
7333}
7334_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007335if ac_fn_c_try_compile "$LINENO"; then :
7336 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007337else
Theodore Ts'o93613952014-07-03 23:44:13 -04007338 gl_cv_header_inttypes_h=no
7339fi
7340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341fi
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7343$as_echo "$gl_cv_header_inttypes_h" >&6; }
7344 if test $gl_cv_header_inttypes_h = yes; then
7345
7346cat >>confdefs.h <<_ACEOF
7347#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7348_ACEOF
7349
7350 fi
7351
7352
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7354$as_echo_n "checking for unsigned long long int... " >&6; }
7355if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357else
7358 ac_cv_type_unsigned_long_long_int=yes
7359 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h. */
7362
7363 /* For now, do not test the preprocessor; as of 2007 there are too many
7364 implementations with broken preprocessors. Perhaps this can
7365 be revisited in 2012. In the meantime, code should not expect
7366 #if to work with literals wider than 32 bits. */
7367 /* Test literals. */
7368 long long int ll = 9223372036854775807ll;
7369 long long int nll = -9223372036854775807LL;
7370 unsigned long long int ull = 18446744073709551615ULL;
7371 /* Test constant expressions. */
7372 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7373 ? 1 : -1)];
7374 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7375 ? 1 : -1)];
7376 int i = 63;
7377int
7378main ()
7379{
7380/* Test availability of runtime routines for shift and division. */
7381 long long int llmax = 9223372036854775807ll;
7382 unsigned long long int ullmax = 18446744073709551615ull;
7383 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7384 | (llmax / ll) | (llmax % ll)
7385 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7386 | (ullmax / ull) | (ullmax % ull));
7387 ;
7388 return 0;
7389}
7390
7391_ACEOF
7392if ac_fn_c_try_link "$LINENO"; then :
7393
7394else
7395 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007396fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007397rm -f core conftest.err conftest.$ac_objext \
7398 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007399 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007400fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7402$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7403 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007404
Theodore Ts'o93613952014-07-03 23:44:13 -04007405$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007406
7407 fi
7408
7409
7410
7411
Theodore Ts'o93613952014-07-03 23:44:13 -04007412 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007413
Theodore Ts'o93613952014-07-03 23:44:13 -04007414 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007415 && ac_type='unsigned long long' \
7416 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007417
7418cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007419#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007420_ACEOF
7421
7422 else
7423
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007424$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007425
7426 fi
7427
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007428
Theodore Ts'o93613952014-07-03 23:44:13 -04007429 for ac_header in inttypes.h
7430do :
7431 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7432if test "x$ac_cv_header_inttypes_h" = xyes; then :
7433 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007434#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007435_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007436
Theodore Ts'o93613952014-07-03 23:44:13 -04007437fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007438
Theodore Ts'o93613952014-07-03 23:44:13 -04007439done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007440
Theodore Ts'o93613952014-07-03 23:44:13 -04007441 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007442 { $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 +01007443$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007444if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007445 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007446else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007447
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007449/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007450
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007451#include <inttypes.h>
7452#ifdef PRId32
7453char *p = PRId32;
7454#endif
7455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007456int
7457main ()
7458{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007459
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007460 ;
7461 return 0;
7462}
7463_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007464if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007465 gt_cv_inttypes_pri_broken=no
7466else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007467 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007468fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007470
7471fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007473$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007474 fi
7475 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007476
7477cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007478#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007479_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007480
Theodore Ts'o93613952014-07-03 23:44:13 -04007481 PRI_MACROS_BROKEN=1
7482 else
7483 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007484 fi
7485
7486
7487
Theodore Ts'o93613952014-07-03 23:44:13 -04007488
7489
7490
7491
7492 # Check whether --enable-threads was given.
7493if test "${enable_threads+set}" = set; then :
7494 enableval=$enable_threads; gl_use_threads=$enableval
7495else
7496 if test -n "$gl_use_threads_default"; then
7497 gl_use_threads="$gl_use_threads_default"
7498 else
7499 case "$host_os" in
7500 osf*) gl_use_threads=no ;;
7501 cygwin*)
7502 case `uname -r` in
7503 1.[0-5].*) gl_use_threads=no ;;
7504 *) gl_use_threads=yes ;;
7505 esac
7506 ;;
7507 *) gl_use_threads=yes ;;
7508 esac
7509 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007510
7511fi
7512
Theodore Ts'o93613952014-07-03 23:44:13 -04007513 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7514 # For using <pthread.h>:
7515 case "$host_os" in
7516 osf*)
7517 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7518 # groks <pthread.h>. cc also understands the flag -pthread, but
7519 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7520 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7521 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7522 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7523 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7524 ;;
7525 esac
7526 # Some systems optimize for single-threaded programs by default, and
7527 # need special flags to disable these optimizations. For example, the
7528 # definition of 'errno' in <errno.h>.
7529 case "$host_os" in
7530 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7531 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7532 esac
7533 fi
7534
7535
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007536
7537
7538
7539 if test "X$prefix" = "XNONE"; then
7540 acl_final_prefix="$ac_default_prefix"
7541 else
7542 acl_final_prefix="$prefix"
7543 fi
7544 if test "X$exec_prefix" = "XNONE"; then
7545 acl_final_exec_prefix='${prefix}'
7546 else
7547 acl_final_exec_prefix="$exec_prefix"
7548 fi
7549 acl_save_prefix="$prefix"
7550 prefix="$acl_final_prefix"
7551 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7552 prefix="$acl_save_prefix"
7553
7554
Theodore Ts'o93613952014-07-03 23:44:13 -04007555
Theodore Ts'oe1052142006-10-21 21:46:47 -04007556# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007557if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007558 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007559else
7560 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007561fi
7562
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007563# Prepare PATH_SEPARATOR.
7564# The user is always right.
7565if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007566 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7567 # contains only /bin. Note that ksh looks also at the FPATH variable,
7568 # so we have to set that as well for the test.
7569 PATH_SEPARATOR=:
7570 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7571 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7572 || PATH_SEPARATOR=';'
7573 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007574fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007576ac_prog=ld
7577if test "$GCC" = yes; then
7578 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7580$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007581 case $host in
7582 *-*-mingw*)
7583 # gcc leaves a trailing carriage return which upsets mingw
7584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7585 *)
7586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7587 esac
7588 case $ac_prog in
7589 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007590 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007591 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007592 # Canonicalize the pathname of ld
7593 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7594 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7595 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007596 done
7597 test -z "$LD" && LD="$ac_prog"
7598 ;;
7599 "")
7600 # If it fails, then pretend we aren't using GCC.
7601 ac_prog=ld
7602 ;;
7603 *)
7604 # If it is relative, then search for the first ld in PATH.
7605 with_gnu_ld=unknown
7606 ;;
7607 esac
7608elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007610$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007611else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007613$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007614fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007615if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007616 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007617else
7618 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007619 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007621 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007622 test -z "$ac_dir" && ac_dir=.
7623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7624 acl_cv_path_LD="$ac_dir/$ac_prog"
7625 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007626 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007627 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007628 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007630 test "$with_gnu_ld" != no && break
7631 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007632 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007633 test "$with_gnu_ld" != yes && break
7634 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007635 esac
7636 fi
7637 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007638 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007639else
7640 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7641fi
7642fi
7643
7644LD="$acl_cv_path_LD"
7645if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007647$as_echo "$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}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007650$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007651fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007652test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007654$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007655if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007656 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007657else
Theodore Ts'o93613952014-07-03 23:44:13 -04007658 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007659case `$LD -v 2>&1 </dev/null` in
7660*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007661 acl_cv_prog_gnu_ld=yes
7662 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007663*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007664 acl_cv_prog_gnu_ld=no
7665 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666esac
7667fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007669$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007670with_gnu_ld=$acl_cv_prog_gnu_ld
7671
7672
7673
Theodore Ts'o93613952014-07-03 23:44:13 -04007674
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007676$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007677if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007678 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007679else
7680
7681 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7682 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7683 . ./conftest.sh
7684 rm -f ./conftest.sh
7685 acl_cv_rpath=done
7686
7687fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007689$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007690 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007691 acl_libext="$acl_cv_libext"
7692 acl_shlibext="$acl_cv_shlibext"
7693 acl_libname_spec="$acl_cv_libname_spec"
7694 acl_library_names_spec="$acl_cv_library_names_spec"
7695 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7696 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7697 acl_hardcode_direct="$acl_cv_hardcode_direct"
7698 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007699 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007700if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007701 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007702else
7703 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007704fi
7705
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007706
7707
7708
Theodore Ts'o93613952014-07-03 23:44:13 -04007709 acl_libdirstem=lib
7710 acl_libdirstem2=
7711 case "$host_os" in
7712 solaris*)
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7714$as_echo_n "checking for 64-bit host... " >&6; }
7715if ${gl_cv_solaris_64bit+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717else
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719/* end confdefs.h. */
7720
7721#ifdef _LP64
7722sixtyfour bits
7723#endif
7724
7725_ACEOF
7726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7728 gl_cv_solaris_64bit=yes
7729else
7730 gl_cv_solaris_64bit=no
7731fi
7732rm -f conftest*
7733
7734
7735fi
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7737$as_echo "$gl_cv_solaris_64bit" >&6; }
7738 if test $gl_cv_solaris_64bit = yes; then
7739 acl_libdirstem=lib/64
7740 case "$host_cpu" in
7741 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7742 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7743 esac
7744 fi
7745 ;;
7746 *)
7747 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7748 if test -n "$searchpath"; then
7749 acl_save_IFS="${IFS= }"; IFS=":"
7750 for searchdir in $searchpath; do
7751 if test -d "$searchdir"; then
7752 case "$searchdir" in
7753 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7754 */../ | */.. )
7755 # Better ignore directories of this form. They are misleading.
7756 ;;
7757 *) searchdir=`cd "$searchdir" && pwd`
7758 case "$searchdir" in
7759 */lib64 ) acl_libdirstem=lib64 ;;
7760 esac ;;
7761 esac
7762 fi
7763 done
7764 IFS="$acl_save_IFS"
7765 fi
7766 ;;
7767 esac
7768 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7769
7770
7771
7772 gl_threads_api=none
7773 LIBTHREAD=
7774 LTLIBTHREAD=
7775 LIBMULTITHREAD=
7776 LTLIBMULTITHREAD=
7777 if test "$gl_use_threads" != no; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7779$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7780if ${gl_cv_have_weak+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782else
7783 gl_cv_have_weak=no
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785/* end confdefs.h. */
7786extern void xyzzy ();
7787#pragma weak xyzzy
7788int
7789main ()
7790{
7791xyzzy();
7792 ;
7793 return 0;
7794}
7795_ACEOF
7796if ac_fn_c_try_link "$LINENO"; then :
7797 gl_cv_have_weak=maybe
7798fi
7799rm -f core conftest.err conftest.$ac_objext \
7800 conftest$ac_exeext conftest.$ac_ext
7801 if test $gl_cv_have_weak = maybe; then
7802 if test "$cross_compiling" = yes; then :
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804/* end confdefs.h. */
7805#ifdef __ELF__
7806 Extensible Linking Format
7807 #endif
7808
7809_ACEOF
7810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7811 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7812 gl_cv_have_weak="guessing yes"
7813else
7814 gl_cv_have_weak="guessing no"
7815fi
7816rm -f conftest*
7817
7818
7819else
7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821/* end confdefs.h. */
7822
7823#include <stdio.h>
7824#pragma weak fputs
7825int main ()
7826{
7827 return (fputs == NULL);
7828}
7829_ACEOF
7830if ac_fn_c_try_run "$LINENO"; then :
7831 gl_cv_have_weak=yes
7832else
7833 gl_cv_have_weak=no
7834fi
7835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7836 conftest.$ac_objext conftest.beam conftest.$ac_ext
7837fi
7838
7839 fi
7840
7841fi
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7843$as_echo "$gl_cv_have_weak" >&6; }
7844 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7845 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7846 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7847 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7848if test "x$ac_cv_header_pthread_h" = xyes; then :
7849 gl_have_pthread_h=yes
7850else
7851 gl_have_pthread_h=no
7852fi
7853
7854
7855 if test "$gl_have_pthread_h" = yes; then
7856 # Other possible tests:
7857 # -lpthreads (FSU threads, PCthreads)
7858 # -lgthreads
7859 gl_have_pthread=
7860 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7861 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7862 # the second one only in libpthread, and lock.c needs it.
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864/* end confdefs.h. */
7865#include <pthread.h>
7866int
7867main ()
7868{
7869pthread_mutex_lock((pthread_mutex_t*)0);
7870 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7871 ;
7872 return 0;
7873}
7874_ACEOF
7875if ac_fn_c_try_link "$LINENO"; then :
7876 gl_have_pthread=yes
7877fi
7878rm -f core conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7880 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7881 # since it is defined as a macro on OSF/1.)
7882 if test -n "$gl_have_pthread"; then
7883 # The program links fine without libpthread. But it may actually
7884 # need to link with libpthread in order to create multiple threads.
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7886$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7887if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7888 $as_echo_n "(cached) " >&6
7889else
7890 ac_check_lib_save_LIBS=$LIBS
7891LIBS="-lpthread $LIBS"
7892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893/* end confdefs.h. */
7894
7895/* Override any GCC internal prototype to avoid an error.
7896 Use char because int might match the return type of a GCC
7897 builtin and then its argument prototype would still apply. */
7898#ifdef __cplusplus
7899extern "C"
7900#endif
7901char pthread_kill ();
7902int
7903main ()
7904{
7905return pthread_kill ();
7906 ;
7907 return 0;
7908}
7909_ACEOF
7910if ac_fn_c_try_link "$LINENO"; then :
7911 ac_cv_lib_pthread_pthread_kill=yes
7912else
7913 ac_cv_lib_pthread_pthread_kill=no
7914fi
7915rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917LIBS=$ac_check_lib_save_LIBS
7918fi
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7920$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7921if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7922 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7923 # On Solaris and HP-UX, most pthread functions exist also in libc.
7924 # Therefore pthread_in_use() needs to actually try to create a
7925 # thread: pthread_create from libc will fail, whereas
7926 # pthread_create will actually create a thread.
7927 case "$host_os" in
7928 solaris* | hpux*)
7929
7930$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7931
7932 esac
7933
7934fi
7935
7936 else
7937 # Some library is needed. Try libpthread and libc_r.
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7939$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7940if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942else
7943 ac_check_lib_save_LIBS=$LIBS
7944LIBS="-lpthread $LIBS"
7945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946/* end confdefs.h. */
7947
7948/* Override any GCC internal prototype to avoid an error.
7949 Use char because int might match the return type of a GCC
7950 builtin and then its argument prototype would still apply. */
7951#ifdef __cplusplus
7952extern "C"
7953#endif
7954char pthread_kill ();
7955int
7956main ()
7957{
7958return pthread_kill ();
7959 ;
7960 return 0;
7961}
7962_ACEOF
7963if ac_fn_c_try_link "$LINENO"; then :
7964 ac_cv_lib_pthread_pthread_kill=yes
7965else
7966 ac_cv_lib_pthread_pthread_kill=no
7967fi
7968rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970LIBS=$ac_check_lib_save_LIBS
7971fi
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7973$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7974if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7975 gl_have_pthread=yes
7976 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7977 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7978fi
7979
7980 if test -z "$gl_have_pthread"; then
7981 # For FreeBSD 4.
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7983$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7984if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986else
7987 ac_check_lib_save_LIBS=$LIBS
7988LIBS="-lc_r $LIBS"
7989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990/* end confdefs.h. */
7991
7992/* Override any GCC internal prototype to avoid an error.
7993 Use char because int might match the return type of a GCC
7994 builtin and then its argument prototype would still apply. */
7995#ifdef __cplusplus
7996extern "C"
7997#endif
7998char pthread_kill ();
7999int
8000main ()
8001{
8002return pthread_kill ();
8003 ;
8004 return 0;
8005}
8006_ACEOF
8007if ac_fn_c_try_link "$LINENO"; then :
8008 ac_cv_lib_c_r_pthread_kill=yes
8009else
8010 ac_cv_lib_c_r_pthread_kill=no
8011fi
8012rm -f core conftest.err conftest.$ac_objext \
8013 conftest$ac_exeext conftest.$ac_ext
8014LIBS=$ac_check_lib_save_LIBS
8015fi
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8017$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8018if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8019 gl_have_pthread=yes
8020 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8021 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8022fi
8023
8024 fi
8025 fi
8026 if test -n "$gl_have_pthread"; then
8027 gl_threads_api=posix
8028
8029$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8030
8031 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8032 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8033
8034$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8035
8036 LIBTHREAD=
8037 LTLIBTHREAD=
8038 fi
8039 fi
8040 fi
8041 fi
8042 fi
8043 if test -z "$gl_have_pthread"; then
8044 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8045 gl_have_solaristhread=
8046 gl_save_LIBS="$LIBS"
8047 LIBS="$LIBS -lthread"
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049/* end confdefs.h. */
8050
8051#include <thread.h>
8052#include <synch.h>
8053
8054int
8055main ()
8056{
8057thr_self();
8058 ;
8059 return 0;
8060}
8061_ACEOF
8062if ac_fn_c_try_link "$LINENO"; then :
8063 gl_have_solaristhread=yes
8064fi
8065rm -f core conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
8067 LIBS="$gl_save_LIBS"
8068 if test -n "$gl_have_solaristhread"; then
8069 gl_threads_api=solaris
8070 LIBTHREAD=-lthread
8071 LTLIBTHREAD=-lthread
8072 LIBMULTITHREAD="$LIBTHREAD"
8073 LTLIBMULTITHREAD="$LTLIBTHREAD"
8074
8075$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8076
8077 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8078
8079$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8080
8081 LIBTHREAD=
8082 LTLIBTHREAD=
8083 fi
8084 fi
8085 fi
8086 fi
8087 if test "$gl_use_threads" = pth; then
8088 gl_save_CPPFLAGS="$CPPFLAGS"
8089
8090
8091
8092
8093
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8095$as_echo_n "checking how to link with libpth... " >&6; }
8096if ${ac_cv_libpth_libs+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098else
8099
8100
8101
8102
8103
8104
8105
8106
8107 use_additional=yes
8108
8109 acl_save_prefix="$prefix"
8110 prefix="$acl_final_prefix"
8111 acl_save_exec_prefix="$exec_prefix"
8112 exec_prefix="$acl_final_exec_prefix"
8113
8114 eval additional_includedir=\"$includedir\"
8115 eval additional_libdir=\"$libdir\"
8116
8117 exec_prefix="$acl_save_exec_prefix"
8118 prefix="$acl_save_prefix"
8119
8120
8121# Check whether --with-libpth-prefix was given.
8122if test "${with_libpth_prefix+set}" = set; then :
8123 withval=$with_libpth_prefix;
8124 if test "X$withval" = "Xno"; then
8125 use_additional=no
8126 else
8127 if test "X$withval" = "X"; then
8128
8129 acl_save_prefix="$prefix"
8130 prefix="$acl_final_prefix"
8131 acl_save_exec_prefix="$exec_prefix"
8132 exec_prefix="$acl_final_exec_prefix"
8133
8134 eval additional_includedir=\"$includedir\"
8135 eval additional_libdir=\"$libdir\"
8136
8137 exec_prefix="$acl_save_exec_prefix"
8138 prefix="$acl_save_prefix"
8139
8140 else
8141 additional_includedir="$withval/include"
8142 additional_libdir="$withval/$acl_libdirstem"
8143 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8144 && ! test -d "$withval/$acl_libdirstem"; then
8145 additional_libdir="$withval/$acl_libdirstem2"
8146 fi
8147 fi
8148 fi
8149
8150fi
8151
8152 LIBPTH=
8153 LTLIBPTH=
8154 INCPTH=
8155 LIBPTH_PREFIX=
8156 HAVE_LIBPTH=
8157 rpathdirs=
8158 ltrpathdirs=
8159 names_already_handled=
8160 names_next_round='pth '
8161 while test -n "$names_next_round"; do
8162 names_this_round="$names_next_round"
8163 names_next_round=
8164 for name in $names_this_round; do
8165 already_handled=
8166 for n in $names_already_handled; do
8167 if test "$n" = "$name"; then
8168 already_handled=yes
8169 break
8170 fi
8171 done
8172 if test -z "$already_handled"; then
8173 names_already_handled="$names_already_handled $name"
8174 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8175 eval value=\"\$HAVE_LIB$uppername\"
8176 if test -n "$value"; then
8177 if test "$value" = yes; then
8178 eval value=\"\$LIB$uppername\"
8179 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8180 eval value=\"\$LTLIB$uppername\"
8181 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8182 else
8183 :
8184 fi
8185 else
8186 found_dir=
8187 found_la=
8188 found_so=
8189 found_a=
8190 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8191 if test -n "$acl_shlibext"; then
8192 shrext=".$acl_shlibext" # typically: shrext=.so
8193 else
8194 shrext=
8195 fi
8196 if test $use_additional = yes; then
8197 dir="$additional_libdir"
8198 if test -n "$acl_shlibext"; then
8199 if test -f "$dir/$libname$shrext"; then
8200 found_dir="$dir"
8201 found_so="$dir/$libname$shrext"
8202 else
8203 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8204 ver=`(cd "$dir" && \
8205 for f in "$libname$shrext".*; do echo "$f"; done \
8206 | sed -e "s,^$libname$shrext\\\\.,," \
8207 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8208 | sed 1q ) 2>/dev/null`
8209 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8210 found_dir="$dir"
8211 found_so="$dir/$libname$shrext.$ver"
8212 fi
8213 else
8214 eval library_names=\"$acl_library_names_spec\"
8215 for f in $library_names; do
8216 if test -f "$dir/$f"; then
8217 found_dir="$dir"
8218 found_so="$dir/$f"
8219 break
8220 fi
8221 done
8222 fi
8223 fi
8224 fi
8225 if test "X$found_dir" = "X"; then
8226 if test -f "$dir/$libname.$acl_libext"; then
8227 found_dir="$dir"
8228 found_a="$dir/$libname.$acl_libext"
8229 fi
8230 fi
8231 if test "X$found_dir" != "X"; then
8232 if test -f "$dir/$libname.la"; then
8233 found_la="$dir/$libname.la"
8234 fi
8235 fi
8236 fi
8237 if test "X$found_dir" = "X"; then
8238 for x in $LDFLAGS $LTLIBPTH; do
8239
8240 acl_save_prefix="$prefix"
8241 prefix="$acl_final_prefix"
8242 acl_save_exec_prefix="$exec_prefix"
8243 exec_prefix="$acl_final_exec_prefix"
8244 eval x=\"$x\"
8245 exec_prefix="$acl_save_exec_prefix"
8246 prefix="$acl_save_prefix"
8247
8248 case "$x" in
8249 -L*)
8250 dir=`echo "X$x" | sed -e 's/^X-L//'`
8251 if test -n "$acl_shlibext"; then
8252 if test -f "$dir/$libname$shrext"; then
8253 found_dir="$dir"
8254 found_so="$dir/$libname$shrext"
8255 else
8256 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8257 ver=`(cd "$dir" && \
8258 for f in "$libname$shrext".*; do echo "$f"; done \
8259 | sed -e "s,^$libname$shrext\\\\.,," \
8260 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8261 | sed 1q ) 2>/dev/null`
8262 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8263 found_dir="$dir"
8264 found_so="$dir/$libname$shrext.$ver"
8265 fi
8266 else
8267 eval library_names=\"$acl_library_names_spec\"
8268 for f in $library_names; do
8269 if test -f "$dir/$f"; then
8270 found_dir="$dir"
8271 found_so="$dir/$f"
8272 break
8273 fi
8274 done
8275 fi
8276 fi
8277 fi
8278 if test "X$found_dir" = "X"; then
8279 if test -f "$dir/$libname.$acl_libext"; then
8280 found_dir="$dir"
8281 found_a="$dir/$libname.$acl_libext"
8282 fi
8283 fi
8284 if test "X$found_dir" != "X"; then
8285 if test -f "$dir/$libname.la"; then
8286 found_la="$dir/$libname.la"
8287 fi
8288 fi
8289 ;;
8290 esac
8291 if test "X$found_dir" != "X"; then
8292 break
8293 fi
8294 done
8295 fi
8296 if test "X$found_dir" != "X"; then
8297 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8298 if test "X$found_so" != "X"; then
8299 if test "$enable_rpath" = no \
8300 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8301 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8302 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8303 else
8304 haveit=
8305 for x in $ltrpathdirs; do
8306 if test "X$x" = "X$found_dir"; then
8307 haveit=yes
8308 break
8309 fi
8310 done
8311 if test -z "$haveit"; then
8312 ltrpathdirs="$ltrpathdirs $found_dir"
8313 fi
8314 if test "$acl_hardcode_direct" = yes; then
8315 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8316 else
8317 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8318 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8319 haveit=
8320 for x in $rpathdirs; do
8321 if test "X$x" = "X$found_dir"; then
8322 haveit=yes
8323 break
8324 fi
8325 done
8326 if test -z "$haveit"; then
8327 rpathdirs="$rpathdirs $found_dir"
8328 fi
8329 else
8330 haveit=
8331 for x in $LDFLAGS $LIBPTH; do
8332
8333 acl_save_prefix="$prefix"
8334 prefix="$acl_final_prefix"
8335 acl_save_exec_prefix="$exec_prefix"
8336 exec_prefix="$acl_final_exec_prefix"
8337 eval x=\"$x\"
8338 exec_prefix="$acl_save_exec_prefix"
8339 prefix="$acl_save_prefix"
8340
8341 if test "X$x" = "X-L$found_dir"; then
8342 haveit=yes
8343 break
8344 fi
8345 done
8346 if test -z "$haveit"; then
8347 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8348 fi
8349 if test "$acl_hardcode_minus_L" != no; then
8350 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8351 else
8352 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8353 fi
8354 fi
8355 fi
8356 fi
8357 else
8358 if test "X$found_a" != "X"; then
8359 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8360 else
8361 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8362 fi
8363 fi
8364 additional_includedir=
8365 case "$found_dir" in
8366 */$acl_libdirstem | */$acl_libdirstem/)
8367 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8368 if test "$name" = 'pth'; then
8369 LIBPTH_PREFIX="$basedir"
8370 fi
8371 additional_includedir="$basedir/include"
8372 ;;
8373 */$acl_libdirstem2 | */$acl_libdirstem2/)
8374 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8375 if test "$name" = 'pth'; then
8376 LIBPTH_PREFIX="$basedir"
8377 fi
8378 additional_includedir="$basedir/include"
8379 ;;
8380 esac
8381 if test "X$additional_includedir" != "X"; then
8382 if test "X$additional_includedir" != "X/usr/include"; then
8383 haveit=
8384 if test "X$additional_includedir" = "X/usr/local/include"; then
8385 if test -n "$GCC"; then
8386 case $host_os in
8387 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8388 esac
8389 fi
8390 fi
8391 if test -z "$haveit"; then
8392 for x in $CPPFLAGS $INCPTH; do
8393
8394 acl_save_prefix="$prefix"
8395 prefix="$acl_final_prefix"
8396 acl_save_exec_prefix="$exec_prefix"
8397 exec_prefix="$acl_final_exec_prefix"
8398 eval x=\"$x\"
8399 exec_prefix="$acl_save_exec_prefix"
8400 prefix="$acl_save_prefix"
8401
8402 if test "X$x" = "X-I$additional_includedir"; then
8403 haveit=yes
8404 break
8405 fi
8406 done
8407 if test -z "$haveit"; then
8408 if test -d "$additional_includedir"; then
8409 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8410 fi
8411 fi
8412 fi
8413 fi
8414 fi
8415 if test -n "$found_la"; then
8416 save_libdir="$libdir"
8417 case "$found_la" in
8418 */* | *\\*) . "$found_la" ;;
8419 *) . "./$found_la" ;;
8420 esac
8421 libdir="$save_libdir"
8422 for dep in $dependency_libs; do
8423 case "$dep" in
8424 -L*)
8425 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8426 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8427 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8428 haveit=
8429 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8430 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8431 if test -n "$GCC"; then
8432 case $host_os in
8433 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8434 esac
8435 fi
8436 fi
8437 if test -z "$haveit"; then
8438 haveit=
8439 for x in $LDFLAGS $LIBPTH; do
8440
8441 acl_save_prefix="$prefix"
8442 prefix="$acl_final_prefix"
8443 acl_save_exec_prefix="$exec_prefix"
8444 exec_prefix="$acl_final_exec_prefix"
8445 eval x=\"$x\"
8446 exec_prefix="$acl_save_exec_prefix"
8447 prefix="$acl_save_prefix"
8448
8449 if test "X$x" = "X-L$additional_libdir"; then
8450 haveit=yes
8451 break
8452 fi
8453 done
8454 if test -z "$haveit"; then
8455 if test -d "$additional_libdir"; then
8456 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8457 fi
8458 fi
8459 haveit=
8460 for x in $LDFLAGS $LTLIBPTH; do
8461
8462 acl_save_prefix="$prefix"
8463 prefix="$acl_final_prefix"
8464 acl_save_exec_prefix="$exec_prefix"
8465 exec_prefix="$acl_final_exec_prefix"
8466 eval x=\"$x\"
8467 exec_prefix="$acl_save_exec_prefix"
8468 prefix="$acl_save_prefix"
8469
8470 if test "X$x" = "X-L$additional_libdir"; then
8471 haveit=yes
8472 break
8473 fi
8474 done
8475 if test -z "$haveit"; then
8476 if test -d "$additional_libdir"; then
8477 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8478 fi
8479 fi
8480 fi
8481 fi
8482 ;;
8483 -R*)
8484 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8485 if test "$enable_rpath" != no; then
8486 haveit=
8487 for x in $rpathdirs; do
8488 if test "X$x" = "X$dir"; then
8489 haveit=yes
8490 break
8491 fi
8492 done
8493 if test -z "$haveit"; then
8494 rpathdirs="$rpathdirs $dir"
8495 fi
8496 haveit=
8497 for x in $ltrpathdirs; do
8498 if test "X$x" = "X$dir"; then
8499 haveit=yes
8500 break
8501 fi
8502 done
8503 if test -z "$haveit"; then
8504 ltrpathdirs="$ltrpathdirs $dir"
8505 fi
8506 fi
8507 ;;
8508 -l*)
8509 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8510 ;;
8511 *.la)
8512 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8513 ;;
8514 *)
8515 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8516 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8517 ;;
8518 esac
8519 done
8520 fi
8521 else
8522 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8523 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8524 fi
8525 fi
8526 fi
8527 done
8528 done
8529 if test "X$rpathdirs" != "X"; then
8530 if test -n "$acl_hardcode_libdir_separator"; then
8531 alldirs=
8532 for found_dir in $rpathdirs; do
8533 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8534 done
8535 acl_save_libdir="$libdir"
8536 libdir="$alldirs"
8537 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8538 libdir="$acl_save_libdir"
8539 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8540 else
8541 for found_dir in $rpathdirs; do
8542 acl_save_libdir="$libdir"
8543 libdir="$found_dir"
8544 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8545 libdir="$acl_save_libdir"
8546 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8547 done
8548 fi
8549 fi
8550 if test "X$ltrpathdirs" != "X"; then
8551 for found_dir in $ltrpathdirs; do
8552 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8553 done
8554 fi
8555
8556
8557
8558
8559
8560
8561 ac_cv_libpth_libs="$LIBPTH"
8562 ac_cv_libpth_ltlibs="$LTLIBPTH"
8563 ac_cv_libpth_cppflags="$INCPTH"
8564 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8565
8566fi
8567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8568$as_echo "$ac_cv_libpth_libs" >&6; }
8569 LIBPTH="$ac_cv_libpth_libs"
8570 LTLIBPTH="$ac_cv_libpth_ltlibs"
8571 INCPTH="$ac_cv_libpth_cppflags"
8572 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8573
8574 for element in $INCPTH; do
8575 haveit=
8576 for x in $CPPFLAGS; do
8577
8578 acl_save_prefix="$prefix"
8579 prefix="$acl_final_prefix"
8580 acl_save_exec_prefix="$exec_prefix"
8581 exec_prefix="$acl_final_exec_prefix"
8582 eval x=\"$x\"
8583 exec_prefix="$acl_save_exec_prefix"
8584 prefix="$acl_save_prefix"
8585
8586 if test "X$x" = "X$element"; then
8587 haveit=yes
8588 break
8589 fi
8590 done
8591 if test -z "$haveit"; then
8592 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8593 fi
8594 done
8595
8596
8597
8598
8599 HAVE_LIBPTH=yes
8600
8601
8602
8603 gl_have_pth=
8604 gl_save_LIBS="$LIBS"
8605 LIBS="$LIBS $LIBPTH"
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607/* end confdefs.h. */
8608#include <pth.h>
8609int
8610main ()
8611{
8612pth_self();
8613 ;
8614 return 0;
8615}
8616_ACEOF
8617if ac_fn_c_try_link "$LINENO"; then :
8618 gl_have_pth=yes
8619fi
8620rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LIBS="$gl_save_LIBS"
8623 if test -n "$gl_have_pth"; then
8624 gl_threads_api=pth
8625 LIBTHREAD="$LIBPTH"
8626 LTLIBTHREAD="$LTLIBPTH"
8627 LIBMULTITHREAD="$LIBTHREAD"
8628 LTLIBMULTITHREAD="$LTLIBTHREAD"
8629
8630$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8631
8632 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8633 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8634
8635$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8636
8637 LIBTHREAD=
8638 LTLIBTHREAD=
8639 fi
8640 fi
8641 else
8642 CPPFLAGS="$gl_save_CPPFLAGS"
8643 fi
8644 fi
8645 if test -z "$gl_have_pthread"; then
8646 case "$gl_use_threads" in
8647 yes | windows | win32) # The 'win32' is for backward compatibility.
8648 if { case "$host_os" in
8649 mingw*) true;;
8650 *) false;;
8651 esac
8652 }; then
8653 gl_threads_api=windows
8654
8655$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8656
8657 fi
8658 ;;
8659 esac
8660 fi
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8663$as_echo_n "checking for multithread API to use... " >&6; }
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8665$as_echo "$gl_threads_api" >&6; }
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677 if test "$gl_threads_api" = posix; then
8678 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8679 # pthread_rwlock_* functions.
8680 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8681"
8682if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8683
8684$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8685
8686fi
8687
8688 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h. */
8691
8692 #include <pthread.h>
8693int
8694main ()
8695{
8696
8697#if __FreeBSD__ == 4
8698error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8699#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8700 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8701error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8702#else
8703int x = (int)PTHREAD_MUTEX_RECURSIVE;
8704return !x;
8705#endif
8706
8707 ;
8708 return 0;
8709}
8710_ACEOF
8711if ac_fn_c_try_compile "$LINENO"; then :
8712
8713$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8714
8715fi
8716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 fi
8718 :
8719
8720
8721
8722
8723
8724
8725
8726
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008727
8728
8729
8730
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008731 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008732
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008733 acl_save_prefix="$prefix"
8734 prefix="$acl_final_prefix"
8735 acl_save_exec_prefix="$exec_prefix"
8736 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008737
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008738 eval additional_includedir=\"$includedir\"
8739 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008740
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008741 exec_prefix="$acl_save_exec_prefix"
8742 prefix="$acl_save_prefix"
8743
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008744
Theodore Ts'oe1052142006-10-21 21:46:47 -04008745# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008746if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008747 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008748 if test "X$withval" = "Xno"; then
8749 use_additional=no
8750 else
8751 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008752
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008753 acl_save_prefix="$prefix"
8754 prefix="$acl_final_prefix"
8755 acl_save_exec_prefix="$exec_prefix"
8756 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008757
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008758 eval additional_includedir=\"$includedir\"
8759 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008760
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008761 exec_prefix="$acl_save_exec_prefix"
8762 prefix="$acl_save_prefix"
8763
8764 else
8765 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008766 additional_libdir="$withval/$acl_libdirstem"
8767 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8768 && ! test -d "$withval/$acl_libdirstem"; then
8769 additional_libdir="$withval/$acl_libdirstem2"
8770 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008771 fi
8772 fi
8773
Theodore Ts'oe1052142006-10-21 21:46:47 -04008774fi
8775
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008776 LIBICONV=
8777 LTLIBICONV=
8778 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008779 LIBICONV_PREFIX=
8780 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008781 rpathdirs=
8782 ltrpathdirs=
8783 names_already_handled=
8784 names_next_round='iconv '
8785 while test -n "$names_next_round"; do
8786 names_this_round="$names_next_round"
8787 names_next_round=
8788 for name in $names_this_round; do
8789 already_handled=
8790 for n in $names_already_handled; do
8791 if test "$n" = "$name"; then
8792 already_handled=yes
8793 break
8794 fi
8795 done
8796 if test -z "$already_handled"; then
8797 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008798 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008799 eval value=\"\$HAVE_LIB$uppername\"
8800 if test -n "$value"; then
8801 if test "$value" = yes; then
8802 eval value=\"\$LIB$uppername\"
8803 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8804 eval value=\"\$LTLIB$uppername\"
8805 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8806 else
8807 :
8808 fi
8809 else
8810 found_dir=
8811 found_la=
8812 found_so=
8813 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008814 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8815 if test -n "$acl_shlibext"; then
8816 shrext=".$acl_shlibext" # typically: shrext=.so
8817 else
8818 shrext=
8819 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008820 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008821 dir="$additional_libdir"
8822 if test -n "$acl_shlibext"; then
8823 if test -f "$dir/$libname$shrext"; then
8824 found_dir="$dir"
8825 found_so="$dir/$libname$shrext"
8826 else
8827 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8828 ver=`(cd "$dir" && \
8829 for f in "$libname$shrext".*; do echo "$f"; done \
8830 | sed -e "s,^$libname$shrext\\\\.,," \
8831 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8832 | sed 1q ) 2>/dev/null`
8833 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8834 found_dir="$dir"
8835 found_so="$dir/$libname$shrext.$ver"
8836 fi
8837 else
8838 eval library_names=\"$acl_library_names_spec\"
8839 for f in $library_names; do
8840 if test -f "$dir/$f"; then
8841 found_dir="$dir"
8842 found_so="$dir/$f"
8843 break
8844 fi
8845 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008846 fi
8847 fi
8848 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008849 if test "X$found_dir" = "X"; then
8850 if test -f "$dir/$libname.$acl_libext"; then
8851 found_dir="$dir"
8852 found_a="$dir/$libname.$acl_libext"
8853 fi
8854 fi
8855 if test "X$found_dir" != "X"; then
8856 if test -f "$dir/$libname.la"; then
8857 found_la="$dir/$libname.la"
8858 fi
8859 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008860 fi
8861 if test "X$found_dir" = "X"; then
8862 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008863
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008864 acl_save_prefix="$prefix"
8865 prefix="$acl_final_prefix"
8866 acl_save_exec_prefix="$exec_prefix"
8867 exec_prefix="$acl_final_exec_prefix"
8868 eval x=\"$x\"
8869 exec_prefix="$acl_save_exec_prefix"
8870 prefix="$acl_save_prefix"
8871
8872 case "$x" in
8873 -L*)
8874 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008875 if test -n "$acl_shlibext"; then
8876 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008877 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008878 found_so="$dir/$libname$shrext"
8879 else
8880 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8881 ver=`(cd "$dir" && \
8882 for f in "$libname$shrext".*; do echo "$f"; done \
8883 | sed -e "s,^$libname$shrext\\\\.,," \
8884 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8885 | sed 1q ) 2>/dev/null`
8886 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8887 found_dir="$dir"
8888 found_so="$dir/$libname$shrext.$ver"
8889 fi
8890 else
8891 eval library_names=\"$acl_library_names_spec\"
8892 for f in $library_names; do
8893 if test -f "$dir/$f"; then
8894 found_dir="$dir"
8895 found_so="$dir/$f"
8896 break
8897 fi
8898 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008899 fi
8900 fi
8901 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008902 if test "X$found_dir" = "X"; then
8903 if test -f "$dir/$libname.$acl_libext"; then
8904 found_dir="$dir"
8905 found_a="$dir/$libname.$acl_libext"
8906 fi
8907 fi
8908 if test "X$found_dir" != "X"; then
8909 if test -f "$dir/$libname.la"; then
8910 found_la="$dir/$libname.la"
8911 fi
8912 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008913 ;;
8914 esac
8915 if test "X$found_dir" != "X"; then
8916 break
8917 fi
8918 done
8919 fi
8920 if test "X$found_dir" != "X"; then
8921 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8922 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008923 if test "$enable_rpath" = no \
8924 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8925 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008926 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8927 else
8928 haveit=
8929 for x in $ltrpathdirs; do
8930 if test "X$x" = "X$found_dir"; then
8931 haveit=yes
8932 break
8933 fi
8934 done
8935 if test -z "$haveit"; then
8936 ltrpathdirs="$ltrpathdirs $found_dir"
8937 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008938 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008939 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8940 else
Theodore Ts'o93613952014-07-03 23:44:13 -04008941 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8943 haveit=
8944 for x in $rpathdirs; do
8945 if test "X$x" = "X$found_dir"; then
8946 haveit=yes
8947 break
8948 fi
8949 done
8950 if test -z "$haveit"; then
8951 rpathdirs="$rpathdirs $found_dir"
8952 fi
8953 else
8954 haveit=
8955 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008956
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008957 acl_save_prefix="$prefix"
8958 prefix="$acl_final_prefix"
8959 acl_save_exec_prefix="$exec_prefix"
8960 exec_prefix="$acl_final_exec_prefix"
8961 eval x=\"$x\"
8962 exec_prefix="$acl_save_exec_prefix"
8963 prefix="$acl_save_prefix"
8964
8965 if test "X$x" = "X-L$found_dir"; then
8966 haveit=yes
8967 break
8968 fi
8969 done
8970 if test -z "$haveit"; then
8971 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8972 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008973 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008974 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8975 else
8976 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8977 fi
8978 fi
8979 fi
8980 fi
8981 else
8982 if test "X$found_a" != "X"; then
8983 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8984 else
8985 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8986 fi
8987 fi
8988 additional_includedir=
8989 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04008990 */$acl_libdirstem | */$acl_libdirstem/)
8991 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8992 if test "$name" = 'iconv'; then
8993 LIBICONV_PREFIX="$basedir"
8994 fi
8995 additional_includedir="$basedir/include"
8996 ;;
8997 */$acl_libdirstem2 | */$acl_libdirstem2/)
8998 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8999 if test "$name" = 'iconv'; then
9000 LIBICONV_PREFIX="$basedir"
9001 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009002 additional_includedir="$basedir/include"
9003 ;;
9004 esac
9005 if test "X$additional_includedir" != "X"; then
9006 if test "X$additional_includedir" != "X/usr/include"; then
9007 haveit=
9008 if test "X$additional_includedir" = "X/usr/local/include"; then
9009 if test -n "$GCC"; then
9010 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009011 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009012 esac
9013 fi
9014 fi
9015 if test -z "$haveit"; then
9016 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009017
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009018 acl_save_prefix="$prefix"
9019 prefix="$acl_final_prefix"
9020 acl_save_exec_prefix="$exec_prefix"
9021 exec_prefix="$acl_final_exec_prefix"
9022 eval x=\"$x\"
9023 exec_prefix="$acl_save_exec_prefix"
9024 prefix="$acl_save_prefix"
9025
9026 if test "X$x" = "X-I$additional_includedir"; then
9027 haveit=yes
9028 break
9029 fi
9030 done
9031 if test -z "$haveit"; then
9032 if test -d "$additional_includedir"; then
9033 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9034 fi
9035 fi
9036 fi
9037 fi
9038 fi
9039 if test -n "$found_la"; then
9040 save_libdir="$libdir"
9041 case "$found_la" in
9042 */* | *\\*) . "$found_la" ;;
9043 *) . "./$found_la" ;;
9044 esac
9045 libdir="$save_libdir"
9046 for dep in $dependency_libs; do
9047 case "$dep" in
9048 -L*)
9049 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009050 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9051 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009052 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009053 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9054 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009055 if test -n "$GCC"; then
9056 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009057 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009058 esac
9059 fi
9060 fi
9061 if test -z "$haveit"; then
9062 haveit=
9063 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009064
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009065 acl_save_prefix="$prefix"
9066 prefix="$acl_final_prefix"
9067 acl_save_exec_prefix="$exec_prefix"
9068 exec_prefix="$acl_final_exec_prefix"
9069 eval x=\"$x\"
9070 exec_prefix="$acl_save_exec_prefix"
9071 prefix="$acl_save_prefix"
9072
9073 if test "X$x" = "X-L$additional_libdir"; then
9074 haveit=yes
9075 break
9076 fi
9077 done
9078 if test -z "$haveit"; then
9079 if test -d "$additional_libdir"; then
9080 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9081 fi
9082 fi
9083 haveit=
9084 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009085
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9090 eval x=\"$x\"
9091 exec_prefix="$acl_save_exec_prefix"
9092 prefix="$acl_save_prefix"
9093
9094 if test "X$x" = "X-L$additional_libdir"; then
9095 haveit=yes
9096 break
9097 fi
9098 done
9099 if test -z "$haveit"; then
9100 if test -d "$additional_libdir"; then
9101 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9102 fi
9103 fi
9104 fi
9105 fi
9106 ;;
9107 -R*)
9108 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9109 if test "$enable_rpath" != no; then
9110 haveit=
9111 for x in $rpathdirs; do
9112 if test "X$x" = "X$dir"; then
9113 haveit=yes
9114 break
9115 fi
9116 done
9117 if test -z "$haveit"; then
9118 rpathdirs="$rpathdirs $dir"
9119 fi
9120 haveit=
9121 for x in $ltrpathdirs; do
9122 if test "X$x" = "X$dir"; then
9123 haveit=yes
9124 break
9125 fi
9126 done
9127 if test -z "$haveit"; then
9128 ltrpathdirs="$ltrpathdirs $dir"
9129 fi
9130 fi
9131 ;;
9132 -l*)
9133 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9134 ;;
9135 *.la)
9136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9137 ;;
9138 *)
9139 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9140 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9141 ;;
9142 esac
9143 done
9144 fi
9145 else
9146 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9147 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9148 fi
9149 fi
9150 fi
9151 done
9152 done
9153 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009154 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009155 alldirs=
9156 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009157 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009158 done
9159 acl_save_libdir="$libdir"
9160 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009161 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009162 libdir="$acl_save_libdir"
9163 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9164 else
9165 for found_dir in $rpathdirs; do
9166 acl_save_libdir="$libdir"
9167 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009168 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009169 libdir="$acl_save_libdir"
9170 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9171 done
9172 fi
9173 fi
9174 if test "X$ltrpathdirs" != "X"; then
9175 for found_dir in $ltrpathdirs; do
9176 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9177 done
9178 fi
9179
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009180
9181
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009183
9184
9185
9186
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009187
9188
9189
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009190
9191 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009192
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009193 for element in $INCICONV; do
9194 haveit=
9195 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009196
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009197 acl_save_prefix="$prefix"
9198 prefix="$acl_final_prefix"
9199 acl_save_exec_prefix="$exec_prefix"
9200 exec_prefix="$acl_final_exec_prefix"
9201 eval x=\"$x\"
9202 exec_prefix="$acl_save_exec_prefix"
9203 prefix="$acl_save_prefix"
9204
9205 if test "X$x" = "X$element"; then
9206 haveit=yes
9207 break
9208 fi
9209 done
9210 if test -z "$haveit"; then
9211 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9212 fi
9213 done
9214
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009215
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009217$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009218if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009219 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009220else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009221
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009222 am_cv_func_iconv="no, consider installing GNU libiconv"
9223 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009225/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009226
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009227#include <stdlib.h>
9228#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009229
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009230int
9231main ()
9232{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009233iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009234 iconv(cd,NULL,NULL,NULL,NULL);
9235 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009236 ;
9237 return 0;
9238}
9239_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009240if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009241 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009242fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009243rm -f core conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009245 if test "$am_cv_func_iconv" != yes; then
9246 am_save_LIBS="$LIBS"
9247 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009249/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009250
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009251#include <stdlib.h>
9252#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009253
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009254int
9255main ()
9256{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009257iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009258 iconv(cd,NULL,NULL,NULL,NULL);
9259 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009260 ;
9261 return 0;
9262}
9263_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009264if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009265 am_cv_lib_iconv=yes
9266 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009267fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009268rm -f core conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009270 LIBS="$am_save_LIBS"
9271 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009272
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009273fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009275$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009276 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9278$as_echo_n "checking for working iconv... " >&6; }
9279if ${am_cv_func_iconv_works+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281else
9282
9283 am_save_LIBS="$LIBS"
9284 if test $am_cv_lib_iconv = yes; then
9285 LIBS="$LIBS $LIBICONV"
9286 fi
9287 if test "$cross_compiling" = yes; then :
9288
9289 case "$host_os" in
9290 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9291 *) am_cv_func_iconv_works="guessing yes" ;;
9292 esac
9293
9294else
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296/* end confdefs.h. */
9297
9298#include <iconv.h>
9299#include <string.h>
9300int main ()
9301{
9302 int result = 0;
9303 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9304 returns. */
9305 {
9306 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9307 if (cd_utf8_to_88591 != (iconv_t)(-1))
9308 {
9309 static const char input[] = "\342\202\254"; /* EURO SIGN */
9310 char buf[10];
9311 const char *inptr = input;
9312 size_t inbytesleft = strlen (input);
9313 char *outptr = buf;
9314 size_t outbytesleft = sizeof (buf);
9315 size_t res = iconv (cd_utf8_to_88591,
9316 (char **) &inptr, &inbytesleft,
9317 &outptr, &outbytesleft);
9318 if (res == 0)
9319 result |= 1;
9320 iconv_close (cd_utf8_to_88591);
9321 }
9322 }
9323 /* Test against Solaris 10 bug: Failures are not distinguishable from
9324 successful returns. */
9325 {
9326 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9327 if (cd_ascii_to_88591 != (iconv_t)(-1))
9328 {
9329 static const char input[] = "\263";
9330 char buf[10];
9331 const char *inptr = input;
9332 size_t inbytesleft = strlen (input);
9333 char *outptr = buf;
9334 size_t outbytesleft = sizeof (buf);
9335 size_t res = iconv (cd_ascii_to_88591,
9336 (char **) &inptr, &inbytesleft,
9337 &outptr, &outbytesleft);
9338 if (res == 0)
9339 result |= 2;
9340 iconv_close (cd_ascii_to_88591);
9341 }
9342 }
9343 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9344 {
9345 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9346 if (cd_88591_to_utf8 != (iconv_t)(-1))
9347 {
9348 static const char input[] = "\304";
9349 static char buf[2] = { (char)0xDE, (char)0xAD };
9350 const char *inptr = input;
9351 size_t inbytesleft = 1;
9352 char *outptr = buf;
9353 size_t outbytesleft = 1;
9354 size_t res = iconv (cd_88591_to_utf8,
9355 (char **) &inptr, &inbytesleft,
9356 &outptr, &outbytesleft);
9357 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9358 result |= 4;
9359 iconv_close (cd_88591_to_utf8);
9360 }
9361 }
9362#if 0 /* This bug could be worked around by the caller. */
9363 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9364 {
9365 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9366 if (cd_88591_to_utf8 != (iconv_t)(-1))
9367 {
9368 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9369 char buf[50];
9370 const char *inptr = input;
9371 size_t inbytesleft = strlen (input);
9372 char *outptr = buf;
9373 size_t outbytesleft = sizeof (buf);
9374 size_t res = iconv (cd_88591_to_utf8,
9375 (char **) &inptr, &inbytesleft,
9376 &outptr, &outbytesleft);
9377 if ((int)res > 0)
9378 result |= 8;
9379 iconv_close (cd_88591_to_utf8);
9380 }
9381 }
9382#endif
9383 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9384 provided. */
9385 if (/* Try standardized names. */
9386 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9387 /* Try IRIX, OSF/1 names. */
9388 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9389 /* Try AIX names. */
9390 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9391 /* Try HP-UX names. */
9392 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9393 result |= 16;
9394 return result;
9395}
9396_ACEOF
9397if ac_fn_c_try_run "$LINENO"; then :
9398 am_cv_func_iconv_works=yes
9399else
9400 am_cv_func_iconv_works=no
9401fi
9402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9403 conftest.$ac_objext conftest.beam conftest.$ac_ext
9404fi
9405
9406 LIBS="$am_save_LIBS"
9407
9408fi
9409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9410$as_echo "$am_cv_func_iconv_works" >&6; }
9411 case "$am_cv_func_iconv_works" in
9412 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9413 *) am_func_iconv=yes ;;
9414 esac
9415 else
9416 am_func_iconv=no am_cv_lib_iconv=no
9417 fi
9418 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009419
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009420$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009421
9422 fi
9423 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009425$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009427$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009428 else
9429 CPPFLAGS="$am_save_CPPFLAGS"
9430 LIBICONV=
9431 LTLIBICONV=
9432 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009433
9434
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009435
9436 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009438$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009439 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009440 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009441else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009442
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009444/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009445
9446#include <stdlib.h>
9447#include <iconv.h>
9448extern
9449#ifdef __cplusplus
9450"C"
9451#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009452#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009453size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9454#else
9455size_t iconv();
9456#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009457
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009458int
9459main ()
9460{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009462 ;
9463 return 0;
9464}
9465_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009466if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009467 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009468else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009469 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009470fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009472 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 +00009473fi
9474
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009475 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009476 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9477 $am_cv_proto_iconv" >&5
9478$as_echo "
9479 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009480
9481cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009482#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009483_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009484
Theodore Ts'o93613952014-07-03 23:44:13 -04009485
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009486 fi
9487
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009488
Theodore Ts'o93613952014-07-03 23:44:13 -04009489
9490
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009492/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009493int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009494int
9495main ()
9496{
Theodore Ts'o93613952014-07-03 23:44:13 -04009497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009498 ;
9499 return 0;
9500}
9501_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009502if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009503
9504$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9505
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009506fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009507rm -f core conftest.err conftest.$ac_objext \
9508 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009509
Theodore Ts'o93613952014-07-03 23:44:13 -04009510 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9511do :
9512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9513ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9514if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9515 cat >>confdefs.h <<_ACEOF
9516#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009517_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009518
9519fi
9520
9521done
9522
9523 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9524 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9525 argz_stringify argz_next __fsetlocking
9526do :
9527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9528ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9529if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9530 cat >>confdefs.h <<_ACEOF
9531#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9532_ACEOF
9533
9534fi
9535done
9536
9537
9538 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9539"
9540if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9541 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009542else
Theodore Ts'o93613952014-07-03 23:44:13 -04009543 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009544fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009545
9546cat >>confdefs.h <<_ACEOF
9547#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9548_ACEOF
9549ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9550"
9551if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9552 ac_have_decl=1
9553else
9554 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009555fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009556
Theodore Ts'o93613952014-07-03 23:44:13 -04009557cat >>confdefs.h <<_ACEOF
9558#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9559_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009560
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009561
Theodore Ts'o93613952014-07-03 23:44:13 -04009562
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009563
9564 for ac_prog in bison
9565do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009566 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009567set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009569$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009570if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009571 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009572else
9573 if test -n "$INTLBISON"; then
9574 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9575else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577for as_dir in $PATH
9578do
9579 IFS=$as_save_IFS
9580 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009581 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009583 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009585 break 2
9586 fi
9587done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009588 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009589IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009590
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009591fi
9592fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009593INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009594if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009596$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009597else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009599$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009600fi
9601
Theodore Ts'oe1052142006-10-21 21:46:47 -04009602
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009603 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009604done
9605
9606 if test -z "$INTLBISON"; then
9607 ac_verc_fail=yes
9608 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009610$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009611 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9612 case $ac_prog_version in
9613 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9614 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9615 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9616 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9617 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009619$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009620 fi
9621 if test $ac_verc_fail = yes; then
9622 INTLBISON=:
9623 fi
9624
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009625
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009626
Theodore Ts'o93613952014-07-03 23:44:13 -04009627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9628$as_echo_n "checking for long long int... " >&6; }
9629if ${ac_cv_type_long_long_int+:} false; then :
9630 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009631else
Theodore Ts'o93613952014-07-03 23:44:13 -04009632 ac_cv_type_long_long_int=yes
9633 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9634 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9635 if test $ac_cv_type_long_long_int = yes; then
9636 if test "$cross_compiling" = yes; then :
9637 :
9638else
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h. */
9641#include <limits.h>
9642 #ifndef LLONG_MAX
9643 # define HALF \
9644 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9645 # define LLONG_MAX (HALF - 1 + HALF)
9646 #endif
9647int
9648main ()
9649{
9650long long int n = 1;
9651 int i;
9652 for (i = 0; ; i++)
9653 {
9654 long long int m = n << i;
9655 if (m >> i != n)
9656 return 1;
9657 if (LLONG_MAX / 2 < m)
9658 break;
9659 }
9660 return 0;
9661 ;
9662 return 0;
9663}
9664_ACEOF
9665if ac_fn_c_try_run "$LINENO"; then :
9666
9667else
9668 ac_cv_type_long_long_int=no
9669fi
9670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9671 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009672fi
9673
Theodore Ts'o93613952014-07-03 23:44:13 -04009674 fi
9675 fi
9676fi
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9678$as_echo "$ac_cv_type_long_long_int" >&6; }
9679 if test $ac_cv_type_long_long_int = yes; then
9680
9681$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9682
9683 fi
9684
9685
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9687$as_echo_n "checking for wchar_t... " >&6; }
9688if ${gt_cv_c_wchar_t+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690else
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692/* end confdefs.h. */
9693#include <stddef.h>
9694 wchar_t foo = (wchar_t)'\0';
9695int
9696main ()
9697{
9698
9699 ;
9700 return 0;
9701}
9702_ACEOF
9703if ac_fn_c_try_compile "$LINENO"; then :
9704 gt_cv_c_wchar_t=yes
9705else
9706 gt_cv_c_wchar_t=no
9707fi
9708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709fi
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9711$as_echo "$gt_cv_c_wchar_t" >&6; }
9712 if test $gt_cv_c_wchar_t = yes; then
9713
9714$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9715
9716 fi
9717
9718
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9720$as_echo_n "checking for wint_t... " >&6; }
9721if ${gt_cv_c_wint_t+:} false; then :
9722 $as_echo_n "(cached) " >&6
9723else
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725/* end confdefs.h. */
9726
9727/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9728 <wchar.h>.
9729 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9730 before <wchar.h>. */
9731#include <stddef.h>
9732#include <stdio.h>
9733#include <time.h>
9734#include <wchar.h>
9735 wint_t foo = (wchar_t)'\0';
9736int
9737main ()
9738{
9739
9740 ;
9741 return 0;
9742}
9743_ACEOF
9744if ac_fn_c_try_compile "$LINENO"; then :
9745 gt_cv_c_wint_t=yes
9746else
9747 gt_cv_c_wint_t=no
9748fi
9749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9750fi
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9752$as_echo "$gt_cv_c_wint_t" >&6; }
9753 if test $gt_cv_c_wint_t = yes; then
9754
9755$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9756
9757 fi
9758
9759
9760
9761
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9763$as_echo_n "checking for intmax_t... " >&6; }
9764if ${gt_cv_c_intmax_t+:} false; then :
9765 $as_echo_n "(cached) " >&6
9766else
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768/* end confdefs.h. */
9769
9770#include <stddef.h>
9771#include <stdlib.h>
9772#if HAVE_STDINT_H_WITH_UINTMAX
9773#include <stdint.h>
9774#endif
9775#if HAVE_INTTYPES_H_WITH_UINTMAX
9776#include <inttypes.h>
9777#endif
9778
9779int
9780main ()
9781{
9782intmax_t x = -1;
9783 return !x;
9784 ;
9785 return 0;
9786}
9787_ACEOF
9788if ac_fn_c_try_compile "$LINENO"; then :
9789 gt_cv_c_intmax_t=yes
9790else
9791 gt_cv_c_intmax_t=no
9792fi
9793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794fi
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9796$as_echo "$gt_cv_c_intmax_t" >&6; }
9797 if test $gt_cv_c_intmax_t = yes; then
9798
9799$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9800
9801 fi
9802
9803
9804
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9806$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9807if ${gt_cv_func_printf_posix+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809else
9810
9811 if test "$cross_compiling" = yes; then :
9812
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h. */
9815
9816#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9817 notposix
9818#endif
9819
9820_ACEOF
9821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9822 $EGREP "notposix" >/dev/null 2>&1; then :
9823 gt_cv_func_printf_posix="guessing no"
9824else
9825 gt_cv_func_printf_posix="guessing yes"
9826fi
9827rm -f conftest*
9828
9829
9830else
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h. */
9833
9834#include <stdio.h>
9835#include <string.h>
9836/* The string "%2$d %1$d", with dollar characters protected from the shell's
9837 dollar expansion (possibly an autoconf bug). */
9838static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9839static char buf[100];
9840int main ()
9841{
9842 sprintf (buf, format, 33, 55);
9843 return (strcmp (buf, "55 33") != 0);
9844}
9845_ACEOF
9846if ac_fn_c_try_run "$LINENO"; then :
9847 gt_cv_func_printf_posix=yes
9848else
9849 gt_cv_func_printf_posix=no
9850fi
9851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9852 conftest.$ac_objext conftest.beam conftest.$ac_ext
9853fi
9854
9855
9856fi
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9858$as_echo "$gt_cv_func_printf_posix" >&6; }
9859 case $gt_cv_func_printf_posix in
9860 *yes)
9861
9862$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9863
9864 ;;
9865 esac
9866
9867
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9869$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9870if ${ac_cv_gnu_library_2_1+:} false; then :
9871 $as_echo_n "(cached) " >&6
9872else
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h. */
9875
9876#include <features.h>
9877#ifdef __GNU_LIBRARY__
9878 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9879 Lucky GNU user
9880 #endif
9881#endif
9882#ifdef __UCLIBC__
9883 Lucky user
9884#endif
9885
9886_ACEOF
9887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9888 $EGREP "Lucky" >/dev/null 2>&1; then :
9889 ac_cv_gnu_library_2_1=yes
9890else
9891 ac_cv_gnu_library_2_1=no
9892fi
9893rm -f conftest*
9894
9895
9896
9897fi
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9899$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9900
9901 GLIBC21="$ac_cv_gnu_library_2_1"
9902
9903
9904
9905 for ac_header in stdint.h
9906do :
9907 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9908if test "x$ac_cv_header_stdint_h" = xyes; then :
9909 cat >>confdefs.h <<_ACEOF
9910#define HAVE_STDINT_H 1
9911_ACEOF
9912
9913fi
9914
9915done
9916
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9918$as_echo_n "checking for SIZE_MAX... " >&6; }
9919if ${gl_cv_size_max+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921else
9922
9923 gl_cv_size_max=
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925/* end confdefs.h. */
9926
9927#include <limits.h>
9928#if HAVE_STDINT_H
9929#include <stdint.h>
9930#endif
9931#ifdef SIZE_MAX
9932Found it
9933#endif
9934
9935_ACEOF
9936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9937 $EGREP "Found it" >/dev/null 2>&1; then :
9938 gl_cv_size_max=yes
9939fi
9940rm -f conftest*
9941
9942 if test -z "$gl_cv_size_max"; then
9943 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9944#include <limits.h>"; then :
9945
9946else
9947 size_t_bits_minus_1=
9948fi
9949
9950 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9951
9952else
9953 fits_in_uint=
9954fi
9955
9956 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9957 if test $fits_in_uint = 1; then
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959/* end confdefs.h. */
9960#include <stddef.h>
9961 extern size_t foo;
9962 extern unsigned long foo;
9963
9964int
9965main ()
9966{
9967
9968 ;
9969 return 0;
9970}
9971_ACEOF
9972if ac_fn_c_try_compile "$LINENO"; then :
9973 fits_in_uint=0
9974fi
9975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9976 fi
9977 if test $fits_in_uint = 1; then
9978 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9979 else
9980 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9981 fi
9982 else
9983 gl_cv_size_max='((size_t)~(size_t)0)'
9984 fi
9985 fi
9986
9987fi
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9989$as_echo "$gl_cv_size_max" >&6; }
9990 if test "$gl_cv_size_max" != yes; then
9991
9992cat >>confdefs.h <<_ACEOF
9993#define SIZE_MAX $gl_cv_size_max
9994_ACEOF
9995
9996 fi
9997
9998
9999
10000
10001 for ac_header in stdint.h
10002do :
10003 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10004if test "x$ac_cv_header_stdint_h" = xyes; then :
10005 cat >>confdefs.h <<_ACEOF
10006#define HAVE_STDINT_H 1
10007_ACEOF
10008
10009fi
10010
10011done
10012
10013
10014
10015
10016
10017 for ac_func in $ac_func_list
10018do :
10019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10020ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10021if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10022 cat >>confdefs.h <<_ACEOF
10023#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10024_ACEOF
10025
10026fi
10027done
10028
10029
10030
10031
10032
10033
10034
10035
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10037$as_echo_n "checking for working fcntl.h... " >&6; }
10038if ${gl_cv_header_working_fcntl_h+:} false; then :
10039 $as_echo_n "(cached) " >&6
10040else
10041 if test "$cross_compiling" = yes; then :
10042 gl_cv_header_working_fcntl_h=cross-compiling
10043else
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045/* end confdefs.h. */
10046#include <sys/types.h>
10047 #include <sys/stat.h>
10048 #if HAVE_UNISTD_H
10049 # include <unistd.h>
10050 #else /* on Windows with MSVC */
10051 # include <io.h>
10052 # include <stdlib.h>
10053 # defined sleep(n) _sleep ((n) * 1000)
10054 #endif
10055 #include <fcntl.h>
10056 #ifndef O_NOATIME
10057 #define O_NOATIME 0
10058 #endif
10059 #ifndef O_NOFOLLOW
10060 #define O_NOFOLLOW 0
10061 #endif
10062 static int const constants[] =
10063 {
10064 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10065 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10066 };
10067
10068int
10069main ()
10070{
10071
10072 int result = !constants;
10073 #if HAVE_SYMLINK
10074 {
10075 static char const sym[] = "conftest.sym";
10076 if (symlink ("/dev/null", sym) != 0)
10077 result |= 2;
10078 else
10079 {
10080 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10081 if (fd >= 0)
10082 {
10083 close (fd);
10084 result |= 4;
10085 }
10086 }
10087 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10088 result |= 2;
10089 else
10090 {
10091 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10092 if (fd >= 0)
10093 {
10094 close (fd);
10095 result |= 4;
10096 }
10097 }
10098 unlink (sym);
10099 }
10100 #endif
10101 {
10102 static char const file[] = "confdefs.h";
10103 int fd = open (file, O_RDONLY | O_NOATIME);
10104 if (fd < 0)
10105 result |= 8;
10106 else
10107 {
10108 struct stat st0;
10109 if (fstat (fd, &st0) != 0)
10110 result |= 16;
10111 else
10112 {
10113 char c;
10114 sleep (1);
10115 if (read (fd, &c, 1) != 1)
10116 result |= 24;
10117 else
10118 {
10119 if (close (fd) != 0)
10120 result |= 32;
10121 else
10122 {
10123 struct stat st1;
10124 if (stat (file, &st1) != 0)
10125 result |= 40;
10126 else
10127 if (st0.st_atime != st1.st_atime)
10128 result |= 64;
10129 }
10130 }
10131 }
10132 }
10133 }
10134 return result;
10135 ;
10136 return 0;
10137}
10138_ACEOF
10139if ac_fn_c_try_run "$LINENO"; then :
10140 gl_cv_header_working_fcntl_h=yes
10141else
10142 case $? in #(
10143 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10144 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10145 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10146 *) gl_cv_header_working_fcntl_h='no';;
10147 esac
10148fi
10149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10150 conftest.$ac_objext conftest.beam conftest.$ac_ext
10151fi
10152
10153fi
10154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10155$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10156
10157 case $gl_cv_header_working_fcntl_h in #(
10158 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10159 *) ac_val=1;;
10160 esac
10161
10162cat >>confdefs.h <<_ACEOF
10163#define HAVE_WORKING_O_NOATIME $ac_val
10164_ACEOF
10165
10166
10167 case $gl_cv_header_working_fcntl_h in #(
10168 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10169 *) ac_val=1;;
10170 esac
10171
10172cat >>confdefs.h <<_ACEOF
10173#define HAVE_WORKING_O_NOFOLLOW $ac_val
10174_ACEOF
10175
10176
10177
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10179$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10180if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182else
10183 gt_save_LIBS="$LIBS"
10184 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186/* end confdefs.h. */
10187#include <CoreFoundation/CFPreferences.h>
10188int
10189main ()
10190{
10191CFPreferencesCopyAppValue(NULL, NULL)
10192 ;
10193 return 0;
10194}
10195_ACEOF
10196if ac_fn_c_try_link "$LINENO"; then :
10197 gt_cv_func_CFPreferencesCopyAppValue=yes
10198else
10199 gt_cv_func_CFPreferencesCopyAppValue=no
10200fi
10201rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203 LIBS="$gt_save_LIBS"
10204fi
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10206$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10207 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10208
10209$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10210
10211 fi
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10213$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10214if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216else
10217 gt_save_LIBS="$LIBS"
10218 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220/* end confdefs.h. */
10221#include <CoreFoundation/CFLocale.h>
10222int
10223main ()
10224{
10225CFLocaleCopyCurrent();
10226 ;
10227 return 0;
10228}
10229_ACEOF
10230if ac_fn_c_try_link "$LINENO"; then :
10231 gt_cv_func_CFLocaleCopyCurrent=yes
10232else
10233 gt_cv_func_CFLocaleCopyCurrent=no
10234fi
10235rm -f core conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
10237 LIBS="$gt_save_LIBS"
10238fi
10239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10240$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10241 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10242
10243$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10244
10245 fi
10246 INTL_MACOSX_LIBS=
10247 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10248 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10249 fi
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260 case "$enable_silent_rules" in
10261 yes) INTL_DEFAULT_VERBOSITY=0;;
10262 no) INTL_DEFAULT_VERBOSITY=1;;
10263 *) INTL_DEFAULT_VERBOSITY=1;;
10264 esac
10265
10266
10267 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10268if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10269
10270else
10271
10272$as_echo "#define ptrdiff_t long" >>confdefs.h
10273
10274
10275fi
10276
10277 for ac_header in features.h stddef.h stdlib.h string.h
10278do :
10279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10280ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10281if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10282 cat >>confdefs.h <<_ACEOF
10283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10284_ACEOF
10285
10286fi
10287
10288done
10289
10290 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10291 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10292do :
10293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10294ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10295if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10296 cat >>confdefs.h <<_ACEOF
10297#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10298_ACEOF
10299
10300fi
10301done
10302
10303
10304 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10305"
10306if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10307 ac_have_decl=1
10308else
10309 ac_have_decl=0
10310fi
10311
10312cat >>confdefs.h <<_ACEOF
10313#define HAVE_DECL__SNPRINTF $ac_have_decl
10314_ACEOF
10315ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10316"
10317if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10318 ac_have_decl=1
10319else
10320 ac_have_decl=0
10321fi
10322
10323cat >>confdefs.h <<_ACEOF
10324#define HAVE_DECL__SNWPRINTF $ac_have_decl
10325_ACEOF
10326
10327
10328 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10329"
10330if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10331 ac_have_decl=1
10332else
10333 ac_have_decl=0
10334fi
10335
10336cat >>confdefs.h <<_ACEOF
10337#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10338_ACEOF
10339
10340
10341 case $gt_cv_func_printf_posix in
10342 *yes) HAVE_POSIX_PRINTF=1 ;;
10343 *) HAVE_POSIX_PRINTF=0 ;;
10344 esac
10345
10346 if test "$ac_cv_func_asprintf" = yes; then
10347 HAVE_ASPRINTF=1
10348 else
10349 HAVE_ASPRINTF=0
10350 fi
10351
10352 if test "$ac_cv_func_snprintf" = yes; then
10353 HAVE_SNPRINTF=1
10354 else
10355 HAVE_SNPRINTF=0
10356 fi
10357
10358 if test "$ac_cv_func_newlocale" = yes; then
10359 HAVE_NEWLOCALE=1
10360 else
10361 HAVE_NEWLOCALE=0
10362 fi
10363
10364 if test "$ac_cv_func_wprintf" = yes; then
10365 HAVE_WPRINTF=1
10366 else
10367 HAVE_WPRINTF=0
10368 fi
10369
10370
10371
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10373$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10374if ${am_cv_langinfo_codeset+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376else
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h. */
10379#include <langinfo.h>
10380int
10381main ()
10382{
10383char* cs = nl_langinfo(CODESET); return !cs;
10384 ;
10385 return 0;
10386}
10387_ACEOF
10388if ac_fn_c_try_link "$LINENO"; then :
10389 am_cv_langinfo_codeset=yes
10390else
10391 am_cv_langinfo_codeset=no
10392fi
10393rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395
10396fi
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10398$as_echo "$am_cv_langinfo_codeset" >&6; }
10399 if test $am_cv_langinfo_codeset = yes; then
10400
10401$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10402
10403 fi
10404
10405
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10407$as_echo_n "checking for LC_MESSAGES... " >&6; }
10408if ${gt_cv_val_LC_MESSAGES+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410else
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412/* end confdefs.h. */
10413#include <locale.h>
10414int
10415main ()
10416{
10417return LC_MESSAGES
10418 ;
10419 return 0;
10420}
10421_ACEOF
10422if ac_fn_c_try_link "$LINENO"; then :
10423 gt_cv_val_LC_MESSAGES=yes
10424else
10425 gt_cv_val_LC_MESSAGES=no
10426fi
10427rm -f core conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext conftest.$ac_ext
10429fi
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10431$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10432 if test $gt_cv_val_LC_MESSAGES = yes; then
10433
10434$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10435
10436 fi
10437
10438
10439 if test "$enable_shared" = yes; then
10440 case "$host_os" in
10441 mingw* | cygwin*) is_woe32dll=yes ;;
10442 *) is_woe32dll=no ;;
10443 esac
10444 else
10445 is_woe32dll=no
10446 fi
10447 WOE32DLL=$is_woe32dll
10448
10449
10450 case "$host_os" in
10451 mingw* | cygwin*) is_woe32=yes ;;
10452 *) is_woe32=no ;;
10453 esac
10454 WOE32=$is_woe32
10455
10456 if test $WOE32 = yes; then
10457 if test -n "$ac_tool_prefix"; then
10458 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10459set dummy ${ac_tool_prefix}windres; ac_word=$2
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461$as_echo_n "checking for $ac_word... " >&6; }
10462if ${ac_cv_prog_WINDRES+:} false; then :
10463 $as_echo_n "(cached) " >&6
10464else
10465 if test -n "$WINDRES"; then
10466 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10467else
10468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469for as_dir in $PATH
10470do
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10475 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10477 break 2
10478 fi
10479done
10480 done
10481IFS=$as_save_IFS
10482
10483fi
10484fi
10485WINDRES=$ac_cv_prog_WINDRES
10486if test -n "$WINDRES"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10488$as_echo "$WINDRES" >&6; }
10489else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491$as_echo "no" >&6; }
10492fi
10493
10494
10495fi
10496if test -z "$ac_cv_prog_WINDRES"; then
10497 ac_ct_WINDRES=$WINDRES
10498 # Extract the first word of "windres", so it can be a program name with args.
10499set dummy windres; ac_word=$2
10500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501$as_echo_n "checking for $ac_word... " >&6; }
10502if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10503 $as_echo_n "(cached) " >&6
10504else
10505 if test -n "$ac_ct_WINDRES"; then
10506 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10507else
10508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509for as_dir in $PATH
10510do
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
10514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10515 ac_cv_prog_ac_ct_WINDRES="windres"
10516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 break 2
10518 fi
10519done
10520 done
10521IFS=$as_save_IFS
10522
10523fi
10524fi
10525ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10526if test -n "$ac_ct_WINDRES"; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10528$as_echo "$ac_ct_WINDRES" >&6; }
10529else
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531$as_echo "no" >&6; }
10532fi
10533
10534 if test "x$ac_ct_WINDRES" = x; then
10535 WINDRES=""
10536 else
10537 case $cross_compiling:$ac_tool_warned in
10538yes:)
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10541ac_tool_warned=yes ;;
10542esac
10543 WINDRES=$ac_ct_WINDRES
10544 fi
10545else
10546 WINDRES="$ac_cv_prog_WINDRES"
10547fi
10548
10549 fi
10550
10551 case "$host_os" in
10552 hpux*) LTLIBC="" ;;
10553 *) LTLIBC="-lc" ;;
10554 esac
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10583$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10584if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586else
10587 gt_save_LIBS="$LIBS"
10588 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590/* end confdefs.h. */
10591#include <CoreFoundation/CFPreferences.h>
10592int
10593main ()
10594{
10595CFPreferencesCopyAppValue(NULL, NULL)
10596 ;
10597 return 0;
10598}
10599_ACEOF
10600if ac_fn_c_try_link "$LINENO"; then :
10601 gt_cv_func_CFPreferencesCopyAppValue=yes
10602else
10603 gt_cv_func_CFPreferencesCopyAppValue=no
10604fi
10605rm -f core conftest.err conftest.$ac_objext \
10606 conftest$ac_exeext conftest.$ac_ext
10607 LIBS="$gt_save_LIBS"
10608fi
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10610$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10611 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10612
10613$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10614
10615 fi
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10617$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10618if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10619 $as_echo_n "(cached) " >&6
10620else
10621 gt_save_LIBS="$LIBS"
10622 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624/* end confdefs.h. */
10625#include <CoreFoundation/CFLocale.h>
10626int
10627main ()
10628{
10629CFLocaleCopyCurrent();
10630 ;
10631 return 0;
10632}
10633_ACEOF
10634if ac_fn_c_try_link "$LINENO"; then :
10635 gt_cv_func_CFLocaleCopyCurrent=yes
10636else
10637 gt_cv_func_CFLocaleCopyCurrent=no
10638fi
10639rm -f core conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10641 LIBS="$gt_save_LIBS"
10642fi
10643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10644$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10645 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10646
10647$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10648
10649 fi
10650 INTL_MACOSX_LIBS=
10651 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10652 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10653 fi
10654
10655
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010656
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010657
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010658
10659
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010660 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010661 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010662
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010663 LIBINTL=
10664 LTLIBINTL=
10665 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010666
Theodore Ts'o93613952014-07-03 23:44:13 -040010667 case " $gt_needs " in
10668 *" need-formatstring-macros "*) gt_api_version=3 ;;
10669 *" need-ngettext "*) gt_api_version=2 ;;
10670 *) gt_api_version=1 ;;
10671 esac
10672 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10673 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10674
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010675 if test "$USE_NLS" = "yes"; then
10676 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010677
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010679$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010680
Theodore Ts'oe1052142006-10-21 21:46:47 -040010681# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010682if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010683 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010684else
10685 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010686fi
10687
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010689$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010690
10691 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10692 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010693
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010694
Theodore Ts'o93613952014-07-03 23:44:13 -040010695 if test $gt_api_version -ge 3; then
10696 gt_revision_test_code='
10697#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10698#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10699#endif
10700typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10701'
10702 else
10703 gt_revision_test_code=
10704 fi
10705 if test $gt_api_version -ge 2; then
10706 gt_expression_test_code=' + * ngettext ("", "", 0)'
10707 else
10708 gt_expression_test_code=
10709 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010710
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010712$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010713if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010714 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010715else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010717/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010718
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010719#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010720$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010721extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010722extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010723
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010724int
10725main ()
10726{
Theodore Ts'o93613952014-07-03 23:44:13 -040010727
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010728bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010729return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10730
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010731 ;
10732 return 0;
10733}
10734_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010735if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010736 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010737else
Theodore Ts'o93613952014-07-03 23:44:13 -040010738 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010739fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010740rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010742fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010743eval ac_res=\$$gt_func_gnugettext_libc
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10745$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010746
Theodore Ts'o93613952014-07-03 23:44:13 -040010747 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10748
10749
10750
10751
10752
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010753
10754
10755
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010756 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010757
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010758 acl_save_prefix="$prefix"
10759 prefix="$acl_final_prefix"
10760 acl_save_exec_prefix="$exec_prefix"
10761 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010762
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010763 eval additional_includedir=\"$includedir\"
10764 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010765
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010766 exec_prefix="$acl_save_exec_prefix"
10767 prefix="$acl_save_prefix"
10768
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010769
Theodore Ts'oe1052142006-10-21 21:46:47 -040010770# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010771if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010772 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010773 if test "X$withval" = "Xno"; then
10774 use_additional=no
10775 else
10776 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010777
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010778 acl_save_prefix="$prefix"
10779 prefix="$acl_final_prefix"
10780 acl_save_exec_prefix="$exec_prefix"
10781 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010782
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010783 eval additional_includedir=\"$includedir\"
10784 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010785
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010786 exec_prefix="$acl_save_exec_prefix"
10787 prefix="$acl_save_prefix"
10788
10789 else
10790 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010791 additional_libdir="$withval/$acl_libdirstem"
10792 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10793 && ! test -d "$withval/$acl_libdirstem"; then
10794 additional_libdir="$withval/$acl_libdirstem2"
10795 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010796 fi
10797 fi
10798
Theodore Ts'oe1052142006-10-21 21:46:47 -040010799fi
10800
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010801 LIBINTL=
10802 LTLIBINTL=
10803 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010804 LIBINTL_PREFIX=
10805 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010806 rpathdirs=
10807 ltrpathdirs=
10808 names_already_handled=
10809 names_next_round='intl '
10810 while test -n "$names_next_round"; do
10811 names_this_round="$names_next_round"
10812 names_next_round=
10813 for name in $names_this_round; do
10814 already_handled=
10815 for n in $names_already_handled; do
10816 if test "$n" = "$name"; then
10817 already_handled=yes
10818 break
10819 fi
10820 done
10821 if test -z "$already_handled"; then
10822 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010823 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010824 eval value=\"\$HAVE_LIB$uppername\"
10825 if test -n "$value"; then
10826 if test "$value" = yes; then
10827 eval value=\"\$LIB$uppername\"
10828 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10829 eval value=\"\$LTLIB$uppername\"
10830 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10831 else
10832 :
10833 fi
10834 else
10835 found_dir=
10836 found_la=
10837 found_so=
10838 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010839 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10840 if test -n "$acl_shlibext"; then
10841 shrext=".$acl_shlibext" # typically: shrext=.so
10842 else
10843 shrext=
10844 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010845 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010846 dir="$additional_libdir"
10847 if test -n "$acl_shlibext"; then
10848 if test -f "$dir/$libname$shrext"; then
10849 found_dir="$dir"
10850 found_so="$dir/$libname$shrext"
10851 else
10852 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10853 ver=`(cd "$dir" && \
10854 for f in "$libname$shrext".*; do echo "$f"; done \
10855 | sed -e "s,^$libname$shrext\\\\.,," \
10856 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10857 | sed 1q ) 2>/dev/null`
10858 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10859 found_dir="$dir"
10860 found_so="$dir/$libname$shrext.$ver"
10861 fi
10862 else
10863 eval library_names=\"$acl_library_names_spec\"
10864 for f in $library_names; do
10865 if test -f "$dir/$f"; then
10866 found_dir="$dir"
10867 found_so="$dir/$f"
10868 break
10869 fi
10870 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010871 fi
10872 fi
10873 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010874 if test "X$found_dir" = "X"; then
10875 if test -f "$dir/$libname.$acl_libext"; then
10876 found_dir="$dir"
10877 found_a="$dir/$libname.$acl_libext"
10878 fi
10879 fi
10880 if test "X$found_dir" != "X"; then
10881 if test -f "$dir/$libname.la"; then
10882 found_la="$dir/$libname.la"
10883 fi
10884 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010885 fi
10886 if test "X$found_dir" = "X"; then
10887 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010888
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010889 acl_save_prefix="$prefix"
10890 prefix="$acl_final_prefix"
10891 acl_save_exec_prefix="$exec_prefix"
10892 exec_prefix="$acl_final_exec_prefix"
10893 eval x=\"$x\"
10894 exec_prefix="$acl_save_exec_prefix"
10895 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010896
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010897 case "$x" in
10898 -L*)
10899 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010900 if test -n "$acl_shlibext"; then
10901 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010902 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010903 found_so="$dir/$libname$shrext"
10904 else
10905 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10906 ver=`(cd "$dir" && \
10907 for f in "$libname$shrext".*; do echo "$f"; done \
10908 | sed -e "s,^$libname$shrext\\\\.,," \
10909 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10910 | sed 1q ) 2>/dev/null`
10911 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10912 found_dir="$dir"
10913 found_so="$dir/$libname$shrext.$ver"
10914 fi
10915 else
10916 eval library_names=\"$acl_library_names_spec\"
10917 for f in $library_names; do
10918 if test -f "$dir/$f"; then
10919 found_dir="$dir"
10920 found_so="$dir/$f"
10921 break
10922 fi
10923 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010924 fi
10925 fi
10926 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010927 if test "X$found_dir" = "X"; then
10928 if test -f "$dir/$libname.$acl_libext"; then
10929 found_dir="$dir"
10930 found_a="$dir/$libname.$acl_libext"
10931 fi
10932 fi
10933 if test "X$found_dir" != "X"; then
10934 if test -f "$dir/$libname.la"; then
10935 found_la="$dir/$libname.la"
10936 fi
10937 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010938 ;;
10939 esac
10940 if test "X$found_dir" != "X"; then
10941 break
10942 fi
10943 done
10944 fi
10945 if test "X$found_dir" != "X"; then
10946 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10947 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010948 if test "$enable_rpath" = no \
10949 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10950 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010951 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10952 else
10953 haveit=
10954 for x in $ltrpathdirs; do
10955 if test "X$x" = "X$found_dir"; then
10956 haveit=yes
10957 break
10958 fi
10959 done
10960 if test -z "$haveit"; then
10961 ltrpathdirs="$ltrpathdirs $found_dir"
10962 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010963 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010964 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10965 else
Theodore Ts'o93613952014-07-03 23:44:13 -040010966 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10968 haveit=
10969 for x in $rpathdirs; do
10970 if test "X$x" = "X$found_dir"; then
10971 haveit=yes
10972 break
10973 fi
10974 done
10975 if test -z "$haveit"; then
10976 rpathdirs="$rpathdirs $found_dir"
10977 fi
10978 else
10979 haveit=
10980 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010981
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010982 acl_save_prefix="$prefix"
10983 prefix="$acl_final_prefix"
10984 acl_save_exec_prefix="$exec_prefix"
10985 exec_prefix="$acl_final_exec_prefix"
10986 eval x=\"$x\"
10987 exec_prefix="$acl_save_exec_prefix"
10988 prefix="$acl_save_prefix"
10989
10990 if test "X$x" = "X-L$found_dir"; then
10991 haveit=yes
10992 break
10993 fi
10994 done
10995 if test -z "$haveit"; then
10996 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10997 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010998 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010999 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11000 else
11001 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11002 fi
11003 fi
11004 fi
11005 fi
11006 else
11007 if test "X$found_a" != "X"; then
11008 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11009 else
11010 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11011 fi
11012 fi
11013 additional_includedir=
11014 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011015 */$acl_libdirstem | */$acl_libdirstem/)
11016 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11017 if test "$name" = 'intl'; then
11018 LIBINTL_PREFIX="$basedir"
11019 fi
11020 additional_includedir="$basedir/include"
11021 ;;
11022 */$acl_libdirstem2 | */$acl_libdirstem2/)
11023 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11024 if test "$name" = 'intl'; then
11025 LIBINTL_PREFIX="$basedir"
11026 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011027 additional_includedir="$basedir/include"
11028 ;;
11029 esac
11030 if test "X$additional_includedir" != "X"; then
11031 if test "X$additional_includedir" != "X/usr/include"; then
11032 haveit=
11033 if test "X$additional_includedir" = "X/usr/local/include"; then
11034 if test -n "$GCC"; then
11035 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011036 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011037 esac
11038 fi
11039 fi
11040 if test -z "$haveit"; then
11041 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011042
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011043 acl_save_prefix="$prefix"
11044 prefix="$acl_final_prefix"
11045 acl_save_exec_prefix="$exec_prefix"
11046 exec_prefix="$acl_final_exec_prefix"
11047 eval x=\"$x\"
11048 exec_prefix="$acl_save_exec_prefix"
11049 prefix="$acl_save_prefix"
11050
11051 if test "X$x" = "X-I$additional_includedir"; then
11052 haveit=yes
11053 break
11054 fi
11055 done
11056 if test -z "$haveit"; then
11057 if test -d "$additional_includedir"; then
11058 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11059 fi
11060 fi
11061 fi
11062 fi
11063 fi
11064 if test -n "$found_la"; then
11065 save_libdir="$libdir"
11066 case "$found_la" in
11067 */* | *\\*) . "$found_la" ;;
11068 *) . "./$found_la" ;;
11069 esac
11070 libdir="$save_libdir"
11071 for dep in $dependency_libs; do
11072 case "$dep" in
11073 -L*)
11074 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011075 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11076 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011077 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011078 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11079 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011080 if test -n "$GCC"; then
11081 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011082 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011083 esac
11084 fi
11085 fi
11086 if test -z "$haveit"; then
11087 haveit=
11088 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011089
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011090 acl_save_prefix="$prefix"
11091 prefix="$acl_final_prefix"
11092 acl_save_exec_prefix="$exec_prefix"
11093 exec_prefix="$acl_final_exec_prefix"
11094 eval x=\"$x\"
11095 exec_prefix="$acl_save_exec_prefix"
11096 prefix="$acl_save_prefix"
11097
11098 if test "X$x" = "X-L$additional_libdir"; then
11099 haveit=yes
11100 break
11101 fi
11102 done
11103 if test -z "$haveit"; then
11104 if test -d "$additional_libdir"; then
11105 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11106 fi
11107 fi
11108 haveit=
11109 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011110
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011111 acl_save_prefix="$prefix"
11112 prefix="$acl_final_prefix"
11113 acl_save_exec_prefix="$exec_prefix"
11114 exec_prefix="$acl_final_exec_prefix"
11115 eval x=\"$x\"
11116 exec_prefix="$acl_save_exec_prefix"
11117 prefix="$acl_save_prefix"
11118
11119 if test "X$x" = "X-L$additional_libdir"; then
11120 haveit=yes
11121 break
11122 fi
11123 done
11124 if test -z "$haveit"; then
11125 if test -d "$additional_libdir"; then
11126 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11127 fi
11128 fi
11129 fi
11130 fi
11131 ;;
11132 -R*)
11133 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11134 if test "$enable_rpath" != no; then
11135 haveit=
11136 for x in $rpathdirs; do
11137 if test "X$x" = "X$dir"; then
11138 haveit=yes
11139 break
11140 fi
11141 done
11142 if test -z "$haveit"; then
11143 rpathdirs="$rpathdirs $dir"
11144 fi
11145 haveit=
11146 for x in $ltrpathdirs; do
11147 if test "X$x" = "X$dir"; then
11148 haveit=yes
11149 break
11150 fi
11151 done
11152 if test -z "$haveit"; then
11153 ltrpathdirs="$ltrpathdirs $dir"
11154 fi
11155 fi
11156 ;;
11157 -l*)
11158 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11159 ;;
11160 *.la)
11161 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11162 ;;
11163 *)
11164 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11166 ;;
11167 esac
11168 done
11169 fi
11170 else
11171 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11172 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11173 fi
11174 fi
11175 fi
11176 done
11177 done
11178 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011179 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011180 alldirs=
11181 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011182 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011183 done
11184 acl_save_libdir="$libdir"
11185 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011186 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011187 libdir="$acl_save_libdir"
11188 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11189 else
11190 for found_dir in $rpathdirs; do
11191 acl_save_libdir="$libdir"
11192 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011193 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011194 libdir="$acl_save_libdir"
11195 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11196 done
11197 fi
11198 fi
11199 if test "X$ltrpathdirs" != "X"; then
11200 for found_dir in $ltrpathdirs; do
11201 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11202 done
11203 fi
11204
Theodore Ts'o93613952014-07-03 23:44:13 -040011205
11206
11207
11208
11209
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011211$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011212if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011213 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011214else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011215 gt_save_CPPFLAGS="$CPPFLAGS"
11216 CPPFLAGS="$CPPFLAGS $INCINTL"
11217 gt_save_LIBS="$LIBS"
11218 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011220/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011221
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011222#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011223$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011224extern int _nl_msg_cat_cntr;
11225extern
11226#ifdef __cplusplus
11227"C"
11228#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011229const char *_nl_expand_alias (const char *);
11230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011231int
11232main ()
11233{
Theodore Ts'o93613952014-07-03 23:44:13 -040011234
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011235bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011236return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11237
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011238 ;
11239 return 0;
11240}
11241_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011242if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011243 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011244else
Theodore Ts'o93613952014-07-03 23:44:13 -040011245 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011246fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011247rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011249 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011250 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011252/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011253
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011254#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011255$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011256extern int _nl_msg_cat_cntr;
11257extern
11258#ifdef __cplusplus
11259"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011260#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011261const char *_nl_expand_alias (const char *);
11262
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011263int
11264main ()
11265{
Theodore Ts'o93613952014-07-03 23:44:13 -040011266
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011267bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011268return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011270 ;
11271 return 0;
11272}
11273_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011274if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011275 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011276 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11277 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011278
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011279fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011280rm -f core conftest.err conftest.$ac_objext \
11281 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011282 fi
11283 CPPFLAGS="$gt_save_CPPFLAGS"
11284 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011285fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011286eval ac_res=\$$gt_func_gnugettext_libintl
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11288$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011289 fi
11290
Theodore Ts'o93613952014-07-03 23:44:13 -040011291 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11292 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011293 && test "$PACKAGE" != gettext-runtime \
11294 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011295 gt_use_preinstalled_gnugettext=yes
11296 else
11297 LIBINTL=
11298 LTLIBINTL=
11299 INCINTL=
11300 fi
11301
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011302
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011303 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11304 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011305 fi
11306 fi
11307
11308 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011309 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011310 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011311 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11312 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011313 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011314 fi
11315
Theodore Ts'o93613952014-07-03 23:44:13 -040011316 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011317 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11318 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11319 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011320 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011321
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011322
Theodore Ts'o93613952014-07-03 23:44:13 -040011323 if test -n "$INTL_MACOSX_LIBS"; then
11324 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11325 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11326 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11327 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11328 fi
11329 fi
11330
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011331 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11332 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011333
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011334$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011335
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011336 else
11337 USE_NLS=no
11338 fi
11339 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011340
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011342$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011344$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011345 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011347$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011348 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011349 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011350 gt_source="external libintl"
11351 else
11352 gt_source="libc"
11353 fi
11354 else
11355 gt_source="included intl directory"
11356 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011358$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011359 fi
11360
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011361 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011362
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011363 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011364 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011366$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011368$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011369
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011370 for element in $INCINTL; do
11371 haveit=
11372 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011373
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011374 acl_save_prefix="$prefix"
11375 prefix="$acl_final_prefix"
11376 acl_save_exec_prefix="$exec_prefix"
11377 exec_prefix="$acl_final_exec_prefix"
11378 eval x=\"$x\"
11379 exec_prefix="$acl_save_exec_prefix"
11380 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011381
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011382 if test "X$x" = "X$element"; then
11383 haveit=yes
11384 break
11385 fi
11386 done
11387 if test -z "$haveit"; then
11388 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11389 fi
11390 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011391
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011392 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011393
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011394
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011395$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011396
11397
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011398$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011399
11400 fi
11401
11402 POSUB=po
11403 fi
11404
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011405
11406 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011407 BUILD_INCLUDED_LIBINTL=yes
11408 fi
11409
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011410
11411
11412
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011413
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011414 nls_cv_header_intl=
11415 nls_cv_header_libgt=
11416
11417 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011418
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011419
11420 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011421
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011422
11423 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011424
11425
Theodore Ts'o93613952014-07-03 23:44:13 -040011426 INTLOBJS=
11427 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011428 INTLOBJS="\$(GETTOBJS)"
11429 fi
11430
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011431
11432 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011433
11434
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011435
11436 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011437
11438
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011439
11440
11441
11442
11443
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011445$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11446set x ${MAKE-make}
11447ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011448if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011449 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011450else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011451 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011452SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011453all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011454 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011455_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011456# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011457case `${MAKE-make} -f conftest.make 2>/dev/null` in
11458 *@@@%%%=?*=@@@%%%*)
11459 eval ac_cv_prog_make_${ac_make}_set=yes;;
11460 *)
11461 eval ac_cv_prog_make_${ac_make}_set=no;;
11462esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011463rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011464fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011465if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011467$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011468 SET_MAKE=
11469else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011471$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011472 SET_MAKE="MAKE=${MAKE-make}"
11473fi
11474
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011476$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011477if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011478 $as_echo_n "(cached) " >&6
11479else
11480 _cv_gnu_make_command='' ;
11481 for a in "$MAKE" make gmake gnumake ; do
11482 if test -z "$a" ; then continue ; fi ;
11483 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11484 _cv_gnu_make_command=$a ;
11485 break;
11486 fi
11487 done ;
11488
11489fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011491$as_echo "$_cv_gnu_make_command" >&6; } ;
11492 if test "x$_cv_gnu_make_command" != "x" ; then
11493 ifGNUmake='' ;
11494 ifNotGNUmake='#' ;
11495 else
11496 ifGNUmake='#' ;
11497 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011499$as_echo "\"Not found\"" >&6; };
11500 fi
11501
11502
11503
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011504# Extract the first word of "ln", so it can be a program name with args.
11505set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011507$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011508if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011509 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011510else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011511 case $LN in
11512 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011513 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11514 ;;
11515 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011521 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011523 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011525 break 2
11526 fi
11527done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011528 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011529IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011530
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011531 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11532 ;;
11533esac
11534fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011535LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011536if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011538$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011541$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011542fi
11543
Theodore Ts'oe1052142006-10-21 21:46:47 -040011544
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011546$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011547LN_S=$as_ln_s
11548if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011550$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011551else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011553$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011554fi
11555
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011556# Extract the first word of "mv", so it can be a program name with args.
11557set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011559$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011560if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011561 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011562else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011563 case $MV in
11564 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011565 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11566 ;;
11567 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569for as_dir in $PATH
11570do
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011573 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011575 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011577 break 2
11578 fi
11579done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011580 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011581IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011582
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011583 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11584 ;;
11585esac
11586fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011587MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011588if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011590$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011591else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011593$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011594fi
11595
Theodore Ts'oe1052142006-10-21 21:46:47 -040011596
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011597# Extract the first word of "cp", so it can be a program name with args.
11598set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011600$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011601if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011602 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011603else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011604 case $CP in
11605 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011606 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11607 ;;
11608 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610for as_dir in $PATH
11611do
11612 IFS=$as_save_IFS
11613 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011614 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011616 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011618 break 2
11619 fi
11620done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011621 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011622IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011623
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011624 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11625 ;;
11626esac
11627fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011628CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011629if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011631$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011632else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011634$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011635fi
11636
Theodore Ts'oe1052142006-10-21 21:46:47 -040011637
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011638# Extract the first word of "rm", so it can be a program name with args.
11639set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011641$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011642if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011643 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011644else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011645 case $RM in
11646 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011647 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11648 ;;
11649 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651for as_dir in $PATH
11652do
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011655 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011657 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011659 break 2
11660 fi
11661done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011662 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011663IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011664
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011665 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11666 ;;
11667esac
11668fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011669RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011670if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011672$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011673else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011675$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011676fi
11677
Theodore Ts'oe1052142006-10-21 21:46:47 -040011678
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011679# Extract the first word of "chmod", so it can be a program name with args.
11680set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011682$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011683if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011684 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011685else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011686 case $CHMOD in
11687 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011688 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11689 ;;
11690 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692for as_dir in $PATH
11693do
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011696 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011698 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011700 break 2
11701 fi
11702done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011703 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011704IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011705
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011706 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11707 ;;
11708esac
11709fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011710CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011711if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011713$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011714else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011716$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011717fi
11718
Theodore Ts'oe1052142006-10-21 21:46:47 -040011719
Theodore Ts'o32237012005-01-17 19:13:39 -050011720for ac_prog in gawk mawk nawk awk
11721do
11722 # Extract the first word of "$ac_prog", so it can be a program name with args.
11723set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011725$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011726if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011727 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011728else
Theodore Ts'o32237012005-01-17 19:13:39 -050011729 if test -n "$AWK"; then
11730 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11731else
11732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011733for as_dir in $PATH
11734do
11735 IFS=$as_save_IFS
11736 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011737 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011739 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011741 break 2
11742 fi
11743done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011744 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011745IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011746
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011747fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011748fi
11749AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011750if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011752$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011753else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011755$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011756fi
11757
Theodore Ts'oe1052142006-10-21 21:46:47 -040011758
Theodore Ts'o32237012005-01-17 19:13:39 -050011759 test -n "$AWK" && break
11760done
11761
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011763$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011764if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011765 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011766else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011767 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11768 then ac_cv_path_EGREP="$GREP -E"
11769 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011770 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011771 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011772 # Loop through the user's path and test for each of PROGNAME-LIST
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011774for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11775do
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011778 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011781 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011782# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011783 # Check for GNU $ac_path_EGREP
11784case `"$ac_path_EGREP" --version 2>&1` in
11785*GNU*)
11786 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11787*)
11788 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011789 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011790 while :
11791 do
11792 cat "conftest.in" "conftest.in" >"conftest.tmp"
11793 mv "conftest.tmp" "conftest.in"
11794 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011795 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011796 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011798 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011799 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11800 # Best one so far, save it but keep looking for a better one
11801 ac_cv_path_EGREP="$ac_path_EGREP"
11802 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011803 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011804 # 10*(2^10) chars as input seems more than enough
11805 test $ac_count -gt 10 && break
11806 done
11807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11808esac
11809
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011810 $ac_path_EGREP_found && break 3
11811 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011812 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011813 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011814IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011815 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011816 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 +010011817 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011818else
11819 ac_cv_path_EGREP=$EGREP
11820fi
11821
Theodore Ts'oe1052142006-10-21 21:46:47 -040011822 fi
11823fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011825$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011826 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011827
11828
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011829# Extract the first word of "sed", so it can be a program name with args.
11830set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011832$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011833if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011834 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011835else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011836 case $SED in
11837 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011838 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11839 ;;
11840 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842for as_dir in $PATH
11843do
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011846 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011848 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011850 break 2
11851 fi
11852done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011853 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011854IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011855
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011856 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11857 ;;
11858esac
11859fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011860SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011861if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011863$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011864else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011866$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011867fi
11868
Theodore Ts'oe1052142006-10-21 21:46:47 -040011869
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011870# Extract the first word of "perl", so it can be a program name with args.
11871set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011873$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011874if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011875 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011876else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011877 case $PERL in
11878 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011879 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11880 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011881 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883for as_dir in $PATH
11884do
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011887 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011889 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011891 break 2
11892 fi
11893done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011894 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011895IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011897 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11898 ;;
11899esac
11900fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011901PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011902if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011904$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011905else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011907$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011908fi
11909
Theodore Ts'oe1052142006-10-21 21:46:47 -040011910
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011911# Extract the first word of "ldconfig", so it can be a program name with args.
11912set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011914$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011915if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011916 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011917else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011918 case $LDCONFIG in
11919 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011920 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11921 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011922 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924for as_dir in $PATH
11925do
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011928 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011930 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011932 break 2
11933 fi
11934done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011935 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011936IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011937
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011938 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11939 ;;
11940esac
11941fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011942LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011943if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011945$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011946else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011948$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011949fi
11950
Theodore Ts'oe1052142006-10-21 21:46:47 -040011951
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011952if test -n "$ac_tool_prefix"; then
11953 # 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 +000011954set dummy ${ac_tool_prefix}ar; 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011957if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011958 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011959else
11960 if test -n "$AR"; then
11961 ac_cv_prog_AR="$AR" # Let the user override the test.
11962else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964for as_dir in $PATH
11965do
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011968 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011970 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011972 break 2
11973 fi
11974done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011975 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011976IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011977
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011978fi
11979fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011980AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011981if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011983$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011984else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011986$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011987fi
11988
Theodore Ts'oe1052142006-10-21 21:46:47 -040011989
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011990fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011991if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011992 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011993 # Extract the first word of "ar", so it can be a program name with args.
11994set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011996$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011997if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011998 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011999else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012000 if test -n "$ac_ct_AR"; then
12001 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004for as_dir in $PATH
12005do
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012008 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012010 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012012 break 2
12013 fi
12014done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012015 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012016IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012017
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012018fi
12019fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020ac_ct_AR=$ac_cv_prog_ac_ct_AR
12021if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012023$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012024else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012026$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012027fi
12028
Theodore Ts'oe1052142006-10-21 21:46:47 -040012029 if test "x$ac_ct_AR" = x; then
12030 AR="ar"
12031 else
12032 case $cross_compiling:$ac_tool_warned in
12033yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012034{ $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 +010012035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012036ac_tool_warned=yes ;;
12037esac
12038 AR=$ac_ct_AR
12039 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012040else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012041 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012042fi
12043
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012044if test -n "$ac_tool_prefix"; then
12045 # 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 +000012046set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012048$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012049if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012050 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012051else
12052 if test -n "$RANLIB"; then
12053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12054else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056for as_dir in $PATH
12057do
12058 IFS=$as_save_IFS
12059 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012060 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064 break 2
12065 fi
12066done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012067 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012068IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012069
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012070fi
12071fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012072RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012073if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012075$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012076else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012078$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012079fi
12080
Theodore Ts'oe1052142006-10-21 21:46:47 -040012081
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012082fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012083if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012084 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012085 # Extract the first word of "ranlib", so it can be a program name with args.
12086set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012088$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012089if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012090 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012091else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012092 if test -n "$ac_ct_RANLIB"; then
12093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012094else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $PATH
12097do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012100 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012102 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012104 break 2
12105 fi
12106done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012107 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012108IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012109
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012110fi
12111fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012112ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12113if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012115$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012116else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012118$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012119fi
12120
Theodore Ts'oe1052142006-10-21 21:46:47 -040012121 if test "x$ac_ct_RANLIB" = x; then
12122 RANLIB=":"
12123 else
12124 case $cross_compiling:$ac_tool_warned in
12125yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012126{ $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 +010012127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012128ac_tool_warned=yes ;;
12129esac
12130 RANLIB=$ac_ct_RANLIB
12131 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012132else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012133 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012134fi
12135
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012136if test -n "$ac_tool_prefix"; then
12137 # 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 +000012138set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012140$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012141if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012142 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012143else
12144 if test -n "$STRIP"; then
12145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12146else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148for as_dir in $PATH
12149do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012152 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012154 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012156 break 2
12157 fi
12158done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012159 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012160IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012161
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012162fi
12163fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012164STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012165if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012167$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012168else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012170$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012171fi
12172
Theodore Ts'oe1052142006-10-21 21:46:47 -040012173
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012174fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012175if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012176 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012177 # Extract the first word of "strip", so it can be a program name with args.
12178set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012180$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012181if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012182 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012183else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184 if test -n "$ac_ct_STRIP"; then
12185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012186else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188for as_dir in $PATH
12189do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012192 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012194 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012196 break 2
12197 fi
12198done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012199 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012200IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012201
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012202fi
12203fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12205if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012207$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012208else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012210$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012211fi
12212
Theodore Ts'oe1052142006-10-21 21:46:47 -040012213 if test "x$ac_ct_STRIP" = x; then
12214 STRIP=":"
12215 else
12216 case $cross_compiling:$ac_tool_warned in
12217yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012218{ $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 +010012219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012220ac_tool_warned=yes ;;
12221esac
12222 STRIP=$ac_ct_STRIP
12223 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012224else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012225 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012226fi
12227
Manish Katiyar7321d942008-04-14 17:20:03 +053012228# Extract the first word of "makeinfo", so it can be a program name with args.
12229set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012231$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012232if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012233 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012234else
12235 if test -n "$MAKEINFO"; then
12236 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12237else
12238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239for as_dir in $PATH
12240do
12241 IFS=$as_save_IFS
12242 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012243 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012245 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012247 break 2
12248 fi
12249done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012250 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012251IFS=$as_save_IFS
12252
12253fi
12254fi
12255MAKEINFO=$ac_cv_prog_MAKEINFO
12256if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012258$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012259else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012261$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012262fi
12263
12264
12265if test "_$MAKEINFO" = "_"; then
12266 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12267else
12268 case "$MAKEINFO" in
12269 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012271*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012272$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012273*** Makeinfo is missing. Info documentation will not be built." >&2;}
12274 ;;
12275 *)
12276 ;;
12277 esac
12278fi
12279
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012280
Theodore Ts'o6c133521999-07-03 20:37:03 +000012281# See if we need a separate native compiler.
12282if test $cross_compiling = no; then
12283 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012284
Theodore Ts'o6c133521999-07-03 20:37:03 +000012285else
12286 for ac_prog in gcc cc
12287do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012288 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012289set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012291$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012292if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012293 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012294else
12295 if test -n "$BUILD_CC"; then
12296 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12297else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012300do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012301 IFS=$as_save_IFS
12302 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012303 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012305 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012307 break 2
12308 fi
12309done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012310 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012311IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012312
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012313fi
12314fi
12315BUILD_CC=$ac_cv_prog_BUILD_CC
12316if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012318$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012319else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012321$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012322fi
12323
Theodore Ts'oe1052142006-10-21 21:46:47 -040012324
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012325 test -n "$BUILD_CC" && break
12326done
12327
12328fi
Andreas Dilger51050542014-06-11 12:59:05 -060012329for 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 linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.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/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012330do :
12331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12332ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012333if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012334 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012335#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012336_ACEOF
12337
12338fi
12339
12340done
12341
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012342for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012343do :
12344 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012345#if HAVE_SYS_TYPES_H
12346#include <sys/types.h>
12347#endif
12348#if HAVE_SYS_SOCKET
12349#include <sys/socket.h>
12350#endif
12351
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012352"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012353if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012354 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012355#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012356_ACEOF
12357
12358fi
12359
12360done
12361
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012362for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012363do :
12364 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012365if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012366 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012367#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012368_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012369
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012370ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012371if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012372
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012373$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012374
12375fi
12376
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012377fi
12378done
12379
12380
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012381ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12382"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012383if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012384
12385$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012386
12387fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012388
Theodore Ts'o28739272014-01-03 00:26:43 -050012389ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12390if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12391
12392cat >>confdefs.h <<_ACEOF
12393#define HAVE_STRUCT_STAT_ST_ATIM 1
12394_ACEOF
12395
12396
12397fi
12398
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012399ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12400"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012401if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012402
12403$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012404
Theodore Ts'offf45482003-04-13 00:44:19 -040012405fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012406
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012407ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12408"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012409if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012410
12411$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012412
12413fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012414
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012415ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012416 #define _LARGEFILE64_SOURCE
12417 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012418"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012419if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012420
12421$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012422
12423fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012424
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012425# The cast to long int works around a bug in the HP C Compiler
12426# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12427# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12428# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012430$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012431if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012432 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012433else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012434 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 -050012435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012436else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012437 if test "$ac_cv_type_short" = yes; then
12438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012440as_fn_error 77 "cannot compute sizeof (short)
12441See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012442 else
12443 ac_cv_sizeof_short=0
12444 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012445fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012447fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012449$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012450
12451
12452
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012453cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012454#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012455_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012456
12457
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012458# The cast to long int works around a bug in the HP C Compiler
12459# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12460# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12461# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012463$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012464if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012465 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012466else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012467 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 -050012468
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012469else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012470 if test "$ac_cv_type_int" = yes; then
12471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012473as_fn_error 77 "cannot compute sizeof (int)
12474See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012475 else
12476 ac_cv_sizeof_int=0
12477 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012478fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012480fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012482$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012483
12484
12485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012486cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012487#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012488_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012489
12490
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012491# The cast to long int works around a bug in the HP C Compiler
12492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12494# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012496$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012497if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012498 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012499else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012501
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012502else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012503 if test "$ac_cv_type_long" = yes; then
12504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012506as_fn_error 77 "cannot compute sizeof (long)
12507See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012508 else
12509 ac_cv_sizeof_long=0
12510 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012511fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012512
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012513fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012515$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012516
12517
12518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012519cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012520#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012521_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012522
12523
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012524# The cast to long int works around a bug in the HP C Compiler
12525# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12526# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12527# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012529$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012530if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012531 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012533 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012535else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012536 if test "$ac_cv_type_long_long" = yes; then
12537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012539as_fn_error 77 "cannot compute sizeof (long long)
12540See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012541 else
12542 ac_cv_sizeof_long_long=0
12543 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012544fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012545
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012546fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012548$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012549
12550
12551
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012552cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012553#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012554_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012555
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012556
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012557# The cast to long int works around a bug in the HP C Compiler
12558# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12559# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12560# This bug is HP SR number 8606223364.
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12562$as_echo_n "checking size of off_t... " >&6; }
12563if ${ac_cv_sizeof_off_t+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565else
12566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12567
12568else
12569 if test "$ac_cv_type_off_t" = yes; then
12570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12572as_fn_error 77 "cannot compute sizeof (off_t)
12573See \`config.log' for more details" "$LINENO" 5; }
12574 else
12575 ac_cv_sizeof_off_t=0
12576 fi
12577fi
12578
12579fi
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12581$as_echo "$ac_cv_sizeof_off_t" >&6; }
12582
12583
12584
12585cat >>confdefs.h <<_ACEOF
12586#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12587_ACEOF
12588
12589
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012590SIZEOF_SHORT=$ac_cv_sizeof_short
12591SIZEOF_INT=$ac_cv_sizeof_int
12592SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012593SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012594SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12595
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012596
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012597
12598
12599
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012601$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012602if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012603 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012604else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012605 ac_cv_c_bigendian=unknown
12606 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012608/* end confdefs.h. */
12609#ifndef __APPLE_CC__
12610 not a universal capable compiler
12611 #endif
12612 typedef int dummy;
12613
12614_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012615if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012616
12617 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012618 # there are at least two -arch flags with different values.
12619 ac_arch=
12620 ac_prev=
12621 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12622 if test -n "$ac_prev"; then
12623 case $ac_word in
12624 i?86 | x86_64 | ppc | ppc64)
12625 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12626 ac_arch=$ac_word
12627 else
12628 ac_cv_c_bigendian=universal
12629 break
12630 fi
12631 ;;
12632 esac
12633 ac_prev=
12634 elif test "x$ac_word" = "x-arch"; then
12635 ac_prev=arch
12636 fi
12637 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012638fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 if test $ac_cv_c_bigendian = unknown; then
12641 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012643/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012644#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012645 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012646
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012647int
12648main ()
12649{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012650#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12651 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12652 && LITTLE_ENDIAN)
12653 bogus endian macros
12654 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012655
12656 ;
12657 return 0;
12658}
12659_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012660if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012661 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012663/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012664#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012665 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012667int
12668main ()
12669{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012670#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012671 not big endian
12672 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012673
12674 ;
12675 return 0;
12676}
12677_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012678if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012679 ac_cv_c_bigendian=yes
12680else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012681 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012682fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012684fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 fi
12687 if test $ac_cv_c_bigendian = unknown; then
12688 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012690/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012691#include <limits.h>
12692
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012693int
12694main ()
12695{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012696#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12697 bogus endian macros
12698 #endif
12699
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012700 ;
12701 return 0;
12702}
12703_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012704if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012705 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012707/* end confdefs.h. */
12708#include <limits.h>
12709
12710int
12711main ()
12712{
12713#ifndef _BIG_ENDIAN
12714 not big endian
12715 #endif
12716
12717 ;
12718 return 0;
12719}
12720_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012721if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012722 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012723else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012724 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012725fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012727fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12729 fi
12730 if test $ac_cv_c_bigendian = unknown; then
12731 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012732 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012733 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012735/* end confdefs.h. */
12736short int ascii_mm[] =
12737 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12738 short int ascii_ii[] =
12739 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12740 int use_ascii (int i) {
12741 return ascii_mm[i] + ascii_ii[i];
12742 }
12743 short int ebcdic_ii[] =
12744 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12745 short int ebcdic_mm[] =
12746 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12747 int use_ebcdic (int i) {
12748 return ebcdic_mm[i] + ebcdic_ii[i];
12749 }
12750 extern int foo;
12751
12752int
12753main ()
12754{
12755return use_ascii (foo) == use_ebcdic (foo);
12756 ;
12757 return 0;
12758}
12759_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012760if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012761 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12762 ac_cv_c_bigendian=yes
12763 fi
12764 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12765 if test "$ac_cv_c_bigendian" = unknown; then
12766 ac_cv_c_bigendian=no
12767 else
12768 # finding both strings is unlikely to happen, but who knows?
12769 ac_cv_c_bigendian=unknown
12770 fi
12771 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012772fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012774else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012776/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012777$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012778int
12779main ()
12780{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012781
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012782 /* Are we little or big endian? From Harbison&Steele. */
12783 union
12784 {
12785 long int l;
12786 char c[sizeof (long int)];
12787 } u;
12788 u.l = 1;
12789 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012790
12791 ;
12792 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012793}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012794_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012795if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012796 ac_cv_c_bigendian=no
12797else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012798 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012799fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12801 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012802fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012803
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012804 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012805fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012807$as_echo "$ac_cv_c_bigendian" >&6; }
12808 case $ac_cv_c_bigendian in #(
12809 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012810 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012811;; #(
12812 no)
12813 ;; #(
12814 universal)
12815
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012816$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012817
12818 ;; #(
12819 *)
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012820 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012821 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012822 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012823
Chen Qi91f04682014-05-05 21:08:42 -040012824if test $cross_compiling = no; then
12825 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12826else
12827 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12828fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012829ASM_TYPES_HEADER=./asm_types.h
12830
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012831echo "/* These defines are needed for the public ext2fs.h header file */" \
12832 > public_config.h
12833if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12834 uniq tmp_config.$$ >> public_config.h
12835else
12836 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12837fi
12838if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12839 uniq tmp_config.$$ >> public_config.h
12840else
12841 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12842fi
12843rm -f tmp_config.$$
12844PUBLIC_CONFIG_HEADER=./public_config.h
12845
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012846for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012847do :
12848 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012849if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012850 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012851#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012852_ACEOF
12853
12854fi
12855
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012856done
12857
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012858ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012859if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012860
12861cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012862#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012863_ACEOF
12864
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012865
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012866fi
12867
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012868{ $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 +010012869$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012870if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012871 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012872else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012874/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012875#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012876int
12877main ()
12878{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012879struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012880 ;
12881 return 0;
12882}
12883_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012884if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012885 e2fsprogs_cv_struct_st_flags=yes
12886else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012887 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012888fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890fi
12891
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012893$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012894if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012896$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012897 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012898 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012899else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012901/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012902#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012903int
12904main ()
12905{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012906struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012907 ;
12908 return 0;
12909}
12910_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012911if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012912 e2fsprogs_cv_struct_st_flags_immut=yes
12913else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012914 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012915fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12917fi
12918
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012920$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012921 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012922
12923$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012924
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012925 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012926fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012927ac_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 -050012928 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012929"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012930if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012931
12932cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012933#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012934_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012935
12936fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012937
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012938if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012940$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012941if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012942 $as_echo_n "(cached) " >&6
12943else
12944 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012946/* end confdefs.h. */
12947
12948/* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12951#ifdef __cplusplus
12952extern "C"
12953#endif
12954char blkid_probe_all ();
12955int
12956main ()
12957{
12958return blkid_probe_all ();
12959 ;
12960 return 0;
12961}
12962_ACEOF
12963for ac_lib in '' blkid; do
12964 if test -z "$ac_lib"; then
12965 ac_res="none required"
12966 else
12967 ac_res=-l$ac_lib
12968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12969 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012970 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012971 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012972fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012973rm -f core conftest.err conftest.$ac_objext \
12974 conftest$ac_exeext
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012975 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012976 break
12977fi
12978done
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012979if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012980
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012981else
12982 ac_cv_search_blkid_probe_all=no
12983fi
12984rm conftest.$ac_ext
12985LIBS=$ac_func_search_save_LIBS
12986fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012988$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12989ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012990if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12992
12993fi
12994
12995fi
Theodore Ts'o2de26282014-05-05 01:22:22 -040012996for ac_func in __secure_getenv backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012997do :
12998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12999ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013000if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013001 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013002#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013003_ACEOF
13004
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013005fi
13006done
13007
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013008SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013010$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013011if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013012 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013013else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013014 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013015LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013017/* end confdefs.h. */
13018
Theodore Ts'oe1052142006-10-21 21:46:47 -040013019/* Override any GCC internal prototype to avoid an error.
13020 Use char because int might match the return type of a GCC
13021 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013022#ifdef __cplusplus
13023extern "C"
13024#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013025char socket ();
13026int
13027main ()
13028{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013029return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013030 ;
13031 return 0;
13032}
13033_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013034if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013035 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013036else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013037 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013038fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013039rm -f core conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013041LIBS=$ac_check_lib_save_LIBS
13042fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013044$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013045if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013046 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013047fi
13048
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013049
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013051$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013052if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013053 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013054else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013056/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013057#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013058
13059_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013061 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013062 ac_cv_have_optreset=yes
13063else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013064 ac_cv_have_optreset=no
13065fi
13066rm -f conftest*
13067
13068fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013070$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013071if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013072
13073$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013074
13075fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013076
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013077SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013078ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013079if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013080
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013081else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013083$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013084if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013085 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013086else
13087 ac_check_lib_save_LIBS=$LIBS
13088LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013090/* end confdefs.h. */
13091
13092/* Override any GCC internal prototype to avoid an error.
13093 Use char because int might match the return type of a GCC
13094 builtin and then its argument prototype would still apply. */
13095#ifdef __cplusplus
13096extern "C"
13097#endif
13098char sem_init ();
13099int
13100main ()
13101{
13102return sem_init ();
13103 ;
13104 return 0;
13105}
13106_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013107if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013108 ac_cv_lib_pthread_sem_init=yes
13109else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013110 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013111fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013112rm -f core conftest.err conftest.$ac_objext \
13113 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013114LIBS=$ac_check_lib_save_LIBS
13115fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013117$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013118if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013119 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013120
13121 SEM_INIT_LIB=-lpthread
13122else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013124$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013125if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013126 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013127else
13128 ac_check_lib_save_LIBS=$LIBS
13129LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013131/* end confdefs.h. */
13132
13133/* Override any GCC internal prototype to avoid an error.
13134 Use char because int might match the return type of a GCC
13135 builtin and then its argument prototype would still apply. */
13136#ifdef __cplusplus
13137extern "C"
13138#endif
13139char sem_init ();
13140int
13141main ()
13142{
13143return sem_init ();
13144 ;
13145 return 0;
13146}
13147_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013148if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013149 ac_cv_lib_rt_sem_init=yes
13150else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013151 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013152fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013153rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013155LIBS=$ac_check_lib_save_LIBS
13156fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013158$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013159if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013160 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013161
13162 SEM_INIT_LIB=-lrt
13163else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013165$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013166if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013167 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013168else
13169 ac_check_lib_save_LIBS=$LIBS
13170LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013172/* end confdefs.h. */
13173
13174/* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply. */
13177#ifdef __cplusplus
13178extern "C"
13179#endif
13180char sem_init ();
13181int
13182main ()
13183{
13184return sem_init ();
13185 ;
13186 return 0;
13187}
13188_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013189if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013190 ac_cv_lib_posix4_sem_init=yes
13191else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013192 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013193fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013194rm -f core conftest.err conftest.$ac_objext \
13195 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013196LIBS=$ac_check_lib_save_LIBS
13197fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013199$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013200if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013201 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013202
13203 SEM_INIT_LIB=-lposix4
13204fi
13205
13206fi
13207
13208fi
13209
13210fi
13211
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013213$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013214if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013215 UNI_DIFF_OPTS=-u
13216else
13217 UNI_DIFF_OPTS=-c
13218fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013220$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013221
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013222case "$host_os" in
13223linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013224
13225$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013226
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013227 ;;
13228esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013229LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013230CYGWIN_CMT="#"
13231UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013232case "$host_os" in
13233linux*)
13234 LINUX_CMT=
13235 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013236cygwin)
13237 CYGWIN_CMT=
13238 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013239 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013240esac
13241
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013242
13243
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013244case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013245linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013246 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13247 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013248 { $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 +010013249$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013250 fi
13251 ;;
13252esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013253case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013254linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013255 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013256 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013257 { $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 +010013258$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013259 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013261$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013262 mandir=/usr/share/man
13263 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013264 fi
13265;;
13266esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013267if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013268 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013269 root_prefix="$ac_default_prefix"
13270 else
13271 root_prefix="$prefix"
13272 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013273 root_bindir=$bindir
13274 root_sbindir=$sbindir
13275 root_libdir=$libdir
13276 root_sysconfdir=$sysconfdir
13277else
13278 root_bindir='${root_prefix}/bin'
13279 root_sbindir='${root_prefix}/sbin'
13280 root_libdir='${root_prefix}/lib'
13281 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013282fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013283if test "$bindir" != '${exec_prefix}/bin'; then
13284 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013286$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013287fi
13288if test "$sbindir" != '${exec_prefix}/sbin'; then
13289 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013291$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013292fi
13293if test "$libdir" != '${exec_prefix}/lib'; then
13294 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013296$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013297fi
13298if test "$sysconfdir" != '${prefix}/etc'; then
13299 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013301$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013302fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013303
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013304
13305
13306
13307
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013308
13309# Check whether --with-multiarch was given.
13310if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013311 withval=$with_multiarch; if test "$withval" = "lib64"; then
13312 libdir=/usr/lib64
13313 root_libdir=/lib64
13314else
13315 libdir=$libdir/$withval
13316 root_libdir=$root_libdir/$withval
13317fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013318
13319fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13321$as_echo_n "checking whether we can link with -static... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013322if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013323 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013324else
13325 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013327/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013328#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013329int
13330main ()
13331{
Theodore Ts'oae851481997-04-29 18:13:24 +000013332fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013333 ;
13334 return 0;
13335}
13336_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013337if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013338 ac_cv_e2fsprogs_use_static=yes
13339else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013340 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013341fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013342rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013344LDFLAGS=$SAVE_LDFLAGS
13345fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013346
Theodore Ts'odefde781999-01-04 07:39:19 +000013347case "$host_os" in
13348solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013349 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013350;;
13351esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013353$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000013354LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000013355if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013356 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000013357fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013358
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013359case "$host_os" in
13360darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013362$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013363
13364$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013365
13366 ;;
13367esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013368SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13369ET_DIR=`cd ${srcdir}/lib/et; pwd`
13370
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013371
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013372if test "$cross_compiling" = yes ; then
13373 DO_TEST_SUITE=
13374else
13375 DO_TEST_SUITE=check
13376fi
13377
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013378INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13379if test -n "$CPPFLAGS" ; then
13380 INCLUDES="$INCLUDES $CPPFLAGS"
13381fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013382if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013383 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013384fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013385if test -n "$WITH_DIET_LIBC" ; then
13386 INCLUDES="$INCLUDES -D_REENTRANT"
13387fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013388
Theodore Ts'odd947da2005-11-09 18:37:07 -040013389if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013390 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013391 BUILD_LDFLAGS="$LDFLAGS"
13392else
13393 BUILD_CFLAGS=
13394 BUILD_LDFLAGS=
13395fi
13396
13397
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013398test -d lib || mkdir lib
13399test -d include || mkdir include
13400test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013401test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013402for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013403 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013404 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13405 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013406 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070013407 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050013408 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13409 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050013410 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013411 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013412 resize/Makefile doc/Makefile intl/Makefile \
13413 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013414 if test -d `dirname ${srcdir}/$i` ; then
13415 outlist="$outlist $i"
13416 fi
13417done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013418ac_config_files="$ac_config_files $outlist"
13419
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013420cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013421# This file is a shell script that caches the results of configure
13422# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013423# scripts and configure runs, see configure's option --config-cache.
13424# It is not useful on other systems. If it contains results you don't
13425# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013426#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013427# config.status only pays attention to the cache file if you give it
13428# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013429#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013430# `ac_cv_env_foo' variables (set or unset) will be overridden when
13431# loading this file, other *unset* `ac_cv_foo' will be assigned the
13432# following values.
13433
13434_ACEOF
13435
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013436# The following way of writing the cache mishandles newlines in values,
13437# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013438# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013439# Ultrix sh set writes to stderr and can't be redirected directly,
13440# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013441(
13442 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13443 eval ac_val=\$$ac_var
13444 case $ac_val in #(
13445 *${as_nl}*)
13446 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013447 *_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 +010013448$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013449 esac
13450 case $ac_var in #(
13451 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013453 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013454 esac ;;
13455 esac
13456 done
13457
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013458 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013459 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13460 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013461 # `set' does not quote correctly, so add quotes: double-quote
13462 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013463 sed -n \
13464 "s/'/'\\\\''/g;
13465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013466 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013467 *)
13468 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013470 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013471 esac |
13472 sort
13473) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013474 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013475 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013476 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013477 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013478 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13479 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013480 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13481 :end' >>confcache
13482if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13483 if test -w "$cache_file"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013484 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013485 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013486$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013487 if test ! -f "$cache_file" || test -h "$cache_file"; then
13488 cat confcache >"$cache_file"
13489 else
13490 case $cache_file in #(
13491 */* | ?:*)
13492 mv -f confcache "$cache_file"$$ &&
13493 mv -f "$cache_file"$$ "$cache_file" ;; #(
13494 *)
13495 mv -f confcache "$cache_file" ;;
13496 esac
13497 fi
13498 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013499 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013500 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013501$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013502 fi
13503fi
13504rm -f confcache
13505
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013506test "x$prefix" = xNONE && prefix=$ac_default_prefix
13507# Let make expand exec_prefix.
13508test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13509
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013510DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013511
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013512ac_libobjs=
13513ac_ltlibobjs=
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013514U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013515for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13516 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013518 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13520 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013521 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13522 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013523done
13524LIBOBJS=$ac_libobjs
13525
13526LTLIBOBJS=$ac_ltlibobjs
13527
13528
13529
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013530
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013531: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013532ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013533ac_clean_files_save=$ac_clean_files
13534ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013535{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013536$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013537as_write_fail=0
13538cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013539#! $SHELL
13540# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013541# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013542# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013543# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013544
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013545debug=false
13546ac_cs_recheck=false
13547ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013548
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013549SHELL=\${CONFIG_SHELL-$SHELL}
13550export SHELL
13551_ASEOF
13552cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13553## -------------------- ##
13554## M4sh Initialization. ##
13555## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013556
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013557# Be more Bourne compatible
13558DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013559if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013560 emulate sh
13561 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013562 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013563 # is contrary to our usage. Disable this feature.
13564 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013565 setopt NO_GLOB_SUBST
13566else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013567 case `(set -o) 2>/dev/null` in #(
13568 *posix*) :
13569 set -o posix ;; #(
13570 *) :
13571 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013572esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013573fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013574
13575
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013576as_nl='
13577'
13578export as_nl
13579# Printing a long string crashes Solaris 7 /usr/bin/printf.
13580as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13581as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13582as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013583# Prefer a ksh shell builtin over an external printf program on Solaris,
13584# but without wasting forks for bash or zsh.
13585if test -z "$BASH_VERSION$ZSH_VERSION" \
13586 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13587 as_echo='print -r --'
13588 as_echo_n='print -rn --'
13589elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013590 as_echo='printf %s\n'
13591 as_echo_n='printf %s'
13592else
13593 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13594 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13595 as_echo_n='/usr/ucb/echo -n'
13596 else
13597 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13598 as_echo_n_body='eval
13599 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013600 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013601 *"$as_nl"*)
13602 expr "X$arg" : "X\\(.*\\)$as_nl";
13603 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13604 esac;
13605 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13606 '
13607 export as_echo_n_body
13608 as_echo_n='sh -c $as_echo_n_body as_echo'
13609 fi
13610 export as_echo_body
13611 as_echo='sh -c $as_echo_body as_echo'
13612fi
13613
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013614# The user is always right.
13615if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013616 PATH_SEPARATOR=:
13617 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13618 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13619 PATH_SEPARATOR=';'
13620 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013621fi
13622
Theodore Ts'oe1052142006-10-21 21:46:47 -040013623
13624# IFS
13625# We need space, tab and new line, in precisely that order. Quoting is
13626# there to prevent editors from complaining about space-tab.
13627# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13628# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013629IFS=" "" $as_nl"
13630
13631# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013632as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013633case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013634 *[\\/]* ) as_myself=$0 ;;
13635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013636for as_dir in $PATH
13637do
13638 IFS=$as_save_IFS
13639 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013640 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13641 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013642IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013643
Theodore Ts'oe1052142006-10-21 21:46:47 -040013644 ;;
13645esac
13646# We did not find ourselves, most probably we were run as `sh COMMAND'
13647# in which case we are not to be found in the path.
13648if test "x$as_myself" = x; then
13649 as_myself=$0
13650fi
13651if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013652 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013653 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040013654fi
13655
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013656# Unset variables that we do not need and which cause bugs (e.g. in
13657# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13658# suppresses any "Segmentation fault" message there. '((' could
13659# trigger a bug in pdksh 5.2.14.
13660for as_var in BASH_ENV ENV MAIL MAILPATH
13661do eval test x\${$as_var+set} = xset \
13662 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040013663done
13664PS1='$ '
13665PS2='> '
13666PS4='+ '
13667
13668# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013669LC_ALL=C
13670export LC_ALL
13671LANGUAGE=C
13672export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040013673
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013674# CDPATH.
13675(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13676
13677
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013678# as_fn_error STATUS ERROR [LINENO LOG_FD]
13679# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013680# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13681# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013682# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013683as_fn_error ()
13684{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013685 as_status=$1; test $as_status -eq 0 && as_status=1
13686 if test "$4"; then
13687 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13688 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013689 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013690 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013691 as_fn_exit $as_status
13692} # as_fn_error
13693
13694
13695# as_fn_set_status STATUS
13696# -----------------------
13697# Set $? to STATUS, without forking.
13698as_fn_set_status ()
13699{
13700 return $1
13701} # as_fn_set_status
13702
13703# as_fn_exit STATUS
13704# -----------------
13705# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13706as_fn_exit ()
13707{
13708 set +e
13709 as_fn_set_status $1
13710 exit $1
13711} # as_fn_exit
13712
13713# as_fn_unset VAR
13714# ---------------
13715# Portably unset VAR.
13716as_fn_unset ()
13717{
13718 { eval $1=; unset $1;}
13719}
13720as_unset=as_fn_unset
13721# as_fn_append VAR VALUE
13722# ----------------------
13723# Append the text in VALUE to the end of the definition contained in VAR. Take
13724# advantage of any shell optimizations that allow amortized linear growth over
13725# repeated appends, instead of the typical quadratic growth present in naive
13726# implementations.
13727if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13728 eval 'as_fn_append ()
13729 {
13730 eval $1+=\$2
13731 }'
13732else
13733 as_fn_append ()
13734 {
13735 eval $1=\$$1\$2
13736 }
13737fi # as_fn_append
13738
13739# as_fn_arith ARG...
13740# ------------------
13741# Perform arithmetic evaluation on the ARGs, and store the result in the
13742# global $as_val. Take advantage of shells that can avoid forks. The arguments
13743# must be portable across $(()) and expr.
13744if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13745 eval 'as_fn_arith ()
13746 {
13747 as_val=$(( $* ))
13748 }'
13749else
13750 as_fn_arith ()
13751 {
13752 as_val=`expr "$@" || test $? -eq 1`
13753 }
13754fi # as_fn_arith
13755
13756
Theodore Ts'oe1052142006-10-21 21:46:47 -040013757if expr a : '\(a\)' >/dev/null 2>&1 &&
13758 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13759 as_expr=expr
13760else
13761 as_expr=false
13762fi
13763
13764if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13765 as_basename=basename
13766else
13767 as_basename=false
13768fi
13769
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013770if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13771 as_dirname=dirname
13772else
13773 as_dirname=false
13774fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013775
Theodore Ts'oe1052142006-10-21 21:46:47 -040013776as_me=`$as_basename -- "$0" ||
13777$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13778 X"$0" : 'X\(//\)$' \| \
13779 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013780$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013781 sed '/^.*\/\([^/][^/]*\)\/*$/{
13782 s//\1/
13783 q
13784 }
13785 /^X\/\(\/\/\)$/{
13786 s//\1/
13787 q
13788 }
13789 /^X\/\(\/\).*/{
13790 s//\1/
13791 q
13792 }
13793 s/.*/./; q'`
13794
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013795# Avoid depending upon Character Ranges.
13796as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13797as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13798as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13799as_cr_digits='0123456789'
13800as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040013801
13802ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013803case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013804-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013805 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040013806 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013807 xy) ECHO_C='\c';;
13808 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13809 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013810 esac;;
13811*)
13812 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013813esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013814
13815rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040013816if test -d conf$$.dir; then
13817 rm -f conf$$.dir/conf$$.file
13818else
13819 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013820 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040013821fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013822if (echo >conf$$.file) 2>/dev/null; then
13823 if ln -s conf$$.file conf$$ 2>/dev/null; then
13824 as_ln_s='ln -s'
13825 # ... but there are two gotchas:
13826 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13827 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013828 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013829 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013830 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013831 elif ln conf$$.file conf$$ 2>/dev/null; then
13832 as_ln_s=ln
13833 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013834 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013835 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013836else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013837 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013838fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013839rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13840rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013841
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013842
13843# as_fn_mkdir_p
13844# -------------
13845# Create "$as_dir" as a directory, including parents if necessary.
13846as_fn_mkdir_p ()
13847{
13848
13849 case $as_dir in #(
13850 -*) as_dir=./$as_dir;;
13851 esac
13852 test -d "$as_dir" || eval $as_mkdir_p || {
13853 as_dirs=
13854 while :; do
13855 case $as_dir in #(
13856 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13857 *) as_qdir=$as_dir;;
13858 esac
13859 as_dirs="'$as_qdir' $as_dirs"
13860 as_dir=`$as_dirname -- "$as_dir" ||
13861$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13862 X"$as_dir" : 'X\(//\)[^/]' \| \
13863 X"$as_dir" : 'X\(//\)$' \| \
13864 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13865$as_echo X"$as_dir" |
13866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13867 s//\1/
13868 q
13869 }
13870 /^X\(\/\/\)[^/].*/{
13871 s//\1/
13872 q
13873 }
13874 /^X\(\/\/\)$/{
13875 s//\1/
13876 q
13877 }
13878 /^X\(\/\).*/{
13879 s//\1/
13880 q
13881 }
13882 s/.*/./; q'`
13883 test -d "$as_dir" && break
13884 done
13885 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013886 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013887
13888
13889} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013890if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013891 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013892else
13893 test -d ./-p && rmdir ./-p
13894 as_mkdir_p=false
13895fi
13896
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013897
13898# as_fn_executable_p FILE
13899# -----------------------
13900# Test if FILE is an executable regular file.
13901as_fn_executable_p ()
13902{
13903 test -f "$1" && test -x "$1"
13904} # as_fn_executable_p
13905as_test_x='test -x'
13906as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013907
13908# Sed expression to map a string onto a valid CPP name.
13909as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13910
13911# Sed expression to map a string onto a valid variable name.
13912as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13913
13914
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013915exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013916## ----------------------------------- ##
13917## Main body of $CONFIG_STATUS script. ##
13918## ----------------------------------- ##
13919_ASEOF
13920test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013921
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13923# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013924# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040013925# values after options handling.
13926ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013927This file was extended by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013928generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013929
13930 CONFIG_FILES = $CONFIG_FILES
13931 CONFIG_HEADERS = $CONFIG_HEADERS
13932 CONFIG_LINKS = $CONFIG_LINKS
13933 CONFIG_COMMANDS = $CONFIG_COMMANDS
13934 $ $0 $@
13935
Theodore Ts'oe1052142006-10-21 21:46:47 -040013936on `(hostname || uname -n) 2>/dev/null | sed 1q`
13937"
13938
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013939_ACEOF
13940
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013941case $ac_config_files in *"
13942"*) set x $ac_config_files; shift; ac_config_files=$*;;
13943esac
13944
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013945case $ac_config_headers in *"
13946"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13947esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013948
13949
13950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013951# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013952config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013953config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013954config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013955
Theodore Ts'oe1052142006-10-21 21:46:47 -040013956_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013957
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013959ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013960\`$as_me' instantiates files and other configuration actions
13961from templates according to the current configuration. Unless the files
13962and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013963
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013964Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013965
13966 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013967 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040013968 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013969 -q, --quiet, --silent
13970 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013971 -d, --debug don't remove temporary files
13972 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013973 --file=FILE[:TEMPLATE]
13974 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013975 --header=FILE[:TEMPLATE]
13976 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013977
13978Configuration files:
13979$config_files
13980
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013981Configuration headers:
13982$config_headers
13983
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013984Configuration commands:
13985$config_commands
13986
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013987Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013988
Theodore Ts'oe1052142006-10-21 21:46:47 -040013989_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040013991ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013992ac_cs_version="\\
13993config.status
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013994configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040013995 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013996
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013997Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013998This config.status script is free software; the Free Software Foundation
13999gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014000
14001ac_pwd='$ac_pwd'
14002srcdir='$srcdir'
14003INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014004MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014005AWK='$AWK'
14006test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014007_ACEOF
14008
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014011ac_need_defaults=:
14012while test $# != 0
14013do
14014 case $1 in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014015 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014016 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14017 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014018 ac_shift=:
14019 ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014020 --*=)
14021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14022 ac_optarg=
14023 ac_shift=:
14024 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014025 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014026 ac_option=$1
14027 ac_optarg=$2
14028 ac_shift=shift
14029 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014030 esac
14031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014032 case $ac_option in
14033 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14035 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014036 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014037 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014038 --config | --confi | --conf | --con | --co | --c )
14039 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014040 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014041 debug=: ;;
14042 --file | --fil | --fi | --f )
14043 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014044 case $ac_optarg in
14045 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014046 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014047 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014048 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014049 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014050 --header | --heade | --head | --hea )
14051 $ac_shift
14052 case $ac_optarg in
14053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14054 esac
14055 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14056 ac_need_defaults=false;;
14057 --he | --h)
14058 # Conflict between --help and --header
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014059 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014060Try \`$0 --help' for more information.";;
14061 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014062 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14064 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14065 ac_cs_silent=: ;;
14066
14067 # This is an error.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014068 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014069Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014070
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014071 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014072 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014073
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014074 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014075 shift
14076done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014077
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014078ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014079
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014080if $ac_cs_silent; then
14081 exec 6>/dev/null
14082 ac_configure_extra_args="$ac_configure_extra_args --silent"
14083fi
14084
14085_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014087if \$ac_cs_recheck; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014088 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014089 shift
14090 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14091 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014092 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014093 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014094fi
14095
14096_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014098exec 5>>config.log
14099{
14100 echo
14101 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14102## Running $as_me. ##
14103_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014104 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014105} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014106
Theodore Ts'oe1052142006-10-21 21:46:47 -040014107_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014109#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014110# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014111#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014112# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014113 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014114 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014115 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014116 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14117 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014118
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014120_ACEOF
14121
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014123
14124# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014125for ac_config_target in $ac_config_targets
14126do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014127 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014128 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014129 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014130 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14131
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014132 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014133 esac
14134done
14135
Theodore Ts'oe1052142006-10-21 21:46:47 -040014136
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014137# If the user did not use the arguments to specify the items to instantiate,
14138# then the envvar interface is used. Set only those that are not.
14139# We use the long form for the default assignment because of an extremely
14140# bizarre bug on SunOS 4.1.3.
14141if $ac_need_defaults; then
14142 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014143 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014144 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14145fi
14146
14147# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014148# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014149# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014150# Hook for its removal unless debugging.
14151# Note that there is a small window in which the directory will not be cleaned:
14152# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014153$debug ||
14154{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014155 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014156 trap 'exit_status=$?
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014157 : "${ac_tmp:=$tmp}"
14158 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014159' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014160 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014161}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014162# Create a (secure) tmp directory for tmp files.
14163
14164{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014165 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014166 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014167} ||
14168{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014169 tmp=./conf$$-$RANDOM
14170 (umask 077 && mkdir "$tmp")
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014171} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14172ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014173
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014174# Set up the scripts for CONFIG_FILES section.
14175# No need to generate them if there are no CONFIG_FILES.
14176# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014177if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014178
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014179if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14180 ac_cs_awk_getline=:
14181 ac_cs_awk_pipe_init=
14182 ac_cs_awk_read_file='
14183 while ((getline aline < (F[key])) > 0)
14184 print(aline)
14185 close(F[key])'
14186 ac_cs_awk_pipe_fini=
14187else
14188 ac_cs_awk_getline=false
14189 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14190 ac_cs_awk_read_file='
14191 print "|#_!!_#|"
14192 print "cat " F[key] " &&"
14193 '$ac_cs_awk_pipe_init
14194 # The final `:' finishes the AND list.
14195 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14196fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014197ac_cr=`echo X | tr X '\015'`
14198# On cygwin, bash can eat \r inside `` if the user requested igncr.
14199# But we know of no other shell where ac_cr would be empty at this
14200# point, so we can use a bashism as a fallback.
14201if test "x$ac_cr" = x; then
14202 eval ac_cr=\$\'\\r\'
14203fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014204ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14205if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014206 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014207else
14208 ac_cs_awk_cr=$ac_cr
14209fi
14210
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014211echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014212_ACEOF
14213
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014214# Create commands to substitute file output variables.
14215{
14216 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014217 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014218 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14219 echo "_ACAWK" &&
14220 echo "_ACEOF"
14221} >conf$$files.sh &&
14222. ./conf$$files.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014224rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014225
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014226{
14227 echo "cat >conf$$subs.awk <<_ACEOF" &&
14228 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14229 echo "_ACEOF"
14230} >conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14232ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014233ac_delim='%!_!# '
14234for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014235 . ./conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014237
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014238 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14239 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014240 break
14241 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014242 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014243 else
14244 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014245 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014246done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014247rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014248
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014250cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014251_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014252sed -n '
14253h
14254s/^/S["/; s/!.*/"]=/
14255p
14256g
14257s/^[^!]*!//
14258:repl
14259t repl
14260s/'"$ac_delim"'$//
14261t delim
14262:nl
14263h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014264s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014265t more1
14266s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14267p
14268n
14269b repl
14270:more1
14271s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14272p
14273g
14274s/.\{148\}//
14275t nl
14276:delim
14277h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014278s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014279t more2
14280s/["\\]/\\&/g; s/^/"/; s/$/"/
14281p
14282b
14283:more2
14284s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14285p
14286g
14287s/.\{148\}//
14288t delim
14289' <conf$$subs.awk | sed '
14290/^[^""]/{
14291 N
14292 s/\n//
14293}
14294' >>$CONFIG_STATUS || ac_write_fail=1
14295rm -f conf$$subs.awk
14296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14297_ACAWK
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014298cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014299 for (key in S) S_is_set[key] = 1
14300 FS = ""
14301 \$ac_cs_awk_pipe_init
14302}
14303{
14304 line = $ 0
14305 nfields = split(line, field, "@")
14306 substed = 0
14307 len = length(field[1])
14308 for (i = 2; i < nfields; i++) {
14309 key = field[i]
14310 keylen = length(key)
14311 if (S_is_set[key]) {
14312 value = S[key]
14313 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14314 len += length(value) + length(field[++i])
14315 substed = 1
14316 } else
14317 len += 1 + keylen
14318 }
14319 if (nfields == 3 && !substed) {
14320 key = field[2]
14321 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14322 \$ac_cs_awk_read_file
14323 next
14324 }
14325 }
14326 print line
14327}
14328\$ac_cs_awk_pipe_fini
14329_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014330_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14332if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14333 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14334else
14335 cat
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014336fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14337 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014338_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014339
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014340# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14341# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014342# trailing colons and then remove the whole line if VPATH becomes empty
14343# (actually we leave an empty line to preserve line numbers).
14344if test "x$srcdir" = x.; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014345 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14346h
14347s///
14348s/^/:/
14349s/[ ]*$/:/
14350s/:\$(srcdir):/:/g
14351s/:\${srcdir}:/:/g
14352s/:@srcdir@:/:/g
14353s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014354s/:*$//
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014355x
14356s/\(=[ ]*\).*/\1/
14357G
14358s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014359s/^[^=]*=[ ]*$//
14360}'
14361fi
14362
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014364fi # test -n "$CONFIG_FILES"
14365
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014366# Set up the scripts for CONFIG_HEADERS section.
14367# No need to generate them if there are no CONFIG_HEADERS.
14368# This happens for instance with `./config.status Makefile'.
14369if test -n "$CONFIG_HEADERS"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014370cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014371BEGIN {
14372_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014373
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014374# Transform confdefs.h into an awk script `defines.awk', embedded as
14375# here-document in config.status, that substitutes the proper values into
14376# config.h.in to produce config.h.
14377
14378# Create a delimiter string that does not exist in confdefs.h, to ease
14379# handling of long lines.
14380ac_delim='%!_!# '
14381for ac_last_try in false false :; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014382 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14383 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014384 break
14385 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014386 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014387 else
14388 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14389 fi
14390done
14391
14392# For the awk script, D is an array of macro values keyed by name,
14393# likewise P contains macro parameters if any. Preserve backslash
14394# newline sequences.
14395
14396ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14397sed -n '
14398s/.\{148\}/&'"$ac_delim"'/g
14399t rset
14400:rset
14401s/^[ ]*#[ ]*define[ ][ ]*/ /
14402t def
14403d
14404:def
14405s/\\$//
14406t bsnl
14407s/["\\]/\\&/g
14408s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14409D["\1"]=" \3"/p
14410s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14411d
14412:bsnl
14413s/["\\]/\\&/g
14414s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14415D["\1"]=" \3\\\\\\n"\\/p
14416t cont
14417s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14418t cont
14419d
14420:cont
14421n
14422s/.\{148\}/&'"$ac_delim"'/g
14423t clear
14424:clear
14425s/\\$//
14426t bsnlc
14427s/["\\]/\\&/g; s/^/"/; s/$/"/p
14428d
14429:bsnlc
14430s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14431b cont
14432' <confdefs.h | sed '
14433s/'"$ac_delim"'/"\\\
14434"/g' >>$CONFIG_STATUS || ac_write_fail=1
14435
14436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14437 for (key in D) D_is_set[key] = 1
14438 FS = ""
14439}
14440/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14441 line = \$ 0
14442 split(line, arg, " ")
14443 if (arg[1] == "#") {
14444 defundef = arg[2]
14445 mac1 = arg[3]
14446 } else {
14447 defundef = substr(arg[1], 2)
14448 mac1 = arg[2]
14449 }
14450 split(mac1, mac2, "(") #)
14451 macro = mac2[1]
14452 prefix = substr(line, 1, index(line, defundef) - 1)
14453 if (D_is_set[macro]) {
14454 # Preserve the white space surrounding the "#".
14455 print prefix "define", macro P[macro] D[macro]
14456 next
14457 } else {
14458 # Replace #undef with comments. This is necessary, for example,
14459 # in the case of _POSIX_SOURCE, which is predefined and required
14460 # on some systems where configure will not decide to define it.
14461 if (defundef == "undef") {
14462 print "/*", prefix defundef, macro, "*/"
14463 next
14464 }
14465 }
14466}
14467{ print }
14468_ACAWK
14469_ACEOF
14470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014471 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014472fi # test -n "$CONFIG_HEADERS"
14473
14474
14475eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014476shift
14477for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014478do
14479 case $ac_tag in
14480 :[FHLC]) ac_mode=$ac_tag; continue;;
14481 esac
14482 case $ac_mode$ac_tag in
14483 :[FHL]*:*);;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014484 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014485 :[FH]-) ac_tag=-:-;;
14486 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14487 esac
14488 ac_save_IFS=$IFS
14489 IFS=:
14490 set x $ac_tag
14491 IFS=$ac_save_IFS
14492 shift
14493 ac_file=$1
14494 shift
14495
14496 case $ac_mode in
14497 :L) ac_source=$1;;
14498 :[FH])
14499 ac_file_inputs=
14500 for ac_f
14501 do
14502 case $ac_f in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014503 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014504 *) # Look for the file first in the build tree, then in the source tree
14505 # (if the path is not absolute). The absolute path cannot be DOS-style,
14506 # because $ac_f cannot contain `:'.
14507 test -f "$ac_f" ||
14508 case $ac_f in
14509 [\\/$]*) false;;
14510 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14511 esac ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014512 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014513 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014514 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014515 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014516 done
14517
14518 # Let's still pretend it is `configure' which instantiates (i.e., don't
14519 # use $as_me), people would be surprised to read:
14520 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014521 configure_input='Generated from '`
14522 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14523 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014524 if test x"$ac_file" != x-; then
14525 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014527$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014528 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014529 # Neutralize special characters interpreted by sed in replacement strings.
14530 case $configure_input in #(
14531 *\&* | *\|* | *\\* )
14532 ac_sed_conf_input=`$as_echo "$configure_input" |
14533 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14534 *) ac_sed_conf_input=$configure_input;;
14535 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014536
14537 case $ac_tag in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014538 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014540 esac
14541 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014542 esac
14543
Theodore Ts'oe1052142006-10-21 21:46:47 -040014544 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014545$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14546 X"$ac_file" : 'X\(//\)[^/]' \| \
14547 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040014548 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014549$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14551 s//\1/
14552 q
14553 }
14554 /^X\(\/\/\)[^/].*/{
14555 s//\1/
14556 q
14557 }
14558 /^X\(\/\/\)$/{
14559 s//\1/
14560 q
14561 }
14562 /^X\(\/\).*/{
14563 s//\1/
14564 q
14565 }
14566 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014567 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014568 ac_builddir=.
14569
Theodore Ts'oe1052142006-10-21 21:46:47 -040014570case "$ac_dir" in
14571.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14572*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014574 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014576 case $ac_top_builddir_sub in
14577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14579 esac ;;
14580esac
14581ac_abs_top_builddir=$ac_pwd
14582ac_abs_builddir=$ac_pwd$ac_dir_suffix
14583# for backward compatibility:
14584ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014585
14586case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014587 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014588 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014589 ac_top_srcdir=$ac_top_builddir_sub
14590 ac_abs_top_srcdir=$ac_pwd ;;
14591 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014592 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014593 ac_top_srcdir=$srcdir
14594 ac_abs_top_srcdir=$srcdir ;;
14595 *) # Relative name.
14596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14597 ac_top_srcdir=$ac_top_build_prefix$srcdir
14598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014599esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014600ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014601
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014602
Theodore Ts'oe1052142006-10-21 21:46:47 -040014603 case $ac_mode in
14604 :F)
14605 #
14606 # CONFIG_FILE
14607 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014608
14609 case $INSTALL in
14610 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014611 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014612 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014613 ac_MKDIR_P=$MKDIR_P
14614 case $MKDIR_P in
14615 [\\/$]* | ?:[\\/]* ) ;;
14616 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14617 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014618_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014619
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014621# If the template does not know about datarootdir, expand it.
14622# FIXME: This hack should be removed a few years after 2.60.
14623ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014624ac_sed_dataroot='
14625/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014626 p
14627 q
14628}
14629/@datadir@/p
14630/@docdir@/p
14631/@infodir@/p
14632/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014633/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014634case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014635*datarootdir*) ac_datarootdir_seen=yes;;
14636*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014637 { $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 +010014638$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014639_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014641 ac_datarootdir_hack='
14642 s&@datadir@&$datadir&g
14643 s&@docdir@&$docdir&g
14644 s&@infodir@&$infodir&g
14645 s&@localedir@&$localedir&g
14646 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014647 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014648esac
14649_ACEOF
14650
14651# Neutralize VPATH when `$srcdir' = `.'.
14652# Shell code in configure.ac might set extrasub.
14653# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14655ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014656$extrasub
14657_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014659:t
14660/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014661s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014662s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014663s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014664s&@srcdir@&$ac_srcdir&;t t
14665s&@abs_srcdir@&$ac_abs_srcdir&;t t
14666s&@top_srcdir@&$ac_top_srcdir&;t t
14667s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14668s&@builddir@&$ac_builddir&;t t
14669s&@abs_builddir@&$ac_abs_builddir&;t t
14670s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14671s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040014672s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014673$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014674"
14675eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14676if $ac_cs_awk_getline; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014677 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014678else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014679 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14680fi \
14681 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014682
Theodore Ts'oe1052142006-10-21 21:46:47 -040014683test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014684 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14685 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14686 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014688which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014689$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014690which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014691
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014692 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014693 case $ac_file in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014694 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14695 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014696 esac \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014698 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014699 :H)
14700 #
14701 # CONFIG_HEADER
14702 #
14703 if test x"$ac_file" != x-; then
14704 {
14705 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014706 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14707 } >"$ac_tmp/config.h" \
14708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14709 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014710 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14711$as_echo "$as_me: $ac_file is unchanged" >&6;}
14712 else
14713 rm -f "$ac_file"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014714 mv "$ac_tmp/config.h" "$ac_file" \
14715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014716 fi
14717 else
14718 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14720 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014721 fi
14722 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014723
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014724 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014725$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014726 ;;
14727 esac
14728
14729
14730 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040014731 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014732 for ac_file in $CONFIG_FILES; do
14733 # Support "outfile[:infile[:infile...]]"
14734 case "$ac_file" in
14735 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000014736 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014737 # PO directories have a Makefile.in generated from Makefile.in.in.
14738 case "$ac_file" in */Makefile.in)
14739 # Adjust a relative srcdir.
14740 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040014741 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014742 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14743 # In autoconf-2.13 it is called $ac_given_srcdir.
14744 # In autoconf-2.50 it is called $srcdir.
14745 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14746 case "$ac_given_srcdir" in
14747 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14748 /*) top_srcdir="$ac_given_srcdir" ;;
14749 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14750 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014751 # Treat a directory as a PO directory if and only if it has a
14752 # POTFILES.in file. This allows packages to have multiple PO
14753 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014754 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14755 rm -f "$ac_dir/POTFILES"
14756 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040014757 gt_tab=`printf '\t'`
14758 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 -050014759 POMAKEFILEDEPS="POTFILES.in"
14760 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014761 # on $ac_dir but don't depend on user-specified configuration
14762 # parameters.
14763 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14764 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014765 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014766 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14767 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040014768 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14769 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014770 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014771 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14772 else
14773 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040014774 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014775 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014776 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014777 # Compute POFILES
14778 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14779 # Compute UPDATEPOFILES
14780 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14781 # Compute DUMMYPOFILES
14782 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14783 # Compute GMOFILES
14784 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014785 case "$ac_given_srcdir" in
14786 .) srcdirpre= ;;
14787 *) srcdirpre='$(srcdir)/' ;;
14788 esac
14789 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014790 UPDATEPOFILES=
14791 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014792 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014793 for lang in $ALL_LINGUAS; do
14794 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014795 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14796 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014797 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014798 done
14799 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14800 # environment variable.
14801 INST_LINGUAS=
14802 if test -n "$ALL_LINGUAS"; then
14803 for presentlang in $ALL_LINGUAS; do
14804 useit=no
14805 if test "%UNSET%" != "$LINGUAS"; then
14806 desiredlanguages="$LINGUAS"
14807 else
14808 desiredlanguages="$ALL_LINGUAS"
14809 fi
14810 for desiredlang in $desiredlanguages; do
14811 # Use the presentlang catalog if desiredlang is
14812 # a. equal to presentlang, or
14813 # b. a variant of presentlang (because in this case,
14814 # presentlang can be used as a fallback for messages
14815 # which are not translated in the desiredlang catalog).
14816 case "$desiredlang" in
14817 "$presentlang"*) useit=yes;;
14818 esac
14819 done
14820 if test $useit = yes; then
14821 INST_LINGUAS="$INST_LINGUAS $presentlang"
14822 fi
14823 done
14824 fi
14825 CATALOGS=
14826 if test -n "$INST_LINGUAS"; then
14827 for lang in $INST_LINGUAS; do
14828 CATALOGS="$CATALOGS $lang.gmo"
14829 done
14830 fi
14831 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014832 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 -040014833 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14834 if test -f "$f"; then
14835 case "$f" in
14836 *.orig | *.bak | *~) ;;
14837 *) cat "$f" >> "$ac_dir/Makefile" ;;
14838 esac
14839 fi
14840 done
14841 fi
14842 ;;
14843 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014844 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014845
Theodore Ts'oe1052142006-10-21 21:46:47 -040014846 esac
14847done # for ac_tag
14848
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014849
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014850as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014851_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014852ac_clean_files=$ac_clean_files_save
14853
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014854test $ac_write_fail = 0 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014855 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014856
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014857
14858# configure is writing to config.log, and then calls config.status.
14859# config.status does its own redirection, appending to config.log.
14860# Unfortunately, on DOS this fails, as config.log is still kept open
14861# by configure, so config.status won't be able to write to it; its
14862# output is simply discarded. So we exec the FD to /dev/null,
14863# effectively closing config.log, so it can be properly (re)opened and
14864# appended to by config.status. When coming back to configure, we
14865# need to make the FD available again.
14866if test "$no_create" != yes; then
14867 ac_cs_success=:
14868 ac_config_status_args=
14869 test "$silent" = yes &&
14870 ac_config_status_args="$ac_config_status_args --quiet"
14871 exec 5>/dev/null
14872 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14873 exec 5>>config.log
14874 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14875 # would make configure fail if this is the last instruction.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014876 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014877fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014878if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014880$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14881fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014882
Theodore Ts'oee683a12005-02-05 15:53:56 -050014883if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi