0 | 0 |
#! /bin/sh
|
1 | 1 |
# Guess values for system-dependent variables and create Makefiles.
|
2 | |
# Generated by GNU Autoconf 2.69 for dosfstools 4.2.
|
|
2 |
# Generated by GNU Autoconf 2.71 for dosfstools 4.2+git.
|
3 | 3 |
#
|
4 | 4 |
#
|
5 | |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
|
5 |
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
|
|
6 |
# Inc.
|
6 | 7 |
#
|
7 | 8 |
#
|
8 | 9 |
# This configure script is free software; the Free Software Foundation
|
|
13 | 14 |
|
14 | 15 |
# Be more Bourne compatible
|
15 | 16 |
DUALCASE=1; export DUALCASE # for MKS sh
|
16 | |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
|
17 |
as_nop=:
|
|
18 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
|
19 |
then :
|
17 | 20 |
emulate sh
|
18 | 21 |
NULLCMD=:
|
19 | 22 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
20 | 23 |
# is contrary to our usage. Disable this feature.
|
21 | 24 |
alias -g '${1+"$@"}'='"$@"'
|
22 | 25 |
setopt NO_GLOB_SUBST
|
23 | |
else
|
|
26 |
else $as_nop
|
24 | 27 |
case `(set -o) 2>/dev/null` in #(
|
25 | 28 |
*posix*) :
|
26 | 29 |
set -o posix ;; #(
|
|
30 | 33 |
fi
|
31 | 34 |
|
32 | 35 |
|
|
36 |
|
|
37 |
# Reset variables that may have inherited troublesome values from
|
|
38 |
# the environment.
|
|
39 |
|
|
40 |
# IFS needs to be set, to space, tab, and newline, in precisely that order.
|
|
41 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the
|
|
42 |
# side effect of setting IFS to empty, thus disabling word splitting.)
|
|
43 |
# Quoting is to prevent editors from complaining about space-tab.
|
33 | 44 |
as_nl='
|
34 | 45 |
'
|
35 | 46 |
export as_nl
|
36 | |
# Printing a long string crashes Solaris 7 /usr/bin/printf.
|
37 | |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
38 | |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
39 | |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
40 | |
# Prefer a ksh shell builtin over an external printf program on Solaris,
|
41 | |
# but without wasting forks for bash or zsh.
|
42 | |
if test -z "$BASH_VERSION$ZSH_VERSION" \
|
43 | |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
44 | |
as_echo='print -r --'
|
45 | |
as_echo_n='print -rn --'
|
46 | |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
47 | |
as_echo='printf %s\n'
|
48 | |
as_echo_n='printf %s'
|
49 | |
else
|
50 | |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
51 | |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
52 | |
as_echo_n='/usr/ucb/echo -n'
|
53 | |
else
|
54 | |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
55 | |
as_echo_n_body='eval
|
56 | |
arg=$1;
|
57 | |
case $arg in #(
|
58 | |
*"$as_nl"*)
|
59 | |
expr "X$arg" : "X\\(.*\\)$as_nl";
|
60 | |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
61 | |
esac;
|
62 | |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
63 | |
'
|
64 | |
export as_echo_n_body
|
65 | |
as_echo_n='sh -c $as_echo_n_body as_echo'
|
66 | |
fi
|
67 | |
export as_echo_body
|
68 | |
as_echo='sh -c $as_echo_body as_echo'
|
69 | |
fi
|
|
47 |
IFS=" "" $as_nl"
|
|
48 |
|
|
49 |
PS1='$ '
|
|
50 |
PS2='> '
|
|
51 |
PS4='+ '
|
|
52 |
|
|
53 |
# Ensure predictable behavior from utilities with locale-dependent output.
|
|
54 |
LC_ALL=C
|
|
55 |
export LC_ALL
|
|
56 |
LANGUAGE=C
|
|
57 |
export LANGUAGE
|
|
58 |
|
|
59 |
# We cannot yet rely on "unset" to work, but we need these variables
|
|
60 |
# to be unset--not just set to an empty or harmless value--now, to
|
|
61 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
|
|
62 |
# also avoids known problems related to "unset" and subshell syntax
|
|
63 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
|
|
64 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
|
|
65 |
do eval test \${$as_var+y} \
|
|
66 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
|
67 |
done
|
|
68 |
|
|
69 |
# Ensure that fds 0, 1, and 2 are open.
|
|
70 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
|
|
71 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
|
|
72 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
|
70 | 73 |
|
71 | 74 |
# The user is always right.
|
72 | |
if test "${PATH_SEPARATOR+set}" != set; then
|
|
75 |
if ${PATH_SEPARATOR+false} :; then
|
73 | 76 |
PATH_SEPARATOR=:
|
74 | 77 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
75 | 78 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
|
77 | 80 |
}
|
78 | 81 |
fi
|
79 | 82 |
|
80 | |
|
81 | |
# IFS
|
82 | |
# We need space, tab and new line, in precisely that order. Quoting is
|
83 | |
# there to prevent editors from complaining about space-tab.
|
84 | |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
85 | |
# splitting by setting IFS to empty value.)
|
86 | |
IFS=" "" $as_nl"
|
87 | 83 |
|
88 | 84 |
# Find who we are. Look in the path if we contain no directory separator.
|
89 | 85 |
as_myself=
|
|
93 | 89 |
for as_dir in $PATH
|
94 | 90 |
do
|
95 | 91 |
IFS=$as_save_IFS
|
96 | |
test -z "$as_dir" && as_dir=.
|
97 | |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
92 |
case $as_dir in #(((
|
|
93 |
'') as_dir=./ ;;
|
|
94 |
*/) ;;
|
|
95 |
*) as_dir=$as_dir/ ;;
|
|
96 |
esac
|
|
97 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break
|
98 | 98 |
done
|
99 | 99 |
IFS=$as_save_IFS
|
100 | 100 |
|
|
106 | 106 |
as_myself=$0
|
107 | 107 |
fi
|
108 | 108 |
if test ! -f "$as_myself"; then
|
109 | |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
109 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
110 | 110 |
exit 1
|
111 | 111 |
fi
|
112 | 112 |
|
113 | |
# Unset variables that we do not need and which cause bugs (e.g. in
|
114 | |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
115 | |
# suppresses any "Segmentation fault" message there. '((' could
|
116 | |
# trigger a bug in pdksh 5.2.14.
|
117 | |
for as_var in BASH_ENV ENV MAIL MAILPATH
|
118 | |
do eval test x\${$as_var+set} = xset \
|
119 | |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
120 | |
done
|
121 | |
PS1='$ '
|
122 | |
PS2='> '
|
123 | |
PS4='+ '
|
124 | |
|
125 | |
# NLS nuisances.
|
126 | |
LC_ALL=C
|
127 | |
export LC_ALL
|
128 | |
LANGUAGE=C
|
129 | |
export LANGUAGE
|
130 | |
|
131 | |
# CDPATH.
|
132 | |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
133 | 113 |
|
134 | 114 |
# Use a proper internal environment variable to ensure we don't fall
|
135 | 115 |
# into an infinite loop, continuously re-executing ourselves.
|
|
151 | 131 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
152 | 132 |
# Admittedly, this is quite paranoid, since all the known shells bail
|
153 | 133 |
# out after a failed `exec'.
|
154 | |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
155 | |
as_fn_exit 255
|
|
134 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
|
|
135 |
exit 255
|
156 | 136 |
fi
|
157 | 137 |
# We don't want this to propagate to other subprocesses.
|
158 | 138 |
{ _as_can_reexec=; unset _as_can_reexec;}
|
159 | 139 |
if test "x$CONFIG_SHELL" = x; then
|
160 | |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
|
140 |
as_bourne_compatible="as_nop=:
|
|
141 |
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
|
142 |
then :
|
161 | 143 |
emulate sh
|
162 | 144 |
NULLCMD=:
|
163 | 145 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
164 | 146 |
# is contrary to our usage. Disable this feature.
|
165 | 147 |
alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
166 | 148 |
setopt NO_GLOB_SUBST
|
167 | |
else
|
|
149 |
else \$as_nop
|
168 | 150 |
case \`(set -o) 2>/dev/null\` in #(
|
169 | 151 |
*posix*) :
|
170 | 152 |
set -o posix ;; #(
|
|
184 | 166 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
185 | 167 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
186 | 168 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
187 | |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
188 | |
|
189 | |
else
|
|
169 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" )
|
|
170 |
then :
|
|
171 |
|
|
172 |
else \$as_nop
|
190 | 173 |
exitcode=1; echo positional parameters were not saved.
|
191 | 174 |
fi
|
192 | 175 |
test x\$exitcode = x0 || exit 1
|
|
176 |
blah=\$(echo \$(echo blah))
|
|
177 |
test x\"\$blah\" = xblah || exit 1
|
193 | 178 |
test -x / || exit 1"
|
194 | 179 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
195 | 180 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
196 | 181 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
197 | 182 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
198 | 183 |
test \$(( 1 + 1 )) = 2 || exit 1"
|
199 | |
if (eval "$as_required") 2>/dev/null; then :
|
|
184 |
if (eval "$as_required") 2>/dev/null
|
|
185 |
then :
|
200 | 186 |
as_have_required=yes
|
201 | |
else
|
|
187 |
else $as_nop
|
202 | 188 |
as_have_required=no
|
203 | 189 |
fi
|
204 | |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
205 | |
|
206 | |
else
|
|
190 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
|
|
191 |
then :
|
|
192 |
|
|
193 |
else $as_nop
|
207 | 194 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
208 | 195 |
as_found=false
|
209 | 196 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
210 | 197 |
do
|
211 | 198 |
IFS=$as_save_IFS
|
212 | |
test -z "$as_dir" && as_dir=.
|
|
199 |
case $as_dir in #(((
|
|
200 |
'') as_dir=./ ;;
|
|
201 |
*/) ;;
|
|
202 |
*) as_dir=$as_dir/ ;;
|
|
203 |
esac
|
213 | 204 |
as_found=:
|
214 | 205 |
case $as_dir in #(
|
215 | 206 |
/*)
|
216 | 207 |
for as_base in sh bash ksh sh5; do
|
217 | 208 |
# Try only shells that exist, to save several forks.
|
218 | |
as_shell=$as_dir/$as_base
|
|
209 |
as_shell=$as_dir$as_base
|
219 | 210 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
220 | |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
|
211 |
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
|
|
212 |
then :
|
221 | 213 |
CONFIG_SHELL=$as_shell as_have_required=yes
|
222 | |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
|
214 |
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
|
|
215 |
then :
|
223 | 216 |
break 2
|
224 | 217 |
fi
|
225 | 218 |
fi
|
|
227 | 220 |
esac
|
228 | 221 |
as_found=false
|
229 | 222 |
done
|
230 | |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
231 | |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
|
223 |
IFS=$as_save_IFS
|
|
224 |
if $as_found
|
|
225 |
then :
|
|
226 |
|
|
227 |
else $as_nop
|
|
228 |
if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
|
229 |
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
|
|
230 |
then :
|
232 | 231 |
CONFIG_SHELL=$SHELL as_have_required=yes
|
233 | |
fi; }
|
234 | |
IFS=$as_save_IFS
|
235 | |
|
236 | |
|
237 | |
if test "x$CONFIG_SHELL" != x; then :
|
|
232 |
fi
|
|
233 |
fi
|
|
234 |
|
|
235 |
|
|
236 |
if test "x$CONFIG_SHELL" != x
|
|
237 |
then :
|
238 | 238 |
export CONFIG_SHELL
|
239 | 239 |
# We cannot yet assume a decent shell, so we have to provide a
|
240 | 240 |
# neutralization value for shells without unset; and this also
|
|
252 | 252 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
253 | 253 |
# Admittedly, this is quite paranoid, since all the known shells bail
|
254 | 254 |
# out after a failed `exec'.
|
255 | |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
|
255 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
|
256 | 256 |
exit 255
|
257 | 257 |
fi
|
258 | 258 |
|
259 | |
if test x$as_have_required = xno; then :
|
260 | |
$as_echo "$0: This script requires a shell more modern than all"
|
261 | |
$as_echo "$0: the shells that I found on your system."
|
262 | |
if test x${ZSH_VERSION+set} = xset ; then
|
263 | |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
264 | |
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
|
259 |
if test x$as_have_required = xno
|
|
260 |
then :
|
|
261 |
printf "%s\n" "$0: This script requires a shell more modern than all"
|
|
262 |
printf "%s\n" "$0: the shells that I found on your system."
|
|
263 |
if test ${ZSH_VERSION+y} ; then
|
|
264 |
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
|
265 |
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
|
265 | 266 |
else
|
266 | |
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
|
|
267 |
printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
|
267 | 268 |
$0: including any error possibly output before this
|
268 | 269 |
$0: message. Then install a modern shell, or manually run
|
269 | 270 |
$0: the script under such a shell if you do have one."
|
|
290 | 291 |
}
|
291 | 292 |
as_unset=as_fn_unset
|
292 | 293 |
|
|
294 |
|
293 | 295 |
# as_fn_set_status STATUS
|
294 | 296 |
# -----------------------
|
295 | 297 |
# Set $? to STATUS, without forking.
|
|
307 | 309 |
as_fn_set_status $1
|
308 | 310 |
exit $1
|
309 | 311 |
} # as_fn_exit
|
|
312 |
# as_fn_nop
|
|
313 |
# ---------
|
|
314 |
# Do nothing but, unlike ":", preserve the value of $?.
|
|
315 |
as_fn_nop ()
|
|
316 |
{
|
|
317 |
return $?
|
|
318 |
}
|
|
319 |
as_nop=as_fn_nop
|
310 | 320 |
|
311 | 321 |
# as_fn_mkdir_p
|
312 | 322 |
# -------------
|
|
321 | 331 |
as_dirs=
|
322 | 332 |
while :; do
|
323 | 333 |
case $as_dir in #(
|
324 | |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
|
334 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
325 | 335 |
*) as_qdir=$as_dir;;
|
326 | 336 |
esac
|
327 | 337 |
as_dirs="'$as_qdir' $as_dirs"
|
|
330 | 340 |
X"$as_dir" : 'X\(//\)[^/]' \| \
|
331 | 341 |
X"$as_dir" : 'X\(//\)$' \| \
|
332 | 342 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
333 | |
$as_echo X"$as_dir" |
|
|
343 |
printf "%s\n" X"$as_dir" |
|
334 | 344 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
335 | 345 |
s//\1/
|
336 | 346 |
q
|
|
369 | 379 |
# advantage of any shell optimizations that allow amortized linear growth over
|
370 | 380 |
# repeated appends, instead of the typical quadratic growth present in naive
|
371 | 381 |
# implementations.
|
372 | |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
|
382 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
|
|
383 |
then :
|
373 | 384 |
eval 'as_fn_append ()
|
374 | 385 |
{
|
375 | 386 |
eval $1+=\$2
|
376 | 387 |
}'
|
377 | |
else
|
|
388 |
else $as_nop
|
378 | 389 |
as_fn_append ()
|
379 | 390 |
{
|
380 | 391 |
eval $1=\$$1\$2
|
|
386 | 397 |
# Perform arithmetic evaluation on the ARGs, and store the result in the
|
387 | 398 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments
|
388 | 399 |
# must be portable across $(()) and expr.
|
389 | |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
|
400 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
|
|
401 |
then :
|
390 | 402 |
eval 'as_fn_arith ()
|
391 | 403 |
{
|
392 | 404 |
as_val=$(( $* ))
|
393 | 405 |
}'
|
394 | |
else
|
|
406 |
else $as_nop
|
395 | 407 |
as_fn_arith ()
|
396 | 408 |
{
|
397 | 409 |
as_val=`expr "$@" || test $? -eq 1`
|
398 | 410 |
}
|
399 | 411 |
fi # as_fn_arith
|
400 | 412 |
|
|
413 |
# as_fn_nop
|
|
414 |
# ---------
|
|
415 |
# Do nothing but, unlike ":", preserve the value of $?.
|
|
416 |
as_fn_nop ()
|
|
417 |
{
|
|
418 |
return $?
|
|
419 |
}
|
|
420 |
as_nop=as_fn_nop
|
401 | 421 |
|
402 | 422 |
# as_fn_error STATUS ERROR [LINENO LOG_FD]
|
403 | 423 |
# ----------------------------------------
|
|
409 | 429 |
as_status=$1; test $as_status -eq 0 && as_status=1
|
410 | 430 |
if test "$4"; then
|
411 | 431 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
412 | |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
|
432 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
413 | 433 |
fi
|
414 | |
$as_echo "$as_me: error: $2" >&2
|
|
434 |
printf "%s\n" "$as_me: error: $2" >&2
|
415 | 435 |
as_fn_exit $as_status
|
416 | 436 |
} # as_fn_error
|
417 | 437 |
|
|
438 | 458 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
439 | 459 |
X"$0" : 'X\(//\)$' \| \
|
440 | 460 |
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
441 | |
$as_echo X/"$0" |
|
|
461 |
printf "%s\n" X/"$0" |
|
442 | 462 |
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
443 | 463 |
s//\1/
|
444 | 464 |
q
|
|
482 | 502 |
s/-\n.*//
|
483 | 503 |
' >$as_me.lineno &&
|
484 | 504 |
chmod +x "$as_me.lineno" ||
|
485 | |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
|
505 |
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
486 | 506 |
|
487 | 507 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
488 | 508 |
# already done that, so ensure we don't try to do so again and fall
|
|
496 | 516 |
exit
|
497 | 517 |
}
|
498 | 518 |
|
|
519 |
|
|
520 |
# Determine whether it's possible to make 'echo' print without a newline.
|
|
521 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
|
|
522 |
# for compatibility with existing Makefiles.
|
499 | 523 |
ECHO_C= ECHO_N= ECHO_T=
|
500 | 524 |
case `echo -n x` in #(((((
|
501 | 525 |
-n*)
|
|
508 | 532 |
*)
|
509 | 533 |
ECHO_N='-n';;
|
510 | 534 |
esac
|
|
535 |
|
|
536 |
# For backward compatibility with old third-party macros, we provide
|
|
537 |
# the shell variables $as_echo and $as_echo_n. New code should use
|
|
538 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
|
|
539 |
as_echo='printf %s\n'
|
|
540 |
as_echo_n='printf %s'
|
|
541 |
|
511 | 542 |
|
512 | 543 |
rm -f conf$$ conf$$.exe conf$$.file
|
513 | 544 |
if test -d conf$$.dir; then
|
|
576 | 607 |
# Identity of this package.
|
577 | 608 |
PACKAGE_NAME='dosfstools'
|
578 | 609 |
PACKAGE_TARNAME='dosfstools'
|
579 | |
PACKAGE_VERSION='4.2'
|
580 | |
PACKAGE_STRING='dosfstools 4.2'
|
|
610 |
PACKAGE_VERSION='4.2+git'
|
|
611 |
PACKAGE_STRING='dosfstools 4.2+git'
|
581 | 612 |
PACKAGE_BUGREPORT=''
|
582 | 613 |
PACKAGE_URL=''
|
583 | 614 |
|
584 | 615 |
# Factoring default headers for most tests.
|
585 | 616 |
ac_includes_default="\
|
586 | |
#include <stdio.h>
|
587 | |
#ifdef HAVE_SYS_TYPES_H
|
588 | |
# include <sys/types.h>
|
|
617 |
#include <stddef.h>
|
|
618 |
#ifdef HAVE_STDIO_H
|
|
619 |
# include <stdio.h>
|
589 | 620 |
#endif
|
590 | |
#ifdef HAVE_SYS_STAT_H
|
591 | |
# include <sys/stat.h>
|
592 | |
#endif
|
593 | |
#ifdef STDC_HEADERS
|
|
621 |
#ifdef HAVE_STDLIB_H
|
594 | 622 |
# include <stdlib.h>
|
595 | |
# include <stddef.h>
|
596 | |
#else
|
597 | |
# ifdef HAVE_STDLIB_H
|
598 | |
# include <stdlib.h>
|
599 | |
# endif
|
600 | 623 |
#endif
|
601 | 624 |
#ifdef HAVE_STRING_H
|
602 | |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
603 | |
# include <memory.h>
|
604 | |
# endif
|
605 | 625 |
# include <string.h>
|
606 | |
#endif
|
607 | |
#ifdef HAVE_STRINGS_H
|
608 | |
# include <strings.h>
|
609 | 626 |
#endif
|
610 | 627 |
#ifdef HAVE_INTTYPES_H
|
611 | 628 |
# include <inttypes.h>
|
|
613 | 630 |
#ifdef HAVE_STDINT_H
|
614 | 631 |
# include <stdint.h>
|
615 | 632 |
#endif
|
|
633 |
#ifdef HAVE_STRINGS_H
|
|
634 |
# include <strings.h>
|
|
635 |
#endif
|
|
636 |
#ifdef HAVE_SYS_TYPES_H
|
|
637 |
# include <sys/types.h>
|
|
638 |
#endif
|
|
639 |
#ifdef HAVE_SYS_STAT_H
|
|
640 |
# include <sys/stat.h>
|
|
641 |
#endif
|
616 | 642 |
#ifdef HAVE_UNISTD_H
|
617 | 643 |
# include <unistd.h>
|
618 | 644 |
#endif"
|
619 | 645 |
|
|
646 |
ac_header_c_list=
|
620 | 647 |
ac_subst_vars='am__EXEEXT_FALSE
|
621 | 648 |
am__EXEEXT_TRUE
|
622 | 649 |
LTLIBOBJS
|
|
626 | 653 |
XXD_FOUND
|
627 | 654 |
LTLIBICONV
|
628 | 655 |
LIBICONV
|
|
656 |
EGREP
|
|
657 |
GREP
|
|
658 |
CPP
|
629 | 659 |
host_os
|
630 | 660 |
host_vendor
|
631 | 661 |
host_cpu
|
|
635 | 665 |
build_cpu
|
636 | 666 |
build
|
637 | 667 |
LN_S
|
638 | |
EGREP
|
639 | |
GREP
|
640 | |
CPP
|
641 | 668 |
am__fastdepCC_FALSE
|
642 | 669 |
am__fastdepCC_TRUE
|
643 | 670 |
CCDEPMODE
|
|
661 | 688 |
AM_DEFAULT_VERBOSITY
|
662 | 689 |
AM_DEFAULT_V
|
663 | 690 |
AM_V
|
|
691 |
CSCOPE
|
|
692 |
ETAGS
|
|
693 |
CTAGS
|
664 | 694 |
am__untar
|
665 | 695 |
am__tar
|
666 | 696 |
AMTAR
|
|
815 | 845 |
*) ac_optarg=yes ;;
|
816 | 846 |
esac
|
817 | 847 |
|
818 | |
# Accept the important Cygnus configure options, so we can diagnose typos.
|
819 | |
|
820 | 848 |
case $ac_dashdash$ac_option in
|
821 | 849 |
--)
|
822 | 850 |
ac_dashdash=yes ;;
|
|
857 | 885 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
858 | 886 |
# Reject names that are not valid shell variable names.
|
859 | 887 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
860 | |
as_fn_error $? "invalid feature name: $ac_useropt"
|
|
888 |
as_fn_error $? "invalid feature name: \`$ac_useropt'"
|
861 | 889 |
ac_useropt_orig=$ac_useropt
|
862 | |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
890 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
863 | 891 |
case $ac_user_opts in
|
864 | 892 |
*"
|
865 | 893 |
"enable_$ac_useropt"
|
|
883 | 911 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
884 | 912 |
# Reject names that are not valid shell variable names.
|
885 | 913 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
886 | |
as_fn_error $? "invalid feature name: $ac_useropt"
|
|
914 |
as_fn_error $? "invalid feature name: \`$ac_useropt'"
|
887 | 915 |
ac_useropt_orig=$ac_useropt
|
888 | |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
916 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
889 | 917 |
case $ac_user_opts in
|
890 | 918 |
*"
|
891 | 919 |
"enable_$ac_useropt"
|
|
1096 | 1124 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
1097 | 1125 |
# Reject names that are not valid shell variable names.
|
1098 | 1126 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
1099 | |
as_fn_error $? "invalid package name: $ac_useropt"
|
|
1127 |
as_fn_error $? "invalid package name: \`$ac_useropt'"
|
1100 | 1128 |
ac_useropt_orig=$ac_useropt
|
1101 | |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
1129 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
1102 | 1130 |
case $ac_user_opts in
|
1103 | 1131 |
*"
|
1104 | 1132 |
"with_$ac_useropt"
|
|
1112 | 1140 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
1113 | 1141 |
# Reject names that are not valid shell variable names.
|
1114 | 1142 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
1115 | |
as_fn_error $? "invalid package name: $ac_useropt"
|
|
1143 |
as_fn_error $? "invalid package name: \`$ac_useropt'"
|
1116 | 1144 |
ac_useropt_orig=$ac_useropt
|
1117 | |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
1145 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
1118 | 1146 |
case $ac_user_opts in
|
1119 | 1147 |
*"
|
1120 | 1148 |
"with_$ac_useropt"
|
|
1158 | 1186 |
|
1159 | 1187 |
*)
|
1160 | 1188 |
# FIXME: should be removed in autoconf 3.0.
|
1161 | |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
|
1189 |
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
|
1162 | 1190 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
1163 | |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
|
1191 |
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
|
1164 | 1192 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
1165 | 1193 |
;;
|
1166 | 1194 |
|
|
1176 | 1204 |
case $enable_option_checking in
|
1177 | 1205 |
no) ;;
|
1178 | 1206 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
1179 | |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
|
1207 |
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
1180 | 1208 |
esac
|
1181 | 1209 |
fi
|
1182 | 1210 |
|
|
1240 | 1268 |
X"$as_myself" : 'X\(//\)[^/]' \| \
|
1241 | 1269 |
X"$as_myself" : 'X\(//\)$' \| \
|
1242 | 1270 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
1243 | |
$as_echo X"$as_myself" |
|
|
1271 |
printf "%s\n" X"$as_myself" |
|
1244 | 1272 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
1245 | 1273 |
s//\1/
|
1246 | 1274 |
q
|
|
1297 | 1325 |
# Omit some internal or obsolete options to make the list less imposing.
|
1298 | 1326 |
# This message is too long to be a string in the A/UX 3.1 sh.
|
1299 | 1327 |
cat <<_ACEOF
|
1300 | |
\`configure' configures dosfstools 4.2 to adapt to many kinds of systems.
|
|
1328 |
\`configure' configures dosfstools 4.2+git to adapt to many kinds of systems.
|
1301 | 1329 |
|
1302 | 1330 |
Usage: $0 [OPTION]... [VAR=VALUE]...
|
1303 | 1331 |
|
|
1368 | 1396 |
|
1369 | 1397 |
if test -n "$ac_init_help"; then
|
1370 | 1398 |
case $ac_init_help in
|
1371 | |
short | recursive ) echo "Configuration of dosfstools 4.2:";;
|
|
1399 |
short | recursive ) echo "Configuration of dosfstools 4.2+git:";;
|
1372 | 1400 |
esac
|
1373 | 1401 |
cat <<\_ACEOF
|
1374 | 1402 |
|
|
1427 | 1455 |
case "$ac_dir" in
|
1428 | 1456 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
1429 | 1457 |
*)
|
1430 | |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
|
1458 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
|
1431 | 1459 |
# A ".." for each directory in $ac_dir_suffix.
|
1432 | |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
|
1460 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
1433 | 1461 |
case $ac_top_builddir_sub in
|
1434 | 1462 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
1435 | 1463 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
1457 | 1485 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
1458 | 1486 |
|
1459 | 1487 |
cd "$ac_dir" || { ac_status=$?; continue; }
|
1460 | |
# Check for guested configure.
|
|
1488 |
# Check for configure.gnu first; this name is used for a wrapper for
|
|
1489 |
# Metaconfig's "Configure" on case-insensitive file systems.
|
1461 | 1490 |
if test -f "$ac_srcdir/configure.gnu"; then
|
1462 | 1491 |
echo &&
|
1463 | 1492 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
|
1465 | 1494 |
echo &&
|
1466 | 1495 |
$SHELL "$ac_srcdir/configure" --help=recursive
|
1467 | 1496 |
else
|
1468 | |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
|
1497 |
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
1469 | 1498 |
fi || ac_status=$?
|
1470 | 1499 |
cd "$ac_pwd" || { ac_status=$?; break; }
|
1471 | 1500 |
done
|
|
1474 | 1503 |
test -n "$ac_init_help" && exit $ac_status
|
1475 | 1504 |
if $ac_init_version; then
|
1476 | 1505 |
cat <<\_ACEOF
|
1477 | |
dosfstools configure 4.2
|
1478 | |
generated by GNU Autoconf 2.69
|
1479 | |
|
1480 | |
Copyright (C) 2012 Free Software Foundation, Inc.
|
|
1506 |
dosfstools configure 4.2+git
|
|
1507 |
generated by GNU Autoconf 2.71
|
|
1508 |
|
|
1509 |
Copyright (C) 2021 Free Software Foundation, Inc.
|
1481 | 1510 |
This configure script is free software; the Free Software Foundation
|
1482 | 1511 |
gives unlimited permission to copy, distribute and modify it.
|
1483 | 1512 |
_ACEOF
|
|
1494 | 1523 |
ac_fn_c_try_compile ()
|
1495 | 1524 |
{
|
1496 | 1525 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
1497 | |
rm -f conftest.$ac_objext
|
|
1526 |
rm -f conftest.$ac_objext conftest.beam
|
1498 | 1527 |
if { { ac_try="$ac_compile"
|
1499 | 1528 |
case "(($ac_try" in
|
1500 | 1529 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
1501 | 1530 |
*) ac_try_echo=$ac_try;;
|
1502 | 1531 |
esac
|
1503 | 1532 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
1504 | |
$as_echo "$ac_try_echo"; } >&5
|
|
1533 |
printf "%s\n" "$ac_try_echo"; } >&5
|
1505 | 1534 |
(eval "$ac_compile") 2>conftest.err
|
1506 | 1535 |
ac_status=$?
|
1507 | 1536 |
if test -s conftest.err; then
|
|
1509 | 1538 |
cat conftest.er1 >&5
|
1510 | 1539 |
mv -f conftest.er1 conftest.err
|
1511 | 1540 |
fi
|
1512 | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
1541 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
1513 | 1542 |
test $ac_status = 0; } && {
|
1514 | 1543 |
test -z "$ac_c_werror_flag" ||
|
1515 | 1544 |
test ! -s conftest.err
|
1516 | |
} && test -s conftest.$ac_objext; then :
|
|
1545 |
} && test -s conftest.$ac_objext
|
|
1546 |
then :
|
1517 | 1547 |
ac_retval=0
|
1518 | |
else
|
1519 | |
$as_echo "$as_me: failed program was:" >&5
|
|
1548 |
else $as_nop
|
|
1549 |
printf "%s\n" "$as_me: failed program was:" >&5
|
1520 | 1550 |
sed 's/^/| /' conftest.$ac_ext >&5
|
1521 | 1551 |
|
1522 | 1552 |
ac_retval=1
|
|
1525 | 1555 |
as_fn_set_status $ac_retval
|
1526 | 1556 |
|
1527 | 1557 |
} # ac_fn_c_try_compile
|
1528 | |
|
1529 | |
# ac_fn_c_try_cpp LINENO
|
1530 | |
# ----------------------
|
1531 | |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
1532 | |
ac_fn_c_try_cpp ()
|
1533 | |
{
|
1534 | |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
1535 | |
if { { ac_try="$ac_cpp conftest.$ac_ext"
|
1536 | |
case "(($ac_try" in
|
1537 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
1538 | |
*) ac_try_echo=$ac_try;;
|
1539 | |
esac
|
1540 | |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
1541 | |
$as_echo "$ac_try_echo"; } >&5
|
1542 | |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
1543 | |
ac_status=$?
|
1544 | |
if test -s conftest.err; then
|
1545 | |
grep -v '^ *+' conftest.err >conftest.er1
|
1546 | |
cat conftest.er1 >&5
|
1547 | |
mv -f conftest.er1 conftest.err
|
1548 | |
fi
|
1549 | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
1550 | |
test $ac_status = 0; } > conftest.i && {
|
1551 | |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
1552 | |
test ! -s conftest.err
|
1553 | |
}; then :
|
1554 | |
ac_retval=0
|
1555 | |
else
|
1556 | |
$as_echo "$as_me: failed program was:" >&5
|
1557 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
1558 | |
|
1559 | |
ac_retval=1
|
1560 | |
fi
|
1561 | |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
1562 | |
as_fn_set_status $ac_retval
|
1563 | |
|
1564 | |
} # ac_fn_c_try_cpp
|
1565 | |
|
1566 | |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
1567 | |
# -------------------------------------------------------
|
1568 | |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
1569 | |
# the include files in INCLUDES and setting the cache variable VAR
|
1570 | |
# accordingly.
|
1571 | |
ac_fn_c_check_header_mongrel ()
|
1572 | |
{
|
1573 | |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
1574 | |
if eval \${$3+:} false; then :
|
1575 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
1576 | |
$as_echo_n "checking for $2... " >&6; }
|
1577 | |
if eval \${$3+:} false; then :
|
1578 | |
$as_echo_n "(cached) " >&6
|
1579 | |
fi
|
1580 | |
eval ac_res=\$$3
|
1581 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
1582 | |
$as_echo "$ac_res" >&6; }
|
1583 | |
else
|
1584 | |
# Is the header compilable?
|
1585 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
1586 | |
$as_echo_n "checking $2 usability... " >&6; }
|
1587 | |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
1588 | |
/* end confdefs.h. */
|
1589 | |
$4
|
1590 | |
#include <$2>
|
1591 | |
_ACEOF
|
1592 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
1593 | |
ac_header_compiler=yes
|
1594 | |
else
|
1595 | |
ac_header_compiler=no
|
1596 | |
fi
|
1597 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
1598 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
1599 | |
$as_echo "$ac_header_compiler" >&6; }
|
1600 | |
|
1601 | |
# Is the header present?
|
1602 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
1603 | |
$as_echo_n "checking $2 presence... " >&6; }
|
1604 | |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
1605 | |
/* end confdefs.h. */
|
1606 | |
#include <$2>
|
1607 | |
_ACEOF
|
1608 | |
if ac_fn_c_try_cpp "$LINENO"; then :
|
1609 | |
ac_header_preproc=yes
|
1610 | |
else
|
1611 | |
ac_header_preproc=no
|
1612 | |
fi
|
1613 | |
rm -f conftest.err conftest.i conftest.$ac_ext
|
1614 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
1615 | |
$as_echo "$ac_header_preproc" >&6; }
|
1616 | |
|
1617 | |
# So? What about this header?
|
1618 | |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
1619 | |
yes:no: )
|
1620 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
1621 | |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
1622 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
1623 | |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
1624 | |
;;
|
1625 | |
no:yes:* )
|
1626 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
1627 | |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
1628 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
1629 | |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
1630 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
1631 | |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
1632 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
1633 | |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
1634 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
1635 | |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
1636 | |
;;
|
1637 | |
esac
|
1638 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
1639 | |
$as_echo_n "checking for $2... " >&6; }
|
1640 | |
if eval \${$3+:} false; then :
|
1641 | |
$as_echo_n "(cached) " >&6
|
1642 | |
else
|
1643 | |
eval "$3=\$ac_header_compiler"
|
1644 | |
fi
|
1645 | |
eval ac_res=\$$3
|
1646 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
1647 | |
$as_echo "$ac_res" >&6; }
|
1648 | |
fi
|
1649 | |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
1650 | |
|
1651 | |
} # ac_fn_c_check_header_mongrel
|
1652 | |
|
1653 | |
# ac_fn_c_try_run LINENO
|
1654 | |
# ----------------------
|
1655 | |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
1656 | |
# that executables *can* be run.
|
1657 | |
ac_fn_c_try_run ()
|
1658 | |
{
|
1659 | |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
1660 | |
if { { ac_try="$ac_link"
|
1661 | |
case "(($ac_try" in
|
1662 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
1663 | |
*) ac_try_echo=$ac_try;;
|
1664 | |
esac
|
1665 | |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
1666 | |
$as_echo "$ac_try_echo"; } >&5
|
1667 | |
(eval "$ac_link") 2>&5
|
1668 | |
ac_status=$?
|
1669 | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
1670 | |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
1671 | |
{ { case "(($ac_try" in
|
1672 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
1673 | |
*) ac_try_echo=$ac_try;;
|
1674 | |
esac
|
1675 | |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
1676 | |
$as_echo "$ac_try_echo"; } >&5
|
1677 | |
(eval "$ac_try") 2>&5
|
1678 | |
ac_status=$?
|
1679 | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
1680 | |
test $ac_status = 0; }; }; then :
|
1681 | |
ac_retval=0
|
1682 | |
else
|
1683 | |
$as_echo "$as_me: program exited with status $ac_status" >&5
|
1684 | |
$as_echo "$as_me: failed program was:" >&5
|
1685 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
1686 | |
|
1687 | |
ac_retval=$ac_status
|
1688 | |
fi
|
1689 | |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
1690 | |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
1691 | |
as_fn_set_status $ac_retval
|
1692 | |
|
1693 | |
} # ac_fn_c_try_run
|
1694 | 1558 |
|
1695 | 1559 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
1696 | 1560 |
# -------------------------------------------------------
|
|
1699 | 1563 |
ac_fn_c_check_header_compile ()
|
1700 | 1564 |
{
|
1701 | 1565 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
1702 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
1703 | |
$as_echo_n "checking for $2... " >&6; }
|
1704 | |
if eval \${$3+:} false; then :
|
1705 | |
$as_echo_n "(cached) " >&6
|
1706 | |
else
|
|
1566 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
1567 |
printf %s "checking for $2... " >&6; }
|
|
1568 |
if eval test \${$3+y}
|
|
1569 |
then :
|
|
1570 |
printf %s "(cached) " >&6
|
|
1571 |
else $as_nop
|
1707 | 1572 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
1708 | 1573 |
/* end confdefs.h. */
|
1709 | 1574 |
$4
|
1710 | 1575 |
#include <$2>
|
1711 | 1576 |
_ACEOF
|
1712 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
1577 |
if ac_fn_c_try_compile "$LINENO"
|
|
1578 |
then :
|
1713 | 1579 |
eval "$3=yes"
|
1714 | |
else
|
|
1580 |
else $as_nop
|
1715 | 1581 |
eval "$3=no"
|
1716 | 1582 |
fi
|
1717 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
1583 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
1718 | 1584 |
fi
|
1719 | 1585 |
eval ac_res=\$$3
|
1720 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
1721 | |
$as_echo "$ac_res" >&6; }
|
|
1586 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
1587 |
printf "%s\n" "$ac_res" >&6; }
|
1722 | 1588 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
1723 | 1589 |
|
1724 | 1590 |
} # ac_fn_c_check_header_compile
|
|
1729 | 1595 |
ac_fn_c_try_link ()
|
1730 | 1596 |
{
|
1731 | 1597 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
1732 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
1598 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
|
1733 | 1599 |
if { { ac_try="$ac_link"
|
1734 | 1600 |
case "(($ac_try" in
|
1735 | 1601 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
1736 | 1602 |
*) ac_try_echo=$ac_try;;
|
1737 | 1603 |
esac
|
1738 | 1604 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
1739 | |
$as_echo "$ac_try_echo"; } >&5
|
|
1605 |
printf "%s\n" "$ac_try_echo"; } >&5
|
1740 | 1606 |
(eval "$ac_link") 2>conftest.err
|
1741 | 1607 |
ac_status=$?
|
1742 | 1608 |
if test -s conftest.err; then
|
|
1744 | 1610 |
cat conftest.er1 >&5
|
1745 | 1611 |
mv -f conftest.er1 conftest.err
|
1746 | 1612 |
fi
|
1747 | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
1613 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
1748 | 1614 |
test $ac_status = 0; } && {
|
1749 | 1615 |
test -z "$ac_c_werror_flag" ||
|
1750 | 1616 |
test ! -s conftest.err
|
1751 | 1617 |
} && test -s conftest$ac_exeext && {
|
1752 | 1618 |
test "$cross_compiling" = yes ||
|
1753 | 1619 |
test -x conftest$ac_exeext
|
1754 | |
}; then :
|
|
1620 |
}
|
|
1621 |
then :
|
1755 | 1622 |
ac_retval=0
|
1756 | |
else
|
1757 | |
$as_echo "$as_me: failed program was:" >&5
|
|
1623 |
else $as_nop
|
|
1624 |
printf "%s\n" "$as_me: failed program was:" >&5
|
1758 | 1625 |
sed 's/^/| /' conftest.$ac_ext >&5
|
1759 | 1626 |
|
1760 | 1627 |
ac_retval=1
|
|
1775 | 1642 |
ac_fn_c_check_func ()
|
1776 | 1643 |
{
|
1777 | 1644 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
1778 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
1779 | |
$as_echo_n "checking for $2... " >&6; }
|
1780 | |
if eval \${$3+:} false; then :
|
1781 | |
$as_echo_n "(cached) " >&6
|
1782 | |
else
|
|
1645 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
1646 |
printf %s "checking for $2... " >&6; }
|
|
1647 |
if eval test \${$3+y}
|
|
1648 |
then :
|
|
1649 |
printf %s "(cached) " >&6
|
|
1650 |
else $as_nop
|
1783 | 1651 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
1784 | 1652 |
/* end confdefs.h. */
|
1785 | 1653 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
|
1787 | 1655 |
#define $2 innocuous_$2
|
1788 | 1656 |
|
1789 | 1657 |
/* System header to define __stub macros and hopefully few prototypes,
|
1790 | |
which can conflict with char $2 (); below.
|
1791 | |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
1792 | |
<limits.h> exists even on freestanding compilers. */
|
1793 | |
|
1794 | |
#ifdef __STDC__
|
1795 | |
# include <limits.h>
|
1796 | |
#else
|
1797 | |
# include <assert.h>
|
1798 | |
#endif
|
1799 | |
|
|
1658 |
which can conflict with char $2 (); below. */
|
|
1659 |
|
|
1660 |
#include <limits.h>
|
1800 | 1661 |
#undef $2
|
1801 | 1662 |
|
1802 | 1663 |
/* Override any GCC internal prototype to avoid an error.
|
|
1814 | 1675 |
#endif
|
1815 | 1676 |
|
1816 | 1677 |
int
|
1817 | |
main ()
|
|
1678 |
main (void)
|
1818 | 1679 |
{
|
1819 | 1680 |
return $2 ();
|
1820 | 1681 |
;
|
1821 | 1682 |
return 0;
|
1822 | 1683 |
}
|
1823 | 1684 |
_ACEOF
|
1824 | |
if ac_fn_c_try_link "$LINENO"; then :
|
|
1685 |
if ac_fn_c_try_link "$LINENO"
|
|
1686 |
then :
|
1825 | 1687 |
eval "$3=yes"
|
1826 | |
else
|
|
1688 |
else $as_nop
|
1827 | 1689 |
eval "$3=no"
|
1828 | 1690 |
fi
|
1829 | |
rm -f core conftest.err conftest.$ac_objext \
|
|
1691 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
1830 | 1692 |
conftest$ac_exeext conftest.$ac_ext
|
1831 | 1693 |
fi
|
1832 | 1694 |
eval ac_res=\$$3
|
1833 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
1834 | |
$as_echo "$ac_res" >&6; }
|
|
1695 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
1696 |
printf "%s\n" "$ac_res" >&6; }
|
1835 | 1697 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
1836 | 1698 |
|
1837 | 1699 |
} # ac_fn_c_check_func
|
1838 | 1700 |
|
1839 | |
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
|
1840 | |
# ---------------------------------------------
|
|
1701 |
# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
|
|
1702 |
# ------------------------------------------------------------------
|
1841 | 1703 |
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
|
1842 | |
# accordingly.
|
1843 | |
ac_fn_c_check_decl ()
|
|
1704 |
# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
|
|
1705 |
ac_fn_check_decl ()
|
1844 | 1706 |
{
|
1845 | 1707 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
1846 | 1708 |
as_decl_name=`echo $2|sed 's/ *(.*//'`
|
|
1709 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
|
|
1710 |
printf %s "checking whether $as_decl_name is declared... " >&6; }
|
|
1711 |
if eval test \${$3+y}
|
|
1712 |
then :
|
|
1713 |
printf %s "(cached) " >&6
|
|
1714 |
else $as_nop
|
1847 | 1715 |
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
|
1848 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
|
1849 | |
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
|
1850 | |
if eval \${$3+:} false; then :
|
1851 | |
$as_echo_n "(cached) " >&6
|
1852 | |
else
|
|
1716 |
eval ac_save_FLAGS=\$$6
|
|
1717 |
as_fn_append $6 " $5"
|
1853 | 1718 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
1854 | 1719 |
/* end confdefs.h. */
|
1855 | 1720 |
$4
|
1856 | 1721 |
int
|
1857 | |
main ()
|
|
1722 |
main (void)
|
1858 | 1723 |
{
|
1859 | 1724 |
#ifndef $as_decl_name
|
1860 | 1725 |
#ifdef __cplusplus
|
|
1868 | 1733 |
return 0;
|
1869 | 1734 |
}
|
1870 | 1735 |
_ACEOF
|
1871 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
1736 |
if ac_fn_c_try_compile "$LINENO"
|
|
1737 |
then :
|
1872 | 1738 |
eval "$3=yes"
|
1873 | |
else
|
|
1739 |
else $as_nop
|
1874 | 1740 |
eval "$3=no"
|
1875 | 1741 |
fi
|
1876 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
1742 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
1743 |
eval $6=\$ac_save_FLAGS
|
|
1744 |
|
1877 | 1745 |
fi
|
1878 | 1746 |
eval ac_res=\$$3
|
1879 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
1880 | |
$as_echo "$ac_res" >&6; }
|
|
1747 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
1748 |
printf "%s\n" "$ac_res" >&6; }
|
1881 | 1749 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
1882 | 1750 |
|
1883 | |
} # ac_fn_c_check_decl
|
|
1751 |
} # ac_fn_check_decl
|
|
1752 |
|
|
1753 |
# ac_fn_c_try_cpp LINENO
|
|
1754 |
# ----------------------
|
|
1755 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
|
1756 |
ac_fn_c_try_cpp ()
|
|
1757 |
{
|
|
1758 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1759 |
if { { ac_try="$ac_cpp conftest.$ac_ext"
|
|
1760 |
case "(($ac_try" in
|
|
1761 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
1762 |
*) ac_try_echo=$ac_try;;
|
|
1763 |
esac
|
|
1764 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
1765 |
printf "%s\n" "$ac_try_echo"; } >&5
|
|
1766 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
|
1767 |
ac_status=$?
|
|
1768 |
if test -s conftest.err; then
|
|
1769 |
grep -v '^ *+' conftest.err >conftest.er1
|
|
1770 |
cat conftest.er1 >&5
|
|
1771 |
mv -f conftest.er1 conftest.err
|
|
1772 |
fi
|
|
1773 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
1774 |
test $ac_status = 0; } > conftest.i && {
|
|
1775 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
1776 |
test ! -s conftest.err
|
|
1777 |
}
|
|
1778 |
then :
|
|
1779 |
ac_retval=0
|
|
1780 |
else $as_nop
|
|
1781 |
printf "%s\n" "$as_me: failed program was:" >&5
|
|
1782 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
1783 |
|
|
1784 |
ac_retval=1
|
|
1785 |
fi
|
|
1786 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
1787 |
as_fn_set_status $ac_retval
|
|
1788 |
|
|
1789 |
} # ac_fn_c_try_cpp
|
|
1790 |
|
|
1791 |
# ac_fn_c_try_run LINENO
|
|
1792 |
# ----------------------
|
|
1793 |
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
|
|
1794 |
# executables *can* be run.
|
|
1795 |
ac_fn_c_try_run ()
|
|
1796 |
{
|
|
1797 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1798 |
if { { ac_try="$ac_link"
|
|
1799 |
case "(($ac_try" in
|
|
1800 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
1801 |
*) ac_try_echo=$ac_try;;
|
|
1802 |
esac
|
|
1803 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
1804 |
printf "%s\n" "$ac_try_echo"; } >&5
|
|
1805 |
(eval "$ac_link") 2>&5
|
|
1806 |
ac_status=$?
|
|
1807 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
1808 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
|
1809 |
{ { case "(($ac_try" in
|
|
1810 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
1811 |
*) ac_try_echo=$ac_try;;
|
|
1812 |
esac
|
|
1813 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
1814 |
printf "%s\n" "$ac_try_echo"; } >&5
|
|
1815 |
(eval "$ac_try") 2>&5
|
|
1816 |
ac_status=$?
|
|
1817 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
1818 |
test $ac_status = 0; }; }
|
|
1819 |
then :
|
|
1820 |
ac_retval=0
|
|
1821 |
else $as_nop
|
|
1822 |
printf "%s\n" "$as_me: program exited with status $ac_status" >&5
|
|
1823 |
printf "%s\n" "$as_me: failed program was:" >&5
|
|
1824 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
1825 |
|
|
1826 |
ac_retval=$ac_status
|
|
1827 |
fi
|
|
1828 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
|
1829 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
1830 |
as_fn_set_status $ac_retval
|
|
1831 |
|
|
1832 |
} # ac_fn_c_try_run
|
|
1833 |
ac_configure_args_raw=
|
|
1834 |
for ac_arg
|
|
1835 |
do
|
|
1836 |
case $ac_arg in
|
|
1837 |
*\'*)
|
|
1838 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
1839 |
esac
|
|
1840 |
as_fn_append ac_configure_args_raw " '$ac_arg'"
|
|
1841 |
done
|
|
1842 |
|
|
1843 |
case $ac_configure_args_raw in
|
|
1844 |
*$as_nl*)
|
|
1845 |
ac_safe_unquote= ;;
|
|
1846 |
*)
|
|
1847 |
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
|
|
1848 |
ac_unsafe_a="$ac_unsafe_z#~"
|
|
1849 |
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
|
|
1850 |
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
|
|
1851 |
esac
|
|
1852 |
|
1884 | 1853 |
cat >config.log <<_ACEOF
|
1885 | 1854 |
This file contains any messages produced by compilers while
|
1886 | 1855 |
running configure, to aid debugging if configure makes a mistake.
|
1887 | 1856 |
|
1888 | |
It was created by dosfstools $as_me 4.2, which was
|
1889 | |
generated by GNU Autoconf 2.69. Invocation command line was
|
1890 | |
|
1891 | |
$ $0 $@
|
|
1857 |
It was created by dosfstools $as_me 4.2+git, which was
|
|
1858 |
generated by GNU Autoconf 2.71. Invocation command line was
|
|
1859 |
|
|
1860 |
$ $0$ac_configure_args_raw
|
1892 | 1861 |
|
1893 | 1862 |
_ACEOF
|
1894 | 1863 |
exec 5>>config.log
|
|
1921 | 1890 |
for as_dir in $PATH
|
1922 | 1891 |
do
|
1923 | 1892 |
IFS=$as_save_IFS
|
1924 | |
test -z "$as_dir" && as_dir=.
|
1925 | |
$as_echo "PATH: $as_dir"
|
|
1893 |
case $as_dir in #(((
|
|
1894 |
'') as_dir=./ ;;
|
|
1895 |
*/) ;;
|
|
1896 |
*) as_dir=$as_dir/ ;;
|
|
1897 |
esac
|
|
1898 |
printf "%s\n" "PATH: $as_dir"
|
1926 | 1899 |
done
|
1927 | 1900 |
IFS=$as_save_IFS
|
1928 | 1901 |
|
|
1957 | 1930 |
| -silent | --silent | --silen | --sile | --sil)
|
1958 | 1931 |
continue ;;
|
1959 | 1932 |
*\'*)
|
1960 | |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
1933 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
1961 | 1934 |
esac
|
1962 | 1935 |
case $ac_pass in
|
1963 | 1936 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
|
1992 | 1965 |
# WARNING: Use '\'' to represent an apostrophe within the trap.
|
1993 | 1966 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
1994 | 1967 |
trap 'exit_status=$?
|
|
1968 |
# Sanitize IFS.
|
|
1969 |
IFS=" "" $as_nl"
|
1995 | 1970 |
# Save into config.log some information that might help in debugging.
|
1996 | 1971 |
{
|
1997 | 1972 |
echo
|
1998 | 1973 |
|
1999 | |
$as_echo "## ---------------- ##
|
|
1974 |
printf "%s\n" "## ---------------- ##
|
2000 | 1975 |
## Cache variables. ##
|
2001 | 1976 |
## ---------------- ##"
|
2002 | 1977 |
echo
|
|
2007 | 1982 |
case $ac_val in #(
|
2008 | 1983 |
*${as_nl}*)
|
2009 | 1984 |
case $ac_var in #(
|
2010 | |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
2011 | |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
|
1985 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
|
1986 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
2012 | 1987 |
esac
|
2013 | 1988 |
case $ac_var in #(
|
2014 | 1989 |
_ | IFS | as_nl) ;; #(
|
|
2032 | 2007 |
)
|
2033 | 2008 |
echo
|
2034 | 2009 |
|
2035 | |
$as_echo "## ----------------- ##
|
|
2010 |
printf "%s\n" "## ----------------- ##
|
2036 | 2011 |
## Output variables. ##
|
2037 | 2012 |
## ----------------- ##"
|
2038 | 2013 |
echo
|
|
2040 | 2015 |
do
|
2041 | 2016 |
eval ac_val=\$$ac_var
|
2042 | 2017 |
case $ac_val in
|
2043 | |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
2018 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
2044 | 2019 |
esac
|
2045 | |
$as_echo "$ac_var='\''$ac_val'\''"
|
|
2020 |
printf "%s\n" "$ac_var='\''$ac_val'\''"
|
2046 | 2021 |
done | sort
|
2047 | 2022 |
echo
|
2048 | 2023 |
|
2049 | 2024 |
if test -n "$ac_subst_files"; then
|
2050 | |
$as_echo "## ------------------- ##
|
|
2025 |
printf "%s\n" "## ------------------- ##
|
2051 | 2026 |
## File substitutions. ##
|
2052 | 2027 |
## ------------------- ##"
|
2053 | 2028 |
echo
|
|
2055 | 2030 |
do
|
2056 | 2031 |
eval ac_val=\$$ac_var
|
2057 | 2032 |
case $ac_val in
|
2058 | |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
2033 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
2059 | 2034 |
esac
|
2060 | |
$as_echo "$ac_var='\''$ac_val'\''"
|
|
2035 |
printf "%s\n" "$ac_var='\''$ac_val'\''"
|
2061 | 2036 |
done | sort
|
2062 | 2037 |
echo
|
2063 | 2038 |
fi
|
2064 | 2039 |
|
2065 | 2040 |
if test -s confdefs.h; then
|
2066 | |
$as_echo "## ----------- ##
|
|
2041 |
printf "%s\n" "## ----------- ##
|
2067 | 2042 |
## confdefs.h. ##
|
2068 | 2043 |
## ----------- ##"
|
2069 | 2044 |
echo
|
|
2071 | 2046 |
echo
|
2072 | 2047 |
fi
|
2073 | 2048 |
test "$ac_signal" != 0 &&
|
2074 | |
$as_echo "$as_me: caught signal $ac_signal"
|
2075 | |
$as_echo "$as_me: exit $exit_status"
|
|
2049 |
printf "%s\n" "$as_me: caught signal $ac_signal"
|
|
2050 |
printf "%s\n" "$as_me: exit $exit_status"
|
2076 | 2051 |
} >&5
|
2077 | 2052 |
rm -f core *.core core.conftest.* &&
|
2078 | 2053 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
|
2086 | 2061 |
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
2087 | 2062 |
rm -f -r conftest* confdefs.h
|
2088 | 2063 |
|
2089 | |
$as_echo "/* confdefs.h */" > confdefs.h
|
|
2064 |
printf "%s\n" "/* confdefs.h */" > confdefs.h
|
2090 | 2065 |
|
2091 | 2066 |
# Predefined preprocessor variables.
|
2092 | 2067 |
|
2093 | |
cat >>confdefs.h <<_ACEOF
|
2094 | |
#define PACKAGE_NAME "$PACKAGE_NAME"
|
2095 | |
_ACEOF
|
2096 | |
|
2097 | |
cat >>confdefs.h <<_ACEOF
|
2098 | |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
2099 | |
_ACEOF
|
2100 | |
|
2101 | |
cat >>confdefs.h <<_ACEOF
|
2102 | |
#define PACKAGE_VERSION "$PACKAGE_VERSION"
|
2103 | |
_ACEOF
|
2104 | |
|
2105 | |
cat >>confdefs.h <<_ACEOF
|
2106 | |
#define PACKAGE_STRING "$PACKAGE_STRING"
|
2107 | |
_ACEOF
|
2108 | |
|
2109 | |
cat >>confdefs.h <<_ACEOF
|
2110 | |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
2111 | |
_ACEOF
|
2112 | |
|
2113 | |
cat >>confdefs.h <<_ACEOF
|
2114 | |
#define PACKAGE_URL "$PACKAGE_URL"
|
2115 | |
_ACEOF
|
|
2068 |
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
|
|
2069 |
|
|
2070 |
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
|
|
2071 |
|
|
2072 |
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
|
|
2073 |
|
|
2074 |
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
|
|
2075 |
|
|
2076 |
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
|
|
2077 |
|
|
2078 |
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
|
2116 | 2079 |
|
2117 | 2080 |
|
2118 | 2081 |
# Let the site file select an alternate cache file if it wants to.
|
2119 | 2082 |
# Prefer an explicitly selected file to automatically selected ones.
|
2120 | |
ac_site_file1=NONE
|
2121 | |
ac_site_file2=NONE
|
2122 | 2083 |
if test -n "$CONFIG_SITE"; then
|
2123 | |
# We do not want a PATH search for config.site.
|
2124 | |
case $CONFIG_SITE in #((
|
2125 | |
-*) ac_site_file1=./$CONFIG_SITE;;
|
2126 | |
*/*) ac_site_file1=$CONFIG_SITE;;
|
2127 | |
*) ac_site_file1=./$CONFIG_SITE;;
|
2128 | |
esac
|
|
2084 |
ac_site_files="$CONFIG_SITE"
|
2129 | 2085 |
elif test "x$prefix" != xNONE; then
|
2130 | |
ac_site_file1=$prefix/share/config.site
|
2131 | |
ac_site_file2=$prefix/etc/config.site
|
|
2086 |
ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
|
2132 | 2087 |
else
|
2133 | |
ac_site_file1=$ac_default_prefix/share/config.site
|
2134 | |
ac_site_file2=$ac_default_prefix/etc/config.site
|
2135 | |
fi
|
2136 | |
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
|
2088 |
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
2089 |
fi
|
|
2090 |
|
|
2091 |
for ac_site_file in $ac_site_files
|
2137 | 2092 |
do
|
2138 | |
test "x$ac_site_file" = xNONE && continue
|
2139 | |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
2140 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
2141 | |
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
|
2093 |
case $ac_site_file in #(
|
|
2094 |
*/*) :
|
|
2095 |
;; #(
|
|
2096 |
*) :
|
|
2097 |
ac_site_file=./$ac_site_file ;;
|
|
2098 |
esac
|
|
2099 |
if test -f "$ac_site_file" && test -r "$ac_site_file"; then
|
|
2100 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
|
2101 |
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
|
2142 | 2102 |
sed 's/^/| /' "$ac_site_file" >&5
|
2143 | 2103 |
. "$ac_site_file" \
|
2144 | |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
2145 | |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
2104 |
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
2105 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
2146 | 2106 |
as_fn_error $? "failed to load site script $ac_site_file
|
2147 | 2107 |
See \`config.log' for more details" "$LINENO" 5; }
|
2148 | 2108 |
fi
|
|
2152 | 2112 |
# Some versions of bash will fail to source /dev/null (special files
|
2153 | 2113 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
2154 | 2114 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
2155 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
2156 | |
$as_echo "$as_me: loading cache $cache_file" >&6;}
|
|
2115 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
|
2116 |
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
|
2157 | 2117 |
case $cache_file in
|
2158 | 2118 |
[\\/]* | ?:[\\/]* ) . "$cache_file";;
|
2159 | 2119 |
*) . "./$cache_file";;
|
2160 | 2120 |
esac
|
2161 | 2121 |
fi
|
2162 | 2122 |
else
|
2163 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
2164 | |
$as_echo "$as_me: creating cache $cache_file" >&6;}
|
|
2123 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
|
2124 |
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
|
2165 | 2125 |
>$cache_file
|
|
2126 |
fi
|
|
2127 |
|
|
2128 |
as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
|
|
2129 |
# Test code for whether the C compiler supports C89 (global declarations)
|
|
2130 |
ac_c_conftest_c89_globals='
|
|
2131 |
/* Does the compiler advertise C89 conformance?
|
|
2132 |
Do not test the value of __STDC__, because some compilers set it to 0
|
|
2133 |
while being otherwise adequately conformant. */
|
|
2134 |
#if !defined __STDC__
|
|
2135 |
# error "Compiler does not advertise C89 conformance"
|
|
2136 |
#endif
|
|
2137 |
|
|
2138 |
#include <stddef.h>
|
|
2139 |
#include <stdarg.h>
|
|
2140 |
struct stat;
|
|
2141 |
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
|
|
2142 |
struct buf { int x; };
|
|
2143 |
struct buf * (*rcsopen) (struct buf *, struct stat *, int);
|
|
2144 |
static char *e (p, i)
|
|
2145 |
char **p;
|
|
2146 |
int i;
|
|
2147 |
{
|
|
2148 |
return p[i];
|
|
2149 |
}
|
|
2150 |
static char *f (char * (*g) (char **, int), char **p, ...)
|
|
2151 |
{
|
|
2152 |
char *s;
|
|
2153 |
va_list v;
|
|
2154 |
va_start (v,p);
|
|
2155 |
s = g (p, va_arg (v,int));
|
|
2156 |
va_end (v);
|
|
2157 |
return s;
|
|
2158 |
}
|
|
2159 |
|
|
2160 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
|
2161 |
function prototypes and stuff, but not \xHH hex character constants.
|
|
2162 |
These do not provoke an error unfortunately, instead are silently treated
|
|
2163 |
as an "x". The following induces an error, until -std is added to get
|
|
2164 |
proper ANSI mode. Curiously \x00 != x always comes out true, for an
|
|
2165 |
array size at least. It is necessary to write \x00 == 0 to get something
|
|
2166 |
that is true only with -std. */
|
|
2167 |
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
|
|
2168 |
|
|
2169 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
|
2170 |
inside strings and character constants. */
|
|
2171 |
#define FOO(x) '\''x'\''
|
|
2172 |
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
|
|
2173 |
|
|
2174 |
int test (int i, double x);
|
|
2175 |
struct s1 {int (*f) (int a);};
|
|
2176 |
struct s2 {int (*f) (double a);};
|
|
2177 |
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
|
|
2178 |
int, int);'
|
|
2179 |
|
|
2180 |
# Test code for whether the C compiler supports C89 (body of main).
|
|
2181 |
ac_c_conftest_c89_main='
|
|
2182 |
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
|
|
2183 |
'
|
|
2184 |
|
|
2185 |
# Test code for whether the C compiler supports C99 (global declarations)
|
|
2186 |
ac_c_conftest_c99_globals='
|
|
2187 |
// Does the compiler advertise C99 conformance?
|
|
2188 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
|
|
2189 |
# error "Compiler does not advertise C99 conformance"
|
|
2190 |
#endif
|
|
2191 |
|
|
2192 |
#include <stdbool.h>
|
|
2193 |
extern int puts (const char *);
|
|
2194 |
extern int printf (const char *, ...);
|
|
2195 |
extern int dprintf (int, const char *, ...);
|
|
2196 |
extern void *malloc (size_t);
|
|
2197 |
|
|
2198 |
// Check varargs macros. These examples are taken from C99 6.10.3.5.
|
|
2199 |
// dprintf is used instead of fprintf to avoid needing to declare
|
|
2200 |
// FILE and stderr.
|
|
2201 |
#define debug(...) dprintf (2, __VA_ARGS__)
|
|
2202 |
#define showlist(...) puts (#__VA_ARGS__)
|
|
2203 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
|
|
2204 |
static void
|
|
2205 |
test_varargs_macros (void)
|
|
2206 |
{
|
|
2207 |
int x = 1234;
|
|
2208 |
int y = 5678;
|
|
2209 |
debug ("Flag");
|
|
2210 |
debug ("X = %d\n", x);
|
|
2211 |
showlist (The first, second, and third items.);
|
|
2212 |
report (x>y, "x is %d but y is %d", x, y);
|
|
2213 |
}
|
|
2214 |
|
|
2215 |
// Check long long types.
|
|
2216 |
#define BIG64 18446744073709551615ull
|
|
2217 |
#define BIG32 4294967295ul
|
|
2218 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
|
|
2219 |
#if !BIG_OK
|
|
2220 |
#error "your preprocessor is broken"
|
|
2221 |
#endif
|
|
2222 |
#if BIG_OK
|
|
2223 |
#else
|
|
2224 |
#error "your preprocessor is broken"
|
|
2225 |
#endif
|
|
2226 |
static long long int bignum = -9223372036854775807LL;
|
|
2227 |
static unsigned long long int ubignum = BIG64;
|
|
2228 |
|
|
2229 |
struct incomplete_array
|
|
2230 |
{
|
|
2231 |
int datasize;
|
|
2232 |
double data[];
|
|
2233 |
};
|
|
2234 |
|
|
2235 |
struct named_init {
|
|
2236 |
int number;
|
|
2237 |
const wchar_t *name;
|
|
2238 |
double average;
|
|
2239 |
};
|
|
2240 |
|
|
2241 |
typedef const char *ccp;
|
|
2242 |
|
|
2243 |
static inline int
|
|
2244 |
test_restrict (ccp restrict text)
|
|
2245 |
{
|
|
2246 |
// See if C++-style comments work.
|
|
2247 |
// Iterate through items via the restricted pointer.
|
|
2248 |
// Also check for declarations in for loops.
|
|
2249 |
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
|
|
2250 |
continue;
|
|
2251 |
return 0;
|
|
2252 |
}
|
|
2253 |
|
|
2254 |
// Check varargs and va_copy.
|
|
2255 |
static bool
|
|
2256 |
test_varargs (const char *format, ...)
|
|
2257 |
{
|
|
2258 |
va_list args;
|
|
2259 |
va_start (args, format);
|
|
2260 |
va_list args_copy;
|
|
2261 |
va_copy (args_copy, args);
|
|
2262 |
|
|
2263 |
const char *str = "";
|
|
2264 |
int number = 0;
|
|
2265 |
float fnumber = 0;
|
|
2266 |
|
|
2267 |
while (*format)
|
|
2268 |
{
|
|
2269 |
switch (*format++)
|
|
2270 |
{
|
|
2271 |
case '\''s'\'': // string
|
|
2272 |
str = va_arg (args_copy, const char *);
|
|
2273 |
break;
|
|
2274 |
case '\''d'\'': // int
|
|
2275 |
number = va_arg (args_copy, int);
|
|
2276 |
break;
|
|
2277 |
case '\''f'\'': // float
|
|
2278 |
fnumber = va_arg (args_copy, double);
|
|
2279 |
break;
|
|
2280 |
default:
|
|
2281 |
break;
|
|
2282 |
}
|
|
2283 |
}
|
|
2284 |
va_end (args_copy);
|
|
2285 |
va_end (args);
|
|
2286 |
|
|
2287 |
return *str && number && fnumber;
|
|
2288 |
}
|
|
2289 |
'
|
|
2290 |
|
|
2291 |
# Test code for whether the C compiler supports C99 (body of main).
|
|
2292 |
ac_c_conftest_c99_main='
|
|
2293 |
// Check bool.
|
|
2294 |
_Bool success = false;
|
|
2295 |
success |= (argc != 0);
|
|
2296 |
|
|
2297 |
// Check restrict.
|
|
2298 |
if (test_restrict ("String literal") == 0)
|
|
2299 |
success = true;
|
|
2300 |
char *restrict newvar = "Another string";
|
|
2301 |
|
|
2302 |
// Check varargs.
|
|
2303 |
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
|
|
2304 |
test_varargs_macros ();
|
|
2305 |
|
|
2306 |
// Check flexible array members.
|
|
2307 |
struct incomplete_array *ia =
|
|
2308 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
|
|
2309 |
ia->datasize = 10;
|
|
2310 |
for (int i = 0; i < ia->datasize; ++i)
|
|
2311 |
ia->data[i] = i * 1.234;
|
|
2312 |
|
|
2313 |
// Check named initializers.
|
|
2314 |
struct named_init ni = {
|
|
2315 |
.number = 34,
|
|
2316 |
.name = L"Test wide string",
|
|
2317 |
.average = 543.34343,
|
|
2318 |
};
|
|
2319 |
|
|
2320 |
ni.number = 58;
|
|
2321 |
|
|
2322 |
int dynamic_array[ni.number];
|
|
2323 |
dynamic_array[0] = argv[0][0];
|
|
2324 |
dynamic_array[ni.number - 1] = 543;
|
|
2325 |
|
|
2326 |
// work around unused variable warnings
|
|
2327 |
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
|
|
2328 |
|| dynamic_array[ni.number - 1] != 543);
|
|
2329 |
'
|
|
2330 |
|
|
2331 |
# Test code for whether the C compiler supports C11 (global declarations)
|
|
2332 |
ac_c_conftest_c11_globals='
|
|
2333 |
// Does the compiler advertise C11 conformance?
|
|
2334 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
|
|
2335 |
# error "Compiler does not advertise C11 conformance"
|
|
2336 |
#endif
|
|
2337 |
|
|
2338 |
// Check _Alignas.
|
|
2339 |
char _Alignas (double) aligned_as_double;
|
|
2340 |
char _Alignas (0) no_special_alignment;
|
|
2341 |
extern char aligned_as_int;
|
|
2342 |
char _Alignas (0) _Alignas (int) aligned_as_int;
|
|
2343 |
|
|
2344 |
// Check _Alignof.
|
|
2345 |
enum
|
|
2346 |
{
|
|
2347 |
int_alignment = _Alignof (int),
|
|
2348 |
int_array_alignment = _Alignof (int[100]),
|
|
2349 |
char_alignment = _Alignof (char)
|
|
2350 |
};
|
|
2351 |
_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
|
|
2352 |
|
|
2353 |
// Check _Noreturn.
|
|
2354 |
int _Noreturn does_not_return (void) { for (;;) continue; }
|
|
2355 |
|
|
2356 |
// Check _Static_assert.
|
|
2357 |
struct test_static_assert
|
|
2358 |
{
|
|
2359 |
int x;
|
|
2360 |
_Static_assert (sizeof (int) <= sizeof (long int),
|
|
2361 |
"_Static_assert does not work in struct");
|
|
2362 |
long int y;
|
|
2363 |
};
|
|
2364 |
|
|
2365 |
// Check UTF-8 literals.
|
|
2366 |
#define u8 syntax error!
|
|
2367 |
char const utf8_literal[] = u8"happens to be ASCII" "another string";
|
|
2368 |
|
|
2369 |
// Check duplicate typedefs.
|
|
2370 |
typedef long *long_ptr;
|
|
2371 |
typedef long int *long_ptr;
|
|
2372 |
typedef long_ptr long_ptr;
|
|
2373 |
|
|
2374 |
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
|
|
2375 |
struct anonymous
|
|
2376 |
{
|
|
2377 |
union {
|
|
2378 |
struct { int i; int j; };
|
|
2379 |
struct { int k; long int l; } w;
|
|
2380 |
};
|
|
2381 |
int m;
|
|
2382 |
} v1;
|
|
2383 |
'
|
|
2384 |
|
|
2385 |
# Test code for whether the C compiler supports C11 (body of main).
|
|
2386 |
ac_c_conftest_c11_main='
|
|
2387 |
_Static_assert ((offsetof (struct anonymous, i)
|
|
2388 |
== offsetof (struct anonymous, w.k)),
|
|
2389 |
"Anonymous union alignment botch");
|
|
2390 |
v1.i = 2;
|
|
2391 |
v1.w.k = 5;
|
|
2392 |
ok |= v1.i != 5;
|
|
2393 |
'
|
|
2394 |
|
|
2395 |
# Test code for whether the C compiler supports C11 (complete).
|
|
2396 |
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
|
|
2397 |
${ac_c_conftest_c99_globals}
|
|
2398 |
${ac_c_conftest_c11_globals}
|
|
2399 |
|
|
2400 |
int
|
|
2401 |
main (int argc, char **argv)
|
|
2402 |
{
|
|
2403 |
int ok = 0;
|
|
2404 |
${ac_c_conftest_c89_main}
|
|
2405 |
${ac_c_conftest_c99_main}
|
|
2406 |
${ac_c_conftest_c11_main}
|
|
2407 |
return ok;
|
|
2408 |
}
|
|
2409 |
"
|
|
2410 |
|
|
2411 |
# Test code for whether the C compiler supports C99 (complete).
|
|
2412 |
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
|
|
2413 |
${ac_c_conftest_c99_globals}
|
|
2414 |
|
|
2415 |
int
|
|
2416 |
main (int argc, char **argv)
|
|
2417 |
{
|
|
2418 |
int ok = 0;
|
|
2419 |
${ac_c_conftest_c89_main}
|
|
2420 |
${ac_c_conftest_c99_main}
|
|
2421 |
return ok;
|
|
2422 |
}
|
|
2423 |
"
|
|
2424 |
|
|
2425 |
# Test code for whether the C compiler supports C89 (complete).
|
|
2426 |
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
|
|
2427 |
|
|
2428 |
int
|
|
2429 |
main (int argc, char **argv)
|
|
2430 |
{
|
|
2431 |
int ok = 0;
|
|
2432 |
${ac_c_conftest_c89_main}
|
|
2433 |
return ok;
|
|
2434 |
}
|
|
2435 |
"
|
|
2436 |
|
|
2437 |
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
|
|
2438 |
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
|
|
2439 |
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
|
|
2440 |
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
|
|
2441 |
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
|
|
2442 |
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
|
|
2443 |
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
|
|
2444 |
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
|
|
2445 |
as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
|
|
2446 |
as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
|
|
2447 |
|
|
2448 |
# Auxiliary files required by this configure script.
|
|
2449 |
ac_aux_files="config.rpath config.guess config.sub compile missing install-sh"
|
|
2450 |
|
|
2451 |
# Locations in which to look for auxiliary files.
|
|
2452 |
ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
|
|
2453 |
|
|
2454 |
# Search for a directory containing all of the required auxiliary files,
|
|
2455 |
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
|
|
2456 |
# If we don't find one directory that contains all the files we need,
|
|
2457 |
# we report the set of missing files from the *first* directory in
|
|
2458 |
# $ac_aux_dir_candidates and give up.
|
|
2459 |
ac_missing_aux_files=""
|
|
2460 |
ac_first_candidate=:
|
|
2461 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
|
|
2462 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2463 |
as_found=false
|
|
2464 |
for as_dir in $ac_aux_dir_candidates
|
|
2465 |
do
|
|
2466 |
IFS=$as_save_IFS
|
|
2467 |
case $as_dir in #(((
|
|
2468 |
'') as_dir=./ ;;
|
|
2469 |
*/) ;;
|
|
2470 |
*) as_dir=$as_dir/ ;;
|
|
2471 |
esac
|
|
2472 |
as_found=:
|
|
2473 |
|
|
2474 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
|
|
2475 |
ac_aux_dir_found=yes
|
|
2476 |
ac_install_sh=
|
|
2477 |
for ac_aux in $ac_aux_files
|
|
2478 |
do
|
|
2479 |
# As a special case, if "install-sh" is required, that requirement
|
|
2480 |
# can be satisfied by any of "install-sh", "install.sh", or "shtool",
|
|
2481 |
# and $ac_install_sh is set appropriately for whichever one is found.
|
|
2482 |
if test x"$ac_aux" = x"install-sh"
|
|
2483 |
then
|
|
2484 |
if test -f "${as_dir}install-sh"; then
|
|
2485 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
|
|
2486 |
ac_install_sh="${as_dir}install-sh -c"
|
|
2487 |
elif test -f "${as_dir}install.sh"; then
|
|
2488 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
|
|
2489 |
ac_install_sh="${as_dir}install.sh -c"
|
|
2490 |
elif test -f "${as_dir}shtool"; then
|
|
2491 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
|
|
2492 |
ac_install_sh="${as_dir}shtool install -c"
|
|
2493 |
else
|
|
2494 |
ac_aux_dir_found=no
|
|
2495 |
if $ac_first_candidate; then
|
|
2496 |
ac_missing_aux_files="${ac_missing_aux_files} install-sh"
|
|
2497 |
else
|
|
2498 |
break
|
|
2499 |
fi
|
|
2500 |
fi
|
|
2501 |
else
|
|
2502 |
if test -f "${as_dir}${ac_aux}"; then
|
|
2503 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
|
|
2504 |
else
|
|
2505 |
ac_aux_dir_found=no
|
|
2506 |
if $ac_first_candidate; then
|
|
2507 |
ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
|
|
2508 |
else
|
|
2509 |
break
|
|
2510 |
fi
|
|
2511 |
fi
|
|
2512 |
fi
|
|
2513 |
done
|
|
2514 |
if test "$ac_aux_dir_found" = yes; then
|
|
2515 |
ac_aux_dir="$as_dir"
|
|
2516 |
break
|
|
2517 |
fi
|
|
2518 |
ac_first_candidate=false
|
|
2519 |
|
|
2520 |
as_found=false
|
|
2521 |
done
|
|
2522 |
IFS=$as_save_IFS
|
|
2523 |
if $as_found
|
|
2524 |
then :
|
|
2525 |
|
|
2526 |
else $as_nop
|
|
2527 |
as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
|
|
2528 |
fi
|
|
2529 |
|
|
2530 |
|
|
2531 |
# These three variables are undocumented and unsupported,
|
|
2532 |
# and are intended to be withdrawn in a future Autoconf release.
|
|
2533 |
# They can cause serious problems if a builder's source tree is in a directory
|
|
2534 |
# whose full name contains unusual characters.
|
|
2535 |
if test -f "${ac_aux_dir}config.guess"; then
|
|
2536 |
ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
|
|
2537 |
fi
|
|
2538 |
if test -f "${ac_aux_dir}config.sub"; then
|
|
2539 |
ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
|
|
2540 |
fi
|
|
2541 |
if test -f "$ac_aux_dir/configure"; then
|
|
2542 |
ac_configure="$SHELL ${ac_aux_dir}configure"
|
2166 | 2543 |
fi
|
2167 | 2544 |
|
2168 | 2545 |
# Check that the precious variables saved in the cache have kept the same
|
|
2175 | 2552 |
eval ac_new_val=\$ac_env_${ac_var}_value
|
2176 | 2553 |
case $ac_old_set,$ac_new_set in
|
2177 | 2554 |
set,)
|
2178 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
2179 | |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
|
2555 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
|
2556 |
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
2180 | 2557 |
ac_cache_corrupted=: ;;
|
2181 | 2558 |
,set)
|
2182 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
2183 | |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
|
2559 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
|
2560 |
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
2184 | 2561 |
ac_cache_corrupted=: ;;
|
2185 | 2562 |
,);;
|
2186 | 2563 |
*)
|
|
2189 | 2566 |
ac_old_val_w=`echo x $ac_old_val`
|
2190 | 2567 |
ac_new_val_w=`echo x $ac_new_val`
|
2191 | 2568 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
2192 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
2193 | |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
|
2569 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
|
2570 |
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
2194 | 2571 |
ac_cache_corrupted=:
|
2195 | 2572 |
else
|
2196 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
2197 | |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
|
2573 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
|
2574 |
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
2198 | 2575 |
eval $ac_var=\$ac_old_val
|
2199 | 2576 |
fi
|
2200 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
2201 | |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
2202 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
2203 | |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
|
2577 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
|
2578 |
printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
|
|
2579 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
|
2580 |
printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
|
2204 | 2581 |
fi;;
|
2205 | 2582 |
esac
|
2206 | 2583 |
# Pass precious variables to config.status.
|
2207 | 2584 |
if test "$ac_new_set" = set; then
|
2208 | 2585 |
case $ac_new_val in
|
2209 | |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
2586 |
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
2210 | 2587 |
*) ac_arg=$ac_var=$ac_new_val ;;
|
2211 | 2588 |
esac
|
2212 | 2589 |
case " $ac_configure_args " in
|
|
2216 | 2593 |
fi
|
2217 | 2594 |
done
|
2218 | 2595 |
if $ac_cache_corrupted; then
|
2219 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
2220 | |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
2221 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
2222 | |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
2223 | |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
|
2596 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
2597 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
2598 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
|
2599 |
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
|
|
2600 |
as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
|
|
2601 |
and start over" "$LINENO" 5
|
2224 | 2602 |
fi
|
2225 | 2603 |
## -------------------- ##
|
2226 | 2604 |
## Main body of script. ##
|
|
2237 | 2615 |
|
2238 | 2616 |
am__api_version='1.16'
|
2239 | 2617 |
|
2240 | |
ac_aux_dir=
|
2241 | |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
2242 | |
if test -f "$ac_dir/install-sh"; then
|
2243 | |
ac_aux_dir=$ac_dir
|
2244 | |
ac_install_sh="$ac_aux_dir/install-sh -c"
|
2245 | |
break
|
2246 | |
elif test -f "$ac_dir/install.sh"; then
|
2247 | |
ac_aux_dir=$ac_dir
|
2248 | |
ac_install_sh="$ac_aux_dir/install.sh -c"
|
2249 | |
break
|
2250 | |
elif test -f "$ac_dir/shtool"; then
|
2251 | |
ac_aux_dir=$ac_dir
|
2252 | |
ac_install_sh="$ac_aux_dir/shtool install -c"
|
2253 | |
break
|
2254 | |
fi
|
2255 | |
done
|
2256 | |
if test -z "$ac_aux_dir"; then
|
2257 | |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
2258 | |
fi
|
2259 | |
|
2260 | |
# These three variables are undocumented and unsupported,
|
2261 | |
# and are intended to be withdrawn in a future Autoconf release.
|
2262 | |
# They can cause serious problems if a builder's source tree is in a directory
|
2263 | |
# whose full name contains unusual characters.
|
2264 | |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
2265 | |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
2266 | |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
2267 | |
|
2268 | |
|
2269 | |
# Find a good install program. We prefer a C program (faster),
|
|
2618 |
|
|
2619 |
|
|
2620 |
# Find a good install program. We prefer a C program (faster),
|
2270 | 2621 |
# so one script is as good as another. But avoid the broken or
|
2271 | 2622 |
# incompatible versions:
|
2272 | 2623 |
# SysV /etc/install, /usr/sbin/install
|
|
2280 | 2631 |
# OS/2's system install, which has a completely different semantic
|
2281 | 2632 |
# ./install, which can be erroneously created by make from ./install.sh.
|
2282 | 2633 |
# Reject install programs that cannot install multiple files.
|
2283 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
2284 | |
$as_echo_n "checking for a BSD-compatible install... " >&6; }
|
|
2634 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
|
2635 |
printf %s "checking for a BSD-compatible install... " >&6; }
|
2285 | 2636 |
if test -z "$INSTALL"; then
|
2286 | |
if ${ac_cv_path_install+:} false; then :
|
2287 | |
$as_echo_n "(cached) " >&6
|
2288 | |
else
|
|
2637 |
if test ${ac_cv_path_install+y}
|
|
2638 |
then :
|
|
2639 |
printf %s "(cached) " >&6
|
|
2640 |
else $as_nop
|
2289 | 2641 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2290 | 2642 |
for as_dir in $PATH
|
2291 | 2643 |
do
|
2292 | 2644 |
IFS=$as_save_IFS
|
2293 | |
test -z "$as_dir" && as_dir=.
|
2294 | |
# Account for people who put trailing slashes in PATH elements.
|
2295 | |
case $as_dir/ in #((
|
2296 | |
./ | .// | /[cC]/* | \
|
|
2645 |
case $as_dir in #(((
|
|
2646 |
'') as_dir=./ ;;
|
|
2647 |
*/) ;;
|
|
2648 |
*) as_dir=$as_dir/ ;;
|
|
2649 |
esac
|
|
2650 |
# Account for fact that we put trailing slashes in our PATH walk.
|
|
2651 |
case $as_dir in #((
|
|
2652 |
./ | /[cC]/* | \
|
2297 | 2653 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
2298 | 2654 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
2299 | 2655 |
/usr/ucb/* ) ;;
|
|
2303 | 2659 |
# by default.
|
2304 | 2660 |
for ac_prog in ginstall scoinst install; do
|
2305 | 2661 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
2306 | |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
|
2662 |
if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
|
2307 | 2663 |
if test $ac_prog = install &&
|
2308 | |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
|
2664 |
grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
2309 | 2665 |
# AIX install. It has an incompatible calling convention.
|
2310 | 2666 |
:
|
2311 | 2667 |
elif test $ac_prog = install &&
|
2312 | |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
|
2668 |
grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
2313 | 2669 |
# program-specific install script used by HP pwplus--don't use.
|
2314 | 2670 |
:
|
2315 | 2671 |
else
|
|
2317 | 2673 |
echo one > conftest.one
|
2318 | 2674 |
echo two > conftest.two
|
2319 | 2675 |
mkdir conftest.dir
|
2320 | |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
|
2676 |
if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
|
2321 | 2677 |
test -s conftest.one && test -s conftest.two &&
|
2322 | 2678 |
test -s conftest.dir/conftest.one &&
|
2323 | 2679 |
test -s conftest.dir/conftest.two
|
2324 | 2680 |
then
|
2325 | |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
|
2681 |
ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
|
2326 | 2682 |
break 3
|
2327 | 2683 |
fi
|
2328 | 2684 |
fi
|
|
2338 | 2694 |
rm -rf conftest.one conftest.two conftest.dir
|
2339 | 2695 |
|
2340 | 2696 |
fi
|
2341 | |
if test "${ac_cv_path_install+set}" = set; then
|
|
2697 |
if test ${ac_cv_path_install+y}; then
|
2342 | 2698 |
INSTALL=$ac_cv_path_install
|
2343 | 2699 |
else
|
2344 | 2700 |
# As a last resort, use the slow shell script. Don't cache a
|
|
2348 | 2704 |
INSTALL=$ac_install_sh
|
2349 | 2705 |
fi
|
2350 | 2706 |
fi
|
2351 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
2352 | |
$as_echo "$INSTALL" >&6; }
|
|
2707 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
|
2708 |
printf "%s\n" "$INSTALL" >&6; }
|
2353 | 2709 |
|
2354 | 2710 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
2355 | 2711 |
# It thinks the first close brace ends the variable substitution.
|
|
2359 | 2715 |
|
2360 | 2716 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
2361 | 2717 |
|
2362 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
|
2363 | |
$as_echo_n "checking whether build environment is sane... " >&6; }
|
|
2718 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
|
|
2719 |
printf %s "checking whether build environment is sane... " >&6; }
|
2364 | 2720 |
# Reject unsafe characters in $srcdir or the absolute working directory
|
2365 | 2721 |
# name. Accept space and tab only in the latter.
|
2366 | 2722 |
am_lf='
|
|
2414 | 2770 |
as_fn_error $? "newly created file is older than distributed files!
|
2415 | 2771 |
Check your system clock" "$LINENO" 5
|
2416 | 2772 |
fi
|
2417 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
2418 | |
$as_echo "yes" >&6; }
|
|
2773 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
2774 |
printf "%s\n" "yes" >&6; }
|
2419 | 2775 |
# If we didn't sleep, we still need to ensure time stamps of config.status and
|
2420 | 2776 |
# generated files are strictly newer.
|
2421 | 2777 |
am_sleep_pid=
|
|
2434 | 2790 |
# Double any \ or $.
|
2435 | 2791 |
# By default was `s,x,x', remove it if useless.
|
2436 | 2792 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
2437 | |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
|
2793 |
program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
|
|
2794 |
|
2438 | 2795 |
|
2439 | 2796 |
# Expand $ac_aux_dir to an absolute path.
|
2440 | 2797 |
am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
2441 | 2798 |
|
2442 | |
if test x"${MISSING+set}" != xset; then
|
2443 | |
case $am_aux_dir in
|
2444 | |
*\ * | *\ *)
|
2445 | |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
2446 | |
*)
|
2447 | |
MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
2448 | |
esac
|
|
2799 |
|
|
2800 |
if test x"${MISSING+set}" != xset; then
|
|
2801 |
MISSING="\${SHELL} '$am_aux_dir/missing'"
|
2449 | 2802 |
fi
|
2450 | 2803 |
# Use eval to expand $SHELL
|
2451 | 2804 |
if eval "$MISSING --is-lightweight"; then
|
2452 | 2805 |
am_missing_run="$MISSING "
|
2453 | 2806 |
else
|
2454 | 2807 |
am_missing_run=
|
2455 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
|
2456 | |
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
|
|
2808 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
|
|
2809 |
printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
|
2457 | 2810 |
fi
|
2458 | 2811 |
|
2459 | 2812 |
if test x"${install_sh+set}" != xset; then
|
|
2473 | 2826 |
if test -n "$ac_tool_prefix"; then
|
2474 | 2827 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
2475 | 2828 |
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
2476 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2477 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
2478 | |
if ${ac_cv_prog_STRIP+:} false; then :
|
2479 | |
$as_echo_n "(cached) " >&6
|
2480 | |
else
|
|
2829 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
2830 |
printf %s "checking for $ac_word... " >&6; }
|
|
2831 |
if test ${ac_cv_prog_STRIP+y}
|
|
2832 |
then :
|
|
2833 |
printf %s "(cached) " >&6
|
|
2834 |
else $as_nop
|
2481 | 2835 |
if test -n "$STRIP"; then
|
2482 | 2836 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
2483 | 2837 |
else
|
|
2485 | 2839 |
for as_dir in $PATH
|
2486 | 2840 |
do
|
2487 | 2841 |
IFS=$as_save_IFS
|
2488 | |
test -z "$as_dir" && as_dir=.
|
|
2842 |
case $as_dir in #(((
|
|
2843 |
'') as_dir=./ ;;
|
|
2844 |
*/) ;;
|
|
2845 |
*) as_dir=$as_dir/ ;;
|
|
2846 |
esac
|
2489 | 2847 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
2490 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
2848 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
2491 | 2849 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
2492 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
2850 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
2493 | 2851 |
break 2
|
2494 | 2852 |
fi
|
2495 | 2853 |
done
|
|
2500 | 2858 |
fi
|
2501 | 2859 |
STRIP=$ac_cv_prog_STRIP
|
2502 | 2860 |
if test -n "$STRIP"; then
|
2503 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
2504 | |
$as_echo "$STRIP" >&6; }
|
|
2861 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
|
2862 |
printf "%s\n" "$STRIP" >&6; }
|
2505 | 2863 |
else
|
2506 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2507 | |
$as_echo "no" >&6; }
|
|
2864 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
2865 |
printf "%s\n" "no" >&6; }
|
2508 | 2866 |
fi
|
2509 | 2867 |
|
2510 | 2868 |
|
|
2513 | 2871 |
ac_ct_STRIP=$STRIP
|
2514 | 2872 |
# Extract the first word of "strip", so it can be a program name with args.
|
2515 | 2873 |
set dummy strip; ac_word=$2
|
2516 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2517 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
2518 | |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
2519 | |
$as_echo_n "(cached) " >&6
|
2520 | |
else
|
|
2874 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
2875 |
printf %s "checking for $ac_word... " >&6; }
|
|
2876 |
if test ${ac_cv_prog_ac_ct_STRIP+y}
|
|
2877 |
then :
|
|
2878 |
printf %s "(cached) " >&6
|
|
2879 |
else $as_nop
|
2521 | 2880 |
if test -n "$ac_ct_STRIP"; then
|
2522 | 2881 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
2523 | 2882 |
else
|
|
2525 | 2884 |
for as_dir in $PATH
|
2526 | 2885 |
do
|
2527 | 2886 |
IFS=$as_save_IFS
|
2528 | |
test -z "$as_dir" && as_dir=.
|
|
2887 |
case $as_dir in #(((
|
|
2888 |
'') as_dir=./ ;;
|
|
2889 |
*/) ;;
|
|
2890 |
*) as_dir=$as_dir/ ;;
|
|
2891 |
esac
|
2529 | 2892 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
2530 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
2893 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
2531 | 2894 |
ac_cv_prog_ac_ct_STRIP="strip"
|
2532 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
2895 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
2533 | 2896 |
break 2
|
2534 | 2897 |
fi
|
2535 | 2898 |
done
|
|
2540 | 2903 |
fi
|
2541 | 2904 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
2542 | 2905 |
if test -n "$ac_ct_STRIP"; then
|
2543 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
2544 | |
$as_echo "$ac_ct_STRIP" >&6; }
|
|
2906 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
|
2907 |
printf "%s\n" "$ac_ct_STRIP" >&6; }
|
2545 | 2908 |
else
|
2546 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2547 | |
$as_echo "no" >&6; }
|
|
2909 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
2910 |
printf "%s\n" "no" >&6; }
|
2548 | 2911 |
fi
|
2549 | 2912 |
|
2550 | 2913 |
if test "x$ac_ct_STRIP" = x; then
|
|
2552 | 2915 |
else
|
2553 | 2916 |
case $cross_compiling:$ac_tool_warned in
|
2554 | 2917 |
yes:)
|
2555 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
2556 | |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
2918 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
2919 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
2557 | 2920 |
ac_tool_warned=yes ;;
|
2558 | 2921 |
esac
|
2559 | 2922 |
STRIP=$ac_ct_STRIP
|
|
2565 | 2928 |
fi
|
2566 | 2929 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
2567 | 2930 |
|
2568 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
|
2569 | |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
|
|
2931 |
|
|
2932 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
|
|
2933 |
printf %s "checking for a race-free mkdir -p... " >&6; }
|
2570 | 2934 |
if test -z "$MKDIR_P"; then
|
2571 | |
if ${ac_cv_path_mkdir+:} false; then :
|
2572 | |
$as_echo_n "(cached) " >&6
|
2573 | |
else
|
|
2935 |
if test ${ac_cv_path_mkdir+y}
|
|
2936 |
then :
|
|
2937 |
printf %s "(cached) " >&6
|
|
2938 |
else $as_nop
|
2574 | 2939 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2575 | 2940 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
2576 | 2941 |
do
|
2577 | 2942 |
IFS=$as_save_IFS
|
2578 | |
test -z "$as_dir" && as_dir=.
|
|
2943 |
case $as_dir in #(((
|
|
2944 |
'') as_dir=./ ;;
|
|
2945 |
*/) ;;
|
|
2946 |
*) as_dir=$as_dir/ ;;
|
|
2947 |
esac
|
2579 | 2948 |
for ac_prog in mkdir gmkdir; do
|
2580 | 2949 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
2581 | |
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
|
2582 | |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
2583 | |
'mkdir (GNU coreutils) '* | \
|
2584 | |
'mkdir (coreutils) '* | \
|
|
2950 |
as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
|
|
2951 |
case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
|
2952 |
'mkdir ('*'coreutils) '* | \
|
|
2953 |
'BusyBox '* | \
|
2585 | 2954 |
'mkdir (fileutils) '4.1*)
|
2586 | |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
|
2955 |
ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
|
2587 | 2956 |
break 3;;
|
2588 | 2957 |
esac
|
2589 | 2958 |
done
|
|
2594 | 2963 |
fi
|
2595 | 2964 |
|
2596 | 2965 |
test -d ./--version && rmdir ./--version
|
2597 | |
if test "${ac_cv_path_mkdir+set}" = set; then
|
|
2966 |
if test ${ac_cv_path_mkdir+y}; then
|
2598 | 2967 |
MKDIR_P="$ac_cv_path_mkdir -p"
|
2599 | 2968 |
else
|
2600 | 2969 |
# As a last resort, use the slow shell script. Don't cache a
|
|
2604 | 2973 |
MKDIR_P="$ac_install_sh -d"
|
2605 | 2974 |
fi
|
2606 | 2975 |
fi
|
2607 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
2608 | |
$as_echo "$MKDIR_P" >&6; }
|
|
2976 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
|
2977 |
printf "%s\n" "$MKDIR_P" >&6; }
|
2609 | 2978 |
|
2610 | 2979 |
for ac_prog in gawk mawk nawk awk
|
2611 | 2980 |
do
|
2612 | 2981 |
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
2613 | 2982 |
set dummy $ac_prog; ac_word=$2
|
2614 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2615 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
2616 | |
if ${ac_cv_prog_AWK+:} false; then :
|
2617 | |
$as_echo_n "(cached) " >&6
|
2618 | |
else
|
|
2983 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
2984 |
printf %s "checking for $ac_word... " >&6; }
|
|
2985 |
if test ${ac_cv_prog_AWK+y}
|
|
2986 |
then :
|
|
2987 |
printf %s "(cached) " >&6
|
|
2988 |
else $as_nop
|
2619 | 2989 |
if test -n "$AWK"; then
|
2620 | 2990 |
ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
2621 | 2991 |
else
|
|
2623 | 2993 |
for as_dir in $PATH
|
2624 | 2994 |
do
|
2625 | 2995 |
IFS=$as_save_IFS
|
2626 | |
test -z "$as_dir" && as_dir=.
|
|
2996 |
case $as_dir in #(((
|
|
2997 |
'') as_dir=./ ;;
|
|
2998 |
*/) ;;
|
|
2999 |
*) as_dir=$as_dir/ ;;
|
|
3000 |
esac
|
2627 | 3001 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
2628 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
3002 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
2629 | 3003 |
ac_cv_prog_AWK="$ac_prog"
|
2630 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3004 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
2631 | 3005 |
break 2
|
2632 | 3006 |
fi
|
2633 | 3007 |
done
|
|
2638 | 3012 |
fi
|
2639 | 3013 |
AWK=$ac_cv_prog_AWK
|
2640 | 3014 |
if test -n "$AWK"; then
|
2641 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
2642 | |
$as_echo "$AWK" >&6; }
|
|
3015 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
|
3016 |
printf "%s\n" "$AWK" >&6; }
|
2643 | 3017 |
else
|
2644 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2645 | |
$as_echo "no" >&6; }
|
|
3018 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3019 |
printf "%s\n" "no" >&6; }
|
2646 | 3020 |
fi
|
2647 | 3021 |
|
2648 | 3022 |
|
2649 | 3023 |
test -n "$AWK" && break
|
2650 | 3024 |
done
|
2651 | 3025 |
|
2652 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
2653 | |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
|
3026 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
|
3027 |
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
2654 | 3028 |
set x ${MAKE-make}
|
2655 | |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
2656 | |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
2657 | |
$as_echo_n "(cached) " >&6
|
2658 | |
else
|
|
3029 |
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
|
3030 |
if eval test \${ac_cv_prog_make_${ac_make}_set+y}
|
|
3031 |
then :
|
|
3032 |
printf %s "(cached) " >&6
|
|
3033 |
else $as_nop
|
2659 | 3034 |
cat >conftest.make <<\_ACEOF
|
2660 | 3035 |
SHELL = /bin/sh
|
2661 | 3036 |
all:
|
|
2671 | 3046 |
rm -f conftest.make
|
2672 | 3047 |
fi
|
2673 | 3048 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
2674 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
2675 | |
$as_echo "yes" >&6; }
|
|
3049 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
3050 |
printf "%s\n" "yes" >&6; }
|
2676 | 3051 |
SET_MAKE=
|
2677 | 3052 |
else
|
2678 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2679 | |
$as_echo "no" >&6; }
|
|
3053 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3054 |
printf "%s\n" "no" >&6; }
|
2680 | 3055 |
SET_MAKE="MAKE=${MAKE-make}"
|
2681 | 3056 |
fi
|
2682 | 3057 |
|
|
2690 | 3065 |
rmdir .tst 2>/dev/null
|
2691 | 3066 |
|
2692 | 3067 |
# Check whether --enable-silent-rules was given.
|
2693 | |
if test "${enable_silent_rules+set}" = set; then :
|
|
3068 |
if test ${enable_silent_rules+y}
|
|
3069 |
then :
|
2694 | 3070 |
enableval=$enable_silent_rules;
|
2695 | 3071 |
fi
|
2696 | 3072 |
|
|
2700 | 3076 |
*) AM_DEFAULT_VERBOSITY=1;;
|
2701 | 3077 |
esac
|
2702 | 3078 |
am_make=${MAKE-make}
|
2703 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
|
2704 | |
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
|
2705 | |
if ${am_cv_make_support_nested_variables+:} false; then :
|
2706 | |
$as_echo_n "(cached) " >&6
|
2707 | |
else
|
2708 | |
if $as_echo 'TRUE=$(BAR$(V))
|
|
3079 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
|
|
3080 |
printf %s "checking whether $am_make supports nested variables... " >&6; }
|
|
3081 |
if test ${am_cv_make_support_nested_variables+y}
|
|
3082 |
then :
|
|
3083 |
printf %s "(cached) " >&6
|
|
3084 |
else $as_nop
|
|
3085 |
if printf "%s\n" 'TRUE=$(BAR$(V))
|
2709 | 3086 |
BAR0=false
|
2710 | 3087 |
BAR1=true
|
2711 | 3088 |
V=1
|
|
2717 | 3094 |
am_cv_make_support_nested_variables=no
|
2718 | 3095 |
fi
|
2719 | 3096 |
fi
|
2720 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
|
2721 | |
$as_echo "$am_cv_make_support_nested_variables" >&6; }
|
|
3097 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
|
|
3098 |
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
|
2722 | 3099 |
if test $am_cv_make_support_nested_variables = yes; then
|
2723 | 3100 |
AM_V='$(V)'
|
2724 | 3101 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
|
2750 | 3127 |
|
2751 | 3128 |
# Define the identity of the package.
|
2752 | 3129 |
PACKAGE='dosfstools'
|
2753 | |
VERSION='4.2'
|
2754 | |
|
2755 | |
|
2756 | |
cat >>confdefs.h <<_ACEOF
|
2757 | |
#define PACKAGE "$PACKAGE"
|
2758 | |
_ACEOF
|
2759 | |
|
2760 | |
|
2761 | |
cat >>confdefs.h <<_ACEOF
|
2762 | |
#define VERSION "$VERSION"
|
2763 | |
_ACEOF
|
|
3130 |
VERSION='4.2+git'
|
|
3131 |
|
|
3132 |
|
|
3133 |
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
|
|
3134 |
|
|
3135 |
|
|
3136 |
printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
|
2764 | 3137 |
|
2765 | 3138 |
# Some tools Automake needs.
|
2766 | 3139 |
|
|
2798 | 3171 |
|
2799 | 3172 |
|
2800 | 3173 |
|
|
3174 |
|
|
3175 |
|
|
3176 |
# Variables for tags utilities; see am/tags.am
|
|
3177 |
if test -z "$CTAGS"; then
|
|
3178 |
CTAGS=ctags
|
|
3179 |
fi
|
|
3180 |
|
|
3181 |
if test -z "$ETAGS"; then
|
|
3182 |
ETAGS=etags
|
|
3183 |
fi
|
|
3184 |
|
|
3185 |
if test -z "$CSCOPE"; then
|
|
3186 |
CSCOPE=cscope
|
|
3187 |
fi
|
2801 | 3188 |
|
2802 | 3189 |
|
2803 | 3190 |
|
|
2845 | 3232 |
|
2846 | 3233 |
|
2847 | 3234 |
# Check whether --enable-compat-symlinks was given.
|
2848 | |
if test "${enable_compat_symlinks+set}" = set; then :
|
|
3235 |
if test ${enable_compat_symlinks+y}
|
|
3236 |
then :
|
2849 | 3237 |
enableval=$enable_compat_symlinks; case "${enableval}" in
|
2850 | 3238 |
yes) symlinks=true ;;
|
2851 | 3239 |
no) symlinks=false ;;
|
2852 | 3240 |
*) as_fn_error $? "bad value ${enableval} for --enable-compat-symlinks" "$LINENO" 5 ;;
|
2853 | 3241 |
esac
|
2854 | |
else
|
|
3242 |
else $as_nop
|
2855 | 3243 |
symlinks=false
|
2856 | 3244 |
fi
|
2857 | 3245 |
|
|
2865 | 3253 |
|
2866 | 3254 |
|
2867 | 3255 |
# Check whether --enable-atari-check was given.
|
2868 | |
if test "${enable_atari_check+set}" = set; then :
|
|
3256 |
if test ${enable_atari_check+y}
|
|
3257 |
then :
|
2869 | 3258 |
enableval=$enable_atari_check; case "${enableval}" in
|
2870 | 3259 |
yes) CHECKATARI=1
|
2871 | 3260 |
|
2872 | |
$as_echo "#define CONF_CHECK_ATARI 1" >>confdefs.h
|
|
3261 |
printf "%s\n" "#define CONF_CHECK_ATARI 1" >>confdefs.h
|
2873 | 3262 |
;;
|
2874 | 3263 |
no) CHECKATARI=0
|
2875 | 3264 |
;;
|
2876 | 3265 |
*) as_fn_error $? "bad value ${enableval} for --enable-atari-check" "$LINENO" 5 ;;
|
2877 | 3266 |
esac
|
2878 | |
else
|
|
3267 |
else $as_nop
|
2879 | 3268 |
CHECKATARI=0
|
2880 | 3269 |
|
2881 | 3270 |
fi
|
2882 | 3271 |
|
2883 | 3272 |
|
|
3273 |
|
|
3274 |
|
|
3275 |
|
|
3276 |
|
|
3277 |
|
|
3278 |
|
|
3279 |
|
|
3280 |
|
|
3281 |
|
2884 | 3282 |
DEPDIR="${am__leading_dot}deps"
|
2885 | 3283 |
|
2886 | 3284 |
ac_config_commands="$ac_config_commands depfiles"
|
2887 | 3285 |
|
2888 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
|
2889 | |
$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
|
|
3286 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
|
|
3287 |
printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
|
2890 | 3288 |
cat > confinc.mk << 'END'
|
2891 | 3289 |
am__doit:
|
2892 | 3290 |
@echo this is the am__doit target >confinc.out
|
|
2922 | 3320 |
fi
|
2923 | 3321 |
done
|
2924 | 3322 |
rm -f confinc.* confmf.*
|
2925 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
|
2926 | |
$as_echo "${_am_result}" >&6; }
|
|
3323 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
|
|
3324 |
printf "%s\n" "${_am_result}" >&6; }
|
2927 | 3325 |
|
2928 | 3326 |
# Check whether --enable-dependency-tracking was given.
|
2929 | |
if test "${enable_dependency_tracking+set}" = set; then :
|
|
3327 |
if test ${enable_dependency_tracking+y}
|
|
3328 |
then :
|
2930 | 3329 |
enableval=$enable_dependency_tracking;
|
2931 | 3330 |
fi
|
2932 | 3331 |
|
|
2952 | 3351 |
if test -n "$ac_tool_prefix"; then
|
2953 | 3352 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
2954 | 3353 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
2955 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2956 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
2957 | |
if ${ac_cv_prog_CC+:} false; then :
|
2958 | |
$as_echo_n "(cached) " >&6
|
2959 | |
else
|
|
3354 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3355 |
printf %s "checking for $ac_word... " >&6; }
|
|
3356 |
if test ${ac_cv_prog_CC+y}
|
|
3357 |
then :
|
|
3358 |
printf %s "(cached) " >&6
|
|
3359 |
else $as_nop
|
2960 | 3360 |
if test -n "$CC"; then
|
2961 | 3361 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2962 | 3362 |
else
|
|
2964 | 3364 |
for as_dir in $PATH
|
2965 | 3365 |
do
|
2966 | 3366 |
IFS=$as_save_IFS
|
2967 | |
test -z "$as_dir" && as_dir=.
|
|
3367 |
case $as_dir in #(((
|
|
3368 |
'') as_dir=./ ;;
|
|
3369 |
*/) ;;
|
|
3370 |
*) as_dir=$as_dir/ ;;
|
|
3371 |
esac
|
2968 | 3372 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
2969 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
3373 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
2970 | 3374 |
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
2971 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3375 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
2972 | 3376 |
break 2
|
2973 | 3377 |
fi
|
2974 | 3378 |
done
|
|
2979 | 3383 |
fi
|
2980 | 3384 |
CC=$ac_cv_prog_CC
|
2981 | 3385 |
if test -n "$CC"; then
|
2982 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
2983 | |
$as_echo "$CC" >&6; }
|
|
3386 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3387 |
printf "%s\n" "$CC" >&6; }
|
2984 | 3388 |
else
|
2985 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2986 | |
$as_echo "no" >&6; }
|
|
3389 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3390 |
printf "%s\n" "no" >&6; }
|
2987 | 3391 |
fi
|
2988 | 3392 |
|
2989 | 3393 |
|
|
2992 | 3396 |
ac_ct_CC=$CC
|
2993 | 3397 |
# Extract the first word of "gcc", so it can be a program name with args.
|
2994 | 3398 |
set dummy gcc; ac_word=$2
|
2995 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2996 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
2997 | |
if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
2998 | |
$as_echo_n "(cached) " >&6
|
2999 | |
else
|
|
3399 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3400 |
printf %s "checking for $ac_word... " >&6; }
|
|
3401 |
if test ${ac_cv_prog_ac_ct_CC+y}
|
|
3402 |
then :
|
|
3403 |
printf %s "(cached) " >&6
|
|
3404 |
else $as_nop
|
3000 | 3405 |
if test -n "$ac_ct_CC"; then
|
3001 | 3406 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
3002 | 3407 |
else
|
|
3004 | 3409 |
for as_dir in $PATH
|
3005 | 3410 |
do
|
3006 | 3411 |
IFS=$as_save_IFS
|
3007 | |
test -z "$as_dir" && as_dir=.
|
|
3412 |
case $as_dir in #(((
|
|
3413 |
'') as_dir=./ ;;
|
|
3414 |
*/) ;;
|
|
3415 |
*) as_dir=$as_dir/ ;;
|
|
3416 |
esac
|
3008 | 3417 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
3009 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
3418 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
3010 | 3419 |
ac_cv_prog_ac_ct_CC="gcc"
|
3011 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3420 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
3012 | 3421 |
break 2
|
3013 | 3422 |
fi
|
3014 | 3423 |
done
|
|
3019 | 3428 |
fi
|
3020 | 3429 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
3021 | 3430 |
if test -n "$ac_ct_CC"; then
|
3022 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
3023 | |
$as_echo "$ac_ct_CC" >&6; }
|
|
3431 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
3432 |
printf "%s\n" "$ac_ct_CC" >&6; }
|
3024 | 3433 |
else
|
3025 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
3026 | |
$as_echo "no" >&6; }
|
|
3434 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3435 |
printf "%s\n" "no" >&6; }
|
3027 | 3436 |
fi
|
3028 | 3437 |
|
3029 | 3438 |
if test "x$ac_ct_CC" = x; then
|
|
3031 | 3440 |
else
|
3032 | 3441 |
case $cross_compiling:$ac_tool_warned in
|
3033 | 3442 |
yes:)
|
3034 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
3035 | |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
3443 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
3444 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
3036 | 3445 |
ac_tool_warned=yes ;;
|
3037 | 3446 |
esac
|
3038 | 3447 |
CC=$ac_ct_CC
|
|
3045 | 3454 |
if test -n "$ac_tool_prefix"; then
|
3046 | 3455 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
3047 | 3456 |
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
3048 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
3049 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
3050 | |
if ${ac_cv_prog_CC+:} false; then :
|
3051 | |
$as_echo_n "(cached) " >&6
|
3052 | |
else
|
|
3457 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3458 |
printf %s "checking for $ac_word... " >&6; }
|
|
3459 |
if test ${ac_cv_prog_CC+y}
|
|
3460 |
then :
|
|
3461 |
printf %s "(cached) " >&6
|
|
3462 |
else $as_nop
|
3053 | 3463 |
if test -n "$CC"; then
|
3054 | 3464 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
3055 | 3465 |
else
|
|
3057 | 3467 |
for as_dir in $PATH
|
3058 | 3468 |
do
|
3059 | 3469 |
IFS=$as_save_IFS
|
3060 | |
test -z "$as_dir" && as_dir=.
|
|
3470 |
case $as_dir in #(((
|
|
3471 |
'') as_dir=./ ;;
|
|
3472 |
*/) ;;
|
|
3473 |
*) as_dir=$as_dir/ ;;
|
|
3474 |
esac
|
3061 | 3475 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
3062 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
3476 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
3063 | 3477 |
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
3064 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3478 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
3065 | 3479 |
break 2
|
3066 | 3480 |
fi
|
3067 | 3481 |
done
|
|
3072 | 3486 |
fi
|
3073 | 3487 |
CC=$ac_cv_prog_CC
|
3074 | 3488 |
if test -n "$CC"; then
|
3075 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
3076 | |
$as_echo "$CC" >&6; }
|
|
3489 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3490 |
printf "%s\n" "$CC" >&6; }
|
3077 | 3491 |
else
|
3078 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
3079 | |
$as_echo "no" >&6; }
|
|
3492 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3493 |
printf "%s\n" "no" >&6; }
|
3080 | 3494 |
fi
|
3081 | 3495 |
|
3082 | 3496 |
|
|
3085 | 3499 |
if test -z "$CC"; then
|
3086 | 3500 |
# Extract the first word of "cc", so it can be a program name with args.
|
3087 | 3501 |
set dummy cc; ac_word=$2
|
3088 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
3089 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
3090 | |
if ${ac_cv_prog_CC+:} false; then :
|
3091 | |
$as_echo_n "(cached) " >&6
|
3092 | |
else
|
|
3502 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3503 |
printf %s "checking for $ac_word... " >&6; }
|
|
3504 |
if test ${ac_cv_prog_CC+y}
|
|
3505 |
then :
|
|
3506 |
printf %s "(cached) " >&6
|
|
3507 |
else $as_nop
|
3093 | 3508 |
if test -n "$CC"; then
|
3094 | 3509 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
3095 | 3510 |
else
|
|
3098 | 3513 |
for as_dir in $PATH
|
3099 | 3514 |
do
|
3100 | 3515 |
IFS=$as_save_IFS
|
3101 | |
test -z "$as_dir" && as_dir=.
|
|
3516 |
case $as_dir in #(((
|
|
3517 |
'') as_dir=./ ;;
|
|
3518 |
*/) ;;
|
|
3519 |
*) as_dir=$as_dir/ ;;
|
|
3520 |
esac
|
3102 | 3521 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
3103 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3104 | |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
|
3522 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
|
3523 |
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
3105 | 3524 |
ac_prog_rejected=yes
|
3106 | 3525 |
continue
|
3107 | 3526 |
fi
|
3108 | 3527 |
ac_cv_prog_CC="cc"
|
3109 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3528 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
3110 | 3529 |
break 2
|
3111 | 3530 |
fi
|
3112 | 3531 |
done
|
|
3122 | 3541 |
# However, it has the same basename, so the bogon will be chosen
|
3123 | 3542 |
# first if we set CC to just the basename; use the full file name.
|
3124 | 3543 |
shift
|
3125 | |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
|
3544 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
|
3126 | 3545 |
fi
|
3127 | 3546 |
fi
|
3128 | 3547 |
fi
|
3129 | 3548 |
fi
|
3130 | 3549 |
CC=$ac_cv_prog_CC
|
3131 | 3550 |
if test -n "$CC"; then
|
3132 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
3133 | |
$as_echo "$CC" >&6; }
|
|
3551 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3552 |
printf "%s\n" "$CC" >&6; }
|
3134 | 3553 |
else
|
3135 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
3136 | |
$as_echo "no" >&6; }
|
|
3554 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3555 |
printf "%s\n" "no" >&6; }
|
3137 | 3556 |
fi
|
3138 | 3557 |
|
3139 | 3558 |
|
|
3144 | 3563 |
do
|
3145 | 3564 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
3146 | 3565 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
3147 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
3148 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
3149 | |
if ${ac_cv_prog_CC+:} false; then :
|
3150 | |
$as_echo_n "(cached) " >&6
|
3151 | |
else
|
|
3566 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3567 |
printf %s "checking for $ac_word... " >&6; }
|
|
3568 |
if test ${ac_cv_prog_CC+y}
|
|
3569 |
then :
|
|
3570 |
printf %s "(cached) " >&6
|
|
3571 |
else $as_nop
|
3152 | 3572 |
if test -n "$CC"; then
|
3153 | 3573 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
3154 | 3574 |
else
|
|
3156 | 3576 |
for as_dir in $PATH
|
3157 | 3577 |
do
|
3158 | 3578 |
IFS=$as_save_IFS
|
3159 | |
test -z "$as_dir" && as_dir=.
|
|
3579 |
case $as_dir in #(((
|
|
3580 |
'') as_dir=./ ;;
|
|
3581 |
*/) ;;
|
|
3582 |
*) as_dir=$as_dir/ ;;
|
|
3583 |
esac
|
3160 | 3584 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
3161 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
3585 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
3162 | 3586 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
3163 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3587 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
3164 | 3588 |
break 2
|
3165 | 3589 |
fi
|
3166 | 3590 |
done
|
|
3171 | 3595 |
fi
|
3172 | 3596 |
CC=$ac_cv_prog_CC
|
3173 | 3597 |
if test -n "$CC"; then
|
3174 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
3175 | |
$as_echo "$CC" >&6; }
|
|
3598 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3599 |
printf "%s\n" "$CC" >&6; }
|
3176 | 3600 |
else
|
3177 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
3178 | |
$as_echo "no" >&6; }
|
|
3601 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3602 |
printf "%s\n" "no" >&6; }
|
3179 | 3603 |
fi
|
3180 | 3604 |
|
3181 | 3605 |
|
|
3188 | 3612 |
do
|
3189 | 3613 |
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
3190 | 3614 |
set dummy $ac_prog; ac_word=$2
|
3191 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
3192 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
3193 | |
if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
3194 | |
$as_echo_n "(cached) " >&6
|
3195 | |
else
|
|
3615 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3616 |
printf %s "checking for $ac_word... " >&6; }
|
|
3617 |
if test ${ac_cv_prog_ac_ct_CC+y}
|
|
3618 |
then :
|
|
3619 |
printf %s "(cached) " >&6
|
|
3620 |
else $as_nop
|
3196 | 3621 |
if test -n "$ac_ct_CC"; then
|
3197 | 3622 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
3198 | 3623 |
else
|
|
3200 | 3625 |
for as_dir in $PATH
|
3201 | 3626 |
do
|
3202 | 3627 |
IFS=$as_save_IFS
|
3203 | |
test -z "$as_dir" && as_dir=.
|
|
3628 |
case $as_dir in #(((
|
|
3629 |
'') as_dir=./ ;;
|
|
3630 |
*/) ;;
|
|
3631 |
*) as_dir=$as_dir/ ;;
|
|
3632 |
esac
|
3204 | 3633 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
3205 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
3634 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
3206 | 3635 |
ac_cv_prog_ac_ct_CC="$ac_prog"
|
3207 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3636 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
3208 | 3637 |
break 2
|
3209 | 3638 |
fi
|
3210 | 3639 |
done
|
|
3215 | 3644 |
fi
|
3216 | 3645 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
3217 | 3646 |
if test -n "$ac_ct_CC"; then
|
3218 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
3219 | |
$as_echo "$ac_ct_CC" >&6; }
|
|
3647 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
3648 |
printf "%s\n" "$ac_ct_CC" >&6; }
|
3220 | 3649 |
else
|
3221 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
3222 | |
$as_echo "no" >&6; }
|
|
3650 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3651 |
printf "%s\n" "no" >&6; }
|
3223 | 3652 |
fi
|
3224 | 3653 |
|
3225 | 3654 |
|
|
3231 | 3660 |
else
|
3232 | 3661 |
case $cross_compiling:$ac_tool_warned in
|
3233 | 3662 |
yes:)
|
3234 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
3235 | |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
3663 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
3664 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
3236 | 3665 |
ac_tool_warned=yes ;;
|
3237 | 3666 |
esac
|
3238 | 3667 |
CC=$ac_ct_CC
|
|
3240 | 3669 |
fi
|
3241 | 3670 |
|
3242 | 3671 |
fi
|
3243 | |
|
3244 | |
|
3245 | |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
3246 | |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
3672 |
if test -z "$CC"; then
|
|
3673 |
if test -n "$ac_tool_prefix"; then
|
|
3674 |
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
|
|
3675 |
set dummy ${ac_tool_prefix}clang; ac_word=$2
|
|
3676 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3677 |
printf %s "checking for $ac_word... " >&6; }
|
|
3678 |
if test ${ac_cv_prog_CC+y}
|
|
3679 |
then :
|
|
3680 |
printf %s "(cached) " >&6
|
|
3681 |
else $as_nop
|
|
3682 |
if test -n "$CC"; then
|
|
3683 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
3684 |
else
|
|
3685 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3686 |
for as_dir in $PATH
|
|
3687 |
do
|
|
3688 |
IFS=$as_save_IFS
|
|
3689 |
case $as_dir in #(((
|
|
3690 |
'') as_dir=./ ;;
|
|
3691 |
*/) ;;
|
|
3692 |
*) as_dir=$as_dir/ ;;
|
|
3693 |
esac
|
|
3694 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3695 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
|
3696 |
ac_cv_prog_CC="${ac_tool_prefix}clang"
|
|
3697 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
|
3698 |
break 2
|
|
3699 |
fi
|
|
3700 |
done
|
|
3701 |
done
|
|
3702 |
IFS=$as_save_IFS
|
|
3703 |
|
|
3704 |
fi
|
|
3705 |
fi
|
|
3706 |
CC=$ac_cv_prog_CC
|
|
3707 |
if test -n "$CC"; then
|
|
3708 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3709 |
printf "%s\n" "$CC" >&6; }
|
|
3710 |
else
|
|
3711 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3712 |
printf "%s\n" "no" >&6; }
|
|
3713 |
fi
|
|
3714 |
|
|
3715 |
|
|
3716 |
fi
|
|
3717 |
if test -z "$ac_cv_prog_CC"; then
|
|
3718 |
ac_ct_CC=$CC
|
|
3719 |
# Extract the first word of "clang", so it can be a program name with args.
|
|
3720 |
set dummy clang; ac_word=$2
|
|
3721 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3722 |
printf %s "checking for $ac_word... " >&6; }
|
|
3723 |
if test ${ac_cv_prog_ac_ct_CC+y}
|
|
3724 |
then :
|
|
3725 |
printf %s "(cached) " >&6
|
|
3726 |
else $as_nop
|
|
3727 |
if test -n "$ac_ct_CC"; then
|
|
3728 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
3729 |
else
|
|
3730 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3731 |
for as_dir in $PATH
|
|
3732 |
do
|
|
3733 |
IFS=$as_save_IFS
|
|
3734 |
case $as_dir in #(((
|
|
3735 |
'') as_dir=./ ;;
|
|
3736 |
*/) ;;
|
|
3737 |
*) as_dir=$as_dir/ ;;
|
|
3738 |
esac
|
|
3739 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3740 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
|
3741 |
ac_cv_prog_ac_ct_CC="clang"
|
|
3742 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
|
3743 |
break 2
|
|
3744 |
fi
|
|
3745 |
done
|
|
3746 |
done
|
|
3747 |
IFS=$as_save_IFS
|
|
3748 |
|
|
3749 |
fi
|
|
3750 |
fi
|
|
3751 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
3752 |
if test -n "$ac_ct_CC"; then
|
|
3753 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
3754 |
printf "%s\n" "$ac_ct_CC" >&6; }
|
|
3755 |
else
|
|
3756 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3757 |
printf "%s\n" "no" >&6; }
|
|
3758 |
fi
|
|
3759 |
|
|
3760 |
if test "x$ac_ct_CC" = x; then
|
|
3761 |
CC=""
|
|
3762 |
else
|
|
3763 |
case $cross_compiling:$ac_tool_warned in
|
|
3764 |
yes:)
|
|
3765 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
3766 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
3767 |
ac_tool_warned=yes ;;
|
|
3768 |
esac
|
|
3769 |
CC=$ac_ct_CC
|
|
3770 |
fi
|
|
3771 |
else
|
|
3772 |
CC="$ac_cv_prog_CC"
|
|
3773 |
fi
|
|
3774 |
|
|
3775 |
fi
|
|
3776 |
|
|
3777 |
|
|
3778 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
3779 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
3247 | 3780 |
as_fn_error $? "no acceptable C compiler found in \$PATH
|
3248 | 3781 |
See \`config.log' for more details" "$LINENO" 5; }
|
3249 | 3782 |
|
3250 | 3783 |
# Provide some information about the compiler.
|
3251 | |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
|
3784 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
3252 | 3785 |
set X $ac_compile
|
3253 | 3786 |
ac_compiler=$2
|
3254 | |
for ac_option in --version -v -V -qversion; do
|
|
3787 |
for ac_option in --version -v -V -qversion -version; do
|
3255 | 3788 |
{ { ac_try="$ac_compiler $ac_option >&5"
|
3256 | 3789 |
case "(($ac_try" in
|
3257 | 3790 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
3258 | 3791 |
*) ac_try_echo=$ac_try;;
|
3259 | 3792 |
esac
|
3260 | 3793 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
3261 | |
$as_echo "$ac_try_echo"; } >&5
|
|
3794 |
printf "%s\n" "$ac_try_echo"; } >&5
|
3262 | 3795 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
3263 | 3796 |
ac_status=$?
|
3264 | 3797 |
if test -s conftest.err; then
|
|
3268 | 3801 |
cat conftest.er1 >&5
|
3269 | 3802 |
fi
|
3270 | 3803 |
rm -f conftest.er1 conftest.err
|
3271 | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
3804 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
3272 | 3805 |
test $ac_status = 0; }
|
3273 | 3806 |
done
|
3274 | 3807 |
|
|
3276 | 3809 |
/* end confdefs.h. */
|
3277 | 3810 |
|
3278 | 3811 |
int
|
3279 | |
main ()
|
|
3812 |
main (void)
|
3280 | 3813 |
{
|
3281 | 3814 |
|
3282 | 3815 |
;
|
|
3288 | 3821 |
# Try to create an executable without -o first, disregard a.out.
|
3289 | 3822 |
# It will help us diagnose broken compilers, and finding out an intuition
|
3290 | 3823 |
# of exeext.
|
3291 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
3292 | |
$as_echo_n "checking whether the C compiler works... " >&6; }
|
3293 | |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
|
3824 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
|
3825 |
printf %s "checking whether the C compiler works... " >&6; }
|
|
3826 |
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
3294 | 3827 |
|
3295 | 3828 |
# The possible output files:
|
3296 | 3829 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
|
3311 | 3844 |
*) ac_try_echo=$ac_try;;
|
3312 | 3845 |
esac
|
3313 | 3846 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
3314 | |
$as_echo "$ac_try_echo"; } >&5
|
|
3847 |
printf "%s\n" "$ac_try_echo"; } >&5
|
3315 | 3848 |
(eval "$ac_link_default") 2>&5
|
3316 | 3849 |
ac_status=$?
|
3317 | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
3318 | |
test $ac_status = 0; }; then :
|
|
3850 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
3851 |
test $ac_status = 0; }
|
|
3852 |
then :
|
3319 | 3853 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
3320 | 3854 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
3321 | 3855 |
# in a Makefile. We should not override ac_cv_exeext if it was cached,
|
|
3332 | 3866 |
# certainly right.
|
3333 | 3867 |
break;;
|
3334 | 3868 |
*.* )
|
3335 | |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
|
3869 |
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
|
3336 | 3870 |
then :; else
|
3337 | 3871 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
3338 | 3872 |
fi
|
|
3348 | 3882 |
done
|
3349 | 3883 |
test "$ac_cv_exeext" = no && ac_cv_exeext=
|
3350 | 3884 |
|
3351 | |
else
|
|
3885 |
else $as_nop
|
3352 | 3886 |
ac_file=''
|
3353 | 3887 |
fi
|
3354 | |
if test -z "$ac_file"; then :
|
3355 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
3356 | |
$as_echo "no" >&6; }
|
3357 | |
$as_echo "$as_me: failed program was:" >&5
|
|
3888 |
if test -z "$ac_file"
|
|
3889 |
then :
|
|
3890 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3891 |
printf "%s\n" "no" >&6; }
|
|
3892 |
printf "%s\n" "$as_me: failed program was:" >&5
|
3358 | 3893 |
sed 's/^/| /' conftest.$ac_ext >&5
|
3359 | 3894 |
|
3360 | |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
3361 | |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
3895 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
3896 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
3362 | 3897 |
as_fn_error 77 "C compiler cannot create executables
|
3363 | 3898 |
See \`config.log' for more details" "$LINENO" 5; }
|
3364 | |
else
|
3365 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
3366 | |
$as_echo "yes" >&6; }
|
3367 | |
fi
|
3368 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
3369 | |
$as_echo_n "checking for C compiler default output file name... " >&6; }
|
3370 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
3371 | |
$as_echo "$ac_file" >&6; }
|
|
3899 |
else $as_nop
|
|
3900 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
3901 |
printf "%s\n" "yes" >&6; }
|
|
3902 |
fi
|
|
3903 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
|
3904 |
printf %s "checking for C compiler default output file name... " >&6; }
|
|
3905 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
|
3906 |
printf "%s\n" "$ac_file" >&6; }
|
3372 | 3907 |
ac_exeext=$ac_cv_exeext
|
3373 | 3908 |
|
3374 | 3909 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
3375 | 3910 |
ac_clean_files=$ac_clean_files_save
|
3376 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
3377 | |
$as_echo_n "checking for suffix of executables... " >&6; }
|
|
3911 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
|
3912 |
printf %s "checking for suffix of executables... " >&6; }
|
3378 | 3913 |
if { { ac_try="$ac_link"
|
3379 | 3914 |
case "(($ac_try" in
|
3380 | 3915 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
3381 | 3916 |
*) ac_try_echo=$ac_try;;
|
3382 | 3917 |
esac
|
3383 | 3918 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
3384 | |
$as_echo "$ac_try_echo"; } >&5
|
|
3919 |
printf "%s\n" "$ac_try_echo"; } >&5
|
3385 | 3920 |
(eval "$ac_link") 2>&5
|
3386 | 3921 |
ac_status=$?
|
3387 | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
3388 | |
test $ac_status = 0; }; then :
|
|
3922 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
3923 |
test $ac_status = 0; }
|
|
3924 |
then :
|
3389 | 3925 |
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
3390 | 3926 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
3391 | 3927 |
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
|
3399 | 3935 |
* ) break;;
|
3400 | 3936 |
esac
|
3401 | 3937 |
done
|
3402 | |
else
|
3403 | |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
3404 | |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
3938 |
else $as_nop
|
|
3939 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
3940 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
3405 | 3941 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
3406 | 3942 |
See \`config.log' for more details" "$LINENO" 5; }
|
3407 | 3943 |
fi
|
3408 | 3944 |
rm -f conftest conftest$ac_cv_exeext
|
3409 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
3410 | |
$as_echo "$ac_cv_exeext" >&6; }
|
|
3945 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
|
3946 |
printf "%s\n" "$ac_cv_exeext" >&6; }
|
3411 | 3947 |
|
3412 | 3948 |
rm -f conftest.$ac_ext
|
3413 | 3949 |
EXEEXT=$ac_cv_exeext
|
|
3416 | 3952 |
/* end confdefs.h. */
|
3417 | 3953 |
#include <stdio.h>
|
3418 | 3954 |
int
|
3419 | |
main ()
|
|
3955 |
main (void)
|
3420 | 3956 |
{
|
3421 | 3957 |
FILE *f = fopen ("conftest.out", "w");
|
3422 | 3958 |
return ferror (f) || fclose (f) != 0;
|
|
3428 | 3964 |
ac_clean_files="$ac_clean_files conftest.out"
|
3429 | 3965 |
# Check that the compiler produces executables we can run. If not, either
|
3430 | 3966 |
# the compiler is broken, or we cross compile.
|
3431 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
3432 | |
$as_echo_n "checking whether we are cross compiling... " >&6; }
|
|
3967 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
|
3968 |
printf %s "checking whether we are cross compiling... " >&6; }
|
3433 | 3969 |
if test "$cross_compiling" != yes; then
|
3434 | 3970 |
{ { ac_try="$ac_link"
|
3435 | 3971 |
case "(($ac_try" in
|
|
3437 | 3973 |
*) ac_try_echo=$ac_try;;
|
3438 | 3974 |
esac
|
3439 | 3975 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
3440 | |
$as_echo "$ac_try_echo"; } >&5
|
|
3976 |
printf "%s\n" "$ac_try_echo"; } >&5
|
3441 | 3977 |
(eval "$ac_link") 2>&5
|
3442 | 3978 |
ac_status=$?
|
3443 | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
3979 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
3444 | 3980 |
test $ac_status = 0; }
|
3445 | 3981 |
if { ac_try='./conftest$ac_cv_exeext'
|
3446 | 3982 |
{ { case "(($ac_try" in
|
|
3448 | 3984 |
*) ac_try_echo=$ac_try;;
|
3449 | 3985 |
esac
|
3450 | 3986 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
3451 | |
$as_echo "$ac_try_echo"; } >&5
|
|
3987 |
printf "%s\n" "$ac_try_echo"; } >&5
|
3452 | 3988 |
(eval "$ac_try") 2>&5
|
3453 | 3989 |
ac_status=$?
|
3454 | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
3990 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
3455 | 3991 |
test $ac_status = 0; }; }; then
|
3456 | 3992 |
cross_compiling=no
|
3457 | 3993 |
else
|
3458 | 3994 |
if test "$cross_compiling" = maybe; then
|
3459 | 3995 |
cross_compiling=yes
|
3460 | 3996 |
else
|
3461 | |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
3462 | |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
3463 | |
as_fn_error $? "cannot run C compiled programs.
|
|
3997 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
3998 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
3999 |
as_fn_error 77 "cannot run C compiled programs.
|
3464 | 4000 |
If you meant to cross compile, use \`--host'.
|
3465 | 4001 |
See \`config.log' for more details" "$LINENO" 5; }
|
3466 | 4002 |
fi
|
3467 | 4003 |
fi
|
3468 | 4004 |
fi
|
3469 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
3470 | |
$as_echo "$cross_compiling" >&6; }
|
|
4005 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
|
4006 |
printf "%s\n" "$cross_compiling" >&6; }
|
3471 | 4007 |
|
3472 | 4008 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
3473 | 4009 |
ac_clean_files=$ac_clean_files_save
|
3474 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
3475 | |
$as_echo_n "checking for suffix of object files... " >&6; }
|
3476 | |
if ${ac_cv_objext+:} false; then :
|
3477 | |
$as_echo_n "(cached) " >&6
|
3478 | |
else
|
|
4010 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
|
4011 |
printf %s "checking for suffix of object files... " >&6; }
|
|
4012 |
if test ${ac_cv_objext+y}
|
|
4013 |
then :
|
|
4014 |
printf %s "(cached) " >&6
|
|
4015 |
else $as_nop
|
3479 | 4016 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
3480 | 4017 |
/* end confdefs.h. */
|
3481 | 4018 |
|
3482 | 4019 |
int
|
3483 | |
main ()
|
|
4020 |
main (void)
|
3484 | 4021 |
{
|
3485 | 4022 |
|
3486 | 4023 |
;
|
|
3494 | 4031 |
*) ac_try_echo=$ac_try;;
|
3495 | 4032 |
esac
|
3496 | 4033 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
3497 | |
$as_echo "$ac_try_echo"; } >&5
|
|
4034 |
printf "%s\n" "$ac_try_echo"; } >&5
|
3498 | 4035 |
(eval "$ac_compile") 2>&5
|
3499 | 4036 |
ac_status=$?
|
3500 | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
3501 | |
test $ac_status = 0; }; then :
|
|
4037 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
4038 |
test $ac_status = 0; }
|
|
4039 |
then :
|
3502 | 4040 |
for ac_file in conftest.o conftest.obj conftest.*; do
|
3503 | 4041 |
test -f "$ac_file" || continue;
|
3504 | 4042 |
case $ac_file in
|
|
3507 | 4045 |
break;;
|
3508 | 4046 |
esac
|
3509 | 4047 |
done
|
3510 | |
else
|
3511 | |
$as_echo "$as_me: failed program was:" >&5
|
|
4048 |
else $as_nop
|
|
4049 |
printf "%s\n" "$as_me: failed program was:" >&5
|
3512 | 4050 |
sed 's/^/| /' conftest.$ac_ext >&5
|
3513 | 4051 |
|
3514 | |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
3515 | |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
4052 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
4053 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
3516 | 4054 |
as_fn_error $? "cannot compute suffix of object files: cannot compile
|
3517 | 4055 |
See \`config.log' for more details" "$LINENO" 5; }
|
3518 | 4056 |
fi
|
3519 | 4057 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
3520 | 4058 |
fi
|
3521 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
3522 | |
$as_echo "$ac_cv_objext" >&6; }
|
|
4059 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
|
4060 |
printf "%s\n" "$ac_cv_objext" >&6; }
|
3523 | 4061 |
OBJEXT=$ac_cv_objext
|
3524 | 4062 |
ac_objext=$OBJEXT
|
3525 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
3526 | |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
3527 | |
if ${ac_cv_c_compiler_gnu+:} false; then :
|
3528 | |
$as_echo_n "(cached) " >&6
|
3529 | |
else
|
|
4063 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
|
|
4064 |
printf %s "checking whether the compiler supports GNU C... " >&6; }
|
|
4065 |
if test ${ac_cv_c_compiler_gnu+y}
|
|
4066 |
then :
|
|
4067 |
printf %s "(cached) " >&6
|
|
4068 |
else $as_nop
|
3530 | 4069 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
3531 | 4070 |
/* end confdefs.h. */
|
3532 | 4071 |
|
3533 | 4072 |
int
|
3534 | |
main ()
|
|
4073 |
main (void)
|
3535 | 4074 |
{
|
3536 | 4075 |
#ifndef __GNUC__
|
3537 | 4076 |
choke me
|
|
3541 | 4080 |
return 0;
|
3542 | 4081 |
}
|
3543 | 4082 |
_ACEOF
|
3544 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
4083 |
if ac_fn_c_try_compile "$LINENO"
|
|
4084 |
then :
|
3545 | 4085 |
ac_compiler_gnu=yes
|
3546 | |
else
|
|
4086 |
else $as_nop
|
3547 | 4087 |
ac_compiler_gnu=no
|
3548 | 4088 |
fi
|
3549 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4089 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
3550 | 4090 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
3551 | 4091 |
|
3552 | 4092 |
fi
|
3553 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
3554 | |
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
|
4093 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
|
4094 |
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
|
|
4095 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
4096 |
|
3555 | 4097 |
if test $ac_compiler_gnu = yes; then
|
3556 | 4098 |
GCC=yes
|
3557 | 4099 |
else
|
3558 | 4100 |
GCC=
|
3559 | 4101 |
fi
|
3560 | |
ac_test_CFLAGS=${CFLAGS+set}
|
|
4102 |
ac_test_CFLAGS=${CFLAGS+y}
|
3561 | 4103 |
ac_save_CFLAGS=$CFLAGS
|
3562 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
3563 | |
$as_echo_n "checking whether $CC accepts -g... " >&6; }
|
3564 | |
if ${ac_cv_prog_cc_g+:} false; then :
|
3565 | |
$as_echo_n "(cached) " >&6
|
3566 | |
else
|
|
4104 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
|
4105 |
printf %s "checking whether $CC accepts -g... " >&6; }
|
|
4106 |
if test ${ac_cv_prog_cc_g+y}
|
|
4107 |
then :
|
|
4108 |
printf %s "(cached) " >&6
|
|
4109 |
else $as_nop
|
3567 | 4110 |
ac_save_c_werror_flag=$ac_c_werror_flag
|
3568 | 4111 |
ac_c_werror_flag=yes
|
3569 | 4112 |
ac_cv_prog_cc_g=no
|
|
3572 | 4115 |
/* end confdefs.h. */
|
3573 | 4116 |
|
3574 | 4117 |
int
|
3575 | |
main ()
|
|
4118 |
main (void)
|
3576 | 4119 |
{
|
3577 | 4120 |
|
3578 | 4121 |
;
|
3579 | 4122 |
return 0;
|
3580 | 4123 |
}
|
3581 | 4124 |
_ACEOF
|
3582 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
4125 |
if ac_fn_c_try_compile "$LINENO"
|
|
4126 |
then :
|
3583 | 4127 |
ac_cv_prog_cc_g=yes
|
3584 | |
else
|
|
4128 |
else $as_nop
|
3585 | 4129 |
CFLAGS=""
|
3586 | 4130 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
3587 | 4131 |
/* end confdefs.h. */
|
3588 | 4132 |
|
3589 | 4133 |
int
|
3590 | |
main ()
|
|
4134 |
main (void)
|
3591 | 4135 |
{
|
3592 | 4136 |
|
3593 | 4137 |
;
|
3594 | 4138 |
return 0;
|
3595 | 4139 |
}
|
3596 | 4140 |
_ACEOF
|
3597 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
3598 | |
|
3599 | |
else
|
|
4141 |
if ac_fn_c_try_compile "$LINENO"
|
|
4142 |
then :
|
|
4143 |
|
|
4144 |
else $as_nop
|
3600 | 4145 |
ac_c_werror_flag=$ac_save_c_werror_flag
|
3601 | 4146 |
CFLAGS="-g"
|
3602 | 4147 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
3603 | 4148 |
/* end confdefs.h. */
|
3604 | 4149 |
|
3605 | 4150 |
int
|
3606 | |
main ()
|
|
4151 |
main (void)
|
3607 | 4152 |
{
|
3608 | 4153 |
|
3609 | 4154 |
;
|
3610 | 4155 |
return 0;
|
3611 | 4156 |
}
|
3612 | 4157 |
_ACEOF
|
3613 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
4158 |
if ac_fn_c_try_compile "$LINENO"
|
|
4159 |
then :
|
3614 | 4160 |
ac_cv_prog_cc_g=yes
|
3615 | 4161 |
fi
|
3616 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
3617 | |
fi
|
3618 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
3619 | |
fi
|
3620 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4162 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
4163 |
fi
|
|
4164 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
4165 |
fi
|
|
4166 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
3621 | 4167 |
ac_c_werror_flag=$ac_save_c_werror_flag
|
3622 | 4168 |
fi
|
3623 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
3624 | |
$as_echo "$ac_cv_prog_cc_g" >&6; }
|
3625 | |
if test "$ac_test_CFLAGS" = set; then
|
|
4169 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
|
4170 |
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
|
|
4171 |
if test $ac_test_CFLAGS; then
|
3626 | 4172 |
CFLAGS=$ac_save_CFLAGS
|
3627 | 4173 |
elif test $ac_cv_prog_cc_g = yes; then
|
3628 | 4174 |
if test "$GCC" = yes; then
|
|
3637 | 4183 |
CFLAGS=
|
3638 | 4184 |
fi
|
3639 | 4185 |
fi
|
3640 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
3641 | |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
3642 | |
if ${ac_cv_prog_cc_c89+:} false; then :
|
3643 | |
$as_echo_n "(cached) " >&6
|
3644 | |
else
|
|
4186 |
ac_prog_cc_stdc=no
|
|
4187 |
if test x$ac_prog_cc_stdc = xno
|
|
4188 |
then :
|
|
4189 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
|
|
4190 |
printf %s "checking for $CC option to enable C11 features... " >&6; }
|
|
4191 |
if test ${ac_cv_prog_cc_c11+y}
|
|
4192 |
then :
|
|
4193 |
printf %s "(cached) " >&6
|
|
4194 |
else $as_nop
|
|
4195 |
ac_cv_prog_cc_c11=no
|
|
4196 |
ac_save_CC=$CC
|
|
4197 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4198 |
/* end confdefs.h. */
|
|
4199 |
$ac_c_conftest_c11_program
|
|
4200 |
_ACEOF
|
|
4201 |
for ac_arg in '' -std=gnu11
|
|
4202 |
do
|
|
4203 |
CC="$ac_save_CC $ac_arg"
|
|
4204 |
if ac_fn_c_try_compile "$LINENO"
|
|
4205 |
then :
|
|
4206 |
ac_cv_prog_cc_c11=$ac_arg
|
|
4207 |
fi
|
|
4208 |
rm -f core conftest.err conftest.$ac_objext conftest.beam
|
|
4209 |
test "x$ac_cv_prog_cc_c11" != "xno" && break
|
|
4210 |
done
|
|
4211 |
rm -f conftest.$ac_ext
|
|
4212 |
CC=$ac_save_CC
|
|
4213 |
fi
|
|
4214 |
|
|
4215 |
if test "x$ac_cv_prog_cc_c11" = xno
|
|
4216 |
then :
|
|
4217 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
4218 |
printf "%s\n" "unsupported" >&6; }
|
|
4219 |
else $as_nop
|
|
4220 |
if test "x$ac_cv_prog_cc_c11" = x
|
|
4221 |
then :
|
|
4222 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
4223 |
printf "%s\n" "none needed" >&6; }
|
|
4224 |
else $as_nop
|
|
4225 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
|
|
4226 |
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
|
|
4227 |
CC="$CC $ac_cv_prog_cc_c11"
|
|
4228 |
fi
|
|
4229 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
|
|
4230 |
ac_prog_cc_stdc=c11
|
|
4231 |
fi
|
|
4232 |
fi
|
|
4233 |
if test x$ac_prog_cc_stdc = xno
|
|
4234 |
then :
|
|
4235 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
|
|
4236 |
printf %s "checking for $CC option to enable C99 features... " >&6; }
|
|
4237 |
if test ${ac_cv_prog_cc_c99+y}
|
|
4238 |
then :
|
|
4239 |
printf %s "(cached) " >&6
|
|
4240 |
else $as_nop
|
|
4241 |
ac_cv_prog_cc_c99=no
|
|
4242 |
ac_save_CC=$CC
|
|
4243 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4244 |
/* end confdefs.h. */
|
|
4245 |
$ac_c_conftest_c99_program
|
|
4246 |
_ACEOF
|
|
4247 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
|
|
4248 |
do
|
|
4249 |
CC="$ac_save_CC $ac_arg"
|
|
4250 |
if ac_fn_c_try_compile "$LINENO"
|
|
4251 |
then :
|
|
4252 |
ac_cv_prog_cc_c99=$ac_arg
|
|
4253 |
fi
|
|
4254 |
rm -f core conftest.err conftest.$ac_objext conftest.beam
|
|
4255 |
test "x$ac_cv_prog_cc_c99" != "xno" && break
|
|
4256 |
done
|
|
4257 |
rm -f conftest.$ac_ext
|
|
4258 |
CC=$ac_save_CC
|
|
4259 |
fi
|
|
4260 |
|
|
4261 |
if test "x$ac_cv_prog_cc_c99" = xno
|
|
4262 |
then :
|
|
4263 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
4264 |
printf "%s\n" "unsupported" >&6; }
|
|
4265 |
else $as_nop
|
|
4266 |
if test "x$ac_cv_prog_cc_c99" = x
|
|
4267 |
then :
|
|
4268 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
4269 |
printf "%s\n" "none needed" >&6; }
|
|
4270 |
else $as_nop
|
|
4271 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
|
|
4272 |
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
|
|
4273 |
CC="$CC $ac_cv_prog_cc_c99"
|
|
4274 |
fi
|
|
4275 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
|
|
4276 |
ac_prog_cc_stdc=c99
|
|
4277 |
fi
|
|
4278 |
fi
|
|
4279 |
if test x$ac_prog_cc_stdc = xno
|
|
4280 |
then :
|
|
4281 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
|
|
4282 |
printf %s "checking for $CC option to enable C89 features... " >&6; }
|
|
4283 |
if test ${ac_cv_prog_cc_c89+y}
|
|
4284 |
then :
|
|
4285 |
printf %s "(cached) " >&6
|
|
4286 |
else $as_nop
|
3645 | 4287 |
ac_cv_prog_cc_c89=no
|
3646 | 4288 |
ac_save_CC=$CC
|
3647 | 4289 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
3648 | 4290 |
/* end confdefs.h. */
|
3649 | |
#include <stdarg.h>
|
3650 | |
#include <stdio.h>
|
3651 | |
struct stat;
|
3652 | |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
3653 | |
struct buf { int x; };
|
3654 | |
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
3655 | |
static char *e (p, i)
|
3656 | |
char **p;
|
3657 | |
int i;
|
3658 | |
{
|
3659 | |
return p[i];
|
3660 | |
}
|
3661 | |
static char *f (char * (*g) (char **, int), char **p, ...)
|
3662 | |
{
|
3663 | |
char *s;
|
3664 | |
va_list v;
|
3665 | |
va_start (v,p);
|
3666 | |
s = g (p, va_arg (v,int));
|
3667 | |
va_end (v);
|
3668 | |
return s;
|
3669 | |
}
|
3670 | |
|
3671 | |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
3672 | |
function prototypes and stuff, but not '\xHH' hex character constants.
|
3673 | |
These don't provoke an error unfortunately, instead are silently treated
|
3674 | |
as 'x'. The following induces an error, until -std is added to get
|
3675 | |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
3676 | |
array size at least. It's necessary to write '\x00'==0 to get something
|
3677 | |
that's true only with -std. */
|
3678 | |
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
3679 | |
|
3680 | |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
3681 | |
inside strings and character constants. */
|
3682 | |
#define FOO(x) 'x'
|
3683 | |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
3684 | |
|
3685 | |
int test (int i, double x);
|
3686 | |
struct s1 {int (*f) (int a);};
|
3687 | |
struct s2 {int (*f) (double a);};
|
3688 | |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
3689 | |
int argc;
|
3690 | |
char **argv;
|
3691 | |
int
|
3692 | |
main ()
|
3693 | |
{
|
3694 | |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
3695 | |
;
|
3696 | |
return 0;
|
3697 | |
}
|
|
4291 |
$ac_c_conftest_c89_program
|
3698 | 4292 |
_ACEOF
|
3699 | |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
3700 | |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
4293 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
3701 | 4294 |
do
|
3702 | 4295 |
CC="$ac_save_CC $ac_arg"
|
3703 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
4296 |
if ac_fn_c_try_compile "$LINENO"
|
|
4297 |
then :
|
3704 | 4298 |
ac_cv_prog_cc_c89=$ac_arg
|
3705 | 4299 |
fi
|
3706 | |
rm -f core conftest.err conftest.$ac_objext
|
|
4300 |
rm -f core conftest.err conftest.$ac_objext conftest.beam
|
3707 | 4301 |
test "x$ac_cv_prog_cc_c89" != "xno" && break
|
3708 | 4302 |
done
|
3709 | 4303 |
rm -f conftest.$ac_ext
|
3710 | 4304 |
CC=$ac_save_CC
|
3711 | |
|
3712 | |
fi
|
3713 | |
# AC_CACHE_VAL
|
3714 | |
case "x$ac_cv_prog_cc_c89" in
|
3715 | |
x)
|
3716 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
3717 | |
$as_echo "none needed" >&6; } ;;
|
3718 | |
xno)
|
3719 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
3720 | |
$as_echo "unsupported" >&6; } ;;
|
3721 | |
*)
|
3722 | |
CC="$CC $ac_cv_prog_cc_c89"
|
3723 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
3724 | |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
3725 | |
esac
|
3726 | |
if test "x$ac_cv_prog_cc_c89" != xno; then :
|
3727 | |
|
|
4305 |
fi
|
|
4306 |
|
|
4307 |
if test "x$ac_cv_prog_cc_c89" = xno
|
|
4308 |
then :
|
|
4309 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
4310 |
printf "%s\n" "unsupported" >&6; }
|
|
4311 |
else $as_nop
|
|
4312 |
if test "x$ac_cv_prog_cc_c89" = x
|
|
4313 |
then :
|
|
4314 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
4315 |
printf "%s\n" "none needed" >&6; }
|
|
4316 |
else $as_nop
|
|
4317 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
|
4318 |
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
|
|
4319 |
CC="$CC $ac_cv_prog_cc_c89"
|
|
4320 |
fi
|
|
4321 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
|
|
4322 |
ac_prog_cc_stdc=c89
|
|
4323 |
fi
|
3728 | 4324 |
fi
|
3729 | 4325 |
|
3730 | 4326 |
ac_ext=c
|
|
3733 | 4329 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3734 | 4330 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3735 | 4331 |
|
3736 | |
ac_ext=c
|
|
4332 |
|
|
4333 |
ac_ext=c
|
3737 | 4334 |
ac_cpp='$CPP $CPPFLAGS'
|
3738 | 4335 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3739 | 4336 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3740 | 4337 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3741 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
3742 | |
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
|
3743 | |
if ${am_cv_prog_cc_c_o+:} false; then :
|
3744 | |
$as_echo_n "(cached) " >&6
|
3745 | |
else
|
|
4338 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
|
4339 |
printf %s "checking whether $CC understands -c and -o together... " >&6; }
|
|
4340 |
if test ${am_cv_prog_cc_c_o+y}
|
|
4341 |
then :
|
|
4342 |
printf %s "(cached) " >&6
|
|
4343 |
else $as_nop
|
3746 | 4344 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
3747 | 4345 |
/* end confdefs.h. */
|
3748 | 4346 |
|
3749 | 4347 |
int
|
3750 | |
main ()
|
|
4348 |
main (void)
|
3751 | 4349 |
{
|
3752 | 4350 |
|
3753 | 4351 |
;
|
|
3775 | 4373 |
rm -f core conftest*
|
3776 | 4374 |
unset am_i
|
3777 | 4375 |
fi
|
3778 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
3779 | |
$as_echo "$am_cv_prog_cc_c_o" >&6; }
|
|
4376 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
|
4377 |
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
|
3780 | 4378 |
if test "$am_cv_prog_cc_c_o" != yes; then
|
3781 | 4379 |
# Losing compiler, so override with the script.
|
3782 | 4380 |
# FIXME: It is wrong to rewrite CC.
|
|
3794 | 4392 |
|
3795 | 4393 |
depcc="$CC" am_compiler_list=
|
3796 | 4394 |
|
3797 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
3798 | |
$as_echo_n "checking dependency style of $depcc... " >&6; }
|
3799 | |
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
|
3800 | |
$as_echo_n "(cached) " >&6
|
3801 | |
else
|
|
4395 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
|
4396 |
printf %s "checking dependency style of $depcc... " >&6; }
|
|
4397 |
if test ${am_cv_CC_dependencies_compiler_type+y}
|
|
4398 |
then :
|
|
4399 |
printf %s "(cached) " >&6
|
|
4400 |
else $as_nop
|
3802 | 4401 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
3803 | 4402 |
# We make a subdir and do the tests there. Otherwise we can end up
|
3804 | 4403 |
# making bogus files that we don't know about and never remove. For
|
|
3905 | 4504 |
fi
|
3906 | 4505 |
|
3907 | 4506 |
fi
|
3908 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
3909 | |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
|
4507 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
|
4508 |
printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
|
3910 | 4509 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
3911 | 4510 |
|
3912 | 4511 |
if
|
|
3921 | 4520 |
|
3922 | 4521 |
|
3923 | 4522 |
|
3924 | |
ac_ext=c
|
3925 | |
ac_cpp='$CPP $CPPFLAGS'
|
3926 | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3927 | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3928 | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3929 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
3930 | |
$as_echo_n "checking how to run the C preprocessor... " >&6; }
|
3931 | |
# On Suns, sometimes $CPP names a directory.
|
3932 | |
if test -n "$CPP" && test -d "$CPP"; then
|
3933 | |
CPP=
|
3934 | |
fi
|
3935 | |
if test -z "$CPP"; then
|
3936 | |
if ${ac_cv_prog_CPP+:} false; then :
|
3937 | |
$as_echo_n "(cached) " >&6
|
3938 | |
else
|
3939 | |
# Double quotes because CPP needs to be expanded
|
3940 | |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
3941 | |
do
|
3942 | |
ac_preproc_ok=false
|
3943 | |
for ac_c_preproc_warn_flag in '' yes
|
|
4523 |
ac_header= ac_cache=
|
|
4524 |
for ac_item in $ac_header_c_list
|
3944 | 4525 |
do
|
3945 | |
# Use a header file that comes with gcc, so configuring glibc
|
3946 | |
# with a fresh cross-compiler works.
|
3947 | |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
3948 | |
# <limits.h> exists even on freestanding compilers.
|
3949 | |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
3950 | |
# not just through cpp. "Syntax error" is here to catch this case.
|
|
4526 |
if test $ac_cache; then
|
|
4527 |
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
|
|
4528 |
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
|
|
4529 |
printf "%s\n" "#define $ac_item 1" >> confdefs.h
|
|
4530 |
fi
|
|
4531 |
ac_header= ac_cache=
|
|
4532 |
elif test $ac_header; then
|
|
4533 |
ac_cache=$ac_item
|
|
4534 |
else
|
|
4535 |
ac_header=$ac_item
|
|
4536 |
fi
|
|
4537 |
done
|
|
4538 |
|
|
4539 |
|
|
4540 |
|
|
4541 |
|
|
4542 |
|
|
4543 |
|
|
4544 |
|
|
4545 |
|
|
4546 |
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
|
|
4547 |
then :
|
|
4548 |
|
|
4549 |
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
|
|
4550 |
|
|
4551 |
fi
|
|
4552 |
|
|
4553 |
|
|
4554 |
|
|
4555 |
|
|
4556 |
|
|
4557 |
|
|
4558 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
|
4559 |
printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
|
4560 |
if test ${ac_cv_safe_to_define___extensions__+y}
|
|
4561 |
then :
|
|
4562 |
printf %s "(cached) " >&6
|
|
4563 |
else $as_nop
|
3951 | 4564 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
3952 | 4565 |
/* end confdefs.h. */
|
3953 | |
#ifdef __STDC__
|
3954 | |
# include <limits.h>
|
3955 | |
#else
|
3956 | |
# include <assert.h>
|
3957 | |
#endif
|
3958 | |
Syntax error
|
3959 | |
_ACEOF
|
3960 | |
if ac_fn_c_try_cpp "$LINENO"; then :
|
3961 | |
|
3962 | |
else
|
3963 | |
# Broken: fails on valid input.
|
3964 | |
continue
|
3965 | |
fi
|
3966 | |
rm -f conftest.err conftest.i conftest.$ac_ext
|
3967 | |
|
3968 | |
# OK, works on sane cases. Now check whether nonexistent headers
|
3969 | |
# can be detected and how.
|
3970 | |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
3971 | |
/* end confdefs.h. */
|
3972 | |
#include <ac_nonexistent.h>
|
3973 | |
_ACEOF
|
3974 | |
if ac_fn_c_try_cpp "$LINENO"; then :
|
3975 | |
# Broken: success on invalid input.
|
3976 | |
continue
|
3977 | |
else
|
3978 | |
# Passes both tests.
|
3979 | |
ac_preproc_ok=:
|
3980 | |
break
|
3981 | |
fi
|
3982 | |
rm -f conftest.err conftest.i conftest.$ac_ext
|
3983 | |
|
3984 | |
done
|
3985 | |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
3986 | |
rm -f conftest.i conftest.err conftest.$ac_ext
|
3987 | |
if $ac_preproc_ok; then :
|
3988 | |
break
|
3989 | |
fi
|
3990 | |
|
3991 | |
done
|
3992 | |
ac_cv_prog_CPP=$CPP
|
3993 | |
|
3994 | |
fi
|
3995 | |
CPP=$ac_cv_prog_CPP
|
3996 | |
else
|
3997 | |
ac_cv_prog_CPP=$CPP
|
3998 | |
fi
|
3999 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
4000 | |
$as_echo "$CPP" >&6; }
|
4001 | |
ac_preproc_ok=false
|
4002 | |
for ac_c_preproc_warn_flag in '' yes
|
4003 | |
do
|
4004 | |
# Use a header file that comes with gcc, so configuring glibc
|
4005 | |
# with a fresh cross-compiler works.
|
4006 | |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
4007 | |
# <limits.h> exists even on freestanding compilers.
|
4008 | |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
4009 | |
# not just through cpp. "Syntax error" is here to catch this case.
|
4010 | |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
4011 | |
/* end confdefs.h. */
|
4012 | |
#ifdef __STDC__
|
4013 | |
# include <limits.h>
|
4014 | |
#else
|
4015 | |
# include <assert.h>
|
4016 | |
#endif
|
4017 | |
Syntax error
|
4018 | |
_ACEOF
|
4019 | |
if ac_fn_c_try_cpp "$LINENO"; then :
|
4020 | |
|
4021 | |
else
|
4022 | |
# Broken: fails on valid input.
|
4023 | |
continue
|
4024 | |
fi
|
4025 | |
rm -f conftest.err conftest.i conftest.$ac_ext
|
4026 | |
|
4027 | |
# OK, works on sane cases. Now check whether nonexistent headers
|
4028 | |
# can be detected and how.
|
4029 | |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
4030 | |
/* end confdefs.h. */
|
4031 | |
#include <ac_nonexistent.h>
|
4032 | |
_ACEOF
|
4033 | |
if ac_fn_c_try_cpp "$LINENO"; then :
|
4034 | |
# Broken: success on invalid input.
|
4035 | |
continue
|
4036 | |
else
|
4037 | |
# Passes both tests.
|
4038 | |
ac_preproc_ok=:
|
4039 | |
break
|
4040 | |
fi
|
4041 | |
rm -f conftest.err conftest.i conftest.$ac_ext
|
4042 | |
|
4043 | |
done
|
4044 | |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
4045 | |
rm -f conftest.i conftest.err conftest.$ac_ext
|
4046 | |
if $ac_preproc_ok; then :
|
4047 | |
|
4048 | |
else
|
4049 | |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
4050 | |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
4051 | |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
4052 | |
See \`config.log' for more details" "$LINENO" 5; }
|
4053 | |
fi
|
4054 | |
|
4055 | |
ac_ext=c
|
4056 | |
ac_cpp='$CPP $CPPFLAGS'
|
4057 | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
4058 | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
4059 | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
4060 | |
|
4061 | |
|
4062 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
4063 | |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
4064 | |
if ${ac_cv_path_GREP+:} false; then :
|
4065 | |
$as_echo_n "(cached) " >&6
|
4066 | |
else
|
4067 | |
if test -z "$GREP"; then
|
4068 | |
ac_path_GREP_found=false
|
4069 | |
# Loop through the user's path and test for each of PROGNAME-LIST
|
4070 | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
4071 | |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
4072 | |
do
|
4073 | |
IFS=$as_save_IFS
|
4074 | |
test -z "$as_dir" && as_dir=.
|
4075 | |
for ac_prog in grep ggrep; do
|
4076 | |
for ac_exec_ext in '' $ac_executable_extensions; do
|
4077 | |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
4078 | |
as_fn_executable_p "$ac_path_GREP" || continue
|
4079 | |
# Check for GNU ac_path_GREP and select it if it is found.
|
4080 | |
# Check for GNU $ac_path_GREP
|
4081 | |
case `"$ac_path_GREP" --version 2>&1` in
|
4082 | |
*GNU*)
|
4083 | |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
4084 | |
*)
|
4085 | |
ac_count=0
|
4086 | |
$as_echo_n 0123456789 >"conftest.in"
|
4087 | |
while :
|
4088 | |
do
|
4089 | |
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
4090 | |
mv "conftest.tmp" "conftest.in"
|
4091 | |
cp "conftest.in" "conftest.nl"
|
4092 | |
$as_echo 'GREP' >> "conftest.nl"
|
4093 | |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
4094 | |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
4095 | |
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
4096 | |
if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
4097 | |
# Best one so far, save it but keep looking for a better one
|
4098 | |
ac_cv_path_GREP="$ac_path_GREP"
|
4099 | |
ac_path_GREP_max=$ac_count
|
4100 | |
fi
|
4101 | |
# 10*(2^10) chars as input seems more than enough
|
4102 | |
test $ac_count -gt 10 && break
|
4103 | |
done
|
4104 | |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
4105 | |
esac
|
4106 | |
|
4107 | |
$ac_path_GREP_found && break 3
|
4108 | |
done
|
4109 | |
done
|
4110 | |
done
|
4111 | |
IFS=$as_save_IFS
|
4112 | |
if test -z "$ac_cv_path_GREP"; then
|
4113 | |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
4114 | |
fi
|
4115 | |
else
|
4116 | |
ac_cv_path_GREP=$GREP
|
4117 | |
fi
|
4118 | |
|
4119 | |
fi
|
4120 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
4121 | |
$as_echo "$ac_cv_path_GREP" >&6; }
|
4122 | |
GREP="$ac_cv_path_GREP"
|
4123 | |
|
4124 | |
|
4125 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
4126 | |
$as_echo_n "checking for egrep... " >&6; }
|
4127 | |
if ${ac_cv_path_EGREP+:} false; then :
|
4128 | |
$as_echo_n "(cached) " >&6
|
4129 | |
else
|
4130 | |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
4131 | |
then ac_cv_path_EGREP="$GREP -E"
|
4132 | |
else
|
4133 | |
if test -z "$EGREP"; then
|
4134 | |
ac_path_EGREP_found=false
|
4135 | |
# Loop through the user's path and test for each of PROGNAME-LIST
|
4136 | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
4137 | |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
4138 | |
do
|
4139 | |
IFS=$as_save_IFS
|
4140 | |
test -z "$as_dir" && as_dir=.
|
4141 | |
for ac_prog in egrep; do
|
4142 | |
for ac_exec_ext in '' $ac_executable_extensions; do
|
4143 | |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
4144 | |
as_fn_executable_p "$ac_path_EGREP" || continue
|
4145 | |
# Check for GNU ac_path_EGREP and select it if it is found.
|
4146 | |
# Check for GNU $ac_path_EGREP
|
4147 | |
case `"$ac_path_EGREP" --version 2>&1` in
|
4148 | |
*GNU*)
|
4149 | |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
4150 | |
*)
|
4151 | |
ac_count=0
|
4152 | |
$as_echo_n 0123456789 >"conftest.in"
|
4153 | |
while :
|
4154 | |
do
|
4155 | |
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
4156 | |
mv "conftest.tmp" "conftest.in"
|
4157 | |
cp "conftest.in" "conftest.nl"
|
4158 | |
$as_echo 'EGREP' >> "conftest.nl"
|
4159 | |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
4160 | |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
4161 | |
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
4162 | |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
4163 | |
# Best one so far, save it but keep looking for a better one
|
4164 | |
ac_cv_path_EGREP="$ac_path_EGREP"
|
4165 | |
ac_path_EGREP_max=$ac_count
|
4166 | |
fi
|
4167 | |
# 10*(2^10) chars as input seems more than enough
|
4168 | |
test $ac_count -gt 10 && break
|
4169 | |
done
|
4170 | |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
4171 | |
esac
|
4172 | |
|
4173 | |
$ac_path_EGREP_found && break 3
|
4174 | |
done
|
4175 | |
done
|
4176 | |
done
|
4177 | |
IFS=$as_save_IFS
|
4178 | |
if test -z "$ac_cv_path_EGREP"; then
|
4179 | |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
4180 | |
fi
|
4181 | |
else
|
4182 | |
ac_cv_path_EGREP=$EGREP
|
4183 | |
fi
|
4184 | |
|
4185 | |
fi
|
4186 | |
fi
|
4187 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
4188 | |
$as_echo "$ac_cv_path_EGREP" >&6; }
|
4189 | |
EGREP="$ac_cv_path_EGREP"
|
4190 | |
|
4191 | |
|
4192 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
4193 | |
$as_echo_n "checking for ANSI C header files... " >&6; }
|
4194 | |
if ${ac_cv_header_stdc+:} false; then :
|
4195 | |
$as_echo_n "(cached) " >&6
|
4196 | |
else
|
4197 | |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
4198 | |
/* end confdefs.h. */
|
4199 | |
#include <stdlib.h>
|
4200 | |
#include <stdarg.h>
|
4201 | |
#include <string.h>
|
4202 | |
#include <float.h>
|
4203 | |
|
|
4566 |
|
|
4567 |
# define __EXTENSIONS__ 1
|
|
4568 |
$ac_includes_default
|
4204 | 4569 |
int
|
4205 | |
main ()
|
|
4570 |
main (void)
|
4206 | 4571 |
{
|
4207 | 4572 |
|
4208 | 4573 |
;
|
4209 | 4574 |
return 0;
|
4210 | 4575 |
}
|
4211 | 4576 |
_ACEOF
|
4212 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
4213 | |
ac_cv_header_stdc=yes
|
4214 | |
else
|
4215 | |
ac_cv_header_stdc=no
|
4216 | |
fi
|
4217 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4218 | |
|
4219 | |
if test $ac_cv_header_stdc = yes; then
|
4220 | |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
4577 |
if ac_fn_c_try_compile "$LINENO"
|
|
4578 |
then :
|
|
4579 |
ac_cv_safe_to_define___extensions__=yes
|
|
4580 |
else $as_nop
|
|
4581 |
ac_cv_safe_to_define___extensions__=no
|
|
4582 |
fi
|
|
4583 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
4584 |
fi
|
|
4585 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
|
4586 |
printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
|
|
4587 |
|
|
4588 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
|
|
4589 |
printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
|
|
4590 |
if test ${ac_cv_should_define__xopen_source+y}
|
|
4591 |
then :
|
|
4592 |
printf %s "(cached) " >&6
|
|
4593 |
else $as_nop
|
|
4594 |
ac_cv_should_define__xopen_source=no
|
|
4595 |
if test $ac_cv_header_wchar_h = yes
|
|
4596 |
then :
|
4221 | 4597 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
4222 | 4598 |
/* end confdefs.h. */
|
4223 | |
#include <string.h>
|
4224 | |
|
4225 | |
_ACEOF
|
4226 | |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
4227 | |
$EGREP "memchr" >/dev/null 2>&1; then :
|
4228 | |
|
4229 | |
else
|
4230 | |
ac_cv_header_stdc=no
|
4231 | |
fi
|
4232 | |
rm -f conftest*
|
4233 | |
|
4234 | |
fi
|
4235 | |
|
4236 | |
if test $ac_cv_header_stdc = yes; then
|
4237 | |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
4238 | |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
4239 | |
/* end confdefs.h. */
|
4240 | |
#include <stdlib.h>
|
4241 | |
|
4242 | |
_ACEOF
|
4243 | |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
4244 | |
$EGREP "free" >/dev/null 2>&1; then :
|
4245 | |
|
4246 | |
else
|
4247 | |
ac_cv_header_stdc=no
|
4248 | |
fi
|
4249 | |
rm -f conftest*
|
4250 | |
|
4251 | |
fi
|
4252 | |
|
4253 | |
if test $ac_cv_header_stdc = yes; then
|
4254 | |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
4255 | |
if test "$cross_compiling" = yes; then :
|
4256 | |
:
|
4257 | |
else
|
4258 | |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
4259 | |
/* end confdefs.h. */
|
4260 | |
#include <ctype.h>
|
4261 | |
#include <stdlib.h>
|
4262 | |
#if ((' ' & 0x0FF) == 0x020)
|
4263 | |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
4264 | |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
4265 | |
#else
|
4266 | |
# define ISLOWER(c) \
|
4267 | |
(('a' <= (c) && (c) <= 'i') \
|
4268 | |
|| ('j' <= (c) && (c) <= 'r') \
|
4269 | |
|| ('s' <= (c) && (c) <= 'z'))
|
4270 | |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
4271 | |
#endif
|
4272 | |
|
4273 | |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
4599 |
|
|
4600 |
#include <wchar.h>
|
|
4601 |
mbstate_t x;
|
4274 | 4602 |
int
|
4275 | |
main ()
|
4276 | |
{
|
4277 | |
int i;
|
4278 | |
for (i = 0; i < 256; i++)
|
4279 | |
if (XOR (islower (i), ISLOWER (i))
|
4280 | |
|| toupper (i) != TOUPPER (i))
|
4281 | |
return 2;
|
4282 | |
return 0;
|
4283 | |
}
|
4284 | |
_ACEOF
|
4285 | |
if ac_fn_c_try_run "$LINENO"; then :
|
4286 | |
|
4287 | |
else
|
4288 | |
ac_cv_header_stdc=no
|
4289 | |
fi
|
4290 | |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
4291 | |
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
4292 | |
fi
|
4293 | |
|
4294 | |
fi
|
4295 | |
fi
|
4296 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
4297 | |
$as_echo "$ac_cv_header_stdc" >&6; }
|
4298 | |
if test $ac_cv_header_stdc = yes; then
|
4299 | |
|
4300 | |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
4301 | |
|
4302 | |
fi
|
4303 | |
|
4304 | |
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
4305 | |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
4306 | |
inttypes.h stdint.h unistd.h
|
4307 | |
do :
|
4308 | |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
4309 | |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
4310 | |
"
|
4311 | |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
4312 | |
cat >>confdefs.h <<_ACEOF
|
4313 | |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
4314 | |
_ACEOF
|
4315 | |
|
4316 | |
fi
|
4317 | |
|
4318 | |
done
|
4319 | |
|
4320 | |
|
4321 | |
|
4322 | |
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
4323 | |
if test "x$ac_cv_header_minix_config_h" = xyes; then :
|
4324 | |
MINIX=yes
|
4325 | |
else
|
4326 | |
MINIX=
|
4327 | |
fi
|
4328 | |
|
4329 | |
|
4330 | |
if test "$MINIX" = yes; then
|
4331 | |
|
4332 | |
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
4333 | |
|
4334 | |
|
4335 | |
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
4336 | |
|
4337 | |
|
4338 | |
$as_echo "#define _MINIX 1" >>confdefs.h
|
4339 | |
|
4340 | |
fi
|
4341 | |
|
4342 | |
|
4343 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
4344 | |
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
4345 | |
if ${ac_cv_safe_to_define___extensions__+:} false; then :
|
4346 | |
$as_echo_n "(cached) " >&6
|
4347 | |
else
|
4348 | |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
4349 | |
/* end confdefs.h. */
|
4350 | |
|
4351 | |
# define __EXTENSIONS__ 1
|
4352 | |
$ac_includes_default
|
4353 | |
int
|
4354 | |
main ()
|
|
4603 |
main (void)
|
4355 | 4604 |
{
|
4356 | 4605 |
|
4357 | 4606 |
;
|
4358 | 4607 |
return 0;
|
4359 | 4608 |
}
|
4360 | 4609 |
_ACEOF
|
4361 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
4362 | |
ac_cv_safe_to_define___extensions__=yes
|
4363 | |
else
|
4364 | |
ac_cv_safe_to_define___extensions__=no
|
4365 | |
fi
|
4366 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4367 | |
fi
|
4368 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
4369 | |
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
4370 | |
test $ac_cv_safe_to_define___extensions__ = yes &&
|
4371 | |
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
4372 | |
|
4373 | |
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
4374 | |
|
4375 | |
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
4376 | |
|
4377 | |
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
4378 | |
|
4379 | |
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
4380 | |
|
|
4610 |
if ac_fn_c_try_compile "$LINENO"
|
|
4611 |
then :
|
|
4612 |
|
|
4613 |
else $as_nop
|
|
4614 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4615 |
/* end confdefs.h. */
|
|
4616 |
|
|
4617 |
#define _XOPEN_SOURCE 500
|
|
4618 |
#include <wchar.h>
|
|
4619 |
mbstate_t x;
|
|
4620 |
int
|
|
4621 |
main (void)
|
|
4622 |
{
|
|
4623 |
|
|
4624 |
;
|
|
4625 |
return 0;
|
|
4626 |
}
|
|
4627 |
_ACEOF
|
|
4628 |
if ac_fn_c_try_compile "$LINENO"
|
|
4629 |
then :
|
|
4630 |
ac_cv_should_define__xopen_source=yes
|
|
4631 |
fi
|
|
4632 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
4633 |
fi
|
|
4634 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
4635 |
fi
|
|
4636 |
fi
|
|
4637 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
|
|
4638 |
printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
|
|
4639 |
|
|
4640 |
printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
|
|
4641 |
|
|
4642 |
printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
|
|
4643 |
|
|
4644 |
printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
|
|
4645 |
|
|
4646 |
printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
|
|
4647 |
|
|
4648 |
printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
|
|
4649 |
|
|
4650 |
printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
|
|
4651 |
|
|
4652 |
printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
|
4653 |
|
|
4654 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
|
|
4655 |
|
|
4656 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
|
|
4657 |
|
|
4658 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
|
|
4659 |
|
|
4660 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
|
|
4661 |
|
|
4662 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
|
|
4663 |
|
|
4664 |
printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
|
|
4665 |
|
|
4666 |
printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
|
|
4667 |
|
|
4668 |
printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
|
|
4669 |
|
|
4670 |
if test $ac_cv_header_minix_config_h = yes
|
|
4671 |
then :
|
|
4672 |
MINIX=yes
|
|
4673 |
printf "%s\n" "#define _MINIX 1" >>confdefs.h
|
|
4674 |
|
|
4675 |
printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
|
|
4676 |
|
|
4677 |
printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
|
4678 |
|
|
4679 |
else $as_nop
|
|
4680 |
MINIX=
|
|
4681 |
fi
|
|
4682 |
if test $ac_cv_safe_to_define___extensions__ = yes
|
|
4683 |
then :
|
|
4684 |
printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
|
|
4685 |
|
|
4686 |
fi
|
|
4687 |
if test $ac_cv_should_define__xopen_source = yes
|
|
4688 |
then :
|
|
4689 |
printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
|
|
4690 |
|
|
4691 |
fi
|
4381 | 4692 |
|
4382 | 4693 |
|
4383 | 4694 |
ac_ext=c
|
|
4388 | 4699 |
if test -n "$ac_tool_prefix"; then
|
4389 | 4700 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
4390 | 4701 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
4391 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
4392 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
4393 | |
if ${ac_cv_prog_CC+:} false; then :
|
4394 | |
$as_echo_n "(cached) " >&6
|
4395 | |
else
|
|
4702 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
4703 |
printf %s "checking for $ac_word... " >&6; }
|
|
4704 |
if test ${ac_cv_prog_CC+y}
|
|
4705 |
then :
|
|
4706 |
printf %s "(cached) " >&6
|
|
4707 |
else $as_nop
|
4396 | 4708 |
if test -n "$CC"; then
|
4397 | 4709 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
4398 | 4710 |
else
|
|
4400 | 4712 |
for as_dir in $PATH
|
4401 | 4713 |
do
|
4402 | 4714 |
IFS=$as_save_IFS
|
4403 | |
test -z "$as_dir" && as_dir=.
|
|
4715 |
case $as_dir in #(((
|
|
4716 |
'') as_dir=./ ;;
|
|
4717 |
*/) ;;
|
|
4718 |
*) as_dir=$as_dir/ ;;
|
|
4719 |
esac
|
4404 | 4720 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
4405 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
4721 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
4406 | 4722 |
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
4407 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
4723 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
4408 | 4724 |
break 2
|
4409 | 4725 |
fi
|
4410 | 4726 |
done
|
|
4415 | 4731 |
fi
|
4416 | 4732 |
CC=$ac_cv_prog_CC
|
4417 | 4733 |
if test -n "$CC"; then
|
4418 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
4419 | |
$as_echo "$CC" >&6; }
|
|
4734 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
4735 |
printf "%s\n" "$CC" >&6; }
|
4420 | 4736 |
else
|
4421 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
4422 | |
$as_echo "no" >&6; }
|
|
4737 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
4738 |
printf "%s\n" "no" >&6; }
|
4423 | 4739 |
fi
|
4424 | 4740 |
|
4425 | 4741 |
|
|
4428 | 4744 |
ac_ct_CC=$CC
|
4429 | 4745 |
# Extract the first word of "gcc", so it can be a program name with args.
|
4430 | 4746 |
set dummy gcc; ac_word=$2
|
4431 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
4432 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
4433 | |
if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
4434 | |
$as_echo_n "(cached) " >&6
|
4435 | |
else
|
|
4747 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
4748 |
printf %s "checking for $ac_word... " >&6; }
|
|
4749 |
if test ${ac_cv_prog_ac_ct_CC+y}
|
|
4750 |
then :
|
|
4751 |
printf %s "(cached) " >&6
|
|
4752 |
else $as_nop
|
4436 | 4753 |
if test -n "$ac_ct_CC"; then
|
4437 | 4754 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
4438 | 4755 |
else
|
|
4440 | 4757 |
for as_dir in $PATH
|
4441 | 4758 |
do
|
4442 | 4759 |
IFS=$as_save_IFS
|
4443 | |
test -z "$as_dir" && as_dir=.
|
|
4760 |
case $as_dir in #(((
|
|
4761 |
'') as_dir=./ ;;
|
|
4762 |
*/) ;;
|
|
4763 |
*) as_dir=$as_dir/ ;;
|
|
4764 |
esac
|
4444 | 4765 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
4445 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
4766 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
4446 | 4767 |
ac_cv_prog_ac_ct_CC="gcc"
|
4447 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
4768 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
4448 | 4769 |
break 2
|
4449 | 4770 |
fi
|
4450 | 4771 |
done
|
|
4455 | 4776 |
fi
|
4456 | 4777 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
4457 | 4778 |
if test -n "$ac_ct_CC"; then
|
4458 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
4459 | |
$as_echo "$ac_ct_CC" >&6; }
|
|
4779 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
4780 |
printf "%s\n" "$ac_ct_CC" >&6; }
|
4460 | 4781 |
else
|
4461 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
4462 | |
$as_echo "no" >&6; }
|
|
4782 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
4783 |
printf "%s\n" "no" >&6; }
|
4463 | 4784 |
fi
|
4464 | 4785 |
|
4465 | 4786 |
if test "x$ac_ct_CC" = x; then
|
|
4467 | 4788 |
else
|
4468 | 4789 |
case $cross_compiling:$ac_tool_warned in
|
4469 | 4790 |
yes:)
|
4470 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
4471 | |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
4791 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
4792 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
4472 | 4793 |
ac_tool_warned=yes ;;
|
4473 | 4794 |
esac
|
4474 | 4795 |
CC=$ac_ct_CC
|
|
4481 | 4802 |
if test -n "$ac_tool_prefix"; then
|
4482 | 4803 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
4483 | 4804 |
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
4484 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
4485 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
4486 | |
if ${ac_cv_prog_CC+:} false; then :
|
4487 | |
$as_echo_n "(cached) " >&6
|
4488 | |
else
|
|
4805 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
4806 |
printf %s "checking for $ac_word... " >&6; }
|
|
4807 |
if test ${ac_cv_prog_CC+y}
|
|
4808 |
then :
|
|
4809 |
printf %s "(cached) " >&6
|
|
4810 |
else $as_nop
|
4489 | 4811 |
if test -n "$CC"; then
|
4490 | 4812 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
4491 | 4813 |
else
|
|
4493 | 4815 |
for as_dir in $PATH
|
4494 | 4816 |
do
|
4495 | 4817 |
IFS=$as_save_IFS
|
4496 | |
test -z "$as_dir" && as_dir=.
|
|
4818 |
case $as_dir in #(((
|
|
4819 |
'') as_dir=./ ;;
|
|
4820 |
*/) ;;
|
|
4821 |
*) as_dir=$as_dir/ ;;
|
|
4822 |
esac
|
4497 | 4823 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
4498 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
4824 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
4499 | 4825 |
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
4500 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
4826 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
4501 | 4827 |
break 2
|
4502 | 4828 |
fi
|
4503 | 4829 |
done
|
|
4508 | 4834 |
fi
|
4509 | 4835 |
CC=$ac_cv_prog_CC
|
4510 | 4836 |
if test -n "$CC"; then
|
4511 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
4512 | |
$as_echo "$CC" >&6; }
|
|
4837 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
4838 |
printf "%s\n" "$CC" >&6; }
|
4513 | 4839 |
else
|
4514 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
4515 | |
$as_echo "no" >&6; }
|
|
4840 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
4841 |
printf "%s\n" "no" >&6; }
|
4516 | 4842 |
fi
|
4517 | 4843 |
|
4518 | 4844 |
|
|
4521 | 4847 |
if test -z "$CC"; then
|
4522 | 4848 |
# Extract the first word of "cc", so it can be a program name with args.
|
4523 | 4849 |
set dummy cc; ac_word=$2
|
4524 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
4525 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
4526 | |
if ${ac_cv_prog_CC+:} false; then :
|
4527 | |
$as_echo_n "(cached) " >&6
|
4528 | |
else
|
|
4850 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
4851 |
printf %s "checking for $ac_word... " >&6; }
|
|
4852 |
if test ${ac_cv_prog_CC+y}
|
|
4853 |
then :
|
|
4854 |
printf %s "(cached) " >&6
|
|
4855 |
else $as_nop
|
4529 | 4856 |
if test -n "$CC"; then
|
4530 | 4857 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
4531 | 4858 |
else
|
|
4534 | 4861 |
for as_dir in $PATH
|
4535 | 4862 |
do
|
4536 | 4863 |
IFS=$as_save_IFS
|
4537 | |
test -z "$as_dir" && as_dir=.
|
|
4864 |
case $as_dir in #(((
|
|
4865 |
'') as_dir=./ ;;
|
|
4866 |
*/) ;;
|
|
4867 |
*) as_dir=$as_dir/ ;;
|
|
4868 |
esac
|
4538 | 4869 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
4539 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
4540 | |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
|
4870 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
|
4871 |
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
4541 | 4872 |
ac_prog_rejected=yes
|
4542 | 4873 |
continue
|
4543 | 4874 |
fi
|
4544 | 4875 |
ac_cv_prog_CC="cc"
|
4545 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
4876 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
4546 | 4877 |
break 2
|
4547 | 4878 |
fi
|
4548 | 4879 |
done
|
|
4558 | 4889 |
# However, it has the same basename, so the bogon will be chosen
|
4559 | 4890 |
# first if we set CC to just the basename; use the full file name.
|
4560 | 4891 |
shift
|
4561 | |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
|
4892 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
|
4562 | 4893 |
fi
|
4563 | 4894 |
fi
|
4564 | 4895 |
fi
|
4565 | 4896 |
fi
|
4566 | 4897 |
CC=$ac_cv_prog_CC
|
4567 | 4898 |
if test -n "$CC"; then
|
4568 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
4569 | |
$as_echo "$CC" >&6; }
|
|
4899 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
4900 |
printf "%s\n" "$CC" >&6; }
|
4570 | 4901 |
else
|
4571 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
4572 | |
$as_echo "no" >&6; }
|
|
4902 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
4903 |
printf "%s\n" "no" >&6; }
|
4573 | 4904 |
fi
|
4574 | 4905 |
|
4575 | 4906 |
|
|
4580 | 4911 |
do
|
4581 | 4912 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
4582 | 4913 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
4583 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
4584 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
4585 | |
if ${ac_cv_prog_CC+:} false; then :
|
4586 | |
$as_echo_n "(cached) " >&6
|
4587 | |
else
|
|
4914 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
4915 |
printf %s "checking for $ac_word... " >&6; }
|
|
4916 |
if test ${ac_cv_prog_CC+y}
|
|
4917 |
then :
|
|
4918 |
printf %s "(cached) " >&6
|
|
4919 |
else $as_nop
|
4588 | 4920 |
if test -n "$CC"; then
|
4589 | 4921 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
4590 | 4922 |
else
|
|
4592 | 4924 |
for as_dir in $PATH
|
4593 | 4925 |
do
|
4594 | 4926 |
IFS=$as_save_IFS
|
4595 | |
test -z "$as_dir" && as_dir=.
|
|
4927 |
case $as_dir in #(((
|
|
4928 |
'') as_dir=./ ;;
|
|
4929 |
*/) ;;
|
|
4930 |
*) as_dir=$as_dir/ ;;
|
|
4931 |
esac
|
4596 | 4932 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
4597 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
4933 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
4598 | 4934 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
4599 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
4935 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
4600 | 4936 |
break 2
|
4601 | 4937 |
fi
|
4602 | 4938 |
done
|
|
4607 | 4943 |
fi
|
4608 | 4944 |
CC=$ac_cv_prog_CC
|
4609 | 4945 |
if test -n "$CC"; then
|
4610 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
4611 | |
$as_echo "$CC" >&6; }
|
|
4946 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
4947 |
printf "%s\n" "$CC" >&6; }
|
4612 | 4948 |
else
|
4613 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
4614 | |
$as_echo "no" >&6; }
|
|
4949 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
4950 |
printf "%s\n" "no" >&6; }
|
4615 | 4951 |
fi
|
4616 | 4952 |
|
4617 | 4953 |
|
|
4624 | 4960 |
do
|
4625 | 4961 |
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
4626 | 4962 |
set dummy $ac_prog; ac_word=$2
|
4627 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
4628 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
4629 | |
if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
4630 | |
$as_echo_n "(cached) " >&6
|
4631 | |
else
|
|
4963 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
4964 |
printf %s "checking for $ac_word... " >&6; }
|
|
4965 |
if test ${ac_cv_prog_ac_ct_CC+y}
|
|
4966 |
then :
|
|
4967 |
printf %s "(cached) " >&6
|
|
4968 |
else $as_nop
|
4632 | 4969 |
if test -n "$ac_ct_CC"; then
|
4633 | 4970 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
4634 | 4971 |
else
|
|
4636 | 4973 |
for as_dir in $PATH
|
4637 | 4974 |
do
|
4638 | 4975 |
IFS=$as_save_IFS
|
4639 | |
test -z "$as_dir" && as_dir=.
|
|
4976 |
case $as_dir in #(((
|
|
4977 |
'') as_dir=./ ;;
|
|
4978 |
*/) ;;
|
|
4979 |
*) as_dir=$as_dir/ ;;
|
|
4980 |
esac
|
4640 | 4981 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
4641 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
4982 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
4642 | 4983 |
ac_cv_prog_ac_ct_CC="$ac_prog"
|
4643 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
4984 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
4644 | 4985 |
break 2
|
4645 | 4986 |
fi
|
4646 | 4987 |
done
|
|
4651 | 4992 |
fi
|
4652 | 4993 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
4653 | 4994 |
if test -n "$ac_ct_CC"; then
|
4654 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
4655 | |
$as_echo "$ac_ct_CC" >&6; }
|
|
4995 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
4996 |
printf "%s\n" "$ac_ct_CC" >&6; }
|
4656 | 4997 |
else
|
4657 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
4658 | |
$as_echo "no" >&6; }
|
|
4998 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
4999 |
printf "%s\n" "no" >&6; }
|
4659 | 5000 |
fi
|
4660 | 5001 |
|
4661 | 5002 |
|
|
4667 | 5008 |
else
|
4668 | 5009 |
case $cross_compiling:$ac_tool_warned in
|
4669 | 5010 |
yes:)
|
4670 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
4671 | |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
5011 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
5012 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
4672 | 5013 |
ac_tool_warned=yes ;;
|
4673 | 5014 |
esac
|
4674 | 5015 |
CC=$ac_ct_CC
|
|
4676 | 5017 |
fi
|
4677 | 5018 |
|
4678 | 5019 |
fi
|
4679 | |
|
4680 | |
|
4681 | |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
4682 | |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
5020 |
if test -z "$CC"; then
|
|
5021 |
if test -n "$ac_tool_prefix"; then
|
|
5022 |
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
|
|
5023 |
set dummy ${ac_tool_prefix}clang; ac_word=$2
|
|
5024 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5025 |
printf %s "checking for $ac_word... " >&6; }
|
|
5026 |
if test ${ac_cv_prog_CC+y}
|
|
5027 |
then :
|
|
5028 |
printf %s "(cached) " >&6
|
|
5029 |
else $as_nop
|
|
5030 |
if test -n "$CC"; then
|
|
5031 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
5032 |
else
|
|
5033 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5034 |
for as_dir in $PATH
|
|
5035 |
do
|
|
5036 |
IFS=$as_save_IFS
|
|
5037 |
case $as_dir in #(((
|
|
5038 |
'') as_dir=./ ;;
|
|
5039 |
*/) ;;
|
|
5040 |
*) as_dir=$as_dir/ ;;
|
|
5041 |
esac
|
|
5042 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5043 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
|
5044 |
ac_cv_prog_CC="${ac_tool_prefix}clang"
|
|
5045 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
|
5046 |
break 2
|
|
5047 |
fi
|
|
5048 |
done
|
|
5049 |
done
|
|
5050 |
IFS=$as_save_IFS
|
|
5051 |
|
|
5052 |
fi
|
|
5053 |
fi
|
|
5054 |
CC=$ac_cv_prog_CC
|
|
5055 |
if test -n "$CC"; then
|
|
5056 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
5057 |
printf "%s\n" "$CC" >&6; }
|
|
5058 |
else
|
|
5059 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5060 |
printf "%s\n" "no" >&6; }
|
|
5061 |
fi
|
|
5062 |
|
|
5063 |
|
|
5064 |
fi
|
|
5065 |
if test -z "$ac_cv_prog_CC"; then
|
|
5066 |
ac_ct_CC=$CC
|
|
5067 |
# Extract the first word of "clang", so it can be a program name with args.
|
|
5068 |
set dummy clang; ac_word=$2
|
|
5069 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5070 |
printf %s "checking for $ac_word... " >&6; }
|
|
5071 |
if test ${ac_cv_prog_ac_ct_CC+y}
|
|
5072 |
then :
|
|
5073 |
printf %s "(cached) " >&6
|
|
5074 |
else $as_nop
|
|
5075 |
if test -n "$ac_ct_CC"; then
|
|
5076 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
5077 |
else
|
|
5078 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5079 |
for as_dir in $PATH
|
|
5080 |
do
|
|
5081 |
IFS=$as_save_IFS
|
|
5082 |
case $as_dir in #(((
|
|
5083 |
'') as_dir=./ ;;
|
|
5084 |
*/) ;;
|
|
5085 |
*) as_dir=$as_dir/ ;;
|
|
5086 |
esac
|
|
5087 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5088 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
|
5089 |
ac_cv_prog_ac_ct_CC="clang"
|
|
5090 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
|
5091 |
break 2
|
|
5092 |
fi
|
|
5093 |
done
|
|
5094 |
done
|
|
5095 |
IFS=$as_save_IFS
|
|
5096 |
|
|
5097 |
fi
|
|
5098 |
fi
|
|
5099 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
5100 |
if test -n "$ac_ct_CC"; then
|
|
5101 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
5102 |
printf "%s\n" "$ac_ct_CC" >&6; }
|
|
5103 |
else
|
|
5104 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5105 |
printf "%s\n" "no" >&6; }
|
|
5106 |
fi
|
|
5107 |
|
|
5108 |
if test "x$ac_ct_CC" = x; then
|
|
5109 |
CC=""
|
|
5110 |
else
|
|
5111 |
case $cross_compiling:$ac_tool_warned in
|
|
5112 |
yes:)
|
|
5113 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
5114 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
5115 |
ac_tool_warned=yes ;;
|
|
5116 |
esac
|
|
5117 |
CC=$ac_ct_CC
|
|
5118 |
fi
|
|
5119 |
else
|
|
5120 |
CC="$ac_cv_prog_CC"
|
|
5121 |
fi
|
|
5122 |
|
|
5123 |
fi
|
|
5124 |
|
|
5125 |
|
|
5126 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
5127 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
4683 | 5128 |
as_fn_error $? "no acceptable C compiler found in \$PATH
|
4684 | 5129 |
See \`config.log' for more details" "$LINENO" 5; }
|
4685 | 5130 |
|
4686 | 5131 |
# Provide some information about the compiler.
|
4687 | |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
|
5132 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
4688 | 5133 |
set X $ac_compile
|
4689 | 5134 |
ac_compiler=$2
|
4690 | |
for ac_option in --version -v -V -qversion; do
|
|
5135 |
for ac_option in --version -v -V -qversion -version; do
|
4691 | 5136 |
{ { ac_try="$ac_compiler $ac_option >&5"
|
4692 | 5137 |
case "(($ac_try" in
|
4693 | 5138 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4694 | 5139 |
*) ac_try_echo=$ac_try;;
|
4695 | 5140 |
esac
|
4696 | 5141 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
4697 | |
$as_echo "$ac_try_echo"; } >&5
|
|
5142 |
printf "%s\n" "$ac_try_echo"; } >&5
|
4698 | 5143 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
4699 | 5144 |
ac_status=$?
|
4700 | 5145 |
if test -s conftest.err; then
|
|
4704 | 5149 |
cat conftest.er1 >&5
|
4705 | 5150 |
fi
|
4706 | 5151 |
rm -f conftest.er1 conftest.err
|
4707 | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
5152 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
4708 | 5153 |
test $ac_status = 0; }
|
4709 | 5154 |
done
|
4710 | 5155 |
|
4711 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
4712 | |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
4713 | |
if ${ac_cv_c_compiler_gnu+:} false; then :
|
4714 | |
$as_echo_n "(cached) " >&6
|
4715 | |
else
|
|
5156 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
|
|
5157 |
printf %s "checking whether the compiler supports GNU C... " >&6; }
|
|
5158 |
if test ${ac_cv_c_compiler_gnu+y}
|
|
5159 |
then :
|
|
5160 |
printf %s "(cached) " >&6
|
|
5161 |
else $as_nop
|
4716 | 5162 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
4717 | 5163 |
/* end confdefs.h. */
|
4718 | 5164 |
|
4719 | 5165 |
int
|
4720 | |
main ()
|
|
5166 |
main (void)
|
4721 | 5167 |
{
|
4722 | 5168 |
#ifndef __GNUC__
|
4723 | 5169 |
choke me
|
|
4727 | 5173 |
return 0;
|
4728 | 5174 |
}
|
4729 | 5175 |
_ACEOF
|
4730 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
5176 |
if ac_fn_c_try_compile "$LINENO"
|
|
5177 |
then :
|
4731 | 5178 |
ac_compiler_gnu=yes
|
4732 | |
else
|
|
5179 |
else $as_nop
|
4733 | 5180 |
ac_compiler_gnu=no
|
4734 | 5181 |
fi
|
4735 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5182 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
4736 | 5183 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
4737 | 5184 |
|
4738 | 5185 |
fi
|
4739 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
4740 | |
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
|
5186 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
|
5187 |
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
|
|
5188 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
5189 |
|
4741 | 5190 |
if test $ac_compiler_gnu = yes; then
|
4742 | 5191 |
GCC=yes
|
4743 | 5192 |
else
|
4744 | 5193 |
GCC=
|
4745 | 5194 |
fi
|
4746 | |
ac_test_CFLAGS=${CFLAGS+set}
|
|
5195 |
ac_test_CFLAGS=${CFLAGS+y}
|
4747 | 5196 |
ac_save_CFLAGS=$CFLAGS
|
4748 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
4749 | |
$as_echo_n "checking whether $CC accepts -g... " >&6; }
|
4750 | |
if ${ac_cv_prog_cc_g+:} false; then :
|
4751 | |
$as_echo_n "(cached) " >&6
|
4752 | |
else
|
|
5197 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
|
5198 |
printf %s "checking whether $CC accepts -g... " >&6; }
|
|
5199 |
if test ${ac_cv_prog_cc_g+y}
|
|
5200 |
then :
|
|
5201 |
printf %s "(cached) " >&6
|
|
5202 |
else $as_nop
|
4753 | 5203 |
ac_save_c_werror_flag=$ac_c_werror_flag
|
4754 | 5204 |
ac_c_werror_flag=yes
|
4755 | 5205 |
ac_cv_prog_cc_g=no
|
|
4758 | 5208 |
/* end confdefs.h. */
|
4759 | 5209 |
|
4760 | 5210 |
int
|
4761 | |
main ()
|
|
5211 |
main (void)
|
4762 | 5212 |
{
|
4763 | 5213 |
|
4764 | 5214 |
;
|
4765 | 5215 |
return 0;
|
4766 | 5216 |
}
|
4767 | 5217 |
_ACEOF
|
4768 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
5218 |
if ac_fn_c_try_compile "$LINENO"
|
|
5219 |
then :
|
4769 | 5220 |
ac_cv_prog_cc_g=yes
|
4770 | |
else
|
|
5221 |
else $as_nop
|
4771 | 5222 |
CFLAGS=""
|
4772 | 5223 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
4773 | 5224 |
/* end confdefs.h. */
|
4774 | 5225 |
|
4775 | 5226 |
int
|
4776 | |
main ()
|
|
5227 |
main (void)
|
4777 | 5228 |
{
|
4778 | 5229 |
|
4779 | 5230 |
;
|
4780 | 5231 |
return 0;
|
4781 | 5232 |
}
|
4782 | 5233 |
_ACEOF
|
4783 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
4784 | |
|
4785 | |
else
|
|
5234 |
if ac_fn_c_try_compile "$LINENO"
|
|
5235 |
then :
|
|
5236 |
|
|
5237 |
else $as_nop
|
4786 | 5238 |
ac_c_werror_flag=$ac_save_c_werror_flag
|
4787 | 5239 |
CFLAGS="-g"
|
4788 | 5240 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
4789 | 5241 |
/* end confdefs.h. */
|
4790 | 5242 |
|
4791 | 5243 |
int
|
4792 | |
main ()
|
|
5244 |
main (void)
|
4793 | 5245 |
{
|
4794 | 5246 |
|
4795 | 5247 |
;
|
4796 | 5248 |
return 0;
|
4797 | 5249 |
}
|
4798 | 5250 |
_ACEOF
|
4799 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
5251 |
if ac_fn_c_try_compile "$LINENO"
|
|
5252 |
then :
|
4800 | 5253 |
ac_cv_prog_cc_g=yes
|
4801 | 5254 |
fi
|
4802 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4803 | |
fi
|
4804 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4805 | |
fi
|
4806 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5255 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
5256 |
fi
|
|
5257 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
5258 |
fi
|
|
5259 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
4807 | 5260 |
ac_c_werror_flag=$ac_save_c_werror_flag
|
4808 | 5261 |
fi
|
4809 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
4810 | |
$as_echo "$ac_cv_prog_cc_g" >&6; }
|
4811 | |
if test "$ac_test_CFLAGS" = set; then
|
|
5262 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
|
5263 |
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
|
|
5264 |
if test $ac_test_CFLAGS; then
|
4812 | 5265 |
CFLAGS=$ac_save_CFLAGS
|
4813 | 5266 |
elif test $ac_cv_prog_cc_g = yes; then
|
4814 | 5267 |
if test "$GCC" = yes; then
|
|
4823 | 5276 |
CFLAGS=
|
4824 | 5277 |
fi
|
4825 | 5278 |
fi
|
4826 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
4827 | |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
4828 | |
if ${ac_cv_prog_cc_c89+:} false; then :
|
4829 | |
$as_echo_n "(cached) " >&6
|
4830 | |
else
|
|
5279 |
ac_prog_cc_stdc=no
|
|
5280 |
if test x$ac_prog_cc_stdc = xno
|
|
5281 |
then :
|
|
5282 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
|
|
5283 |
printf %s "checking for $CC option to enable C11 features... " >&6; }
|
|
5284 |
if test ${ac_cv_prog_cc_c11+y}
|
|
5285 |
then :
|
|
5286 |
printf %s "(cached) " >&6
|
|
5287 |
else $as_nop
|
|
5288 |
ac_cv_prog_cc_c11=no
|
|
5289 |
ac_save_CC=$CC
|
|
5290 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5291 |
/* end confdefs.h. */
|
|
5292 |
$ac_c_conftest_c11_program
|
|
5293 |
_ACEOF
|
|
5294 |
for ac_arg in '' -std=gnu11
|
|
5295 |
do
|
|
5296 |
CC="$ac_save_CC $ac_arg"
|
|
5297 |
if ac_fn_c_try_compile "$LINENO"
|
|
5298 |
then :
|
|
5299 |
ac_cv_prog_cc_c11=$ac_arg
|
|
5300 |
fi
|
|
5301 |
rm -f core conftest.err conftest.$ac_objext conftest.beam
|
|
5302 |
test "x$ac_cv_prog_cc_c11" != "xno" && break
|
|
5303 |
done
|
|
5304 |
rm -f conftest.$ac_ext
|
|
5305 |
CC=$ac_save_CC
|
|
5306 |
fi
|
|
5307 |
|
|
5308 |
if test "x$ac_cv_prog_cc_c11" = xno
|
|
5309 |
then :
|
|
5310 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
5311 |
printf "%s\n" "unsupported" >&6; }
|
|
5312 |
else $as_nop
|
|
5313 |
if test "x$ac_cv_prog_cc_c11" = x
|
|
5314 |
then :
|
|
5315 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
5316 |
printf "%s\n" "none needed" >&6; }
|
|
5317 |
else $as_nop
|
|
5318 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
|
|
5319 |
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
|
|
5320 |
CC="$CC $ac_cv_prog_cc_c11"
|
|
5321 |
fi
|
|
5322 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
|
|
5323 |
ac_prog_cc_stdc=c11
|
|
5324 |
fi
|
|
5325 |
fi
|
|
5326 |
if test x$ac_prog_cc_stdc = xno
|
|
5327 |
then :
|
|
5328 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
|
|
5329 |
printf %s "checking for $CC option to enable C99 features... " >&6; }
|
|
5330 |
if test ${ac_cv_prog_cc_c99+y}
|
|
5331 |
then :
|
|
5332 |
printf %s "(cached) " >&6
|
|
5333 |
else $as_nop
|
|
5334 |
ac_cv_prog_cc_c99=no
|
|
5335 |
ac_save_CC=$CC
|
|
5336 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5337 |
/* end confdefs.h. */
|
|
5338 |
$ac_c_conftest_c99_program
|
|
5339 |
_ACEOF
|
|
5340 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
|
|
5341 |
do
|
|
5342 |
CC="$ac_save_CC $ac_arg"
|
|
5343 |
if ac_fn_c_try_compile "$LINENO"
|
|
5344 |
then :
|
|
5345 |
ac_cv_prog_cc_c99=$ac_arg
|
|
5346 |
fi
|
|
5347 |
rm -f core conftest.err conftest.$ac_objext conftest.beam
|
|
5348 |
test "x$ac_cv_prog_cc_c99" != "xno" && break
|
|
5349 |
done
|
|
5350 |
rm -f conftest.$ac_ext
|
|
5351 |
CC=$ac_save_CC
|
|
5352 |
fi
|
|
5353 |
|
|
5354 |
if test "x$ac_cv_prog_cc_c99" = xno
|
|
5355 |
then :
|
|
5356 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
5357 |
printf "%s\n" "unsupported" >&6; }
|
|
5358 |
else $as_nop
|
|
5359 |
if test "x$ac_cv_prog_cc_c99" = x
|
|
5360 |
then :
|
|
5361 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
5362 |
printf "%s\n" "none needed" >&6; }
|
|
5363 |
else $as_nop
|
|
5364 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
|
|
5365 |
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
|
|
5366 |
CC="$CC $ac_cv_prog_cc_c99"
|
|
5367 |
fi
|
|
5368 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
|
|
5369 |
ac_prog_cc_stdc=c99
|
|
5370 |
fi
|
|
5371 |
fi
|
|
5372 |
if test x$ac_prog_cc_stdc = xno
|
|
5373 |
then :
|
|
5374 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
|
|
5375 |
printf %s "checking for $CC option to enable C89 features... " >&6; }
|
|
5376 |
if test ${ac_cv_prog_cc_c89+y}
|
|
5377 |
then :
|
|
5378 |
printf %s "(cached) " >&6
|
|
5379 |
else $as_nop
|
4831 | 5380 |
ac_cv_prog_cc_c89=no
|
4832 | 5381 |
ac_save_CC=$CC
|
4833 | 5382 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
4834 | 5383 |
/* end confdefs.h. */
|
4835 | |
#include <stdarg.h>
|
4836 | |
#include <stdio.h>
|
4837 | |
struct stat;
|
4838 | |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
4839 | |
struct buf { int x; };
|
4840 | |
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
4841 | |
static char *e (p, i)
|
4842 | |
char **p;
|
4843 | |
int i;
|
4844 | |
{
|
4845 | |
return p[i];
|
4846 | |
}
|
4847 | |
static char *f (char * (*g) (char **, int), char **p, ...)
|
4848 | |
{
|
4849 | |
char *s;
|
4850 | |
va_list v;
|
4851 | |
va_start (v,p);
|
4852 | |
s = g (p, va_arg (v,int));
|
4853 | |
va_end (v);
|
4854 | |
return s;
|
4855 | |
}
|
4856 | |
|
4857 | |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
4858 | |
function prototypes and stuff, but not '\xHH' hex character constants.
|
4859 | |
These don't provoke an error unfortunately, instead are silently treated
|
4860 | |
as 'x'. The following induces an error, until -std is added to get
|
4861 | |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
4862 | |
array size at least. It's necessary to write '\x00'==0 to get something
|
4863 | |
that's true only with -std. */
|
4864 | |
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
4865 | |
|
4866 | |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
4867 | |
inside strings and character constants. */
|
4868 | |
#define FOO(x) 'x'
|
4869 | |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
4870 | |
|
4871 | |
int test (int i, double x);
|
4872 | |
struct s1 {int (*f) (int a);};
|
4873 | |
struct s2 {int (*f) (double a);};
|
4874 | |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
4875 | |
int argc;
|
4876 | |
char **argv;
|
4877 | |
int
|
4878 | |
main ()
|
4879 | |
{
|
4880 | |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
4881 | |
;
|
4882 | |
return 0;
|
4883 | |
}
|
|
5384 |
$ac_c_conftest_c89_program
|
4884 | 5385 |
_ACEOF
|
4885 | |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
4886 | |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
5386 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
4887 | 5387 |
do
|
4888 | 5388 |
CC="$ac_save_CC $ac_arg"
|
4889 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
5389 |
if ac_fn_c_try_compile "$LINENO"
|
|
5390 |
then :
|
4890 | 5391 |
ac_cv_prog_cc_c89=$ac_arg
|
4891 | 5392 |
fi
|
4892 | |
rm -f core conftest.err conftest.$ac_objext
|
|
5393 |
rm -f core conftest.err conftest.$ac_objext conftest.beam
|
4893 | 5394 |
test "x$ac_cv_prog_cc_c89" != "xno" && break
|
4894 | 5395 |
done
|
4895 | 5396 |
rm -f conftest.$ac_ext
|
4896 | 5397 |
CC=$ac_save_CC
|
4897 | |
|
4898 | |
fi
|
4899 | |
# AC_CACHE_VAL
|
4900 | |
case "x$ac_cv_prog_cc_c89" in
|
4901 | |
x)
|
4902 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
4903 | |
$as_echo "none needed" >&6; } ;;
|
4904 | |
xno)
|
4905 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
4906 | |
$as_echo "unsupported" >&6; } ;;
|
4907 | |
*)
|
4908 | |
CC="$CC $ac_cv_prog_cc_c89"
|
4909 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
4910 | |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
4911 | |
esac
|
4912 | |
if test "x$ac_cv_prog_cc_c89" != xno; then :
|
4913 | |
|
|
5398 |
fi
|
|
5399 |
|
|
5400 |
if test "x$ac_cv_prog_cc_c89" = xno
|
|
5401 |
then :
|
|
5402 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
5403 |
printf "%s\n" "unsupported" >&6; }
|
|
5404 |
else $as_nop
|
|
5405 |
if test "x$ac_cv_prog_cc_c89" = x
|
|
5406 |
then :
|
|
5407 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
5408 |
printf "%s\n" "none needed" >&6; }
|
|
5409 |
else $as_nop
|
|
5410 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
|
5411 |
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
|
|
5412 |
CC="$CC $ac_cv_prog_cc_c89"
|
|
5413 |
fi
|
|
5414 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
|
|
5415 |
ac_prog_cc_stdc=c89
|
|
5416 |
fi
|
4914 | 5417 |
fi
|
4915 | 5418 |
|
4916 | 5419 |
ac_ext=c
|
|
4919 | 5422 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
4920 | 5423 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
4921 | 5424 |
|
4922 | |
ac_ext=c
|
|
5425 |
|
|
5426 |
ac_ext=c
|
4923 | 5427 |
ac_cpp='$CPP $CPPFLAGS'
|
4924 | 5428 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
4925 | 5429 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
4926 | 5430 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
4927 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
4928 | |
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
|
4929 | |
if ${am_cv_prog_cc_c_o+:} false; then :
|
4930 | |
$as_echo_n "(cached) " >&6
|
4931 | |
else
|
|
5431 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
|
5432 |
printf %s "checking whether $CC understands -c and -o together... " >&6; }
|
|
5433 |
if test ${am_cv_prog_cc_c_o+y}
|
|
5434 |
then :
|
|
5435 |
printf %s "(cached) " >&6
|
|
5436 |
else $as_nop
|
4932 | 5437 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
4933 | 5438 |
/* end confdefs.h. */
|
4934 | 5439 |
|
4935 | 5440 |
int
|
4936 | |
main ()
|
|
5441 |
main (void)
|
4937 | 5442 |
{
|
4938 | 5443 |
|
4939 | 5444 |
;
|
|
4961 | 5466 |
rm -f core conftest*
|
4962 | 5467 |
unset am_i
|
4963 | 5468 |
fi
|
4964 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
4965 | |
$as_echo "$am_cv_prog_cc_c_o" >&6; }
|
|
5469 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
|
5470 |
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
|
4966 | 5471 |
if test "$am_cv_prog_cc_c_o" != yes; then
|
4967 | 5472 |
# Losing compiler, so override with the script.
|
4968 | 5473 |
# FIXME: It is wrong to rewrite CC.
|
|
4980 | 5485 |
|
4981 | 5486 |
depcc="$CC" am_compiler_list=
|
4982 | 5487 |
|
4983 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
4984 | |
$as_echo_n "checking dependency style of $depcc... " >&6; }
|
4985 | |
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
|
4986 | |
$as_echo_n "(cached) " >&6
|
4987 | |
else
|
|
5488 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
|
5489 |
printf %s "checking dependency style of $depcc... " >&6; }
|
|
5490 |
if test ${am_cv_CC_dependencies_compiler_type+y}
|
|
5491 |
then :
|
|
5492 |
printf %s "(cached) " >&6
|
|
5493 |
else $as_nop
|
4988 | 5494 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
4989 | 5495 |
# We make a subdir and do the tests there. Otherwise we can end up
|
4990 | 5496 |
# making bogus files that we don't know about and never remove. For
|
|
5091 | 5597 |
fi
|
5092 | 5598 |
|
5093 | 5599 |
fi
|
5094 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
5095 | |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
|
5600 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
|
5601 |
printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
|
5096 | 5602 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
5097 | 5603 |
|
5098 | 5604 |
if
|
|
5106 | 5612 |
fi
|
5107 | 5613 |
|
5108 | 5614 |
|
5109 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
5110 | |
$as_echo_n "checking whether ln -s works... " >&6; }
|
|
5615 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
|
5616 |
printf %s "checking whether ln -s works... " >&6; }
|
5111 | 5617 |
LN_S=$as_ln_s
|
5112 | 5618 |
if test "$LN_S" = "ln -s"; then
|
5113 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
5114 | |
$as_echo "yes" >&6; }
|
|
5619 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
5620 |
printf "%s\n" "yes" >&6; }
|
5115 | 5621 |
else
|
5116 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
5117 | |
$as_echo "no, using $LN_S" >&6; }
|
|
5622 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
|
5623 |
printf "%s\n" "no, using $LN_S" >&6; }
|
5118 | 5624 |
fi
|
5119 | 5625 |
|
5120 | 5626 |
|
5121 | 5627 |
# Check whether --enable-largefile was given.
|
5122 | |
if test "${enable_largefile+set}" = set; then :
|
|
5628 |
if test ${enable_largefile+y}
|
|
5629 |
then :
|
5123 | 5630 |
enableval=$enable_largefile;
|
5124 | 5631 |
fi
|
5125 | 5632 |
|
5126 | 5633 |
if test "$enable_largefile" != no; then
|
5127 | 5634 |
|
5128 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
|
5129 | |
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
5130 | |
if ${ac_cv_sys_largefile_CC+:} false; then :
|
5131 | |
$as_echo_n "(cached) " >&6
|
5132 | |
else
|
|
5635 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
|
|
5636 |
printf %s "checking for special C compiler options needed for large files... " >&6; }
|
|
5637 |
if test ${ac_cv_sys_largefile_CC+y}
|
|
5638 |
then :
|
|
5639 |
printf %s "(cached) " >&6
|
|
5640 |
else $as_nop
|
5133 | 5641 |
ac_cv_sys_largefile_CC=no
|
5134 | 5642 |
if test "$GCC" != yes; then
|
5135 | 5643 |
ac_save_CC=$CC
|
|
5143 | 5651 |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
5144 | 5652 |
since some C++ compilers masquerading as C compilers
|
5145 | 5653 |
incorrectly reject 9223372036854775807. */
|
5146 | |
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
|
5654 |
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
|
5147 | 5655 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
5148 | 5656 |
&& LARGE_OFF_T % 2147483647 == 1)
|
5149 | 5657 |
? 1 : -1];
|
5150 | 5658 |
int
|
5151 | |
main ()
|
|
5659 |
main (void)
|
5152 | 5660 |
{
|
5153 | 5661 |
|
5154 | 5662 |
;
|
5155 | 5663 |
return 0;
|
5156 | 5664 |
}
|
5157 | 5665 |
_ACEOF
|
5158 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
5666 |
if ac_fn_c_try_compile "$LINENO"
|
|
5667 |
then :
|
5159 | 5668 |
break
|
5160 | 5669 |
fi
|
5161 | |
rm -f core conftest.err conftest.$ac_objext
|
|
5670 |
rm -f core conftest.err conftest.$ac_objext conftest.beam
|
5162 | 5671 |
CC="$CC -n32"
|
5163 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
5672 |
if ac_fn_c_try_compile "$LINENO"
|
|
5673 |
then :
|
5164 | 5674 |
ac_cv_sys_largefile_CC=' -n32'; break
|
5165 | 5675 |
fi
|
5166 | |
rm -f core conftest.err conftest.$ac_objext
|
|
5676 |
rm -f core conftest.err conftest.$ac_objext conftest.beam
|
5167 | 5677 |
break
|
5168 | 5678 |
done
|
5169 | 5679 |
CC=$ac_save_CC
|
5170 | 5680 |
rm -f conftest.$ac_ext
|
5171 | 5681 |
fi
|
5172 | 5682 |
fi
|
5173 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
|
5174 | |
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
|
5683 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
|
|
5684 |
printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
|
5175 | 5685 |
if test "$ac_cv_sys_largefile_CC" != no; then
|
5176 | 5686 |
CC=$CC$ac_cv_sys_largefile_CC
|
5177 | 5687 |
fi
|
5178 | 5688 |
|
5179 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
5180 | |
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
5181 | |
if ${ac_cv_sys_file_offset_bits+:} false; then :
|
5182 | |
$as_echo_n "(cached) " >&6
|
5183 | |
else
|
|
5689 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
|
5690 |
printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
|
5691 |
if test ${ac_cv_sys_file_offset_bits+y}
|
|
5692 |
then :
|
|
5693 |
printf %s "(cached) " >&6
|
|
5694 |
else $as_nop
|
5184 | 5695 |
while :; do
|
5185 | 5696 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
5186 | 5697 |
/* end confdefs.h. */
|
|
5189 | 5700 |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
5190 | 5701 |
since some C++ compilers masquerading as C compilers
|
5191 | 5702 |
incorrectly reject 9223372036854775807. */
|
5192 | |
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
|
5703 |
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
|
5193 | 5704 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
5194 | 5705 |
&& LARGE_OFF_T % 2147483647 == 1)
|
5195 | 5706 |
? 1 : -1];
|
5196 | 5707 |
int
|
5197 | |
main ()
|
|
5708 |
main (void)
|
5198 | 5709 |
{
|
5199 | 5710 |
|
5200 | 5711 |
;
|
5201 | 5712 |
return 0;
|
5202 | 5713 |
}
|
5203 | 5714 |
_ACEOF
|
5204 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
5715 |
if ac_fn_c_try_compile "$LINENO"
|
|
5716 |
then :
|
5205 | 5717 |
ac_cv_sys_file_offset_bits=no; break
|
5206 | 5718 |
fi
|
5207 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5719 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
5208 | 5720 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
5209 | 5721 |
/* end confdefs.h. */
|
5210 | 5722 |
#define _FILE_OFFSET_BITS 64
|
|
5213 | 5725 |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
5214 | 5726 |
since some C++ compilers masquerading as C compilers
|
5215 | 5727 |
incorrectly reject 9223372036854775807. */
|
5216 | |
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
|
5728 |
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
|
5217 | 5729 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
5218 | 5730 |
&& LARGE_OFF_T % 2147483647 == 1)
|
5219 | 5731 |
? 1 : -1];
|
5220 | 5732 |
int
|
5221 | |
main ()
|
|
5733 |
main (void)
|
5222 | 5734 |
{
|
5223 | 5735 |
|
5224 | 5736 |
;
|
5225 | 5737 |
return 0;
|
5226 | 5738 |
}
|
5227 | 5739 |
_ACEOF
|
5228 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
5740 |
if ac_fn_c_try_compile "$LINENO"
|
|
5741 |
then :
|
5229 | 5742 |
ac_cv_sys_file_offset_bits=64; break
|
5230 | 5743 |
fi
|
5231 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5744 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
5232 | 5745 |
ac_cv_sys_file_offset_bits=unknown
|
5233 | 5746 |
break
|
5234 | 5747 |
done
|
5235 | 5748 |
fi
|
5236 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
|
5237 | |
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
|
5749 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
|
|
5750 |
printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
|
5238 | 5751 |
case $ac_cv_sys_file_offset_bits in #(
|
5239 | 5752 |
no | unknown) ;;
|
5240 | 5753 |
*)
|
5241 | |
cat >>confdefs.h <<_ACEOF
|
5242 | |
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
5243 | |
_ACEOF
|
|
5754 |
printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
|
5244 | 5755 |
;;
|
5245 | 5756 |
esac
|
5246 | 5757 |
rm -rf conftest*
|
5247 | 5758 |
if test $ac_cv_sys_file_offset_bits = unknown; then
|
5248 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
|
5249 | |
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
5250 | |
if ${ac_cv_sys_large_files+:} false; then :
|
5251 | |
$as_echo_n "(cached) " >&6
|
5252 | |
else
|
|
5759 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
|
|
5760 |
printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
|
|
5761 |
if test ${ac_cv_sys_large_files+y}
|
|
5762 |
then :
|
|
5763 |
printf %s "(cached) " >&6
|
|
5764 |
else $as_nop
|
5253 | 5765 |
while :; do
|
5254 | 5766 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
5255 | 5767 |
/* end confdefs.h. */
|
|
5258 | 5770 |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
5259 | 5771 |
since some C++ compilers masquerading as C compilers
|
5260 | 5772 |
incorrectly reject 9223372036854775807. */
|
5261 | |
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
|
5773 |
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
|
5262 | 5774 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
5263 | 5775 |
&& LARGE_OFF_T % 2147483647 == 1)
|
5264 | 5776 |
? 1 : -1];
|
5265 | 5777 |
int
|
5266 | |
main ()
|
|
5778 |
main (void)
|
5267 | 5779 |
{
|
5268 | 5780 |
|
5269 | 5781 |
;
|
5270 | 5782 |
return 0;
|
5271 | 5783 |
}
|
5272 | 5784 |
_ACEOF
|
5273 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
5785 |
if ac_fn_c_try_compile "$LINENO"
|
|
5786 |
then :
|
5274 | 5787 |
ac_cv_sys_large_files=no; break
|
5275 | 5788 |
fi
|
5276 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5789 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
5277 | 5790 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
5278 | 5791 |
/* end confdefs.h. */
|
5279 | 5792 |
#define _LARGE_FILES 1
|
|
5282 | 5795 |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
5283 | 5796 |
since some C++ compilers masquerading as C compilers
|
5284 | 5797 |
incorrectly reject 9223372036854775807. */
|
5285 | |
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
|
5798 |
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
|
5286 | 5799 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
5287 | 5800 |
&& LARGE_OFF_T % 2147483647 == 1)
|
5288 | 5801 |
? 1 : -1];
|
5289 | 5802 |
int
|
5290 | |
main ()
|
|
5803 |
main (void)
|
5291 | 5804 |
{
|
5292 | 5805 |
|
5293 | 5806 |
;
|
5294 | 5807 |
return 0;
|
5295 | 5808 |
}
|
5296 | 5809 |
_ACEOF
|
5297 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
5810 |
if ac_fn_c_try_compile "$LINENO"
|
|
5811 |
then :
|
5298 | 5812 |
ac_cv_sys_large_files=1; break
|
5299 | 5813 |
fi
|
5300 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5814 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
5301 | 5815 |
ac_cv_sys_large_files=unknown
|
5302 | 5816 |
break
|
5303 | 5817 |
done
|
5304 | 5818 |
fi
|
5305 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
|
5306 | |
$as_echo "$ac_cv_sys_large_files" >&6; }
|
|
5819 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
|
|
5820 |
printf "%s\n" "$ac_cv_sys_large_files" >&6; }
|
5307 | 5821 |
case $ac_cv_sys_large_files in #(
|
5308 | 5822 |
no | unknown) ;;
|
5309 | 5823 |
*)
|
5310 | |
cat >>confdefs.h <<_ACEOF
|
5311 | |
#define _LARGE_FILES $ac_cv_sys_large_files
|
5312 | |
_ACEOF
|
|
5824 |
printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
|
5313 | 5825 |
;;
|
5314 | 5826 |
esac
|
5315 | 5827 |
rm -rf conftest*
|
5316 | 5828 |
fi
|
5317 | |
|
5318 | |
|
5319 | |
fi
|
5320 | |
|
5321 | |
|
5322 | |
for ac_header in \
|
5323 | |
err.h \
|
5324 | |
linux/fd.h \
|
5325 | |
linux/hdreg.h \
|
5326 | |
linux/version.h \
|
5327 | |
linux/loop.h \
|
5328 | |
sys/disk.h \
|
5329 | |
sys/disklabel.h \
|
5330 | |
sys/ioccom.h \
|
5331 | |
sys/mkdev.h \
|
5332 | |
sys/queue.h \
|
5333 | |
|
5334 | |
do :
|
5335 | |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
5336 | |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
5337 | |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
5338 | |
cat >>confdefs.h <<_ACEOF
|
5339 | |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
5829 |
fi
|
|
5830 |
|
|
5831 |
|
|
5832 |
ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
|
|
5833 |
if test "x$ac_cv_header_err_h" = xyes
|
|
5834 |
then :
|
|
5835 |
printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
|
|
5836 |
|
|
5837 |
fi
|
|
5838 |
ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
|
|
5839 |
if test "x$ac_cv_header_linux_fd_h" = xyes
|
|
5840 |
then :
|
|
5841 |
printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
|
|
5842 |
|
|
5843 |
fi
|
|
5844 |
ac_fn_c_check_header_compile "$LINENO" "linux/hdreg.h" "ac_cv_header_linux_hdreg_h" "$ac_includes_default"
|
|
5845 |
if test "x$ac_cv_header_linux_hdreg_h" = xyes
|
|
5846 |
then :
|
|
5847 |
printf "%s\n" "#define HAVE_LINUX_HDREG_H 1" >>confdefs.h
|
|
5848 |
|
|
5849 |
fi
|
|
5850 |
ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
|
|
5851 |
if test "x$ac_cv_header_linux_version_h" = xyes
|
|
5852 |
then :
|
|
5853 |
printf "%s\n" "#define HAVE_LINUX_VERSION_H 1" >>confdefs.h
|
|
5854 |
|
|
5855 |
fi
|
|
5856 |
ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
|
|
5857 |
if test "x$ac_cv_header_linux_loop_h" = xyes
|
|
5858 |
then :
|
|
5859 |
printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
|
|
5860 |
|
|
5861 |
fi
|
|
5862 |
ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
|
|
5863 |
if test "x$ac_cv_header_sys_disk_h" = xyes
|
|
5864 |
then :
|
|
5865 |
printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
|
|
5866 |
|
|
5867 |
fi
|
|
5868 |
ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
|
|
5869 |
if test "x$ac_cv_header_sys_disklabel_h" = xyes
|
|
5870 |
then :
|
|
5871 |
printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
|
|
5872 |
|
|
5873 |
fi
|
|
5874 |
ac_fn_c_check_header_compile "$LINENO" "sys/ioccom.h" "ac_cv_header_sys_ioccom_h" "$ac_includes_default"
|
|
5875 |
if test "x$ac_cv_header_sys_ioccom_h" = xyes
|
|
5876 |
then :
|
|
5877 |
printf "%s\n" "#define HAVE_SYS_IOCCOM_H 1" >>confdefs.h
|
|
5878 |
|
|
5879 |
fi
|
|
5880 |
ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
|
|
5881 |
if test "x$ac_cv_header_sys_mkdev_h" = xyes
|
|
5882 |
then :
|
|
5883 |
printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
|
|
5884 |
|
|
5885 |
fi
|
|
5886 |
ac_fn_c_check_header_compile "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "$ac_includes_default"
|
|
5887 |
if test "x$ac_cv_header_sys_queue_h" = xyes
|
|
5888 |
then :
|
|
5889 |
printf "%s\n" "#define HAVE_SYS_QUEUE_H 1" >>confdefs.h
|
|
5890 |
|
|
5891 |
fi
|
|
5892 |
ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
|
|
5893 |
if test "x$ac_cv_header_sys_sysmacros_h" = xyes
|
|
5894 |
then :
|
|
5895 |
printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
|
|
5896 |
|
|
5897 |
fi
|
|
5898 |
|
|
5899 |
|
|
5900 |
ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
|
|
5901 |
if test "x$ac_cv_header_endian_h" = xyes
|
|
5902 |
then :
|
|
5903 |
printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
|
|
5904 |
|
|
5905 |
fi
|
|
5906 |
ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
|
|
5907 |
if test "x$ac_cv_header_sys_endian_h" = xyes
|
|
5908 |
then :
|
|
5909 |
printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
|
|
5910 |
|
|
5911 |
fi
|
|
5912 |
ac_fn_c_check_header_compile "$LINENO" "libkern/OSByteOrder.h" "ac_cv_header_libkern_OSByteOrder_h" "$ac_includes_default"
|
|
5913 |
if test "x$ac_cv_header_libkern_OSByteOrder_h" = xyes
|
|
5914 |
then :
|
|
5915 |
printf "%s\n" "#define HAVE_LIBKERN_OSBYTEORDER_H 1" >>confdefs.h
|
|
5916 |
|
|
5917 |
fi
|
|
5918 |
|
|
5919 |
|
|
5920 |
ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
|
|
5921 |
if test "x$ac_cv_func_vasprintf" = xyes
|
|
5922 |
then :
|
|
5923 |
printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
|
|
5924 |
|
|
5925 |
fi
|
|
5926 |
|
|
5927 |
|
|
5928 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
|
|
5929 |
printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
|
|
5930 |
if test ${ac_cv_c_undeclared_builtin_options+y}
|
|
5931 |
then :
|
|
5932 |
printf %s "(cached) " >&6
|
|
5933 |
else $as_nop
|
|
5934 |
ac_save_CFLAGS=$CFLAGS
|
|
5935 |
ac_cv_c_undeclared_builtin_options='cannot detect'
|
|
5936 |
for ac_arg in '' -fno-builtin; do
|
|
5937 |
CFLAGS="$ac_save_CFLAGS $ac_arg"
|
|
5938 |
# This test program should *not* compile successfully.
|
|
5939 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5940 |
/* end confdefs.h. */
|
|
5941 |
|
|
5942 |
int
|
|
5943 |
main (void)
|
|
5944 |
{
|
|
5945 |
(void) strchr;
|
|
5946 |
;
|
|
5947 |
return 0;
|
|
5948 |
}
|
5340 | 5949 |
_ACEOF
|
5341 | |
|
5342 | |
fi
|
5343 | |
|
5344 | |
done
|
5345 | |
|
5346 | |
|
5347 | |
for ac_header in endian.h sys/endian.h libkern/OSByteOrder.h
|
5348 | |
do :
|
5349 | |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
5350 | |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
5351 | |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
5352 | |
cat >>confdefs.h <<_ACEOF
|
5353 | |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
5950 |
if ac_fn_c_try_compile "$LINENO"
|
|
5951 |
then :
|
|
5952 |
|
|
5953 |
else $as_nop
|
|
5954 |
# This test program should compile successfully.
|
|
5955 |
# No library function is consistently available on
|
|
5956 |
# freestanding implementations, so test against a dummy
|
|
5957 |
# declaration. Include always-available headers on the
|
|
5958 |
# off chance that they somehow elicit warnings.
|
|
5959 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5960 |
/* end confdefs.h. */
|
|
5961 |
#include <float.h>
|
|
5962 |
#include <limits.h>
|
|
5963 |
#include <stdarg.h>
|
|
5964 |
#include <stddef.h>
|
|
5965 |
extern void ac_decl (int, char *);
|
|
5966 |
|
|
5967 |
int
|
|
5968 |
main (void)
|
|
5969 |
{
|
|
5970 |
(void) ac_decl (0, (char *) 0);
|
|
5971 |
(void) ac_decl;
|
|
5972 |
|
|
5973 |
;
|
|
5974 |
return 0;
|
|
5975 |
}
|
5354 | 5976 |
_ACEOF
|
5355 | |
|
5356 | |
fi
|
5357 | |
|
5358 | |
done
|
5359 | |
|
5360 | |
|
5361 | |
for ac_func in vasprintf
|
5362 | |
do :
|
5363 | |
ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
|
5364 | |
if test "x$ac_cv_func_vasprintf" = xyes; then :
|
5365 | |
cat >>confdefs.h <<_ACEOF
|
5366 | |
#define HAVE_VASPRINTF 1
|
5367 | |
_ACEOF
|
5368 | |
|
5369 | |
fi
|
5370 | |
done
|
5371 | |
|
5372 | |
|
5373 | |
ac_fn_c_check_decl "$LINENO" "getmntent" "ac_cv_have_decl_getmntent" "#include <mntent.h>
|
5374 | |
"
|
5375 | |
if test "x$ac_cv_have_decl_getmntent" = xyes; then :
|
|
5977 |
if ac_fn_c_try_compile "$LINENO"
|
|
5978 |
then :
|
|
5979 |
if test x"$ac_arg" = x
|
|
5980 |
then :
|
|
5981 |
ac_cv_c_undeclared_builtin_options='none needed'
|
|
5982 |
else $as_nop
|
|
5983 |
ac_cv_c_undeclared_builtin_options=$ac_arg
|
|
5984 |
fi
|
|
5985 |
break
|
|
5986 |
fi
|
|
5987 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
5988 |
fi
|
|
5989 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
5990 |
done
|
|
5991 |
CFLAGS=$ac_save_CFLAGS
|
|
5992 |
|
|
5993 |
fi
|
|
5994 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
|
|
5995 |
printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
|
|
5996 |
case $ac_cv_c_undeclared_builtin_options in #(
|
|
5997 |
'cannot detect') :
|
|
5998 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
5999 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
6000 |
as_fn_error $? "cannot make $CC report undeclared builtins
|
|
6001 |
See \`config.log' for more details" "$LINENO" 5; } ;; #(
|
|
6002 |
'none needed') :
|
|
6003 |
ac_c_undeclared_builtin_options='' ;; #(
|
|
6004 |
*) :
|
|
6005 |
ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
|
|
6006 |
esac
|
|
6007 |
|
|
6008 |
ac_fn_check_decl "$LINENO" "getmntent" "ac_cv_have_decl_getmntent" "#include <mntent.h>
|
|
6009 |
" "$ac_c_undeclared_builtin_options" "CFLAGS"
|
|
6010 |
if test "x$ac_cv_have_decl_getmntent" = xyes
|
|
6011 |
then :
|
5376 | 6012 |
ac_have_decl=1
|
5377 | |
else
|
|
6013 |
else $as_nop
|
5378 | 6014 |
ac_have_decl=0
|
5379 | 6015 |
fi
|
5380 | |
|
5381 | |
cat >>confdefs.h <<_ACEOF
|
5382 | |
#define HAVE_DECL_GETMNTENT $ac_have_decl
|
5383 | |
_ACEOF
|
5384 | |
|
5385 | |
ac_fn_c_check_decl "$LINENO" "getmntinfo" "ac_cv_have_decl_getmntinfo" "#include <sys/mount.h>
|
5386 | |
"
|
5387 | |
if test "x$ac_cv_have_decl_getmntinfo" = xyes; then :
|
|
6016 |
printf "%s\n" "#define HAVE_DECL_GETMNTENT $ac_have_decl" >>confdefs.h
|
|
6017 |
|
|
6018 |
ac_fn_check_decl "$LINENO" "getmntinfo" "ac_cv_have_decl_getmntinfo" "#include <sys/mount.h>
|
|
6019 |
" "$ac_c_undeclared_builtin_options" "CFLAGS"
|
|
6020 |
if test "x$ac_cv_have_decl_getmntinfo" = xyes
|
|
6021 |
then :
|
5388 | 6022 |
ac_have_decl=1
|
5389 | |
else
|
|
6023 |
else $as_nop
|
5390 | 6024 |
ac_have_decl=0
|
5391 | 6025 |
fi
|
5392 | |
|
5393 | |
cat >>confdefs.h <<_ACEOF
|
5394 | |
#define HAVE_DECL_GETMNTINFO $ac_have_decl
|
5395 | |
_ACEOF
|
|
6026 |
printf "%s\n" "#define HAVE_DECL_GETMNTINFO $ac_have_decl" >>confdefs.h
|
5396 | 6027 |
|
5397 | 6028 |
|
5398 | 6029 |
# optional iconv support
|
5399 | 6030 |
|
5400 | 6031 |
# Check whether --with-iconv was given.
|
5401 | |
if test "${with_iconv+set}" = set; then :
|
|
6032 |
if test ${with_iconv+y}
|
|
6033 |
then :
|
5402 | 6034 |
withval=$with_iconv;
|
5403 | 6035 |
fi
|
5404 | 6036 |
|
5405 | 6037 |
if test "x$with_iconv" != "xno"; then
|
5406 | |
# Make sure we can run config.sub.
|
5407 | |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
5408 | |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
5409 | |
|
5410 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
5411 | |
$as_echo_n "checking build system type... " >&6; }
|
5412 | |
if ${ac_cv_build+:} false; then :
|
5413 | |
$as_echo_n "(cached) " >&6
|
5414 | |
else
|
|
6038 |
|
|
6039 |
|
|
6040 |
# Make sure we can run config.sub.
|
|
6041 |
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
|
|
6042 |
as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
|
|
6043 |
|
|
6044 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
|
6045 |
printf %s "checking build system type... " >&6; }
|
|
6046 |
if test ${ac_cv_build+y}
|
|
6047 |
then :
|
|
6048 |
printf %s "(cached) " >&6
|
|
6049 |
else $as_nop
|
5415 | 6050 |
ac_build_alias=$build_alias
|
5416 | 6051 |
test "x$ac_build_alias" = x &&
|
5417 | |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
|
6052 |
ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
|
5418 | 6053 |
test "x$ac_build_alias" = x &&
|
5419 | 6054 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
5420 | |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
5421 | |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
5422 | |
|
5423 | |
fi
|
5424 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
5425 | |
$as_echo "$ac_cv_build" >&6; }
|
|
6055 |
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
|
|
6056 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
|
|
6057 |
|
|
6058 |
fi
|
|
6059 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
|
6060 |
printf "%s\n" "$ac_cv_build" >&6; }
|
5426 | 6061 |
case $ac_cv_build in
|
5427 | 6062 |
*-*-*) ;;
|
5428 | 6063 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
|
5441 | 6076 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
5442 | 6077 |
|
5443 | 6078 |
|
5444 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
5445 | |
$as_echo_n "checking host system type... " >&6; }
|
5446 | |
if ${ac_cv_host+:} false; then :
|
5447 | |
$as_echo_n "(cached) " >&6
|
5448 | |
else
|
|
6079 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
|
6080 |
printf %s "checking host system type... " >&6; }
|
|
6081 |
if test ${ac_cv_host+y}
|
|
6082 |
then :
|
|
6083 |
printf %s "(cached) " >&6
|
|
6084 |
else $as_nop
|
5449 | 6085 |
if test "x$host_alias" = x; then
|
5450 | 6086 |
ac_cv_host=$ac_cv_build
|
5451 | 6087 |
else
|
5452 | |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
5453 | |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
5454 | |
fi
|
5455 | |
|
5456 | |
fi
|
5457 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
5458 | |
$as_echo "$ac_cv_host" >&6; }
|
|
6088 |
ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
|
|
6089 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
|
|
6090 |
fi
|
|
6091 |
|
|
6092 |
fi
|
|
6093 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
|
6094 |
printf "%s\n" "$ac_cv_host" >&6; }
|
5459 | 6095 |
case $ac_cv_host in
|
5460 | 6096 |
*-*-*) ;;
|
5461 | 6097 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
|
5493 | 6129 |
|
5494 | 6130 |
|
5495 | 6131 |
# Check whether --with-gnu-ld was given.
|
5496 | |
if test "${with_gnu_ld+set}" = set; then :
|
|
6132 |
if test ${with_gnu_ld+y}
|
|
6133 |
then :
|
5497 | 6134 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
5498 | |
else
|
|
6135 |
else $as_nop
|
5499 | 6136 |
with_gnu_ld=no
|
5500 | 6137 |
fi
|
5501 | 6138 |
|
|
5512 | 6149 |
}
|
5513 | 6150 |
fi
|
5514 | 6151 |
|
5515 | |
ac_prog=ld
|
5516 | |
if test "$GCC" = yes; then
|
5517 | |
# Check if gcc -print-prog-name=ld gives a path.
|
5518 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
5519 | |
$as_echo_n "checking for ld used by $CC... " >&6; }
|
5520 | |
case $host in
|
5521 | |
*-*-mingw*)
|
5522 | |
# gcc leaves a trailing carriage return which upsets mingw
|
5523 | |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
5524 | |
*)
|
5525 | |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
5526 | |
esac
|
5527 | |
case $ac_prog in
|
5528 | |
# Accept absolute paths.
|
5529 | |
[\\/]* | ?:[\\/]*)
|
5530 | |
re_direlt='/[^/][^/]*/\.\./'
|
5531 | |
# Canonicalize the pathname of ld
|
5532 | |
ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
|
5533 | |
while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
|
5534 | |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
5535 | |
done
|
5536 | |
test -z "$LD" && LD="$ac_prog"
|
5537 | |
;;
|
5538 | |
"")
|
5539 | |
# If it fails, then pretend we aren't using GCC.
|
5540 | |
ac_prog=ld
|
5541 | |
;;
|
5542 | |
*)
|
5543 | |
# If it is relative, then search for the first ld in PATH.
|
5544 | |
with_gnu_ld=unknown
|
5545 | |
;;
|
5546 | |
esac
|
|
6152 |
if test -n "$LD"; then
|
|
6153 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
|
|
6154 |
printf %s "checking for ld... " >&6; }
|
|
6155 |
elif test "$GCC" = yes; then
|
|
6156 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
|
6157 |
printf %s "checking for ld used by $CC... " >&6; }
|
5547 | 6158 |
elif test "$with_gnu_ld" = yes; then
|
5548 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
5549 | |
$as_echo_n "checking for GNU ld... " >&6; }
|
|
6159 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
|
6160 |
printf %s "checking for GNU ld... " >&6; }
|
5550 | 6161 |
else
|
5551 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
5552 | |
$as_echo_n "checking for non-GNU ld... " >&6; }
|
5553 | |
fi
|
5554 | |
if ${acl_cv_path_LD+:} false; then :
|
5555 | |
$as_echo_n "(cached) " >&6
|
|
6162 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
|
6163 |
printf %s "checking for non-GNU ld... " >&6; }
|
|
6164 |
fi
|
|
6165 |
if test -n "$LD"; then
|
|
6166 |
# Let the user override the test with a path.
|
|
6167 |
:
|
5556 | 6168 |
else
|
5557 | |
if test -z "$LD"; then
|
5558 | |
acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
5559 | |
for ac_dir in $PATH; do
|
5560 | |
IFS="$acl_save_ifs"
|
5561 | |
test -z "$ac_dir" && ac_dir=.
|
5562 | |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
5563 | |
acl_cv_path_LD="$ac_dir/$ac_prog"
|
5564 | |
# Check to see if the program is GNU ld. I'd rather use --version,
|
5565 | |
# but apparently some variants of GNU ld only accept -v.
|
5566 | |
# Break only if it was the GNU/non-GNU ld that we prefer.
|
5567 | |
case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
|
5568 | |
*GNU* | *'with BFD'*)
|
5569 | |
test "$with_gnu_ld" != no && break
|
5570 | |
;;
|
5571 | |
*)
|
5572 | |
test "$with_gnu_ld" != yes && break
|
5573 | |
;;
|
|
6169 |
if test ${acl_cv_path_LD+y}
|
|
6170 |
then :
|
|
6171 |
printf %s "(cached) " >&6
|
|
6172 |
else $as_nop
|
|
6173 |
|
|
6174 |
acl_cv_path_LD= # Final result of this test
|
|
6175 |
ac_prog=ld # Program to search in $PATH
|
|
6176 |
if test "$GCC" = yes; then
|
|
6177 |
# Check if gcc -print-prog-name=ld gives a path.
|
|
6178 |
case $host in
|
|
6179 |
*-*-mingw*)
|
|
6180 |
# gcc leaves a trailing carriage return which upsets mingw
|
|
6181 |
acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|
6182 |
*)
|
|
6183 |
acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
|
|
6184 |
esac
|
|
6185 |
case $acl_output in
|
|
6186 |
# Accept absolute paths.
|
|
6187 |
[\\/]* | ?:[\\/]*)
|
|
6188 |
re_direlt='/[^/][^/]*/\.\./'
|
|
6189 |
# Canonicalize the pathname of ld
|
|
6190 |
acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
|
|
6191 |
while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
|
|
6192 |
acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
|
|
6193 |
done
|
|
6194 |
# Got the pathname. No search in PATH is needed.
|
|
6195 |
acl_cv_path_LD="$acl_output"
|
|
6196 |
ac_prog=
|
|
6197 |
;;
|
|
6198 |
"")
|
|
6199 |
# If it fails, then pretend we aren't using GCC.
|
|
6200 |
;;
|
|
6201 |
*)
|
|
6202 |
# If it is relative, then search for the first ld in PATH.
|
|
6203 |
with_gnu_ld=unknown
|
|
6204 |
;;
|
5574 | 6205 |
esac
|
5575 | 6206 |
fi
|
5576 | |
done
|
5577 | |
IFS="$acl_save_ifs"
|
|
6207 |
if test -n "$ac_prog"; then
|
|
6208 |
# Search for $ac_prog in $PATH.
|
|
6209 |
acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
6210 |
for ac_dir in $PATH; do
|
|
6211 |
IFS="$acl_save_ifs"
|
|
6212 |
test -z "$ac_dir" && ac_dir=.
|
|
6213 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|
6214 |
acl_cv_path_LD="$ac_dir/$ac_prog"
|
|
6215 |
# Check to see if the program is GNU ld. I'd rather use --version,
|
|
6216 |
# but apparently some variants of GNU ld only accept -v.
|
|
6217 |
# Break only if it was the GNU/non-GNU ld that we prefer.
|
|
6218 |
case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
|
|
6219 |
*GNU* | *'with BFD'*)
|
|
6220 |
test "$with_gnu_ld" != no && break
|
|
6221 |
;;
|
|
6222 |
*)
|
|
6223 |
test "$with_gnu_ld" != yes && break
|
|
6224 |
;;
|
|
6225 |
esac
|
|
6226 |
fi
|
|
6227 |
done
|
|
6228 |
IFS="$acl_save_ifs"
|
|
6229 |
fi
|
|
6230 |
case $host in
|
|
6231 |
*-*-aix*)
|
|
6232 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6233 |
/* end confdefs.h. */
|
|
6234 |
#if defined __powerpc64__ || defined _ARCH_PPC64
|
|
6235 |
int ok;
|
|
6236 |
#else
|
|
6237 |
error fail
|
|
6238 |
#endif
|
|
6239 |
|
|
6240 |
_ACEOF
|
|
6241 |
if ac_fn_c_try_compile "$LINENO"
|
|
6242 |
then :
|
|
6243 |
# The compiler produces 64-bit code. Add option '-b64' so that the
|
|
6244 |
# linker groks 64-bit object files.
|
|
6245 |
case "$acl_cv_path_LD " in
|
|
6246 |
*" -b64 "*) ;;
|
|
6247 |
*) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
|
|
6248 |
esac
|
|
6249 |
|
|
6250 |
fi
|
|
6251 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6252 |
;;
|
|
6253 |
sparc64-*-netbsd*)
|
|
6254 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6255 |
/* end confdefs.h. */
|
|
6256 |
#if defined __sparcv9 || defined __arch64__
|
|
6257 |
int ok;
|
|
6258 |
#else
|
|
6259 |
error fail
|
|
6260 |
#endif
|
|
6261 |
|
|
6262 |
_ACEOF
|
|
6263 |
if ac_fn_c_try_compile "$LINENO"
|
|
6264 |
then :
|
|
6265 |
|
|
6266 |
else $as_nop
|
|
6267 |
# The compiler produces 32-bit code. Add option '-m elf32_sparc'
|
|
6268 |
# so that the linker groks 32-bit object files.
|
|
6269 |
case "$acl_cv_path_LD " in
|
|
6270 |
*" -m elf32_sparc "*) ;;
|
|
6271 |
*) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
|
|
6272 |
esac
|
|
6273 |
|
|
6274 |
fi
|
|
6275 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6276 |
;;
|
|
6277 |
esac
|
|
6278 |
|
|
6279 |
fi
|
|
6280 |
|
|
6281 |
LD="$acl_cv_path_LD"
|
|
6282 |
fi
|
|
6283 |
if test -n "$LD"; then
|
|
6284 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
|
6285 |
printf "%s\n" "$LD" >&6; }
|
5578 | 6286 |
else
|
5579 | |
acl_cv_path_LD="$LD" # Let the user override the test with a path.
|
5580 | |
fi
|
5581 | |
fi
|
5582 | |
|
5583 | |
LD="$acl_cv_path_LD"
|
5584 | |
if test -n "$LD"; then
|
5585 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
5586 | |
$as_echo "$LD" >&6; }
|
5587 | |
else
|
5588 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
5589 | |
$as_echo "no" >&6; }
|
5590 | |
fi
|
5591 | |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
|
5592 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
5593 | |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
5594 | |
if ${acl_cv_prog_gnu_ld+:} false; then :
|
5595 | |
$as_echo_n "(cached) " >&6
|
5596 | |
else
|
|
6287 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
6288 |
printf "%s\n" "no" >&6; }
|
|
6289 |
as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
|
|
6290 |
fi
|
|
6291 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
|
6292 |
printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
|
|
6293 |
if test ${acl_cv_prog_gnu_ld+y}
|
|
6294 |
then :
|
|
6295 |
printf %s "(cached) " >&6
|
|
6296 |
else $as_nop
|
5597 | 6297 |
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
5598 | 6298 |
case `$LD -v 2>&1 </dev/null` in
|
5599 | 6299 |
*GNU* | *'with BFD'*)
|
|
5604 | 6304 |
;;
|
5605 | 6305 |
esac
|
5606 | 6306 |
fi
|
5607 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
|
5608 | |
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
|
|
6307 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
|
|
6308 |
printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
|
5609 | 6309 |
with_gnu_ld=$acl_cv_prog_gnu_ld
|
5610 | 6310 |
|
5611 | 6311 |
|
5612 | 6312 |
|
5613 | 6313 |
|
5614 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
|
5615 | |
$as_echo_n "checking for shared library run path origin... " >&6; }
|
5616 | |
if ${acl_cv_rpath+:} false; then :
|
5617 | |
$as_echo_n "(cached) " >&6
|
5618 | |
else
|
|
6314 |
|
|
6315 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
|
|
6316 |
printf %s "checking for shared library run path origin... " >&6; }
|
|
6317 |
if test ${acl_cv_rpath+y}
|
|
6318 |
then :
|
|
6319 |
printf %s "(cached) " >&6
|
|
6320 |
else $as_nop
|
5619 | 6321 |
|
5620 | 6322 |
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
|
5621 | 6323 |
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
|
|
5624 | 6326 |
acl_cv_rpath=done
|
5625 | 6327 |
|
5626 | 6328 |
fi
|
5627 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
|
5628 | |
$as_echo "$acl_cv_rpath" >&6; }
|
|
6329 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
|
|
6330 |
printf "%s\n" "$acl_cv_rpath" >&6; }
|
5629 | 6331 |
wl="$acl_cv_wl"
|
5630 | 6332 |
acl_libext="$acl_cv_libext"
|
5631 | 6333 |
acl_shlibext="$acl_cv_shlibext"
|
|
5636 | 6338 |
acl_hardcode_direct="$acl_cv_hardcode_direct"
|
5637 | 6339 |
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
|
5638 | 6340 |
# Check whether --enable-rpath was given.
|
5639 | |
if test "${enable_rpath+set}" = set; then :
|
|
6341 |
if test ${enable_rpath+y}
|
|
6342 |
then :
|
5640 | 6343 |
enableval=$enable_rpath; :
|
5641 | |
else
|
|
6344 |
else $as_nop
|
5642 | 6345 |
enable_rpath=yes
|
5643 | 6346 |
fi
|
5644 | 6347 |
|
5645 | 6348 |
|
5646 | 6349 |
|
5647 | 6350 |
|
5648 | |
acl_libdirstem=lib
|
5649 | |
acl_libdirstem2=
|
5650 | |
case "$host_os" in
|
5651 | |
solaris*)
|
5652 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
|
5653 | |
$as_echo_n "checking for 64-bit host... " >&6; }
|
5654 | |
if ${gl_cv_solaris_64bit+:} false; then :
|
5655 | |
$as_echo_n "(cached) " >&6
|
5656 | |
else
|
|
6351 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
|
|
6352 |
printf %s "checking 32-bit host C ABI... " >&6; }
|
|
6353 |
if test ${gl_cv_host_cpu_c_abi_32bit+y}
|
|
6354 |
then :
|
|
6355 |
printf %s "(cached) " >&6
|
|
6356 |
else $as_nop
|
|
6357 |
if test -n "$gl_cv_host_cpu_c_abi"; then
|
|
6358 |
case "$gl_cv_host_cpu_c_abi" in
|
|
6359 |
i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
|
|
6360 |
gl_cv_host_cpu_c_abi_32bit=yes ;;
|
|
6361 |
x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
|
|
6362 |
gl_cv_host_cpu_c_abi_32bit=no ;;
|
|
6363 |
*)
|
|
6364 |
gl_cv_host_cpu_c_abi_32bit=unknown ;;
|
|
6365 |
esac
|
|
6366 |
else
|
|
6367 |
case "$host_cpu" in
|
|
6368 |
|
|
6369 |
# CPUs that only support a 32-bit ABI.
|
|
6370 |
arc \
|
|
6371 |
| bfin \
|
|
6372 |
| cris* \
|
|
6373 |
| csky \
|
|
6374 |
| epiphany \
|
|
6375 |
| ft32 \
|
|
6376 |
| h8300 \
|
|
6377 |
| m68k \
|
|
6378 |
| microblaze | microblazeel \
|
|
6379 |
| nds32 | nds32le | nds32be \
|
|
6380 |
| nios2 | nios2eb | nios2el \
|
|
6381 |
| or1k* \
|
|
6382 |
| or32 \
|
|
6383 |
| sh | sh1234 | sh1234elb \
|
|
6384 |
| tic6x \
|
|
6385 |
| xtensa* )
|
|
6386 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
6387 |
;;
|
|
6388 |
|
|
6389 |
# CPUs that only support a 64-bit ABI.
|
|
6390 |
alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
|
|
6391 |
| mmix )
|
|
6392 |
gl_cv_host_cpu_c_abi_32bit=no
|
|
6393 |
;;
|
|
6394 |
|
|
6395 |
i[34567]86 )
|
|
6396 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
6397 |
;;
|
|
6398 |
|
|
6399 |
x86_64 )
|
|
6400 |
# On x86_64 systems, the C compiler may be generating code in one of
|
|
6401 |
# these ABIs:
|
|
6402 |
# - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
|
|
6403 |
# - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
|
|
6404 |
# with native Windows (mingw, MSVC).
|
|
6405 |
# - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
|
|
6406 |
# - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
|
|
6407 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6408 |
/* end confdefs.h. */
|
|
6409 |
#if (defined __x86_64__ || defined __amd64__ \
|
|
6410 |
|| defined _M_X64 || defined _M_AMD64) \
|
|
6411 |
&& !(defined __ILP32__ || defined _ILP32)
|
|
6412 |
int ok;
|
|
6413 |
#else
|
|
6414 |
error fail
|
|
6415 |
#endif
|
|
6416 |
|
|
6417 |
_ACEOF
|
|
6418 |
if ac_fn_c_try_compile "$LINENO"
|
|
6419 |
then :
|
|
6420 |
gl_cv_host_cpu_c_abi_32bit=no
|
|
6421 |
else $as_nop
|
|
6422 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
6423 |
fi
|
|
6424 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6425 |
;;
|
|
6426 |
|
|
6427 |
arm* | aarch64 )
|
|
6428 |
# Assume arm with EABI.
|
|
6429 |
# On arm64 systems, the C compiler may be generating code in one of
|
|
6430 |
# these ABIs:
|
|
6431 |
# - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
|
|
6432 |
# - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
|
|
6433 |
# - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
|
|
6434 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6435 |
/* end confdefs.h. */
|
|
6436 |
#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
|
|
6437 |
int ok;
|
|
6438 |
#else
|
|
6439 |
error fail
|
|
6440 |
#endif
|
|
6441 |
|
|
6442 |
_ACEOF
|
|
6443 |
if ac_fn_c_try_compile "$LINENO"
|
|
6444 |
then :
|
|
6445 |
gl_cv_host_cpu_c_abi_32bit=no
|
|
6446 |
else $as_nop
|
|
6447 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
6448 |
fi
|
|
6449 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6450 |
;;
|
|
6451 |
|
|
6452 |
hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
|
|
6453 |
# On hppa, the C compiler may be generating 32-bit code or 64-bit
|
|
6454 |
# code. In the latter case, it defines _LP64 and __LP64__.
|
|
6455 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6456 |
/* end confdefs.h. */
|
|
6457 |
#ifdef __LP64__
|
|
6458 |
int ok;
|
|
6459 |
#else
|
|
6460 |
error fail
|
|
6461 |
#endif
|
|
6462 |
|
|
6463 |
_ACEOF
|
|
6464 |
if ac_fn_c_try_compile "$LINENO"
|
|
6465 |
then :
|
|
6466 |
gl_cv_host_cpu_c_abi_32bit=no
|
|
6467 |
else $as_nop
|
|
6468 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
6469 |
fi
|
|
6470 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6471 |
;;
|
|
6472 |
|
|
6473 |
ia64* )
|
|
6474 |
# On ia64 on HP-UX, the C compiler may be generating 64-bit code or
|
|
6475 |
# 32-bit code. In the latter case, it defines _ILP32.
|
|
6476 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6477 |
/* end confdefs.h. */
|
|
6478 |
#ifdef _ILP32
|
|
6479 |
int ok;
|
|
6480 |
#else
|
|
6481 |
error fail
|
|
6482 |
#endif
|
|
6483 |
|
|
6484 |
_ACEOF
|
|
6485 |
if ac_fn_c_try_compile "$LINENO"
|
|
6486 |
then :
|
|
6487 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
6488 |
else $as_nop
|
|
6489 |
gl_cv_host_cpu_c_abi_32bit=no
|
|
6490 |
fi
|
|
6491 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6492 |
;;
|
|
6493 |
|
|
6494 |
mips* )
|
|
6495 |
# We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
|
|
6496 |
# at 32.
|
|
6497 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6498 |
/* end confdefs.h. */
|
|
6499 |
#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
|
|
6500 |
int ok;
|
|
6501 |
#else
|
|
6502 |
error fail
|
|
6503 |
#endif
|
|
6504 |
|
|
6505 |
_ACEOF
|
|
6506 |
if ac_fn_c_try_compile "$LINENO"
|
|
6507 |
then :
|
|
6508 |
gl_cv_host_cpu_c_abi_32bit=no
|
|
6509 |
else $as_nop
|
|
6510 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
6511 |
fi
|
|
6512 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6513 |
;;
|
|
6514 |
|
|
6515 |
powerpc* )
|
|
6516 |
# Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
|
|
6517 |
# No need to distinguish them here; the caller may distinguish
|
|
6518 |
# them based on the OS.
|
|
6519 |
# On powerpc64 systems, the C compiler may still be generating
|
|
6520 |
# 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
|
|
6521 |
# be generating 64-bit code.
|
|
6522 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6523 |
/* end confdefs.h. */
|
|
6524 |
#if defined __powerpc64__ || defined _ARCH_PPC64
|
|
6525 |
int ok;
|
|
6526 |
#else
|
|
6527 |
error fail
|
|
6528 |
#endif
|
|
6529 |
|
|
6530 |
_ACEOF
|
|
6531 |
if ac_fn_c_try_compile "$LINENO"
|
|
6532 |
then :
|
|
6533 |
gl_cv_host_cpu_c_abi_32bit=no
|
|
6534 |
else $as_nop
|
|
6535 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
6536 |
fi
|
|
6537 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6538 |
;;
|
|
6539 |
|
|
6540 |
rs6000 )
|
|
6541 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
6542 |
;;
|
|
6543 |
|
|
6544 |
riscv32 | riscv64 )
|
|
6545 |
# There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
|
|
6546 |
# Size of 'long' and 'void *':
|
|
6547 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6548 |
/* end confdefs.h. */
|
|
6549 |
#if defined __LP64__
|
|
6550 |
int ok;
|
|
6551 |
#else
|
|
6552 |
error fail
|
|
6553 |
#endif
|
|
6554 |
|
|
6555 |
_ACEOF
|
|
6556 |
if ac_fn_c_try_compile "$LINENO"
|
|
6557 |
then :
|
|
6558 |
gl_cv_host_cpu_c_abi_32bit=no
|
|
6559 |
else $as_nop
|
|
6560 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
6561 |
fi
|
|
6562 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6563 |
;;
|
|
6564 |
|
|
6565 |
s390* )
|
|
6566 |
# On s390x, the C compiler may be generating 64-bit (= s390x) code
|
|
6567 |
# or 31-bit (= s390) code.
|
|
6568 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6569 |
/* end confdefs.h. */
|
|
6570 |
#if defined __LP64__ || defined __s390x__
|
|
6571 |
int ok;
|
|
6572 |
#else
|
|
6573 |
error fail
|
|
6574 |
#endif
|
|
6575 |
|
|
6576 |
_ACEOF
|
|
6577 |
if ac_fn_c_try_compile "$LINENO"
|
|
6578 |
then :
|
|
6579 |
gl_cv_host_cpu_c_abi_32bit=no
|
|
6580 |
else $as_nop
|
|
6581 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
6582 |
fi
|
|
6583 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6584 |
;;
|
|
6585 |
|
|
6586 |
sparc | sparc64 )
|
|
6587 |
# UltraSPARCs running Linux have `uname -m` = "sparc64", but the
|
|
6588 |
# C compiler still generates 32-bit code.
|
|
6589 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6590 |
/* end confdefs.h. */
|
|
6591 |
#if defined __sparcv9 || defined __arch64__
|
|
6592 |
int ok;
|
|
6593 |
#else
|
|
6594 |
error fail
|
|
6595 |
#endif
|
|
6596 |
|
|
6597 |
_ACEOF
|
|
6598 |
if ac_fn_c_try_compile "$LINENO"
|
|
6599 |
then :
|
|
6600 |
gl_cv_host_cpu_c_abi_32bit=no
|
|
6601 |
else $as_nop
|
|
6602 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
6603 |
fi
|
|
6604 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6605 |
;;
|
|
6606 |
|
|
6607 |
*)
|
|
6608 |
gl_cv_host_cpu_c_abi_32bit=unknown
|
|
6609 |
;;
|
|
6610 |
esac
|
|
6611 |
fi
|
|
6612 |
|
|
6613 |
fi
|
|
6614 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
|
|
6615 |
printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
|
|
6616 |
|
|
6617 |
HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
|
|
6618 |
|
|
6619 |
ac_ext=c
|
|
6620 |
ac_cpp='$CPP $CPPFLAGS'
|
|
6621 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
6622 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
6623 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
6624 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
|
6625 |
printf %s "checking how to run the C preprocessor... " >&6; }
|
|
6626 |
# On Suns, sometimes $CPP names a directory.
|
|
6627 |
if test -n "$CPP" && test -d "$CPP"; then
|
|
6628 |
CPP=
|
|
6629 |
fi
|
|
6630 |
if test -z "$CPP"; then
|
|
6631 |
if test ${ac_cv_prog_CPP+y}
|
|
6632 |
then :
|
|
6633 |
printf %s "(cached) " >&6
|
|
6634 |
else $as_nop
|
|
6635 |
# Double quotes because $CC needs to be expanded
|
|
6636 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
|
|
6637 |
do
|
|
6638 |
ac_preproc_ok=false
|
|
6639 |
for ac_c_preproc_warn_flag in '' yes
|
|
6640 |
do
|
|
6641 |
# Use a header file that comes with gcc, so configuring glibc
|
|
6642 |
# with a fresh cross-compiler works.
|
|
6643 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
6644 |
# not just through cpp. "Syntax error" is here to catch this case.
|
5657 | 6645 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
5658 | 6646 |
/* end confdefs.h. */
|
5659 | |
|
5660 | |
#ifdef _LP64
|
5661 | |
sixtyfour bits
|
5662 | |
#endif
|
|
6647 |
#include <limits.h>
|
|
6648 |
Syntax error
|
|
6649 |
_ACEOF
|
|
6650 |
if ac_fn_c_try_cpp "$LINENO"
|
|
6651 |
then :
|
|
6652 |
|
|
6653 |
else $as_nop
|
|
6654 |
# Broken: fails on valid input.
|
|
6655 |
continue
|
|
6656 |
fi
|
|
6657 |
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
6658 |
|
|
6659 |
# OK, works on sane cases. Now check whether nonexistent headers
|
|
6660 |
# can be detected and how.
|
|
6661 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6662 |
/* end confdefs.h. */
|
|
6663 |
#include <ac_nonexistent.h>
|
|
6664 |
_ACEOF
|
|
6665 |
if ac_fn_c_try_cpp "$LINENO"
|
|
6666 |
then :
|
|
6667 |
# Broken: success on invalid input.
|
|
6668 |
continue
|
|
6669 |
else $as_nop
|
|
6670 |
# Passes both tests.
|
|
6671 |
ac_preproc_ok=:
|
|
6672 |
break
|
|
6673 |
fi
|
|
6674 |
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
6675 |
|
|
6676 |
done
|
|
6677 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
6678 |
rm -f conftest.i conftest.err conftest.$ac_ext
|
|
6679 |
if $ac_preproc_ok
|
|
6680 |
then :
|
|
6681 |
break
|
|
6682 |
fi
|
|
6683 |
|
|
6684 |
done
|
|
6685 |
ac_cv_prog_CPP=$CPP
|
|
6686 |
|
|
6687 |
fi
|
|
6688 |
CPP=$ac_cv_prog_CPP
|
|
6689 |
else
|
|
6690 |
ac_cv_prog_CPP=$CPP
|
|
6691 |
fi
|
|
6692 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
|
6693 |
printf "%s\n" "$CPP" >&6; }
|
|
6694 |
ac_preproc_ok=false
|
|
6695 |
for ac_c_preproc_warn_flag in '' yes
|
|
6696 |
do
|
|
6697 |
# Use a header file that comes with gcc, so configuring glibc
|
|
6698 |
# with a fresh cross-compiler works.
|
|
6699 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
6700 |
# not just through cpp. "Syntax error" is here to catch this case.
|
|
6701 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6702 |
/* end confdefs.h. */
|
|
6703 |
#include <limits.h>
|
|
6704 |
Syntax error
|
|
6705 |
_ACEOF
|
|
6706 |
if ac_fn_c_try_cpp "$LINENO"
|
|
6707 |
then :
|
|
6708 |
|
|
6709 |
else $as_nop
|
|
6710 |
# Broken: fails on valid input.
|
|
6711 |
continue
|
|
6712 |
fi
|
|
6713 |
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
6714 |
|
|
6715 |
# OK, works on sane cases. Now check whether nonexistent headers
|
|
6716 |
# can be detected and how.
|
|
6717 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6718 |
/* end confdefs.h. */
|
|
6719 |
#include <ac_nonexistent.h>
|
|
6720 |
_ACEOF
|
|
6721 |
if ac_fn_c_try_cpp "$LINENO"
|
|
6722 |
then :
|
|
6723 |
# Broken: success on invalid input.
|
|
6724 |
continue
|
|
6725 |
else $as_nop
|
|
6726 |
# Passes both tests.
|
|
6727 |
ac_preproc_ok=:
|
|
6728 |
break
|
|
6729 |
fi
|
|
6730 |
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
6731 |
|
|
6732 |
done
|
|
6733 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
6734 |
rm -f conftest.i conftest.err conftest.$ac_ext
|
|
6735 |
if $ac_preproc_ok
|
|
6736 |
then :
|
|
6737 |
|
|
6738 |
else $as_nop
|
|
6739 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
6740 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
6741 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
|
6742 |
See \`config.log' for more details" "$LINENO" 5; }
|
|
6743 |
fi
|
|
6744 |
|
|
6745 |
ac_ext=c
|
|
6746 |
ac_cpp='$CPP $CPPFLAGS'
|
|
6747 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
6748 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
6749 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
6750 |
|
|
6751 |
|
|
6752 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
|
6753 |
printf %s "checking for grep that handles long lines and -e... " >&6; }
|
|
6754 |
if test ${ac_cv_path_GREP+y}
|
|
6755 |
then :
|
|
6756 |
printf %s "(cached) " >&6
|
|
6757 |
else $as_nop
|
|
6758 |
if test -z "$GREP"; then
|
|
6759 |
ac_path_GREP_found=false
|
|
6760 |
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
6761 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
6762 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
6763 |
do
|
|
6764 |
IFS=$as_save_IFS
|
|
6765 |
case $as_dir in #(((
|
|
6766 |
'') as_dir=./ ;;
|
|
6767 |
*/) ;;
|
|
6768 |
*) as_dir=$as_dir/ ;;
|
|
6769 |
esac
|
|
6770 |
for ac_prog in grep ggrep
|
|
6771 |
do
|
|
6772 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
6773 |
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
|
|
6774 |
as_fn_executable_p "$ac_path_GREP" || continue
|
|
6775 |
# Check for GNU ac_path_GREP and select it if it is found.
|
|
6776 |
# Check for GNU $ac_path_GREP
|
|
6777 |
case `"$ac_path_GREP" --version 2>&1` in
|
|
6778 |
*GNU*)
|
|
6779 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
|
6780 |
*)
|
|
6781 |
ac_count=0
|
|
6782 |
printf %s 0123456789 >"conftest.in"
|
|
6783 |
while :
|
|
6784 |
do
|
|
6785 |
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
6786 |
mv "conftest.tmp" "conftest.in"
|
|
6787 |
cp "conftest.in" "conftest.nl"
|
|
6788 |
printf "%s\n" 'GREP' >> "conftest.nl"
|
|
6789 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
6790 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
6791 |
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
|
6792 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
|
6793 |
# Best one so far, save it but keep looking for a better one
|
|
6794 |
ac_cv_path_GREP="$ac_path_GREP"
|
|
6795 |
ac_path_GREP_max=$ac_count
|
|
6796 |
fi
|
|
6797 |
# 10*(2^10) chars as input seems more than enough
|
|
6798 |
test $ac_count -gt 10 && break
|
|
6799 |
done
|
|
6800 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
6801 |
esac
|
|
6802 |
|
|
6803 |
$ac_path_GREP_found && break 3
|
|
6804 |
done
|
|
6805 |
done
|
|
6806 |
done
|
|
6807 |
IFS=$as_save_IFS
|
|
6808 |
if test -z "$ac_cv_path_GREP"; then
|
|
6809 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
6810 |
fi
|
|
6811 |
else
|
|
6812 |
ac_cv_path_GREP=$GREP
|
|
6813 |
fi
|
|
6814 |
|
|
6815 |
fi
|
|
6816 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
|
6817 |
printf "%s\n" "$ac_cv_path_GREP" >&6; }
|
|
6818 |
GREP="$ac_cv_path_GREP"
|
|
6819 |
|
|
6820 |
|
|
6821 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
|
6822 |
printf %s "checking for egrep... " >&6; }
|
|
6823 |
if test ${ac_cv_path_EGREP+y}
|
|
6824 |
then :
|
|
6825 |
printf %s "(cached) " >&6
|
|
6826 |
else $as_nop
|
|
6827 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
|
6828 |
then ac_cv_path_EGREP="$GREP -E"
|
|
6829 |
else
|
|
6830 |
if test -z "$EGREP"; then
|
|
6831 |
ac_path_EGREP_found=false
|
|
6832 |
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
6833 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
6834 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
6835 |
do
|
|
6836 |
IFS=$as_save_IFS
|
|
6837 |
case $as_dir in #(((
|
|
6838 |
'') as_dir=./ ;;
|
|
6839 |
*/) ;;
|
|
6840 |
*) as_dir=$as_dir/ ;;
|
|
6841 |
esac
|
|
6842 |
for ac_prog in egrep
|
|
6843 |
do
|
|
6844 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
6845 |
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
|
|
6846 |
as_fn_executable_p "$ac_path_EGREP" || continue
|
|
6847 |
# Check for GNU ac_path_EGREP and select it if it is found.
|
|
6848 |
# Check for GNU $ac_path_EGREP
|
|
6849 |
case `"$ac_path_EGREP" --version 2>&1` in
|
|
6850 |
*GNU*)
|
|
6851 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
|
6852 |
*)
|
|
6853 |
ac_count=0
|
|
6854 |
printf %s 0123456789 >"conftest.in"
|
|
6855 |
while :
|
|
6856 |
do
|
|
6857 |
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
6858 |
mv "conftest.tmp" "conftest.in"
|
|
6859 |
cp "conftest.in" "conftest.nl"
|
|
6860 |
printf "%s\n" 'EGREP' >> "conftest.nl"
|
|
6861 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
6862 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
6863 |
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
|
6864 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
|
6865 |
# Best one so far, save it but keep looking for a better one
|
|
6866 |
ac_cv_path_EGREP="$ac_path_EGREP"
|
|
6867 |
ac_path_EGREP_max=$ac_count
|
|
6868 |
fi
|
|
6869 |
# 10*(2^10) chars as input seems more than enough
|
|
6870 |
test $ac_count -gt 10 && break
|
|
6871 |
done
|
|
6872 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
6873 |
esac
|
|
6874 |
|
|
6875 |
$ac_path_EGREP_found && break 3
|
|
6876 |
done
|
|
6877 |
done
|
|
6878 |
done
|
|
6879 |
IFS=$as_save_IFS
|
|
6880 |
if test -z "$ac_cv_path_EGREP"; then
|
|
6881 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
6882 |
fi
|
|
6883 |
else
|
|
6884 |
ac_cv_path_EGREP=$EGREP
|
|
6885 |
fi
|
|
6886 |
|
|
6887 |
fi
|
|
6888 |
fi
|
|
6889 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
|
6890 |
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
|
|
6891 |
EGREP="$ac_cv_path_EGREP"
|
|
6892 |
|
|
6893 |
|
|
6894 |
|
|
6895 |
|
|
6896 |
|
|
6897 |
|
|
6898 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
|
|
6899 |
printf %s "checking for ELF binary format... " >&6; }
|
|
6900 |
if test ${gl_cv_elf+y}
|
|
6901 |
then :
|
|
6902 |
printf %s "(cached) " >&6
|
|
6903 |
else $as_nop
|
|
6904 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6905 |
/* end confdefs.h. */
|
|
6906 |
#ifdef __ELF__
|
|
6907 |
Extensible Linking Format
|
|
6908 |
#endif
|
5663 | 6909 |
|
5664 | 6910 |
_ACEOF
|
5665 | 6911 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
5666 | |
$EGREP "sixtyfour bits" >/dev/null 2>&1; then :
|
5667 | |
gl_cv_solaris_64bit=yes
|
5668 | |
else
|
5669 | |
gl_cv_solaris_64bit=no
|
5670 | |
fi
|
5671 | |
rm -f conftest*
|
5672 | |
|
5673 | |
|
5674 | |
fi
|
5675 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
|
5676 | |
$as_echo "$gl_cv_solaris_64bit" >&6; }
|
5677 | |
if test $gl_cv_solaris_64bit = yes; then
|
5678 | |
acl_libdirstem=lib/64
|
5679 | |
case "$host_cpu" in
|
5680 | |
sparc*) acl_libdirstem2=lib/sparcv9 ;;
|
5681 | |
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
|
5682 | |
esac
|
5683 | |
fi
|
5684 | |
;;
|
5685 | |
*)
|
5686 | |
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
|
5687 | |
if test -n "$searchpath"; then
|
5688 | |
acl_save_IFS="${IFS= }"; IFS=":"
|
5689 | |
for searchdir in $searchpath; do
|
5690 | |
if test -d "$searchdir"; then
|
5691 | |
case "$searchdir" in
|
5692 | |
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
|
5693 | |
*/../ | */.. )
|
5694 | |
# Better ignore directories of this form. They are misleading.
|
5695 | |
;;
|
5696 | |
*) searchdir=`cd "$searchdir" && pwd`
|
5697 | |
case "$searchdir" in
|
5698 | |
*/lib64 ) acl_libdirstem=lib64 ;;
|
5699 | |
esac ;;
|
5700 | |
esac
|
5701 | |
fi
|
5702 | |
done
|
5703 | |
IFS="$acl_save_IFS"
|
5704 | |
fi
|
5705 | |
;;
|
5706 | |
esac
|
5707 | |
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
|
5708 | |
|
|
6912 |
$EGREP "Extensible Linking Format" >/dev/null 2>&1
|
|
6913 |
then :
|
|
6914 |
gl_cv_elf=yes
|
|
6915 |
else $as_nop
|
|
6916 |
gl_cv_elf=no
|
|
6917 |
fi
|
|
6918 |
rm -rf conftest*
|
|
6919 |
|
|
6920 |
|
|
6921 |
fi
|
|
6922 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
|
|
6923 |
printf "%s\n" "$gl_cv_elf" >&6; }
|
|
6924 |
if test $gl_cv_elf; then
|
|
6925 |
# Extract the ELF class of a file (5th byte) in decimal.
|
|
6926 |
# Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
|
|
6927 |
if od -A x < /dev/null >/dev/null 2>/dev/null; then
|
|
6928 |
# Use POSIX od.
|
|
6929 |
func_elfclass ()
|
|
6930 |
{
|
|
6931 |
od -A n -t d1 -j 4 -N 1
|
|
6932 |
}
|
|
6933 |
else
|
|
6934 |
# Use BSD hexdump.
|
|
6935 |
func_elfclass ()
|
|
6936 |
{
|
|
6937 |
dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
|
|
6938 |
echo
|
|
6939 |
}
|
|
6940 |
fi
|
|
6941 |
case $HOST_CPU_C_ABI_32BIT in
|
|
6942 |
yes)
|
|
6943 |
# 32-bit ABI.
|
|
6944 |
acl_is_expected_elfclass ()
|
|
6945 |
{
|
|
6946 |
test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
|
|
6947 |
}
|
|
6948 |
;;
|
|
6949 |
no)
|
|
6950 |
# 64-bit ABI.
|
|
6951 |
acl_is_expected_elfclass ()
|
|
6952 |
{
|
|
6953 |
test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
|
|
6954 |
}
|
|
6955 |
;;
|
|
6956 |
*)
|
|
6957 |
# Unknown.
|
|
6958 |
acl_is_expected_elfclass ()
|
|
6959 |
{
|
|
6960 |
:
|
|
6961 |
}
|
|
6962 |
;;
|
|
6963 |
esac
|
|
6964 |
else
|
|
6965 |
acl_is_expected_elfclass ()
|
|
6966 |
{
|
|
6967 |
:
|
|
6968 |
}
|
|
6969 |
fi
|
|
6970 |
|
|
6971 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
|
|
6972 |
printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
|
|
6973 |
if test ${acl_cv_libdirstems+y}
|
|
6974 |
then :
|
|
6975 |
printf %s "(cached) " >&6
|
|
6976 |
else $as_nop
|
|
6977 |
acl_libdirstem=lib
|
|
6978 |
acl_libdirstem2=
|
|
6979 |
acl_libdirstem3=
|
|
6980 |
case "$host_os" in
|
|
6981 |
solaris*)
|
|
6982 |
if test $HOST_CPU_C_ABI_32BIT = no; then
|
|
6983 |
acl_libdirstem2=lib/64
|
|
6984 |
case "$host_cpu" in
|
|
6985 |
sparc*) acl_libdirstem3=lib/sparcv9 ;;
|
|
6986 |
i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
|
|
6987 |
esac
|
|
6988 |
fi
|
|
6989 |
;;
|
|
6990 |
*)
|
|
6991 |
searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
|
|
6992 |
| sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
|
|
6993 |
if test $HOST_CPU_C_ABI_32BIT != no; then
|
|
6994 |
# 32-bit or unknown ABI.
|
|
6995 |
if test -d /usr/lib32; then
|
|
6996 |
acl_libdirstem2=lib32
|
|
6997 |
fi
|
|
6998 |
fi
|
|
6999 |
if test $HOST_CPU_C_ABI_32BIT != yes; then
|
|
7000 |
# 64-bit or unknown ABI.
|
|
7001 |
if test -d /usr/lib64; then
|
|
7002 |
acl_libdirstem3=lib64
|
|
7003 |
fi
|
|
7004 |
fi
|
|
7005 |
if test -n "$searchpath"; then
|
|
7006 |
acl_save_IFS="${IFS= }"; IFS=":"
|
|
7007 |
for searchdir in $searchpath; do
|
|
7008 |
if test -d "$searchdir"; then
|
|
7009 |
case "$searchdir" in
|
|
7010 |
*/lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
|
|
7011 |
*/lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
|
|
7012 |
*/../ | */.. )
|
|
7013 |
# Better ignore directories of this form. They are misleading.
|
|
7014 |
;;
|
|
7015 |
*) searchdir=`cd "$searchdir" && pwd`
|
|
7016 |
case "$searchdir" in
|
|
7017 |
*/lib32 ) acl_libdirstem2=lib32 ;;
|
|
7018 |
*/lib64 ) acl_libdirstem3=lib64 ;;
|
|
7019 |
esac ;;
|
|
7020 |
esac
|
|
7021 |
fi
|
|
7022 |
done
|
|
7023 |
IFS="$acl_save_IFS"
|
|
7024 |
if test $HOST_CPU_C_ABI_32BIT = yes; then
|
|
7025 |
# 32-bit ABI.
|
|
7026 |
acl_libdirstem3=
|
|
7027 |
fi
|
|
7028 |
if test $HOST_CPU_C_ABI_32BIT = no; then
|
|
7029 |
# 64-bit ABI.
|
|
7030 |
acl_libdirstem2=
|
|
7031 |
fi
|
|
7032 |
fi
|
|
7033 |
;;
|
|
7034 |
esac
|
|
7035 |
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
|
|
7036 |
test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
|
|
7037 |
acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
|
|
7038 |
|
|
7039 |
fi
|
|
7040 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
|
|
7041 |
printf "%s\n" "$acl_cv_libdirstems" >&6; }
|
|
7042 |
acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
|
|
7043 |
acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
|
|
7044 |
acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
|
5709 | 7045 |
|
5710 | 7046 |
|
5711 | 7047 |
|
|
5726 | 7062 |
|
5727 | 7063 |
eval additional_includedir=\"$includedir\"
|
5728 | 7064 |
eval additional_libdir=\"$libdir\"
|
|
7065 |
eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
|
|
7066 |
eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
|
5729 | 7067 |
|
5730 | 7068 |
exec_prefix="$acl_save_exec_prefix"
|
5731 | 7069 |
prefix="$acl_save_prefix"
|
5732 | 7070 |
|
5733 | 7071 |
|
5734 | 7072 |
# Check whether --with-libiconv-prefix was given.
|
5735 | |
if test "${with_libiconv_prefix+set}" = set; then :
|
|
7073 |
if test ${with_libiconv_prefix+y}
|
|
7074 |
then :
|
5736 | 7075 |
withval=$with_libiconv_prefix;
|
5737 | 7076 |
if test "X$withval" = "Xno"; then
|
5738 | 7077 |
use_additional=no
|
|
5746 | 7085 |
|
5747 | 7086 |
eval additional_includedir=\"$includedir\"
|
5748 | 7087 |
eval additional_libdir=\"$libdir\"
|
|
7088 |
eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
|
|
7089 |
eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
|
5749 | 7090 |
|
5750 | 7091 |
exec_prefix="$acl_save_exec_prefix"
|
5751 | 7092 |
prefix="$acl_save_prefix"
|
|
5753 | 7094 |
else
|
5754 | 7095 |
additional_includedir="$withval/include"
|
5755 | 7096 |
additional_libdir="$withval/$acl_libdirstem"
|
5756 | |
if test "$acl_libdirstem2" != "$acl_libdirstem" \
|
5757 | |
&& ! test -d "$withval/$acl_libdirstem"; then
|
5758 | |
additional_libdir="$withval/$acl_libdirstem2"
|
5759 | |
fi
|
|
7097 |
additional_libdir2="$withval/$acl_libdirstem2"
|
|
7098 |
additional_libdir3="$withval/$acl_libdirstem3"
|
5760 | 7099 |
fi
|
5761 | 7100 |
fi
|
5762 | 7101 |
|
5763 | 7102 |
fi
|
5764 | 7103 |
|
|
7104 |
if test "X$additional_libdir2" = "X$additional_libdir"; then
|
|
7105 |
additional_libdir2=
|
|
7106 |
fi
|
|
7107 |
if test "X$additional_libdir3" = "X$additional_libdir"; then
|
|
7108 |
additional_libdir3=
|
|
7109 |
fi
|
5765 | 7110 |
LIBICONV=
|
5766 | 7111 |
LTLIBICONV=
|
5767 | 7112 |
INCICONV=
|
|
5807 | 7152 |
shrext=
|
5808 | 7153 |
fi
|
5809 | 7154 |
if test $use_additional = yes; then
|
5810 | |
dir="$additional_libdir"
|
5811 | |
if test -n "$acl_shlibext"; then
|
5812 | |
if test -f "$dir/$libname$shrext"; then
|
5813 | |
found_dir="$dir"
|
5814 | |
found_so="$dir/$libname$shrext"
|
5815 | |
else
|
5816 | |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
|
5817 | |
ver=`(cd "$dir" && \
|
5818 | |
for f in "$libname$shrext".*; do echo "$f"; done \
|
5819 | |
| sed -e "s,^$libname$shrext\\\\.,," \
|
5820 | |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
|
5821 | |
| sed 1q ) 2>/dev/null`
|
5822 | |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
|
5823 | |
found_dir="$dir"
|
5824 | |
found_so="$dir/$libname$shrext.$ver"
|
5825 | |
fi
|
5826 | |
else
|
5827 | |
eval library_names=\"$acl_library_names_spec\"
|
5828 | |
for f in $library_names; do
|
5829 | |
if test -f "$dir/$f"; then
|
5830 | |
found_dir="$dir"
|
5831 | |
found_so="$dir/$f"
|
5832 | |
break
|
5833 | |
fi
|
5834 | |
done
|
5835 | |
fi
|
5836 | |
fi
|
5837 | |
fi
|
5838 | |
if test "X$found_dir" = "X"; then
|
5839 | |
if test -f "$dir/$libname.$acl_libext"; then
|
5840 | |
found_dir="$dir"
|
5841 | |
found_a="$dir/$libname.$acl_libext"
|
5842 | |
fi
|
5843 | |
fi
|
5844 | |
if test "X$found_dir" != "X"; then
|
5845 | |
if test -f "$dir/$libname.la"; then
|
5846 | |
found_la="$dir/$libname.la"
|
5847 | |
fi
|
5848 | |
fi
|
5849 | |
fi
|
5850 | |
if test "X$found_dir" = "X"; then
|
5851 | |
for x in $LDFLAGS $LTLIBICONV; do
|
5852 | |
|
5853 | |
acl_save_prefix="$prefix"
|
5854 | |
prefix="$acl_final_prefix"
|
5855 | |
acl_save_exec_prefix="$exec_prefix"
|
5856 | |
exec_prefix="$acl_final_exec_prefix"
|
5857 | |
eval x=\"$x\"
|
5858 | |
exec_prefix="$acl_save_exec_prefix"
|
5859 | |
prefix="$acl_save_prefix"
|
5860 | |
|
5861 | |
case "$x" in
|
5862 | |
-L*)
|
5863 | |
dir=`echo "X$x" | sed -e 's/^X-L//'`
|
5864 | |
if test -n "$acl_shlibext"; then
|
5865 | |
if test -f "$dir/$libname$shrext"; then
|
|
7155 |
for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
|
|
7156 |
if test "X$found_dir" = "X"; then
|
|
7157 |
eval dir=\$$additional_libdir_variable
|
|
7158 |
if test -n "$dir"; then
|
|
7159 |
if test -n "$acl_shlibext"; then
|
|
7160 |
if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
|
5866 | 7161 |
found_dir="$dir"
|
5867 | 7162 |
found_so="$dir/$libname$shrext"
|
5868 | 7163 |
else
|
|
5872 | 7167 |
| sed -e "s,^$libname$shrext\\\\.,," \
|
5873 | 7168 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
|
5874 | 7169 |
| sed 1q ) 2>/dev/null`
|
5875 | |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
|
|
7170 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
|
5876 | 7171 |
found_dir="$dir"
|
5877 | 7172 |
found_so="$dir/$libname$shrext.$ver"
|
5878 | 7173 |
fi
|
5879 | 7174 |
else
|
5880 | 7175 |
eval library_names=\"$acl_library_names_spec\"
|
5881 | 7176 |
for f in $library_names; do
|
5882 | |
if test -f "$dir/$f"; then
|
|
7177 |
if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
|
5883 | 7178 |
found_dir="$dir"
|
5884 | 7179 |
found_so="$dir/$f"
|
5885 | 7180 |
break
|
|
5889 | 7184 |
fi
|
5890 | 7185 |
fi
|
5891 | 7186 |
if test "X$found_dir" = "X"; then
|
5892 | |
if test -f "$dir/$libname.$acl_libext"; then
|
|
7187 |
if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
|
|
7188 |
found_dir="$dir"
|
|
7189 |
found_a="$dir/$libname.$acl_libext"
|
|
7190 |
fi
|
|
7191 |
fi
|
|
7192 |
if test "X$found_dir" != "X"; then
|
|
7193 |
if test -f "$dir/$libname.la"; then
|
|
7194 |
found_la="$dir/$libname.la"
|
|
7195 |
fi
|
|
7196 |
fi
|
|
7197 |
fi
|
|
7198 |
fi
|
|
7199 |
done
|
|
7200 |
fi
|
|
7201 |
if test "X$found_dir" = "X"; then
|
|
7202 |
for x in $LDFLAGS $LTLIBICONV; do
|
|
7203 |
|
|
7204 |
acl_save_prefix="$prefix"
|
|
7205 |
prefix="$acl_final_prefix"
|
|
7206 |
acl_save_exec_prefix="$exec_prefix"
|
|
7207 |
exec_prefix="$acl_final_exec_prefix"
|
|
7208 |
eval x=\"$x\"
|
|
7209 |
exec_prefix="$acl_save_exec_prefix"
|
|
7210 |
prefix="$acl_save_prefix"
|
|
7211 |
|
|
7212 |
case "$x" in
|
|
7213 |
-L*)
|
|
7214 |
dir=`echo "X$x" | sed -e 's/^X-L//'`
|
|
7215 |
if test -n "$acl_shlibext"; then
|
|
7216 |
if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
|
|
7217 |
found_dir="$dir"
|
|
7218 |
found_so="$dir/$libname$shrext"
|
|
7219 |
else
|
|
7220 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
|
|
7221 |
ver=`(cd "$dir" && \
|
|
7222 |
for f in "$libname$shrext".*; do echo "$f"; done \
|
|
7223 |
| sed -e "s,^$libname$shrext\\\\.,," \
|
|
7224 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
|
|
7225 |
| sed 1q ) 2>/dev/null`
|
|
7226 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
|
|
7227 |
found_dir="$dir"
|
|
7228 |
found_so="$dir/$libname$shrext.$ver"
|
|
7229 |
fi
|
|
7230 |
else
|
|
7231 |
eval library_names=\"$acl_library_names_spec\"
|
|
7232 |
for f in $library_names; do
|
|
7233 |
if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
|
|
7234 |
found_dir="$dir"
|
|
7235 |
found_so="$dir/$f"
|
|
7236 |
break
|
|
7237 |
fi
|
|
7238 |
done
|
|
7239 |
fi
|
|
7240 |
fi
|
|
7241 |
fi
|
|
7242 |
if test "X$found_dir" = "X"; then
|
|
7243 |
if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
|
5893 | 7244 |
found_dir="$dir"
|
5894 | 7245 |
found_a="$dir/$libname.$acl_libext"
|
5895 | 7246 |
fi
|
|
5911 | 7262 |
if test "X$found_so" != "X"; then
|
5912 | 7263 |
if test "$enable_rpath" = no \
|
5913 | 7264 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
|
5914 | |
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
|
|
7265 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem2" \
|
|
7266 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
|
5915 | 7267 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
|
5916 | 7268 |
else
|
5917 | 7269 |
haveit=
|
|
5990 | 7342 |
fi
|
5991 | 7343 |
additional_includedir="$basedir/include"
|
5992 | 7344 |
;;
|
|
7345 |
*/$acl_libdirstem3 | */$acl_libdirstem3/)
|
|
7346 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
|
|
7347 |
if test "$name" = 'iconv'; then
|
|
7348 |
LIBICONV_PREFIX="$basedir"
|
|
7349 |
fi
|
|
7350 |
additional_includedir="$basedir/include"
|
|
7351 |
;;
|
5993 | 7352 |
esac
|
5994 | 7353 |
if test "X$additional_includedir" != "X"; then
|
5995 | 7354 |
if test "X$additional_includedir" != "X/usr/include"; then
|
|
6035 | 7394 |
for dep in $dependency_libs; do
|
6036 | 7395 |
case "$dep" in
|
6037 | 7396 |
-L*)
|
6038 | |
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
|
6039 | |
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
|
6040 | |
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
|
|
7397 |
dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
|
|
7398 |
if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
|
|
7399 |
&& test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
|
|
7400 |
&& test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
|
6041 | 7401 |
haveit=
|
6042 | |
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
|
6043 | |
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
|
|
7402 |
if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
|
|
7403 |
|| test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
|
|
7404 |
|| test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
|
6044 | 7405 |
if test -n "$GCC"; then
|
6045 | 7406 |
case $host_os in
|
6046 | 7407 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
|
6059 | 7420 |
exec_prefix="$acl_save_exec_prefix"
|
6060 | 7421 |
prefix="$acl_save_prefix"
|
6061 | 7422 |
|
6062 | |
if test "X$x" = "X-L$additional_libdir"; then
|
|
7423 |
if test "X$x" = "X-L$dependency_libdir"; then
|
6063 | 7424 |
haveit=yes
|
6064 | 7425 |
break
|
6065 | 7426 |
fi
|
6066 | 7427 |
done
|
6067 | 7428 |
if test -z "$haveit"; then
|
6068 | |
if test -d "$additional_libdir"; then
|
6069 | |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
|
|
7429 |
if test -d "$dependency_libdir"; then
|
|
7430 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
|
6070 | 7431 |
fi
|
6071 | 7432 |
fi
|
6072 | 7433 |
haveit=
|
|
6080 | 7441 |
exec_prefix="$acl_save_exec_prefix"
|
6081 | 7442 |
prefix="$acl_save_prefix"
|
6082 | 7443 |
|
6083 | |
if test "X$x" = "X-L$additional_libdir"; then
|
|
7444 |
if test "X$x" = "X-L$dependency_libdir"; then
|
6084 | 7445 |
haveit=yes
|
6085 | 7446 |
break
|
6086 | 7447 |
fi
|
6087 | 7448 |
done
|
6088 | 7449 |
if test -z "$haveit"; then
|
6089 | |
if test -d "$additional_libdir"; then
|
6090 | |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
|
|
7450 |
if test -d "$dependency_libdir"; then
|
|
7451 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
|
6091 | 7452 |
fi
|
6092 | 7453 |
fi
|
6093 | 7454 |
fi
|
|
6176 | 7537 |
|
6177 | 7538 |
|
6178 | 7539 |
|
6179 | |
|
6180 | 7540 |
am_save_CPPFLAGS="$CPPFLAGS"
|
6181 | 7541 |
|
6182 | 7542 |
for element in $INCICONV; do
|
|
6202 | 7562 |
done
|
6203 | 7563 |
|
6204 | 7564 |
|
6205 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
|
6206 | |
$as_echo_n "checking for iconv... " >&6; }
|
6207 | |
if ${am_cv_func_iconv+:} false; then :
|
6208 | |
$as_echo_n "(cached) " >&6
|
6209 | |
else
|
|
7565 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
|
|
7566 |
printf %s "checking for iconv... " >&6; }
|
|
7567 |
if test ${am_cv_func_iconv+y}
|
|
7568 |
then :
|
|
7569 |
printf %s "(cached) " >&6
|
|
7570 |
else $as_nop
|
6210 | 7571 |
|
6211 | 7572 |
am_cv_func_iconv="no, consider installing GNU libiconv"
|
6212 | 7573 |
am_cv_lib_iconv=no
|
|
6217 | 7578 |
#include <iconv.h>
|
6218 | 7579 |
|
6219 | 7580 |
int
|
6220 | |
main ()
|
|
7581 |
main (void)
|
6221 | 7582 |
{
|
6222 | 7583 |
iconv_t cd = iconv_open("","");
|
6223 | 7584 |
iconv(cd,NULL,NULL,NULL,NULL);
|
|
6226 | 7587 |
return 0;
|
6227 | 7588 |
}
|
6228 | 7589 |
_ACEOF
|
6229 | |
if ac_fn_c_try_link "$LINENO"; then :
|
|
7590 |
if ac_fn_c_try_link "$LINENO"
|
|
7591 |
then :
|
6230 | 7592 |
am_cv_func_iconv=yes
|
6231 | 7593 |
fi
|
6232 | |
rm -f core conftest.err conftest.$ac_objext \
|
|
7594 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
6233 | 7595 |
conftest$ac_exeext conftest.$ac_ext
|
6234 | 7596 |
if test "$am_cv_func_iconv" != yes; then
|
6235 | 7597 |
am_save_LIBS="$LIBS"
|
|
6241 | 7603 |
#include <iconv.h>
|
6242 | 7604 |
|
6243 | 7605 |
int
|
6244 | |
main ()
|
|
7606 |
main (void)
|
6245 | 7607 |
{
|
6246 | 7608 |
iconv_t cd = iconv_open("","");
|
6247 | 7609 |
iconv(cd,NULL,NULL,NULL,NULL);
|
|
6250 | 7612 |
return 0;
|
6251 | 7613 |
}
|
6252 | 7614 |
_ACEOF
|
6253 | |
if ac_fn_c_try_link "$LINENO"; then :
|
|
7615 |
if ac_fn_c_try_link "$LINENO"
|
|
7616 |
then :
|
6254 | 7617 |
am_cv_lib_iconv=yes
|
6255 | 7618 |
am_cv_func_iconv=yes
|
6256 | 7619 |
fi
|
6257 | |
rm -f core conftest.err conftest.$ac_objext \
|
|
7620 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
6258 | 7621 |
conftest$ac_exeext conftest.$ac_ext
|
6259 | 7622 |
LIBS="$am_save_LIBS"
|
6260 | 7623 |
fi
|
6261 | 7624 |
|
6262 | 7625 |
fi
|
6263 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
|
6264 | |
$as_echo "$am_cv_func_iconv" >&6; }
|
|
7626 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
|
|
7627 |
printf "%s\n" "$am_cv_func_iconv" >&6; }
|
6265 | 7628 |
if test "$am_cv_func_iconv" = yes; then
|
6266 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
|
6267 | |
$as_echo_n "checking for working iconv... " >&6; }
|
6268 | |
if ${am_cv_func_iconv_works+:} false; then :
|
6269 | |
$as_echo_n "(cached) " >&6
|
6270 | |
else
|
|
7629 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
|
|
7630 |
printf %s "checking for working iconv... " >&6; }
|
|
7631 |
if test ${am_cv_func_iconv_works+y}
|
|
7632 |
then :
|
|
7633 |
printf %s "(cached) " >&6
|
|
7634 |
else $as_nop
|
6271 | 7635 |
|
6272 | 7636 |
am_save_LIBS="$LIBS"
|
6273 | 7637 |
if test $am_cv_lib_iconv = yes; then
|
|
6275 | 7639 |
fi
|
6276 | 7640 |
am_cv_func_iconv_works=no
|
6277 | 7641 |
for ac_iconv_const in '' 'const'; do
|
6278 | |
if test "$cross_compiling" = yes; then :
|
|
7642 |
if test "$cross_compiling" = yes
|
|
7643 |
then :
|
6279 | 7644 |
case "$host_os" in
|
6280 | 7645 |
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
|
6281 | 7646 |
*) am_cv_func_iconv_works="guessing yes" ;;
|
6282 | 7647 |
esac
|
6283 | |
else
|
|
7648 |
else $as_nop
|
6284 | 7649 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
6285 | 7650 |
/* end confdefs.h. */
|
6286 | 7651 |
|
|
6292 | 7657 |
#endif
|
6293 | 7658 |
|
6294 | 7659 |
int
|
6295 | |
main ()
|
|
7660 |
main (void)
|
6296 | 7661 |
{
|
6297 | 7662 |
int result = 0;
|
6298 | 7663 |
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
|
|
6377 | 7742 |
#endif
|
6378 | 7743 |
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
|
6379 | 7744 |
provided. */
|
6380 | |
if (/* Try standardized names. */
|
6381 | |
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
|
6382 | |
/* Try IRIX, OSF/1 names. */
|
6383 | |
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
|
6384 | |
/* Try AIX names. */
|
6385 | |
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
|
6386 | |
/* Try HP-UX names. */
|
6387 | |
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
|
6388 | |
result |= 16;
|
|
7745 |
{
|
|
7746 |
/* Try standardized names. */
|
|
7747 |
iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
|
|
7748 |
/* Try IRIX, OSF/1 names. */
|
|
7749 |
iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
|
|
7750 |
/* Try AIX names. */
|
|
7751 |
iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
|
|
7752 |
/* Try HP-UX names. */
|
|
7753 |
iconv_t cd4 = iconv_open ("utf8", "eucJP");
|
|
7754 |
if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
|
|
7755 |
&& cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
|
|
7756 |
result |= 16;
|
|
7757 |
if (cd1 != (iconv_t)(-1))
|
|
7758 |
iconv_close (cd1);
|
|
7759 |
if (cd2 != (iconv_t)(-1))
|
|
7760 |
iconv_close (cd2);
|
|
7761 |
if (cd3 != (iconv_t)(-1))
|
|
7762 |
iconv_close (cd3);
|
|
7763 |
if (cd4 != (iconv_t)(-1))
|
|
7764 |
iconv_close (cd4);
|
|
7765 |
}
|
6389 | 7766 |
return result;
|
6390 | 7767 |
|
6391 | 7768 |
;
|
6392 | 7769 |
return 0;
|
6393 | 7770 |
}
|
6394 | 7771 |
_ACEOF
|
6395 | |
if ac_fn_c_try_run "$LINENO"; then :
|
|
7772 |
if ac_fn_c_try_run "$LINENO"
|
|
7773 |
then :
|
6396 | 7774 |
am_cv_func_iconv_works=yes
|
6397 | 7775 |
fi
|
6398 | 7776 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
6404 | 7782 |
LIBS="$am_save_LIBS"
|
6405 | 7783 |
|
6406 | 7784 |
fi
|
6407 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
|
6408 | |
$as_echo "$am_cv_func_iconv_works" >&6; }
|
|
7785 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
|
|
7786 |
printf "%s\n" "$am_cv_func_iconv_works" >&6; }
|
6409 | 7787 |
case "$am_cv_func_iconv_works" in
|
6410 | 7788 |
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
|
6411 | 7789 |
*) am_func_iconv=yes ;;
|
|
6415 | 7793 |
fi
|
6416 | 7794 |
if test "$am_func_iconv" = yes; then
|
6417 | 7795 |
|
6418 | |
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
|
|
7796 |
printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
|
6419 | 7797 |
|
6420 | 7798 |
fi
|
6421 | 7799 |
if test "$am_cv_lib_iconv" = yes; then
|
6422 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
|
6423 | |
$as_echo_n "checking how to link with libiconv... " >&6; }
|
6424 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
|
6425 | |
$as_echo "$LIBICONV" >&6; }
|
|
7800 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
|
|
7801 |
printf %s "checking how to link with libiconv... " >&6; }
|
|
7802 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
|
|
7803 |
printf "%s\n" "$LIBICONV" >&6; }
|
6426 | 7804 |
else
|
6427 | 7805 |
CPPFLAGS="$am_save_CPPFLAGS"
|
6428 | 7806 |
LIBICONV=
|
|
6432 | 7810 |
|
6433 | 7811 |
|
6434 | 7812 |
if test "$am_cv_func_iconv" = yes; then
|
6435 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
|
6436 | |
$as_echo_n "checking for iconv declaration... " >&6; }
|
6437 | |
if ${am_cv_proto_iconv+:} false; then :
|
6438 | |
$as_echo_n "(cached) " >&6
|
6439 | |
else
|
|
7813 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
|
|
7814 |
printf %s "checking for iconv declaration... " >&6; }
|
|
7815 |
if test ${am_cv_proto_iconv+y}
|
|
7816 |
then :
|
|
7817 |
printf %s "(cached) " >&6
|
|
7818 |
else $as_nop
|
6440 | 7819 |
|
6441 | 7820 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
6442 | 7821 |
/* end confdefs.h. */
|
|
6454 | 7833 |
#endif
|
6455 | 7834 |
|
6456 | 7835 |
int
|
6457 | |
main ()
|
|
7836 |
main (void)
|
6458 | 7837 |
{
|
6459 | 7838 |
|
6460 | 7839 |
;
|
6461 | 7840 |
return 0;
|
6462 | 7841 |
}
|
6463 | 7842 |
_ACEOF
|
6464 | |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
7843 |
if ac_fn_c_try_compile "$LINENO"
|
|
7844 |
then :
|
6465 | 7845 |
am_cv_proto_iconv_arg1=""
|
6466 | |
else
|
|
7846 |
else $as_nop
|
6467 | 7847 |
am_cv_proto_iconv_arg1="const"
|
6468 | 7848 |
fi
|
6469 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7849 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
6470 | 7850 |
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);"
|
6471 | 7851 |
fi
|
6472 | 7852 |
|
6473 | 7853 |
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
6474 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
|
|
7854 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
|
6475 | 7855 |
$am_cv_proto_iconv" >&5
|
6476 | |
$as_echo "
|
|
7856 |
printf "%s\n" "
|
6477 | 7857 |
$am_cv_proto_iconv" >&6; }
|
6478 | |
|
6479 | |
cat >>confdefs.h <<_ACEOF
|
6480 | |
#define ICONV_CONST $am_cv_proto_iconv_arg1
|
6481 | |
_ACEOF
|
6482 | |
|
6483 | |
|
|
7858 |
else
|
|
7859 |
am_cv_proto_iconv_arg1=""
|
6484 | 7860 |
fi
|
|
7861 |
|
|
7862 |
printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
|
|
7863 |
|
|
7864 |
|
6485 | 7865 |
|
6486 | 7866 |
fi
|
6487 | 7867 |
|
6488 | 7868 |
# xxd (distributed with vim) is used in the testsuite
|
6489 | 7869 |
# Extract the first word of "xxd", so it can be a program name with args.
|
6490 | 7870 |
set dummy xxd; ac_word=$2
|
6491 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
6492 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
6493 | |
if ${ac_cv_prog_XXD_FOUND+:} false; then :
|
6494 | |
$as_echo_n "(cached) " >&6
|
6495 | |
else
|
|
7871 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
7872 |
printf %s "checking for $ac_word... " >&6; }
|
|
7873 |
if test ${ac_cv_prog_XXD_FOUND+y}
|
|
7874 |
then :
|
|
7875 |
printf %s "(cached) " >&6
|
|
7876 |
else $as_nop
|
6496 | 7877 |
if test -n "$XXD_FOUND"; then
|
6497 | 7878 |
ac_cv_prog_XXD_FOUND="$XXD_FOUND" # Let the user override the test.
|
6498 | 7879 |
else
|
|
6500 | 7881 |
for as_dir in $PATH
|
6501 | 7882 |
do
|
6502 | 7883 |
IFS=$as_save_IFS
|
6503 | |
test -z "$as_dir" && as_dir=.
|
|
7884 |
case $as_dir in #(((
|
|
7885 |
'') as_dir=./ ;;
|
|
7886 |
*/) ;;
|
|
7887 |
*) as_dir=$as_dir/ ;;
|
|
7888 |
esac
|
6504 | 7889 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
6505 | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
7890 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
6506 | 7891 |
ac_cv_prog_XXD_FOUND="yes"
|
6507 | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
7892 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
6508 | 7893 |
break 2
|
6509 | 7894 |
fi
|
6510 | 7895 |
done
|
|
6515 | 7900 |
fi
|
6516 | 7901 |
XXD_FOUND=$ac_cv_prog_XXD_FOUND
|
6517 | 7902 |
if test -n "$XXD_FOUND"; then
|
6518 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XXD_FOUND" >&5
|
6519 | |
$as_echo "$XXD_FOUND" >&6; }
|
|
7903 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XXD_FOUND" >&5
|
|
7904 |
printf "%s\n" "$XXD_FOUND" >&6; }
|
6520 | 7905 |
else
|
6521 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
6522 | |
$as_echo "no" >&6; }
|
|
7906 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7907 |
printf "%s\n" "no" >&6; }
|
6523 | 7908 |
fi
|
6524 | 7909 |
|
6525 | 7910 |
|
|
6564 | 7949 |
case $ac_val in #(
|
6565 | 7950 |
*${as_nl}*)
|
6566 | 7951 |
case $ac_var in #(
|
6567 | |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
6568 | |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
|
7952 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
|
7953 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
6569 | 7954 |
esac
|
6570 | 7955 |
case $ac_var in #(
|
6571 | 7956 |
_ | IFS | as_nl) ;; #(
|
|
6595 | 7980 |
/^ac_cv_env_/b end
|
6596 | 7981 |
t clear
|
6597 | 7982 |
:clear
|
6598 | |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
|
7983 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
|
6599 | 7984 |
t end
|
6600 | 7985 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
6601 | 7986 |
:end' >>confcache
|
6602 | 7987 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
6603 | 7988 |
if test -w "$cache_file"; then
|
6604 | 7989 |
if test "x$cache_file" != "x/dev/null"; then
|
6605 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
6606 | |
$as_echo "$as_me: updating cache $cache_file" >&6;}
|
|
7990 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
|
7991 |
printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
|
6607 | 7992 |
if test ! -f "$cache_file" || test -h "$cache_file"; then
|
6608 | 7993 |
cat confcache >"$cache_file"
|
6609 | 7994 |
else
|
|
6617 | 8002 |
fi
|
6618 | 8003 |
fi
|
6619 | 8004 |
else
|
6620 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
6621 | |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
|
8005 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
|
8006 |
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
|
6622 | 8007 |
fi
|
6623 | 8008 |
fi
|
6624 | 8009 |
rm -f confcache
|
|
6671 | 8056 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
6672 | 8057 |
# 1. Remove the extension, and $U if already installed.
|
6673 | 8058 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
6674 | |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
|
8059 |
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
|
6675 | 8060 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
6676 | 8061 |
# will be set to the directory where LIBOBJS objects are built.
|
6677 | 8062 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
|
6682 | 8067 |
LTLIBOBJS=$ac_ltlibobjs
|
6683 | 8068 |
|
6684 | 8069 |
|
6685 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
|
6686 | |
$as_echo_n "checking that generated files are newer than configure... " >&6; }
|
|
8070 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
|
|
8071 |
printf %s "checking that generated files are newer than configure... " >&6; }
|
6687 | 8072 |
if test -n "$am_sleep_pid"; then
|
6688 | 8073 |
# Hide warnings about reused PIDs.
|
6689 | 8074 |
wait $am_sleep_pid 2>/dev/null
|
6690 | 8075 |
fi
|
6691 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
|
6692 | |
$as_echo "done" >&6; }
|
|
8076 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
|
|
8077 |
printf "%s\n" "done" >&6; }
|
6693 | 8078 |
if test -n "$EXEEXT"; then
|
6694 | 8079 |
am__EXEEXT_TRUE=
|
6695 | 8080 |
am__EXEEXT_FALSE='#'
|
|
6723 | 8108 |
ac_write_fail=0
|
6724 | 8109 |
ac_clean_files_save=$ac_clean_files
|
6725 | 8110 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
6726 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
6727 | |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
|
8111 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
|
8112 |
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
|
6728 | 8113 |
as_write_fail=0
|
6729 | 8114 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
6730 | 8115 |
#! $SHELL
|
|
6747 | 8132 |
|
6748 | 8133 |
# Be more Bourne compatible
|
6749 | 8134 |
DUALCASE=1; export DUALCASE # for MKS sh
|
6750 | |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
|
8135 |
as_nop=:
|
|
8136 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
|
8137 |
then :
|
6751 | 8138 |
emulate sh
|
6752 | 8139 |
NULLCMD=:
|
6753 | 8140 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
6754 | 8141 |
# is contrary to our usage. Disable this feature.
|
6755 | 8142 |
alias -g '${1+"$@"}'='"$@"'
|
6756 | 8143 |
setopt NO_GLOB_SUBST
|
6757 | |
else
|
|
8144 |
else $as_nop
|
6758 | 8145 |
case `(set -o) 2>/dev/null` in #(
|
6759 | 8146 |
*posix*) :
|
6760 | 8147 |
set -o posix ;; #(
|
|
6764 | 8151 |
fi
|
6765 | 8152 |
|
6766 | 8153 |
|
|
8154 |
|
|
8155 |
# Reset variables that may have inherited troublesome values from
|
|
8156 |
# the environment.
|
|
8157 |
|
|
8158 |
# IFS needs to be set, to space, tab, and newline, in precisely that order.
|
|
8159 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the
|
|
8160 |
# side effect of setting IFS to empty, thus disabling word splitting.)
|
|
8161 |
# Quoting is to prevent editors from complaining about space-tab.
|
6767 | 8162 |
as_nl='
|
6768 | 8163 |
'
|
6769 | 8164 |
export as_nl
|
6770 | |
# Printing a long string crashes Solaris 7 /usr/bin/printf.
|
6771 | |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
6772 | |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
6773 | |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
6774 | |
# Prefer a ksh shell builtin over an external printf program on Solaris,
|
6775 | |
# but without wasting forks for bash or zsh.
|
6776 | |
if test -z "$BASH_VERSION$ZSH_VERSION" \
|
6777 | |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
6778 | |
as_echo='print -r --'
|
6779 | |
as_echo_n='print -rn --'
|
6780 | |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
6781 | |
as_echo='printf %s\n'
|
6782 | |
as_echo_n='printf %s'
|
6783 | |
else
|
6784 | |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
6785 | |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
6786 | |
as_echo_n='/usr/ucb/echo -n'
|
6787 | |
else
|
6788 | |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
6789 | |
as_echo_n_body='eval
|
6790 | |
arg=$1;
|
6791 | |
case $arg in #(
|
6792 | |
*"$as_nl"*)
|
6793 | |
expr "X$arg" : "X\\(.*\\)$as_nl";
|
6794 | |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
6795 | |
esac;
|
6796 | |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
6797 | |
'
|
6798 | |
export as_echo_n_body
|
6799 | |
as_echo_n='sh -c $as_echo_n_body as_echo'
|
6800 | |
fi
|
6801 | |
export as_echo_body
|
6802 | |
as_echo='sh -c $as_echo_body as_echo'
|
6803 | |
fi
|
|
8165 |
IFS=" "" $as_nl"
|
|
8166 |
|
|
8167 |
PS1='$ '
|
|
8168 |
PS2='> '
|
|
8169 |
PS4='+ '
|
|
8170 |
|
|
8171 |
# Ensure predictable behavior from utilities with locale-dependent output.
|
|
8172 |
LC_ALL=C
|
|
8173 |
export LC_ALL
|
|
8174 |
LANGUAGE=C
|
|
8175 |
export LANGUAGE
|
|
8176 |
|
|
8177 |
# We cannot yet rely on "unset" to work, but we need these variables
|
|
8178 |
# to be unset--not just set to an empty or harmless value--now, to
|
|
8179 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
|
|
8180 |
# also avoids known problems related to "unset" and subshell syntax
|
|
8181 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
|
|
8182 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
|
|
8183 |
do eval test \${$as_var+y} \
|
|
8184 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
|
8185 |
done
|
|
8186 |
|
|
8187 |
# Ensure that fds 0, 1, and 2 are open.
|
|
8188 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
|
|
8189 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
|
|
8190 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
|
6804 | 8191 |
|
6805 | 8192 |
# The user is always right.
|
6806 | |
if test "${PATH_SEPARATOR+set}" != set; then
|
|
8193 |
if ${PATH_SEPARATOR+false} :; then
|
6807 | 8194 |
PATH_SEPARATOR=:
|
6808 | 8195 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
6809 | 8196 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
|
6811 | 8198 |
}
|
6812 | 8199 |
fi
|
6813 | 8200 |
|
6814 | |
|
6815 | |
# IFS
|
6816 | |
# We need space, tab and new line, in precisely that order. Quoting is
|
6817 | |
# there to prevent editors from complaining about space-tab.
|
6818 | |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
6819 | |
# splitting by setting IFS to empty value.)
|
6820 | |
IFS=" "" $as_nl"
|
6821 | 8201 |
|
6822 | 8202 |
# Find who we are. Look in the path if we contain no directory separator.
|
6823 | 8203 |
as_myself=
|
|
6827 | 8207 |
for as_dir in $PATH
|
6828 | 8208 |
do
|
6829 | 8209 |
IFS=$as_save_IFS
|
6830 | |
test -z "$as_dir" && as_dir=.
|
6831 | |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
8210 |
case $as_dir in #(((
|
|
8211 |
'') as_dir=./ ;;
|
|
8212 |
*/) ;;
|
|
8213 |
*) as_dir=$as_dir/ ;;
|
|
8214 |
esac
|
|
8215 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break
|
6832 | 8216 |
done
|
6833 | 8217 |
IFS=$as_save_IFS
|
6834 | 8218 |
|
|
6840 | 8224 |
as_myself=$0
|
6841 | 8225 |
fi
|
6842 | 8226 |
if test ! -f "$as_myself"; then
|
6843 | |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
8227 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
6844 | 8228 |
exit 1
|
6845 | 8229 |
fi
|
6846 | 8230 |
|
6847 | |
# Unset variables that we do not need and which cause bugs (e.g. in
|
6848 | |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
6849 | |
# suppresses any "Segmentation fault" message there. '((' could
|
6850 | |
# trigger a bug in pdksh 5.2.14.
|
6851 | |
for as_var in BASH_ENV ENV MAIL MAILPATH
|
6852 | |
do eval test x\${$as_var+set} = xset \
|
6853 | |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
6854 | |
done
|
6855 | |
PS1='$ '
|
6856 | |
PS2='> '
|
6857 | |
PS4='+ '
|
6858 | |
|
6859 | |
# NLS nuisances.
|
6860 | |
LC_ALL=C
|
6861 | |
export LC_ALL
|
6862 | |
LANGUAGE=C
|
6863 | |
export LANGUAGE
|
6864 | |
|
6865 | |
# CDPATH.
|
6866 | |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
6867 | 8231 |
|
6868 | 8232 |
|
6869 | 8233 |
# as_fn_error STATUS ERROR [LINENO LOG_FD]
|
|
6876 | 8240 |
as_status=$1; test $as_status -eq 0 && as_status=1
|
6877 | 8241 |
if test "$4"; then
|
6878 | 8242 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
6879 | |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
|
8243 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
6880 | 8244 |
fi
|
6881 | |
$as_echo "$as_me: error: $2" >&2
|
|
8245 |
printf "%s\n" "$as_me: error: $2" >&2
|
6882 | 8246 |
as_fn_exit $as_status
|
6883 | 8247 |
} # as_fn_error
|
|
8248 |
|
6884 | 8249 |
|
6885 | 8250 |
|
6886 | 8251 |
# as_fn_set_status STATUS
|
|
6909 | 8274 |
{ eval $1=; unset $1;}
|
6910 | 8275 |
}
|
6911 | 8276 |
as_unset=as_fn_unset
|
|
8277 |
|
6912 | 8278 |
# as_fn_append VAR VALUE
|
6913 | 8279 |
# ----------------------
|
6914 | 8280 |
# Append the text in VALUE to the end of the definition contained in VAR. Take
|
6915 | 8281 |
# advantage of any shell optimizations that allow amortized linear growth over
|
6916 | 8282 |
# repeated appends, instead of the typical quadratic growth present in naive
|
6917 | 8283 |
# implementations.
|
6918 | |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
|
8284 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
|
|
8285 |
then :
|
6919 | 8286 |
eval 'as_fn_append ()
|
6920 | 8287 |
{
|
6921 | 8288 |
eval $1+=\$2
|
6922 | 8289 |
}'
|
6923 | |
else
|
|
8290 |
else $as_nop
|
6924 | 8291 |
as_fn_append ()
|
6925 | 8292 |
{
|
6926 | 8293 |
eval $1=\$$1\$2
|
|
6932 | 8299 |
# Perform arithmetic evaluation on the ARGs, and store the result in the
|
6933 | 8300 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments
|
6934 | 8301 |
# must be portable across $(()) and expr.
|
6935 | |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
|
8302 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
|
|
8303 |
then :
|
6936 | 8304 |
eval 'as_fn_arith ()
|
6937 | 8305 |
{
|
6938 | 8306 |
as_val=$(( $* ))
|
6939 | 8307 |
}'
|
6940 | |
else
|
|
8308 |
else $as_nop
|
6941 | 8309 |
as_fn_arith ()
|
6942 | 8310 |
{
|
6943 | 8311 |
as_val=`expr "$@" || test $? -eq 1`
|
|
6968 | 8336 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
6969 | 8337 |
X"$0" : 'X\(//\)$' \| \
|
6970 | 8338 |
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
6971 | |
$as_echo X/"$0" |
|
|
8339 |
printf "%s\n" X/"$0" |
|
6972 | 8340 |
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
6973 | 8341 |
s//\1/
|
6974 | 8342 |
q
|
|
6990 | 8358 |
as_cr_digits='0123456789'
|
6991 | 8359 |
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
6992 | 8360 |
|
|
8361 |
|
|
8362 |
# Determine whether it's possible to make 'echo' print without a newline.
|
|
8363 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
|
|
8364 |
# for compatibility with existing Makefiles.
|
6993 | 8365 |
ECHO_C= ECHO_N= ECHO_T=
|
6994 | 8366 |
case `echo -n x` in #(((((
|
6995 | 8367 |
-n*)
|
|
7002 | 8374 |
*)
|
7003 | 8375 |
ECHO_N='-n';;
|
7004 | 8376 |
esac
|
|
8377 |
|
|
8378 |
# For backward compatibility with old third-party macros, we provide
|
|
8379 |
# the shell variables $as_echo and $as_echo_n. New code should use
|
|
8380 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
|
|
8381 |
as_echo='printf %s\n'
|
|
8382 |
as_echo_n='printf %s'
|
7005 | 8383 |
|
7006 | 8384 |
rm -f conf$$ conf$$.exe conf$$.file
|
7007 | 8385 |
if test -d conf$$.dir; then
|
|
7044 | 8422 |
as_dirs=
|
7045 | 8423 |
while :; do
|
7046 | 8424 |
case $as_dir in #(
|
7047 | |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
|
8425 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
7048 | 8426 |
*) as_qdir=$as_dir;;
|
7049 | 8427 |
esac
|
7050 | 8428 |
as_dirs="'$as_qdir' $as_dirs"
|
|
7053 | 8431 |
X"$as_dir" : 'X\(//\)[^/]' \| \
|
7054 | 8432 |
X"$as_dir" : 'X\(//\)$' \| \
|
7055 | 8433 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
7056 | |
$as_echo X"$as_dir" |
|
|
8434 |
printf "%s\n" X"$as_dir" |
|
7057 | 8435 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
7058 | 8436 |
s//\1/
|
7059 | 8437 |
q
|
|
7115 | 8493 |
# report actual input values of CONFIG_FILES etc. instead of their
|
7116 | 8494 |
# values after options handling.
|
7117 | 8495 |
ac_log="
|
7118 | |
This file was extended by dosfstools $as_me 4.2, which was
|
7119 | |
generated by GNU Autoconf 2.69. Invocation command line was
|
|
8496 |
This file was extended by dosfstools $as_me 4.2+git, which was
|
|
8497 |
generated by GNU Autoconf 2.71. Invocation command line was
|
7120 | 8498 |
|
7121 | 8499 |
CONFIG_FILES = $CONFIG_FILES
|
7122 | 8500 |
CONFIG_HEADERS = $CONFIG_HEADERS
|
|
7169 | 8547 |
Report bugs to the package provider."
|
7170 | 8548 |
|
7171 | 8549 |
_ACEOF
|
|
8550 |
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
|
|
8551 |
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
|
7172 | 8552 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
7173 | |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
|
8553 |
ac_cs_config='$ac_cs_config_escaped'
|
7174 | 8554 |
ac_cs_version="\\
|
7175 | |
dosfstools config.status 4.2
|
7176 | |
configured by $0, generated by GNU Autoconf 2.69,
|
|
8555 |
dosfstools config.status 4.2+git
|
|
8556 |
configured by $0, generated by GNU Autoconf 2.71,
|
7177 | 8557 |
with options \\"\$ac_cs_config\\"
|
7178 | 8558 |
|
7179 | |
Copyright (C) 2012 Free Software Foundation, Inc.
|
|
8559 |
Copyright (C) 2021 Free Software Foundation, Inc.
|
7180 | 8560 |
This config.status script is free software; the Free Software Foundation
|
7181 | 8561 |
gives unlimited permission to copy, distribute and modify it."
|
7182 | 8562 |
|
|
7216 | 8596 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
7217 | 8597 |
ac_cs_recheck=: ;;
|
7218 | 8598 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
7219 | |
$as_echo "$ac_cs_version"; exit ;;
|
|
8599 |
printf "%s\n" "$ac_cs_version"; exit ;;
|
7220 | 8600 |
--config | --confi | --conf | --con | --co | --c )
|
7221 | |
$as_echo "$ac_cs_config"; exit ;;
|
|
8601 |
printf "%s\n" "$ac_cs_config"; exit ;;
|
7222 | 8602 |
--debug | --debu | --deb | --de | --d | -d )
|
7223 | 8603 |
debug=: ;;
|
7224 | 8604 |
--file | --fil | --fi | --f )
|
7225 | 8605 |
$ac_shift
|
7226 | 8606 |
case $ac_optarg in
|
7227 | |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
8607 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
7228 | 8608 |
'') as_fn_error $? "missing file argument" ;;
|
7229 | 8609 |
esac
|
7230 | 8610 |
as_fn_append CONFIG_FILES " '$ac_optarg'"
|
7231 | 8611 |
ac_need_defaults=false;;
|
7232 | 8612 |
--he | --h | --help | --hel | -h )
|
7233 | |
$as_echo "$ac_cs_usage"; exit ;;
|
|
8613 |
printf "%s\n" "$ac_cs_usage"; exit ;;
|
7234 | 8614 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
7235 | 8615 |
| -silent | --silent | --silen | --sile | --sil | --si | --s)
|
7236 | 8616 |
ac_cs_silent=: ;;
|
|
7258 | 8638 |
if \$ac_cs_recheck; then
|
7259 | 8639 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
7260 | 8640 |
shift
|
7261 | |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
|
8641 |
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
|
7262 | 8642 |
CONFIG_SHELL='$SHELL'
|
7263 | 8643 |
export CONFIG_SHELL
|
7264 | 8644 |
exec "\$@"
|
|
7272 | 8652 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
7273 | 8653 |
## Running $as_me. ##
|
7274 | 8654 |
_ASBOX
|
7275 | |
$as_echo "$ac_log"
|
|
8655 |
printf "%s\n" "$ac_log"
|
7276 | 8656 |
} >&5
|
7277 | 8657 |
|
7278 | 8658 |
_ACEOF
|
|
7310 | 8690 |
# We use the long form for the default assignment because of an extremely
|
7311 | 8691 |
# bizarre bug on SunOS 4.1.3.
|
7312 | 8692 |
if $ac_need_defaults; then
|
7313 | |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
7314 | |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
|
8693 |
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
|
|
8694 |
test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
|
7315 | 8695 |
fi
|
7316 | 8696 |
|
7317 | 8697 |
# Have a temporary directory for convenience. Make it in the build tree
|
|
7539 | 8919 |
esac ||
|
7540 | 8920 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
7541 | 8921 |
esac
|
7542 | |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
|
8922 |
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
7543 | 8923 |
as_fn_append ac_file_inputs " '$ac_f'"
|
7544 | 8924 |
done
|
7545 | 8925 |
|
|
7547 | 8927 |
# use $as_me), people would be surprised to read:
|
7548 | 8928 |
# /* config.h. Generated by config.status. */
|
7549 | 8929 |
configure_input='Generated from '`
|
7550 | |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
|
8930 |
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
7551 | 8931 |
`' by configure.'
|
7552 | 8932 |
if test x"$ac_file" != x-; then
|
7553 | 8933 |
configure_input="$ac_file. $configure_input"
|
7554 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
7555 | |
$as_echo "$as_me: creating $ac_file" >&6;}
|
|
8934 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
|
8935 |
printf "%s\n" "$as_me: creating $ac_file" >&6;}
|
7556 | 8936 |
fi
|
7557 | 8937 |
# Neutralize special characters interpreted by sed in replacement strings.
|
7558 | 8938 |
case $configure_input in #(
|
7559 | 8939 |
*\&* | *\|* | *\\* )
|
7560 | |
ac_sed_conf_input=`$as_echo "$configure_input" |
|
|
8940 |
ac_sed_conf_input=`printf "%s\n" "$configure_input" |
|
7561 | 8941 |
sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
7562 | 8942 |
*) ac_sed_conf_input=$configure_input;;
|
7563 | 8943 |
esac
|
|
7574 | 8954 |
X"$ac_file" : 'X\(//\)[^/]' \| \
|
7575 | 8955 |
X"$ac_file" : 'X\(//\)$' \| \
|
7576 | 8956 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
7577 | |
$as_echo X"$ac_file" |
|
|
8957 |
printf "%s\n" X"$ac_file" |
|
7578 | 8958 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
7579 | 8959 |
s//\1/
|
7580 | 8960 |
q
|
|
7598 | 8978 |
case "$ac_dir" in
|
7599 | 8979 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
7600 | 8980 |
*)
|
7601 | |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
|
8981 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
|
7602 | 8982 |
# A ".." for each directory in $ac_dir_suffix.
|
7603 | |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
|
8983 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
7604 | 8984 |
case $ac_top_builddir_sub in
|
7605 | 8985 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
7606 | 8986 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
7662 | 9042 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
7663 | 9043 |
*datarootdir*) ac_datarootdir_seen=yes;;
|
7664 | 9044 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
7665 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
7666 | |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
|
9045 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
|
9046 |
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
7667 | 9047 |
_ACEOF
|
7668 | 9048 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
7669 | 9049 |
ac_datarootdir_hack='
|
|
7707 | 9087 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
7708 | 9088 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
7709 | 9089 |
"$ac_tmp/out"`; test -z "$ac_out"; } &&
|
7710 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
9090 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
7711 | 9091 |
which seems to be undefined. Please make sure it is defined" >&5
|
7712 | |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
9092 |
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
7713 | 9093 |
which seems to be undefined. Please make sure it is defined" >&2;}
|
7714 | 9094 |
|
7715 | 9095 |
rm -f "$ac_tmp/stdin"
|
|
7721 | 9101 |
;;
|
7722 | 9102 |
|
7723 | 9103 |
|
7724 | |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
7725 | |
$as_echo "$as_me: executing $ac_file commands" >&6;}
|
|
9104 |
:C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
|
9105 |
printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
|
7726 | 9106 |
;;
|
7727 | 9107 |
esac
|
7728 | 9108 |
|
|
7748 | 9128 |
for am_mf
|
7749 | 9129 |
do
|
7750 | 9130 |
# Strip MF so we end up with the name of the file.
|
7751 | |
am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
|
|
9131 |
am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
|
7752 | 9132 |
# Check whether this is an Automake generated Makefile which includes
|
7753 | 9133 |
# dependency-tracking related rules and includes.
|
7754 | 9134 |
# Grep'ing the whole file directly is not great: AIX grep has a line
|
|
7760 | 9140 |
X"$am_mf" : 'X\(//\)[^/]' \| \
|
7761 | 9141 |
X"$am_mf" : 'X\(//\)$' \| \
|
7762 | 9142 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
|
7763 | |
$as_echo X"$am_mf" |
|
|
9143 |
printf "%s\n" X"$am_mf" |
|
7764 | 9144 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
7765 | 9145 |
s//\1/
|
7766 | 9146 |
q
|
|
7782 | 9162 |
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
|
7783 | 9163 |
X"$am_mf" : 'X\(//\)$' \| \
|
7784 | 9164 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
|
7785 | |
$as_echo X/"$am_mf" |
|
|
9165 |
printf "%s\n" X/"$am_mf" |
|
7786 | 9166 |
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
7787 | 9167 |
s//\1/
|
7788 | 9168 |
q
|
|
7807 | 9187 |
(exit $ac_status); } || am_rc=$?
|
7808 | 9188 |
done
|
7809 | 9189 |
if test $am_rc -ne 0; then
|
7810 | |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
7811 | |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
9190 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
9191 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
7812 | 9192 |
as_fn_error $? "Something went wrong bootstrapping makefile fragments
|
7813 | |
for automatic dependency tracking. Try re-running configure with the
|
|
9193 |
for automatic dependency tracking. If GNU make was not used, consider
|
|
9194 |
re-running the configure script with MAKE=\"gmake\" (or whatever is
|
|
9195 |
necessary). You can also try re-running configure with the
|
7814 | 9196 |
'--disable-dependency-tracking' option to at least be able to build
|
7815 | 9197 |
the package (albeit without support for automatic dependency tracking).
|
7816 | 9198 |
See \`config.log' for more details" "$LINENO" 5; }
|
|
7856 | 9238 |
$ac_cs_success || as_fn_exit 1
|
7857 | 9239 |
fi
|
7858 | 9240 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
7859 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
7860 | |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
7861 | |
fi
|
7862 | |
|
|
9241 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
|
9242 |
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
|
9243 |
fi
|
|
9244 |
|
|
9245 |
|