yarp 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CODE_OF_CONDUCT.md +76 -0
- data/CONTRIBUTING.md +51 -0
- data/LICENSE.md +7 -0
- data/Makefile.in +79 -0
- data/README.md +86 -0
- data/config.h.in +25 -0
- data/config.yml +2147 -0
- data/configure +4487 -0
- data/docs/build_system.md +85 -0
- data/docs/building.md +26 -0
- data/docs/configuration.md +56 -0
- data/docs/design.md +53 -0
- data/docs/encoding.md +116 -0
- data/docs/extension.md +20 -0
- data/docs/fuzzing.md +93 -0
- data/docs/heredocs.md +36 -0
- data/docs/mapping.md +117 -0
- data/docs/ripper.md +36 -0
- data/docs/serialization.md +130 -0
- data/docs/testing.md +55 -0
- data/ext/yarp/api_node.c +3680 -0
- data/ext/yarp/api_pack.c +256 -0
- data/ext/yarp/extconf.rb +131 -0
- data/ext/yarp/extension.c +547 -0
- data/ext/yarp/extension.h +18 -0
- data/include/yarp/ast.h +1412 -0
- data/include/yarp/defines.h +54 -0
- data/include/yarp/diagnostic.h +24 -0
- data/include/yarp/enc/yp_encoding.h +94 -0
- data/include/yarp/node.h +36 -0
- data/include/yarp/pack.h +141 -0
- data/include/yarp/parser.h +389 -0
- data/include/yarp/regexp.h +19 -0
- data/include/yarp/unescape.h +42 -0
- data/include/yarp/util/yp_buffer.h +39 -0
- data/include/yarp/util/yp_char.h +75 -0
- data/include/yarp/util/yp_constant_pool.h +64 -0
- data/include/yarp/util/yp_list.h +67 -0
- data/include/yarp/util/yp_memchr.h +14 -0
- data/include/yarp/util/yp_newline_list.h +54 -0
- data/include/yarp/util/yp_state_stack.h +24 -0
- data/include/yarp/util/yp_string.h +57 -0
- data/include/yarp/util/yp_string_list.h +28 -0
- data/include/yarp/util/yp_strpbrk.h +29 -0
- data/include/yarp/version.h +5 -0
- data/include/yarp.h +69 -0
- data/lib/yarp/lex_compat.rb +759 -0
- data/lib/yarp/node.rb +7428 -0
- data/lib/yarp/pack.rb +185 -0
- data/lib/yarp/ripper_compat.rb +174 -0
- data/lib/yarp/serialize.rb +389 -0
- data/lib/yarp.rb +330 -0
- data/src/diagnostic.c +25 -0
- data/src/enc/yp_big5.c +79 -0
- data/src/enc/yp_euc_jp.c +85 -0
- data/src/enc/yp_gbk.c +88 -0
- data/src/enc/yp_shift_jis.c +83 -0
- data/src/enc/yp_tables.c +509 -0
- data/src/enc/yp_unicode.c +2320 -0
- data/src/enc/yp_windows_31j.c +83 -0
- data/src/node.c +2011 -0
- data/src/pack.c +493 -0
- data/src/prettyprint.c +1782 -0
- data/src/regexp.c +580 -0
- data/src/serialize.c +1576 -0
- data/src/token_type.c +347 -0
- data/src/unescape.c +576 -0
- data/src/util/yp_buffer.c +78 -0
- data/src/util/yp_char.c +229 -0
- data/src/util/yp_constant_pool.c +147 -0
- data/src/util/yp_list.c +50 -0
- data/src/util/yp_memchr.c +31 -0
- data/src/util/yp_newline_list.c +119 -0
- data/src/util/yp_state_stack.c +25 -0
- data/src/util/yp_string.c +207 -0
- data/src/util/yp_string_list.c +32 -0
- data/src/util/yp_strncasecmp.c +20 -0
- data/src/util/yp_strpbrk.c +66 -0
- data/src/yarp.c +13211 -0
- data/yarp.gemspec +100 -0
- metadata +125 -0
data/configure
ADDED
@@ -0,0 +1,4487 @@
|
|
1
|
+
#! /bin/sh
|
2
|
+
# Guess values for system-dependent variables and create Makefiles.
|
3
|
+
# Generated by GNU Autoconf 2.71 for YARP _YP_VERSION.
|
4
|
+
#
|
5
|
+
# Report bugs to <https://github.com/ruby/yarp/issues/new>.
|
6
|
+
#
|
7
|
+
#
|
8
|
+
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
|
9
|
+
# Inc.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
# This configure script is free software; the Free Software Foundation
|
13
|
+
# gives unlimited permission to copy, distribute and modify it.
|
14
|
+
## -------------------- ##
|
15
|
+
## M4sh Initialization. ##
|
16
|
+
## -------------------- ##
|
17
|
+
|
18
|
+
# Be more Bourne compatible
|
19
|
+
DUALCASE=1; export DUALCASE # for MKS sh
|
20
|
+
as_nop=:
|
21
|
+
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
22
|
+
then :
|
23
|
+
emulate sh
|
24
|
+
NULLCMD=:
|
25
|
+
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
26
|
+
# is contrary to our usage. Disable this feature.
|
27
|
+
alias -g '${1+"$@"}'='"$@"'
|
28
|
+
setopt NO_GLOB_SUBST
|
29
|
+
else $as_nop
|
30
|
+
case `(set -o) 2>/dev/null` in #(
|
31
|
+
*posix*) :
|
32
|
+
set -o posix ;; #(
|
33
|
+
*) :
|
34
|
+
;;
|
35
|
+
esac
|
36
|
+
fi
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
# Reset variables that may have inherited troublesome values from
|
41
|
+
# the environment.
|
42
|
+
|
43
|
+
# IFS needs to be set, to space, tab, and newline, in precisely that order.
|
44
|
+
# (If _AS_PATH_WALK were called with IFS unset, it would have the
|
45
|
+
# side effect of setting IFS to empty, thus disabling word splitting.)
|
46
|
+
# Quoting is to prevent editors from complaining about space-tab.
|
47
|
+
as_nl='
|
48
|
+
'
|
49
|
+
export as_nl
|
50
|
+
IFS=" "" $as_nl"
|
51
|
+
|
52
|
+
PS1='$ '
|
53
|
+
PS2='> '
|
54
|
+
PS4='+ '
|
55
|
+
|
56
|
+
# Ensure predictable behavior from utilities with locale-dependent output.
|
57
|
+
LC_ALL=C
|
58
|
+
export LC_ALL
|
59
|
+
LANGUAGE=C
|
60
|
+
export LANGUAGE
|
61
|
+
|
62
|
+
# We cannot yet rely on "unset" to work, but we need these variables
|
63
|
+
# to be unset--not just set to an empty or harmless value--now, to
|
64
|
+
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
|
65
|
+
# also avoids known problems related to "unset" and subshell syntax
|
66
|
+
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
|
67
|
+
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
|
68
|
+
do eval test \${$as_var+y} \
|
69
|
+
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
70
|
+
done
|
71
|
+
|
72
|
+
# Ensure that fds 0, 1, and 2 are open.
|
73
|
+
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
|
74
|
+
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
|
75
|
+
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
|
76
|
+
|
77
|
+
# The user is always right.
|
78
|
+
if ${PATH_SEPARATOR+false} :; then
|
79
|
+
PATH_SEPARATOR=:
|
80
|
+
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
81
|
+
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
82
|
+
PATH_SEPARATOR=';'
|
83
|
+
}
|
84
|
+
fi
|
85
|
+
|
86
|
+
|
87
|
+
# Find who we are. Look in the path if we contain no directory separator.
|
88
|
+
as_myself=
|
89
|
+
case $0 in #((
|
90
|
+
*[\\/]* ) as_myself=$0 ;;
|
91
|
+
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
92
|
+
for as_dir in $PATH
|
93
|
+
do
|
94
|
+
IFS=$as_save_IFS
|
95
|
+
case $as_dir in #(((
|
96
|
+
'') as_dir=./ ;;
|
97
|
+
*/) ;;
|
98
|
+
*) as_dir=$as_dir/ ;;
|
99
|
+
esac
|
100
|
+
test -r "$as_dir$0" && as_myself=$as_dir$0 && break
|
101
|
+
done
|
102
|
+
IFS=$as_save_IFS
|
103
|
+
|
104
|
+
;;
|
105
|
+
esac
|
106
|
+
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
107
|
+
# in which case we are not to be found in the path.
|
108
|
+
if test "x$as_myself" = x; then
|
109
|
+
as_myself=$0
|
110
|
+
fi
|
111
|
+
if test ! -f "$as_myself"; then
|
112
|
+
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
113
|
+
exit 1
|
114
|
+
fi
|
115
|
+
|
116
|
+
|
117
|
+
# Use a proper internal environment variable to ensure we don't fall
|
118
|
+
# into an infinite loop, continuously re-executing ourselves.
|
119
|
+
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
120
|
+
_as_can_reexec=no; export _as_can_reexec;
|
121
|
+
# We cannot yet assume a decent shell, so we have to provide a
|
122
|
+
# neutralization value for shells without unset; and this also
|
123
|
+
# works around shells that cannot unset nonexistent variables.
|
124
|
+
# Preserve -v and -x to the replacement shell.
|
125
|
+
BASH_ENV=/dev/null
|
126
|
+
ENV=/dev/null
|
127
|
+
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
128
|
+
case $- in # ((((
|
129
|
+
*v*x* | *x*v* ) as_opts=-vx ;;
|
130
|
+
*v* ) as_opts=-v ;;
|
131
|
+
*x* ) as_opts=-x ;;
|
132
|
+
* ) as_opts= ;;
|
133
|
+
esac
|
134
|
+
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
135
|
+
# Admittedly, this is quite paranoid, since all the known shells bail
|
136
|
+
# out after a failed `exec'.
|
137
|
+
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
|
138
|
+
exit 255
|
139
|
+
fi
|
140
|
+
# We don't want this to propagate to other subprocesses.
|
141
|
+
{ _as_can_reexec=; unset _as_can_reexec;}
|
142
|
+
if test "x$CONFIG_SHELL" = x; then
|
143
|
+
as_bourne_compatible="as_nop=:
|
144
|
+
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
145
|
+
then :
|
146
|
+
emulate sh
|
147
|
+
NULLCMD=:
|
148
|
+
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
149
|
+
# is contrary to our usage. Disable this feature.
|
150
|
+
alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
151
|
+
setopt NO_GLOB_SUBST
|
152
|
+
else \$as_nop
|
153
|
+
case \`(set -o) 2>/dev/null\` in #(
|
154
|
+
*posix*) :
|
155
|
+
set -o posix ;; #(
|
156
|
+
*) :
|
157
|
+
;;
|
158
|
+
esac
|
159
|
+
fi
|
160
|
+
"
|
161
|
+
as_required="as_fn_return () { (exit \$1); }
|
162
|
+
as_fn_success () { as_fn_return 0; }
|
163
|
+
as_fn_failure () { as_fn_return 1; }
|
164
|
+
as_fn_ret_success () { return 0; }
|
165
|
+
as_fn_ret_failure () { return 1; }
|
166
|
+
|
167
|
+
exitcode=0
|
168
|
+
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
169
|
+
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
170
|
+
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
171
|
+
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
172
|
+
if ( set x; as_fn_ret_success y && test x = \"\$1\" )
|
173
|
+
then :
|
174
|
+
|
175
|
+
else \$as_nop
|
176
|
+
exitcode=1; echo positional parameters were not saved.
|
177
|
+
fi
|
178
|
+
test x\$exitcode = x0 || exit 1
|
179
|
+
blah=\$(echo \$(echo blah))
|
180
|
+
test x\"\$blah\" = xblah || exit 1
|
181
|
+
test -x / || exit 1"
|
182
|
+
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
183
|
+
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
184
|
+
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
185
|
+
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
|
186
|
+
if (eval "$as_required") 2>/dev/null
|
187
|
+
then :
|
188
|
+
as_have_required=yes
|
189
|
+
else $as_nop
|
190
|
+
as_have_required=no
|
191
|
+
fi
|
192
|
+
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
|
193
|
+
then :
|
194
|
+
|
195
|
+
else $as_nop
|
196
|
+
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
197
|
+
as_found=false
|
198
|
+
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
199
|
+
do
|
200
|
+
IFS=$as_save_IFS
|
201
|
+
case $as_dir in #(((
|
202
|
+
'') as_dir=./ ;;
|
203
|
+
*/) ;;
|
204
|
+
*) as_dir=$as_dir/ ;;
|
205
|
+
esac
|
206
|
+
as_found=:
|
207
|
+
case $as_dir in #(
|
208
|
+
/*)
|
209
|
+
for as_base in sh bash ksh sh5; do
|
210
|
+
# Try only shells that exist, to save several forks.
|
211
|
+
as_shell=$as_dir$as_base
|
212
|
+
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
213
|
+
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
|
214
|
+
then :
|
215
|
+
CONFIG_SHELL=$as_shell as_have_required=yes
|
216
|
+
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
|
217
|
+
then :
|
218
|
+
break 2
|
219
|
+
fi
|
220
|
+
fi
|
221
|
+
done;;
|
222
|
+
esac
|
223
|
+
as_found=false
|
224
|
+
done
|
225
|
+
IFS=$as_save_IFS
|
226
|
+
if $as_found
|
227
|
+
then :
|
228
|
+
|
229
|
+
else $as_nop
|
230
|
+
if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
231
|
+
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
|
232
|
+
then :
|
233
|
+
CONFIG_SHELL=$SHELL as_have_required=yes
|
234
|
+
fi
|
235
|
+
fi
|
236
|
+
|
237
|
+
|
238
|
+
if test "x$CONFIG_SHELL" != x
|
239
|
+
then :
|
240
|
+
export CONFIG_SHELL
|
241
|
+
# We cannot yet assume a decent shell, so we have to provide a
|
242
|
+
# neutralization value for shells without unset; and this also
|
243
|
+
# works around shells that cannot unset nonexistent variables.
|
244
|
+
# Preserve -v and -x to the replacement shell.
|
245
|
+
BASH_ENV=/dev/null
|
246
|
+
ENV=/dev/null
|
247
|
+
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
248
|
+
case $- in # ((((
|
249
|
+
*v*x* | *x*v* ) as_opts=-vx ;;
|
250
|
+
*v* ) as_opts=-v ;;
|
251
|
+
*x* ) as_opts=-x ;;
|
252
|
+
* ) as_opts= ;;
|
253
|
+
esac
|
254
|
+
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
255
|
+
# Admittedly, this is quite paranoid, since all the known shells bail
|
256
|
+
# out after a failed `exec'.
|
257
|
+
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
|
258
|
+
exit 255
|
259
|
+
fi
|
260
|
+
|
261
|
+
if test x$as_have_required = xno
|
262
|
+
then :
|
263
|
+
printf "%s\n" "$0: This script requires a shell more modern than all"
|
264
|
+
printf "%s\n" "$0: the shells that I found on your system."
|
265
|
+
if test ${ZSH_VERSION+y} ; then
|
266
|
+
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
267
|
+
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
|
268
|
+
else
|
269
|
+
printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
|
270
|
+
$0: https://github.com/ruby/yarp/issues/new about your
|
271
|
+
$0: system, including any error possibly output before this
|
272
|
+
$0: message. Then install a modern shell, or manually run
|
273
|
+
$0: the script under such a shell if you do have one."
|
274
|
+
fi
|
275
|
+
exit 1
|
276
|
+
fi
|
277
|
+
fi
|
278
|
+
fi
|
279
|
+
SHELL=${CONFIG_SHELL-/bin/sh}
|
280
|
+
export SHELL
|
281
|
+
# Unset more variables known to interfere with behavior of common tools.
|
282
|
+
CLICOLOR_FORCE= GREP_OPTIONS=
|
283
|
+
unset CLICOLOR_FORCE GREP_OPTIONS
|
284
|
+
|
285
|
+
## --------------------- ##
|
286
|
+
## M4sh Shell Functions. ##
|
287
|
+
## --------------------- ##
|
288
|
+
# as_fn_unset VAR
|
289
|
+
# ---------------
|
290
|
+
# Portably unset VAR.
|
291
|
+
as_fn_unset ()
|
292
|
+
{
|
293
|
+
{ eval $1=; unset $1;}
|
294
|
+
}
|
295
|
+
as_unset=as_fn_unset
|
296
|
+
|
297
|
+
|
298
|
+
# as_fn_set_status STATUS
|
299
|
+
# -----------------------
|
300
|
+
# Set $? to STATUS, without forking.
|
301
|
+
as_fn_set_status ()
|
302
|
+
{
|
303
|
+
return $1
|
304
|
+
} # as_fn_set_status
|
305
|
+
|
306
|
+
# as_fn_exit STATUS
|
307
|
+
# -----------------
|
308
|
+
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
309
|
+
as_fn_exit ()
|
310
|
+
{
|
311
|
+
set +e
|
312
|
+
as_fn_set_status $1
|
313
|
+
exit $1
|
314
|
+
} # as_fn_exit
|
315
|
+
# as_fn_nop
|
316
|
+
# ---------
|
317
|
+
# Do nothing but, unlike ":", preserve the value of $?.
|
318
|
+
as_fn_nop ()
|
319
|
+
{
|
320
|
+
return $?
|
321
|
+
}
|
322
|
+
as_nop=as_fn_nop
|
323
|
+
|
324
|
+
# as_fn_mkdir_p
|
325
|
+
# -------------
|
326
|
+
# Create "$as_dir" as a directory, including parents if necessary.
|
327
|
+
as_fn_mkdir_p ()
|
328
|
+
{
|
329
|
+
|
330
|
+
case $as_dir in #(
|
331
|
+
-*) as_dir=./$as_dir;;
|
332
|
+
esac
|
333
|
+
test -d "$as_dir" || eval $as_mkdir_p || {
|
334
|
+
as_dirs=
|
335
|
+
while :; do
|
336
|
+
case $as_dir in #(
|
337
|
+
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
338
|
+
*) as_qdir=$as_dir;;
|
339
|
+
esac
|
340
|
+
as_dirs="'$as_qdir' $as_dirs"
|
341
|
+
as_dir=`$as_dirname -- "$as_dir" ||
|
342
|
+
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
343
|
+
X"$as_dir" : 'X\(//\)[^/]' \| \
|
344
|
+
X"$as_dir" : 'X\(//\)$' \| \
|
345
|
+
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
346
|
+
printf "%s\n" X"$as_dir" |
|
347
|
+
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
348
|
+
s//\1/
|
349
|
+
q
|
350
|
+
}
|
351
|
+
/^X\(\/\/\)[^/].*/{
|
352
|
+
s//\1/
|
353
|
+
q
|
354
|
+
}
|
355
|
+
/^X\(\/\/\)$/{
|
356
|
+
s//\1/
|
357
|
+
q
|
358
|
+
}
|
359
|
+
/^X\(\/\).*/{
|
360
|
+
s//\1/
|
361
|
+
q
|
362
|
+
}
|
363
|
+
s/.*/./; q'`
|
364
|
+
test -d "$as_dir" && break
|
365
|
+
done
|
366
|
+
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
367
|
+
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
368
|
+
|
369
|
+
|
370
|
+
} # as_fn_mkdir_p
|
371
|
+
|
372
|
+
# as_fn_executable_p FILE
|
373
|
+
# -----------------------
|
374
|
+
# Test if FILE is an executable regular file.
|
375
|
+
as_fn_executable_p ()
|
376
|
+
{
|
377
|
+
test -f "$1" && test -x "$1"
|
378
|
+
} # as_fn_executable_p
|
379
|
+
# as_fn_append VAR VALUE
|
380
|
+
# ----------------------
|
381
|
+
# Append the text in VALUE to the end of the definition contained in VAR. Take
|
382
|
+
# advantage of any shell optimizations that allow amortized linear growth over
|
383
|
+
# repeated appends, instead of the typical quadratic growth present in naive
|
384
|
+
# implementations.
|
385
|
+
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
|
386
|
+
then :
|
387
|
+
eval 'as_fn_append ()
|
388
|
+
{
|
389
|
+
eval $1+=\$2
|
390
|
+
}'
|
391
|
+
else $as_nop
|
392
|
+
as_fn_append ()
|
393
|
+
{
|
394
|
+
eval $1=\$$1\$2
|
395
|
+
}
|
396
|
+
fi # as_fn_append
|
397
|
+
|
398
|
+
# as_fn_arith ARG...
|
399
|
+
# ------------------
|
400
|
+
# Perform arithmetic evaluation on the ARGs, and store the result in the
|
401
|
+
# global $as_val. Take advantage of shells that can avoid forks. The arguments
|
402
|
+
# must be portable across $(()) and expr.
|
403
|
+
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
|
404
|
+
then :
|
405
|
+
eval 'as_fn_arith ()
|
406
|
+
{
|
407
|
+
as_val=$(( $* ))
|
408
|
+
}'
|
409
|
+
else $as_nop
|
410
|
+
as_fn_arith ()
|
411
|
+
{
|
412
|
+
as_val=`expr "$@" || test $? -eq 1`
|
413
|
+
}
|
414
|
+
fi # as_fn_arith
|
415
|
+
|
416
|
+
# as_fn_nop
|
417
|
+
# ---------
|
418
|
+
# Do nothing but, unlike ":", preserve the value of $?.
|
419
|
+
as_fn_nop ()
|
420
|
+
{
|
421
|
+
return $?
|
422
|
+
}
|
423
|
+
as_nop=as_fn_nop
|
424
|
+
|
425
|
+
# as_fn_error STATUS ERROR [LINENO LOG_FD]
|
426
|
+
# ----------------------------------------
|
427
|
+
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
428
|
+
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
429
|
+
# script with STATUS, using 1 if that was 0.
|
430
|
+
as_fn_error ()
|
431
|
+
{
|
432
|
+
as_status=$1; test $as_status -eq 0 && as_status=1
|
433
|
+
if test "$4"; then
|
434
|
+
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
435
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
436
|
+
fi
|
437
|
+
printf "%s\n" "$as_me: error: $2" >&2
|
438
|
+
as_fn_exit $as_status
|
439
|
+
} # as_fn_error
|
440
|
+
|
441
|
+
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
442
|
+
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
443
|
+
as_expr=expr
|
444
|
+
else
|
445
|
+
as_expr=false
|
446
|
+
fi
|
447
|
+
|
448
|
+
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
449
|
+
as_basename=basename
|
450
|
+
else
|
451
|
+
as_basename=false
|
452
|
+
fi
|
453
|
+
|
454
|
+
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
455
|
+
as_dirname=dirname
|
456
|
+
else
|
457
|
+
as_dirname=false
|
458
|
+
fi
|
459
|
+
|
460
|
+
as_me=`$as_basename -- "$0" ||
|
461
|
+
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
462
|
+
X"$0" : 'X\(//\)$' \| \
|
463
|
+
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
464
|
+
printf "%s\n" X/"$0" |
|
465
|
+
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
466
|
+
s//\1/
|
467
|
+
q
|
468
|
+
}
|
469
|
+
/^X\/\(\/\/\)$/{
|
470
|
+
s//\1/
|
471
|
+
q
|
472
|
+
}
|
473
|
+
/^X\/\(\/\).*/{
|
474
|
+
s//\1/
|
475
|
+
q
|
476
|
+
}
|
477
|
+
s/.*/./; q'`
|
478
|
+
|
479
|
+
# Avoid depending upon Character Ranges.
|
480
|
+
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
481
|
+
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
482
|
+
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
483
|
+
as_cr_digits='0123456789'
|
484
|
+
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
485
|
+
|
486
|
+
|
487
|
+
as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
488
|
+
as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
489
|
+
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
490
|
+
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
491
|
+
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
492
|
+
sed -n '
|
493
|
+
p
|
494
|
+
/[$]LINENO/=
|
495
|
+
' <$as_myself |
|
496
|
+
sed '
|
497
|
+
s/[$]LINENO.*/&-/
|
498
|
+
t lineno
|
499
|
+
b
|
500
|
+
:lineno
|
501
|
+
N
|
502
|
+
:loop
|
503
|
+
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
504
|
+
t loop
|
505
|
+
s/-\n.*//
|
506
|
+
' >$as_me.lineno &&
|
507
|
+
chmod +x "$as_me.lineno" ||
|
508
|
+
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
509
|
+
|
510
|
+
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
511
|
+
# already done that, so ensure we don't try to do so again and fall
|
512
|
+
# in an infinite loop. This has already happened in practice.
|
513
|
+
_as_can_reexec=no; export _as_can_reexec
|
514
|
+
# Don't try to exec as it changes $[0], causing all sort of problems
|
515
|
+
# (the dirname of $[0] is not the place where we might find the
|
516
|
+
# original and so on. Autoconf is especially sensitive to this).
|
517
|
+
. "./$as_me.lineno"
|
518
|
+
# Exit status is that of the last command.
|
519
|
+
exit
|
520
|
+
}
|
521
|
+
|
522
|
+
|
523
|
+
# Determine whether it's possible to make 'echo' print without a newline.
|
524
|
+
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
|
525
|
+
# for compatibility with existing Makefiles.
|
526
|
+
ECHO_C= ECHO_N= ECHO_T=
|
527
|
+
case `echo -n x` in #(((((
|
528
|
+
-n*)
|
529
|
+
case `echo 'xy\c'` in
|
530
|
+
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
531
|
+
xy) ECHO_C='\c';;
|
532
|
+
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
533
|
+
ECHO_T=' ';;
|
534
|
+
esac;;
|
535
|
+
*)
|
536
|
+
ECHO_N='-n';;
|
537
|
+
esac
|
538
|
+
|
539
|
+
# For backward compatibility with old third-party macros, we provide
|
540
|
+
# the shell variables $as_echo and $as_echo_n. New code should use
|
541
|
+
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
|
542
|
+
as_echo='printf %s\n'
|
543
|
+
as_echo_n='printf %s'
|
544
|
+
|
545
|
+
|
546
|
+
rm -f conf$$ conf$$.exe conf$$.file
|
547
|
+
if test -d conf$$.dir; then
|
548
|
+
rm -f conf$$.dir/conf$$.file
|
549
|
+
else
|
550
|
+
rm -f conf$$.dir
|
551
|
+
mkdir conf$$.dir 2>/dev/null
|
552
|
+
fi
|
553
|
+
if (echo >conf$$.file) 2>/dev/null; then
|
554
|
+
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
555
|
+
as_ln_s='ln -s'
|
556
|
+
# ... but there are two gotchas:
|
557
|
+
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
558
|
+
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
559
|
+
# In both cases, we have to default to `cp -pR'.
|
560
|
+
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
561
|
+
as_ln_s='cp -pR'
|
562
|
+
elif ln conf$$.file conf$$ 2>/dev/null; then
|
563
|
+
as_ln_s=ln
|
564
|
+
else
|
565
|
+
as_ln_s='cp -pR'
|
566
|
+
fi
|
567
|
+
else
|
568
|
+
as_ln_s='cp -pR'
|
569
|
+
fi
|
570
|
+
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
571
|
+
rmdir conf$$.dir 2>/dev/null
|
572
|
+
|
573
|
+
if mkdir -p . 2>/dev/null; then
|
574
|
+
as_mkdir_p='mkdir -p "$as_dir"'
|
575
|
+
else
|
576
|
+
test -d ./-p && rmdir ./-p
|
577
|
+
as_mkdir_p=false
|
578
|
+
fi
|
579
|
+
|
580
|
+
as_test_x='test -x'
|
581
|
+
as_executable_p=as_fn_executable_p
|
582
|
+
|
583
|
+
# Sed expression to map a string onto a valid CPP name.
|
584
|
+
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
585
|
+
|
586
|
+
# Sed expression to map a string onto a valid variable name.
|
587
|
+
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
588
|
+
|
589
|
+
|
590
|
+
test -n "$DJDIR" || exec 7<&0 </dev/null
|
591
|
+
exec 6>&1
|
592
|
+
|
593
|
+
# Name of the host.
|
594
|
+
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
595
|
+
# so uname gets run too.
|
596
|
+
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
597
|
+
|
598
|
+
#
|
599
|
+
# Initializations.
|
600
|
+
#
|
601
|
+
ac_default_prefix=/usr/local
|
602
|
+
ac_clean_files=
|
603
|
+
ac_config_libobj_dir=.
|
604
|
+
LIBOBJS=
|
605
|
+
cross_compiling=no
|
606
|
+
subdirs=
|
607
|
+
MFLAGS=
|
608
|
+
MAKEFLAGS=
|
609
|
+
|
610
|
+
# Identity of this package.
|
611
|
+
PACKAGE_NAME='YARP'
|
612
|
+
PACKAGE_TARNAME='yarp'
|
613
|
+
PACKAGE_VERSION='_YP_VERSION'
|
614
|
+
PACKAGE_STRING='YARP _YP_VERSION'
|
615
|
+
PACKAGE_BUGREPORT='https://github.com/ruby/yarp/issues/new'
|
616
|
+
PACKAGE_URL='https://github.com/ruby/yarp'
|
617
|
+
|
618
|
+
ac_subst_vars='LTLIBOBJS
|
619
|
+
LIBOBJS
|
620
|
+
OBJEXT
|
621
|
+
EXEEXT
|
622
|
+
ac_ct_CC
|
623
|
+
CPPFLAGS
|
624
|
+
LDFLAGS
|
625
|
+
CFLAGS
|
626
|
+
CC
|
627
|
+
target_alias
|
628
|
+
host_alias
|
629
|
+
build_alias
|
630
|
+
LIBS
|
631
|
+
ECHO_T
|
632
|
+
ECHO_N
|
633
|
+
ECHO_C
|
634
|
+
DEFS
|
635
|
+
mandir
|
636
|
+
localedir
|
637
|
+
libdir
|
638
|
+
psdir
|
639
|
+
pdfdir
|
640
|
+
dvidir
|
641
|
+
htmldir
|
642
|
+
infodir
|
643
|
+
docdir
|
644
|
+
oldincludedir
|
645
|
+
includedir
|
646
|
+
runstatedir
|
647
|
+
localstatedir
|
648
|
+
sharedstatedir
|
649
|
+
sysconfdir
|
650
|
+
datadir
|
651
|
+
datarootdir
|
652
|
+
libexecdir
|
653
|
+
sbindir
|
654
|
+
bindir
|
655
|
+
program_transform_name
|
656
|
+
prefix
|
657
|
+
exec_prefix
|
658
|
+
PACKAGE_URL
|
659
|
+
PACKAGE_BUGREPORT
|
660
|
+
PACKAGE_STRING
|
661
|
+
PACKAGE_VERSION
|
662
|
+
PACKAGE_TARNAME
|
663
|
+
PACKAGE_NAME
|
664
|
+
PATH_SEPARATOR
|
665
|
+
SHELL'
|
666
|
+
ac_subst_files=''
|
667
|
+
ac_user_opts='
|
668
|
+
enable_option_checking
|
669
|
+
'
|
670
|
+
ac_precious_vars='build_alias
|
671
|
+
host_alias
|
672
|
+
target_alias
|
673
|
+
CC
|
674
|
+
CFLAGS
|
675
|
+
LDFLAGS
|
676
|
+
LIBS
|
677
|
+
CPPFLAGS'
|
678
|
+
|
679
|
+
|
680
|
+
# Initialize some variables set by options.
|
681
|
+
ac_init_help=
|
682
|
+
ac_init_version=false
|
683
|
+
ac_unrecognized_opts=
|
684
|
+
ac_unrecognized_sep=
|
685
|
+
# The variables have the same names as the options, with
|
686
|
+
# dashes changed to underlines.
|
687
|
+
cache_file=/dev/null
|
688
|
+
exec_prefix=NONE
|
689
|
+
no_create=
|
690
|
+
no_recursion=
|
691
|
+
prefix=NONE
|
692
|
+
program_prefix=NONE
|
693
|
+
program_suffix=NONE
|
694
|
+
program_transform_name=s,x,x,
|
695
|
+
silent=
|
696
|
+
site=
|
697
|
+
srcdir=
|
698
|
+
verbose=
|
699
|
+
x_includes=NONE
|
700
|
+
x_libraries=NONE
|
701
|
+
|
702
|
+
# Installation directory options.
|
703
|
+
# These are left unexpanded so users can "make install exec_prefix=/foo"
|
704
|
+
# and all the variables that are supposed to be based on exec_prefix
|
705
|
+
# by default will actually change.
|
706
|
+
# Use braces instead of parens because sh, perl, etc. also accept them.
|
707
|
+
# (The list follows the same order as the GNU Coding Standards.)
|
708
|
+
bindir='${exec_prefix}/bin'
|
709
|
+
sbindir='${exec_prefix}/sbin'
|
710
|
+
libexecdir='${exec_prefix}/libexec'
|
711
|
+
datarootdir='${prefix}/share'
|
712
|
+
datadir='${datarootdir}'
|
713
|
+
sysconfdir='${prefix}/etc'
|
714
|
+
sharedstatedir='${prefix}/com'
|
715
|
+
localstatedir='${prefix}/var'
|
716
|
+
runstatedir='${localstatedir}/run'
|
717
|
+
includedir='${prefix}/include'
|
718
|
+
oldincludedir='/usr/include'
|
719
|
+
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
720
|
+
infodir='${datarootdir}/info'
|
721
|
+
htmldir='${docdir}'
|
722
|
+
dvidir='${docdir}'
|
723
|
+
pdfdir='${docdir}'
|
724
|
+
psdir='${docdir}'
|
725
|
+
libdir='${exec_prefix}/lib'
|
726
|
+
localedir='${datarootdir}/locale'
|
727
|
+
mandir='${datarootdir}/man'
|
728
|
+
|
729
|
+
ac_prev=
|
730
|
+
ac_dashdash=
|
731
|
+
for ac_option
|
732
|
+
do
|
733
|
+
# If the previous option needs an argument, assign it.
|
734
|
+
if test -n "$ac_prev"; then
|
735
|
+
eval $ac_prev=\$ac_option
|
736
|
+
ac_prev=
|
737
|
+
continue
|
738
|
+
fi
|
739
|
+
|
740
|
+
case $ac_option in
|
741
|
+
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
742
|
+
*=) ac_optarg= ;;
|
743
|
+
*) ac_optarg=yes ;;
|
744
|
+
esac
|
745
|
+
|
746
|
+
case $ac_dashdash$ac_option in
|
747
|
+
--)
|
748
|
+
ac_dashdash=yes ;;
|
749
|
+
|
750
|
+
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
751
|
+
ac_prev=bindir ;;
|
752
|
+
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
753
|
+
bindir=$ac_optarg ;;
|
754
|
+
|
755
|
+
-build | --build | --buil | --bui | --bu)
|
756
|
+
ac_prev=build_alias ;;
|
757
|
+
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
758
|
+
build_alias=$ac_optarg ;;
|
759
|
+
|
760
|
+
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
761
|
+
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
762
|
+
ac_prev=cache_file ;;
|
763
|
+
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
764
|
+
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
765
|
+
cache_file=$ac_optarg ;;
|
766
|
+
|
767
|
+
--config-cache | -C)
|
768
|
+
cache_file=config.cache ;;
|
769
|
+
|
770
|
+
-datadir | --datadir | --datadi | --datad)
|
771
|
+
ac_prev=datadir ;;
|
772
|
+
-datadir=* | --datadir=* | --datadi=* | --datad=*)
|
773
|
+
datadir=$ac_optarg ;;
|
774
|
+
|
775
|
+
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
776
|
+
| --dataroo | --dataro | --datar)
|
777
|
+
ac_prev=datarootdir ;;
|
778
|
+
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
779
|
+
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
780
|
+
datarootdir=$ac_optarg ;;
|
781
|
+
|
782
|
+
-disable-* | --disable-*)
|
783
|
+
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
784
|
+
# Reject names that are not valid shell variable names.
|
785
|
+
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
786
|
+
as_fn_error $? "invalid feature name: \`$ac_useropt'"
|
787
|
+
ac_useropt_orig=$ac_useropt
|
788
|
+
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
789
|
+
case $ac_user_opts in
|
790
|
+
*"
|
791
|
+
"enable_$ac_useropt"
|
792
|
+
"*) ;;
|
793
|
+
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
794
|
+
ac_unrecognized_sep=', ';;
|
795
|
+
esac
|
796
|
+
eval enable_$ac_useropt=no ;;
|
797
|
+
|
798
|
+
-docdir | --docdir | --docdi | --doc | --do)
|
799
|
+
ac_prev=docdir ;;
|
800
|
+
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
801
|
+
docdir=$ac_optarg ;;
|
802
|
+
|
803
|
+
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
804
|
+
ac_prev=dvidir ;;
|
805
|
+
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
806
|
+
dvidir=$ac_optarg ;;
|
807
|
+
|
808
|
+
-enable-* | --enable-*)
|
809
|
+
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
810
|
+
# Reject names that are not valid shell variable names.
|
811
|
+
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
812
|
+
as_fn_error $? "invalid feature name: \`$ac_useropt'"
|
813
|
+
ac_useropt_orig=$ac_useropt
|
814
|
+
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
815
|
+
case $ac_user_opts in
|
816
|
+
*"
|
817
|
+
"enable_$ac_useropt"
|
818
|
+
"*) ;;
|
819
|
+
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
820
|
+
ac_unrecognized_sep=', ';;
|
821
|
+
esac
|
822
|
+
eval enable_$ac_useropt=\$ac_optarg ;;
|
823
|
+
|
824
|
+
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
825
|
+
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
826
|
+
| --exec | --exe | --ex)
|
827
|
+
ac_prev=exec_prefix ;;
|
828
|
+
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
829
|
+
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
830
|
+
| --exec=* | --exe=* | --ex=*)
|
831
|
+
exec_prefix=$ac_optarg ;;
|
832
|
+
|
833
|
+
-gas | --gas | --ga | --g)
|
834
|
+
# Obsolete; use --with-gas.
|
835
|
+
with_gas=yes ;;
|
836
|
+
|
837
|
+
-help | --help | --hel | --he | -h)
|
838
|
+
ac_init_help=long ;;
|
839
|
+
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
840
|
+
ac_init_help=recursive ;;
|
841
|
+
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
842
|
+
ac_init_help=short ;;
|
843
|
+
|
844
|
+
-host | --host | --hos | --ho)
|
845
|
+
ac_prev=host_alias ;;
|
846
|
+
-host=* | --host=* | --hos=* | --ho=*)
|
847
|
+
host_alias=$ac_optarg ;;
|
848
|
+
|
849
|
+
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
850
|
+
ac_prev=htmldir ;;
|
851
|
+
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
852
|
+
| --ht=*)
|
853
|
+
htmldir=$ac_optarg ;;
|
854
|
+
|
855
|
+
-includedir | --includedir | --includedi | --included | --include \
|
856
|
+
| --includ | --inclu | --incl | --inc)
|
857
|
+
ac_prev=includedir ;;
|
858
|
+
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
859
|
+
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
860
|
+
includedir=$ac_optarg ;;
|
861
|
+
|
862
|
+
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
863
|
+
ac_prev=infodir ;;
|
864
|
+
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
865
|
+
infodir=$ac_optarg ;;
|
866
|
+
|
867
|
+
-libdir | --libdir | --libdi | --libd)
|
868
|
+
ac_prev=libdir ;;
|
869
|
+
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
870
|
+
libdir=$ac_optarg ;;
|
871
|
+
|
872
|
+
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
873
|
+
| --libexe | --libex | --libe)
|
874
|
+
ac_prev=libexecdir ;;
|
875
|
+
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
876
|
+
| --libexe=* | --libex=* | --libe=*)
|
877
|
+
libexecdir=$ac_optarg ;;
|
878
|
+
|
879
|
+
-localedir | --localedir | --localedi | --localed | --locale)
|
880
|
+
ac_prev=localedir ;;
|
881
|
+
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
882
|
+
localedir=$ac_optarg ;;
|
883
|
+
|
884
|
+
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
885
|
+
| --localstate | --localstat | --localsta | --localst | --locals)
|
886
|
+
ac_prev=localstatedir ;;
|
887
|
+
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
888
|
+
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
889
|
+
localstatedir=$ac_optarg ;;
|
890
|
+
|
891
|
+
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
892
|
+
ac_prev=mandir ;;
|
893
|
+
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
894
|
+
mandir=$ac_optarg ;;
|
895
|
+
|
896
|
+
-nfp | --nfp | --nf)
|
897
|
+
# Obsolete; use --without-fp.
|
898
|
+
with_fp=no ;;
|
899
|
+
|
900
|
+
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
901
|
+
| --no-cr | --no-c | -n)
|
902
|
+
no_create=yes ;;
|
903
|
+
|
904
|
+
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
905
|
+
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
906
|
+
no_recursion=yes ;;
|
907
|
+
|
908
|
+
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
909
|
+
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
910
|
+
| --oldin | --oldi | --old | --ol | --o)
|
911
|
+
ac_prev=oldincludedir ;;
|
912
|
+
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
913
|
+
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
914
|
+
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
915
|
+
oldincludedir=$ac_optarg ;;
|
916
|
+
|
917
|
+
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
918
|
+
ac_prev=prefix ;;
|
919
|
+
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
920
|
+
prefix=$ac_optarg ;;
|
921
|
+
|
922
|
+
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
923
|
+
| --program-pre | --program-pr | --program-p)
|
924
|
+
ac_prev=program_prefix ;;
|
925
|
+
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
926
|
+
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
927
|
+
program_prefix=$ac_optarg ;;
|
928
|
+
|
929
|
+
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
930
|
+
| --program-suf | --program-su | --program-s)
|
931
|
+
ac_prev=program_suffix ;;
|
932
|
+
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
933
|
+
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
934
|
+
program_suffix=$ac_optarg ;;
|
935
|
+
|
936
|
+
-program-transform-name | --program-transform-name \
|
937
|
+
| --program-transform-nam | --program-transform-na \
|
938
|
+
| --program-transform-n | --program-transform- \
|
939
|
+
| --program-transform | --program-transfor \
|
940
|
+
| --program-transfo | --program-transf \
|
941
|
+
| --program-trans | --program-tran \
|
942
|
+
| --progr-tra | --program-tr | --program-t)
|
943
|
+
ac_prev=program_transform_name ;;
|
944
|
+
-program-transform-name=* | --program-transform-name=* \
|
945
|
+
| --program-transform-nam=* | --program-transform-na=* \
|
946
|
+
| --program-transform-n=* | --program-transform-=* \
|
947
|
+
| --program-transform=* | --program-transfor=* \
|
948
|
+
| --program-transfo=* | --program-transf=* \
|
949
|
+
| --program-trans=* | --program-tran=* \
|
950
|
+
| --progr-tra=* | --program-tr=* | --program-t=*)
|
951
|
+
program_transform_name=$ac_optarg ;;
|
952
|
+
|
953
|
+
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
954
|
+
ac_prev=pdfdir ;;
|
955
|
+
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
956
|
+
pdfdir=$ac_optarg ;;
|
957
|
+
|
958
|
+
-psdir | --psdir | --psdi | --psd | --ps)
|
959
|
+
ac_prev=psdir ;;
|
960
|
+
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
961
|
+
psdir=$ac_optarg ;;
|
962
|
+
|
963
|
+
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
964
|
+
| -silent | --silent | --silen | --sile | --sil)
|
965
|
+
silent=yes ;;
|
966
|
+
|
967
|
+
-runstatedir | --runstatedir | --runstatedi | --runstated \
|
968
|
+
| --runstate | --runstat | --runsta | --runst | --runs \
|
969
|
+
| --run | --ru | --r)
|
970
|
+
ac_prev=runstatedir ;;
|
971
|
+
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
|
972
|
+
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
|
973
|
+
| --run=* | --ru=* | --r=*)
|
974
|
+
runstatedir=$ac_optarg ;;
|
975
|
+
|
976
|
+
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
977
|
+
ac_prev=sbindir ;;
|
978
|
+
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
979
|
+
| --sbi=* | --sb=*)
|
980
|
+
sbindir=$ac_optarg ;;
|
981
|
+
|
982
|
+
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
983
|
+
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
984
|
+
| --sharedst | --shareds | --shared | --share | --shar \
|
985
|
+
| --sha | --sh)
|
986
|
+
ac_prev=sharedstatedir ;;
|
987
|
+
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
988
|
+
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
989
|
+
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
990
|
+
| --sha=* | --sh=*)
|
991
|
+
sharedstatedir=$ac_optarg ;;
|
992
|
+
|
993
|
+
-site | --site | --sit)
|
994
|
+
ac_prev=site ;;
|
995
|
+
-site=* | --site=* | --sit=*)
|
996
|
+
site=$ac_optarg ;;
|
997
|
+
|
998
|
+
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
999
|
+
ac_prev=srcdir ;;
|
1000
|
+
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
1001
|
+
srcdir=$ac_optarg ;;
|
1002
|
+
|
1003
|
+
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
1004
|
+
| --syscon | --sysco | --sysc | --sys | --sy)
|
1005
|
+
ac_prev=sysconfdir ;;
|
1006
|
+
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
1007
|
+
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
1008
|
+
sysconfdir=$ac_optarg ;;
|
1009
|
+
|
1010
|
+
-target | --target | --targe | --targ | --tar | --ta | --t)
|
1011
|
+
ac_prev=target_alias ;;
|
1012
|
+
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
1013
|
+
target_alias=$ac_optarg ;;
|
1014
|
+
|
1015
|
+
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
1016
|
+
verbose=yes ;;
|
1017
|
+
|
1018
|
+
-version | --version | --versio | --versi | --vers | -V)
|
1019
|
+
ac_init_version=: ;;
|
1020
|
+
|
1021
|
+
-with-* | --with-*)
|
1022
|
+
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
1023
|
+
# Reject names that are not valid shell variable names.
|
1024
|
+
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
1025
|
+
as_fn_error $? "invalid package name: \`$ac_useropt'"
|
1026
|
+
ac_useropt_orig=$ac_useropt
|
1027
|
+
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
1028
|
+
case $ac_user_opts in
|
1029
|
+
*"
|
1030
|
+
"with_$ac_useropt"
|
1031
|
+
"*) ;;
|
1032
|
+
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
1033
|
+
ac_unrecognized_sep=', ';;
|
1034
|
+
esac
|
1035
|
+
eval with_$ac_useropt=\$ac_optarg ;;
|
1036
|
+
|
1037
|
+
-without-* | --without-*)
|
1038
|
+
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
1039
|
+
# Reject names that are not valid shell variable names.
|
1040
|
+
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
1041
|
+
as_fn_error $? "invalid package name: \`$ac_useropt'"
|
1042
|
+
ac_useropt_orig=$ac_useropt
|
1043
|
+
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
1044
|
+
case $ac_user_opts in
|
1045
|
+
*"
|
1046
|
+
"with_$ac_useropt"
|
1047
|
+
"*) ;;
|
1048
|
+
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
1049
|
+
ac_unrecognized_sep=', ';;
|
1050
|
+
esac
|
1051
|
+
eval with_$ac_useropt=no ;;
|
1052
|
+
|
1053
|
+
--x)
|
1054
|
+
# Obsolete; use --with-x.
|
1055
|
+
with_x=yes ;;
|
1056
|
+
|
1057
|
+
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
1058
|
+
| --x-incl | --x-inc | --x-in | --x-i)
|
1059
|
+
ac_prev=x_includes ;;
|
1060
|
+
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
1061
|
+
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
1062
|
+
x_includes=$ac_optarg ;;
|
1063
|
+
|
1064
|
+
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
1065
|
+
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
1066
|
+
ac_prev=x_libraries ;;
|
1067
|
+
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
1068
|
+
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
1069
|
+
x_libraries=$ac_optarg ;;
|
1070
|
+
|
1071
|
+
-*) as_fn_error $? "unrecognized option: \`$ac_option'
|
1072
|
+
Try \`$0 --help' for more information"
|
1073
|
+
;;
|
1074
|
+
|
1075
|
+
*=*)
|
1076
|
+
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
1077
|
+
# Reject names that are not valid shell variable names.
|
1078
|
+
case $ac_envvar in #(
|
1079
|
+
'' | [0-9]* | *[!_$as_cr_alnum]* )
|
1080
|
+
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
1081
|
+
esac
|
1082
|
+
eval $ac_envvar=\$ac_optarg
|
1083
|
+
export $ac_envvar ;;
|
1084
|
+
|
1085
|
+
*)
|
1086
|
+
# FIXME: should be removed in autoconf 3.0.
|
1087
|
+
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
|
1088
|
+
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
1089
|
+
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
|
1090
|
+
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
1091
|
+
;;
|
1092
|
+
|
1093
|
+
esac
|
1094
|
+
done
|
1095
|
+
|
1096
|
+
if test -n "$ac_prev"; then
|
1097
|
+
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
1098
|
+
as_fn_error $? "missing argument to $ac_option"
|
1099
|
+
fi
|
1100
|
+
|
1101
|
+
if test -n "$ac_unrecognized_opts"; then
|
1102
|
+
case $enable_option_checking in
|
1103
|
+
no) ;;
|
1104
|
+
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
1105
|
+
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
1106
|
+
esac
|
1107
|
+
fi
|
1108
|
+
|
1109
|
+
# Check all directory arguments for consistency.
|
1110
|
+
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
1111
|
+
datadir sysconfdir sharedstatedir localstatedir includedir \
|
1112
|
+
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
1113
|
+
libdir localedir mandir runstatedir
|
1114
|
+
do
|
1115
|
+
eval ac_val=\$$ac_var
|
1116
|
+
# Remove trailing slashes.
|
1117
|
+
case $ac_val in
|
1118
|
+
*/ )
|
1119
|
+
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
1120
|
+
eval $ac_var=\$ac_val;;
|
1121
|
+
esac
|
1122
|
+
# Be sure to have absolute directory names.
|
1123
|
+
case $ac_val in
|
1124
|
+
[\\/$]* | ?:[\\/]* ) continue;;
|
1125
|
+
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
1126
|
+
esac
|
1127
|
+
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
1128
|
+
done
|
1129
|
+
|
1130
|
+
# There might be people who depend on the old broken behavior: `$host'
|
1131
|
+
# used to hold the argument of --host etc.
|
1132
|
+
# FIXME: To remove some day.
|
1133
|
+
build=$build_alias
|
1134
|
+
host=$host_alias
|
1135
|
+
target=$target_alias
|
1136
|
+
|
1137
|
+
# FIXME: To remove some day.
|
1138
|
+
if test "x$host_alias" != x; then
|
1139
|
+
if test "x$build_alias" = x; then
|
1140
|
+
cross_compiling=maybe
|
1141
|
+
elif test "x$build_alias" != "x$host_alias"; then
|
1142
|
+
cross_compiling=yes
|
1143
|
+
fi
|
1144
|
+
fi
|
1145
|
+
|
1146
|
+
ac_tool_prefix=
|
1147
|
+
test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
1148
|
+
|
1149
|
+
test "$silent" = yes && exec 6>/dev/null
|
1150
|
+
|
1151
|
+
|
1152
|
+
ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
1153
|
+
ac_ls_di=`ls -di .` &&
|
1154
|
+
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
1155
|
+
as_fn_error $? "working directory cannot be determined"
|
1156
|
+
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
1157
|
+
as_fn_error $? "pwd does not report name of working directory"
|
1158
|
+
|
1159
|
+
|
1160
|
+
# Find the source files, if location was not specified.
|
1161
|
+
if test -z "$srcdir"; then
|
1162
|
+
ac_srcdir_defaulted=yes
|
1163
|
+
# Try the directory containing this script, then the parent directory.
|
1164
|
+
ac_confdir=`$as_dirname -- "$as_myself" ||
|
1165
|
+
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
1166
|
+
X"$as_myself" : 'X\(//\)[^/]' \| \
|
1167
|
+
X"$as_myself" : 'X\(//\)$' \| \
|
1168
|
+
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
1169
|
+
printf "%s\n" X"$as_myself" |
|
1170
|
+
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
1171
|
+
s//\1/
|
1172
|
+
q
|
1173
|
+
}
|
1174
|
+
/^X\(\/\/\)[^/].*/{
|
1175
|
+
s//\1/
|
1176
|
+
q
|
1177
|
+
}
|
1178
|
+
/^X\(\/\/\)$/{
|
1179
|
+
s//\1/
|
1180
|
+
q
|
1181
|
+
}
|
1182
|
+
/^X\(\/\).*/{
|
1183
|
+
s//\1/
|
1184
|
+
q
|
1185
|
+
}
|
1186
|
+
s/.*/./; q'`
|
1187
|
+
srcdir=$ac_confdir
|
1188
|
+
if test ! -r "$srcdir/$ac_unique_file"; then
|
1189
|
+
srcdir=..
|
1190
|
+
fi
|
1191
|
+
else
|
1192
|
+
ac_srcdir_defaulted=no
|
1193
|
+
fi
|
1194
|
+
if test ! -r "$srcdir/$ac_unique_file"; then
|
1195
|
+
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
1196
|
+
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
1197
|
+
fi
|
1198
|
+
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
1199
|
+
ac_abs_confdir=`(
|
1200
|
+
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
1201
|
+
pwd)`
|
1202
|
+
# When building in place, set srcdir=.
|
1203
|
+
if test "$ac_abs_confdir" = "$ac_pwd"; then
|
1204
|
+
srcdir=.
|
1205
|
+
fi
|
1206
|
+
# Remove unnecessary trailing slashes from srcdir.
|
1207
|
+
# Double slashes in file names in object file debugging info
|
1208
|
+
# mess up M-x gdb in Emacs.
|
1209
|
+
case $srcdir in
|
1210
|
+
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
1211
|
+
esac
|
1212
|
+
for ac_var in $ac_precious_vars; do
|
1213
|
+
eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
1214
|
+
eval ac_env_${ac_var}_value=\$${ac_var}
|
1215
|
+
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
1216
|
+
eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
1217
|
+
done
|
1218
|
+
|
1219
|
+
#
|
1220
|
+
# Report the --help message.
|
1221
|
+
#
|
1222
|
+
if test "$ac_init_help" = "long"; then
|
1223
|
+
# Omit some internal or obsolete options to make the list less imposing.
|
1224
|
+
# This message is too long to be a string in the A/UX 3.1 sh.
|
1225
|
+
cat <<_ACEOF
|
1226
|
+
\`configure' configures YARP _YP_VERSION to adapt to many kinds of systems.
|
1227
|
+
|
1228
|
+
Usage: $0 [OPTION]... [VAR=VALUE]...
|
1229
|
+
|
1230
|
+
To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
1231
|
+
VAR=VALUE. See below for descriptions of some of the useful variables.
|
1232
|
+
|
1233
|
+
Defaults for the options are specified in brackets.
|
1234
|
+
|
1235
|
+
Configuration:
|
1236
|
+
-h, --help display this help and exit
|
1237
|
+
--help=short display options specific to this package
|
1238
|
+
--help=recursive display the short help of all the included packages
|
1239
|
+
-V, --version display version information and exit
|
1240
|
+
-q, --quiet, --silent do not print \`checking ...' messages
|
1241
|
+
--cache-file=FILE cache test results in FILE [disabled]
|
1242
|
+
-C, --config-cache alias for \`--cache-file=config.cache'
|
1243
|
+
-n, --no-create do not create output files
|
1244
|
+
--srcdir=DIR find the sources in DIR [configure dir or \`..']
|
1245
|
+
|
1246
|
+
Installation directories:
|
1247
|
+
--prefix=PREFIX install architecture-independent files in PREFIX
|
1248
|
+
[$ac_default_prefix]
|
1249
|
+
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
1250
|
+
[PREFIX]
|
1251
|
+
|
1252
|
+
By default, \`make install' will install all the files in
|
1253
|
+
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
1254
|
+
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
1255
|
+
for instance \`--prefix=\$HOME'.
|
1256
|
+
|
1257
|
+
For better control, use the options below.
|
1258
|
+
|
1259
|
+
Fine tuning of the installation directories:
|
1260
|
+
--bindir=DIR user executables [EPREFIX/bin]
|
1261
|
+
--sbindir=DIR system admin executables [EPREFIX/sbin]
|
1262
|
+
--libexecdir=DIR program executables [EPREFIX/libexec]
|
1263
|
+
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
1264
|
+
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
1265
|
+
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
1266
|
+
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
|
1267
|
+
--libdir=DIR object code libraries [EPREFIX/lib]
|
1268
|
+
--includedir=DIR C header files [PREFIX/include]
|
1269
|
+
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
1270
|
+
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
1271
|
+
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
1272
|
+
--infodir=DIR info documentation [DATAROOTDIR/info]
|
1273
|
+
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
1274
|
+
--mandir=DIR man documentation [DATAROOTDIR/man]
|
1275
|
+
--docdir=DIR documentation root [DATAROOTDIR/doc/yarp]
|
1276
|
+
--htmldir=DIR html documentation [DOCDIR]
|
1277
|
+
--dvidir=DIR dvi documentation [DOCDIR]
|
1278
|
+
--pdfdir=DIR pdf documentation [DOCDIR]
|
1279
|
+
--psdir=DIR ps documentation [DOCDIR]
|
1280
|
+
_ACEOF
|
1281
|
+
|
1282
|
+
cat <<\_ACEOF
|
1283
|
+
_ACEOF
|
1284
|
+
fi
|
1285
|
+
|
1286
|
+
if test -n "$ac_init_help"; then
|
1287
|
+
case $ac_init_help in
|
1288
|
+
short | recursive ) echo "Configuration of YARP _YP_VERSION:";;
|
1289
|
+
esac
|
1290
|
+
cat <<\_ACEOF
|
1291
|
+
|
1292
|
+
Some influential environment variables:
|
1293
|
+
CC C compiler command
|
1294
|
+
CFLAGS C compiler flags
|
1295
|
+
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
1296
|
+
nonstandard directory <lib dir>
|
1297
|
+
LIBS libraries to pass to the linker, e.g. -l<library>
|
1298
|
+
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
1299
|
+
you have headers in a nonstandard directory <include dir>
|
1300
|
+
|
1301
|
+
Use these variables to override the choices made by `configure' or to help
|
1302
|
+
it to find libraries and programs with nonstandard names/locations.
|
1303
|
+
|
1304
|
+
Report bugs to <https://github.com/ruby/yarp/issues/new>.
|
1305
|
+
YARP home page: <https://github.com/ruby/yarp>.
|
1306
|
+
_ACEOF
|
1307
|
+
ac_status=$?
|
1308
|
+
fi
|
1309
|
+
|
1310
|
+
if test "$ac_init_help" = "recursive"; then
|
1311
|
+
# If there are subdirs, report their specific --help.
|
1312
|
+
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
1313
|
+
test -d "$ac_dir" ||
|
1314
|
+
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
1315
|
+
continue
|
1316
|
+
ac_builddir=.
|
1317
|
+
|
1318
|
+
case "$ac_dir" in
|
1319
|
+
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
1320
|
+
*)
|
1321
|
+
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
|
1322
|
+
# A ".." for each directory in $ac_dir_suffix.
|
1323
|
+
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
1324
|
+
case $ac_top_builddir_sub in
|
1325
|
+
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
1326
|
+
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
1327
|
+
esac ;;
|
1328
|
+
esac
|
1329
|
+
ac_abs_top_builddir=$ac_pwd
|
1330
|
+
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
1331
|
+
# for backward compatibility:
|
1332
|
+
ac_top_builddir=$ac_top_build_prefix
|
1333
|
+
|
1334
|
+
case $srcdir in
|
1335
|
+
.) # We are building in place.
|
1336
|
+
ac_srcdir=.
|
1337
|
+
ac_top_srcdir=$ac_top_builddir_sub
|
1338
|
+
ac_abs_top_srcdir=$ac_pwd ;;
|
1339
|
+
[\\/]* | ?:[\\/]* ) # Absolute name.
|
1340
|
+
ac_srcdir=$srcdir$ac_dir_suffix;
|
1341
|
+
ac_top_srcdir=$srcdir
|
1342
|
+
ac_abs_top_srcdir=$srcdir ;;
|
1343
|
+
*) # Relative name.
|
1344
|
+
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
1345
|
+
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
1346
|
+
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
1347
|
+
esac
|
1348
|
+
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
1349
|
+
|
1350
|
+
cd "$ac_dir" || { ac_status=$?; continue; }
|
1351
|
+
# Check for configure.gnu first; this name is used for a wrapper for
|
1352
|
+
# Metaconfig's "Configure" on case-insensitive file systems.
|
1353
|
+
if test -f "$ac_srcdir/configure.gnu"; then
|
1354
|
+
echo &&
|
1355
|
+
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
1356
|
+
elif test -f "$ac_srcdir/configure"; then
|
1357
|
+
echo &&
|
1358
|
+
$SHELL "$ac_srcdir/configure" --help=recursive
|
1359
|
+
else
|
1360
|
+
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
1361
|
+
fi || ac_status=$?
|
1362
|
+
cd "$ac_pwd" || { ac_status=$?; break; }
|
1363
|
+
done
|
1364
|
+
fi
|
1365
|
+
|
1366
|
+
test -n "$ac_init_help" && exit $ac_status
|
1367
|
+
if $ac_init_version; then
|
1368
|
+
cat <<\_ACEOF
|
1369
|
+
YARP configure _YP_VERSION
|
1370
|
+
generated by GNU Autoconf 2.71
|
1371
|
+
|
1372
|
+
Copyright (C) 2021 Free Software Foundation, Inc.
|
1373
|
+
This configure script is free software; the Free Software Foundation
|
1374
|
+
gives unlimited permission to copy, distribute and modify it.
|
1375
|
+
_ACEOF
|
1376
|
+
exit
|
1377
|
+
fi
|
1378
|
+
|
1379
|
+
## ------------------------ ##
|
1380
|
+
## Autoconf initialization. ##
|
1381
|
+
## ------------------------ ##
|
1382
|
+
|
1383
|
+
# ac_fn_c_try_compile LINENO
|
1384
|
+
# --------------------------
|
1385
|
+
# Try to compile conftest.$ac_ext, and return whether this succeeded.
|
1386
|
+
ac_fn_c_try_compile ()
|
1387
|
+
{
|
1388
|
+
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
1389
|
+
rm -f conftest.$ac_objext conftest.beam
|
1390
|
+
if { { ac_try="$ac_compile"
|
1391
|
+
case "(($ac_try" in
|
1392
|
+
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
1393
|
+
*) ac_try_echo=$ac_try;;
|
1394
|
+
esac
|
1395
|
+
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
1396
|
+
printf "%s\n" "$ac_try_echo"; } >&5
|
1397
|
+
(eval "$ac_compile") 2>conftest.err
|
1398
|
+
ac_status=$?
|
1399
|
+
if test -s conftest.err; then
|
1400
|
+
grep -v '^ *+' conftest.err >conftest.er1
|
1401
|
+
cat conftest.er1 >&5
|
1402
|
+
mv -f conftest.er1 conftest.err
|
1403
|
+
fi
|
1404
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
1405
|
+
test $ac_status = 0; } && {
|
1406
|
+
test -z "$ac_c_werror_flag" ||
|
1407
|
+
test ! -s conftest.err
|
1408
|
+
} && test -s conftest.$ac_objext
|
1409
|
+
then :
|
1410
|
+
ac_retval=0
|
1411
|
+
else $as_nop
|
1412
|
+
printf "%s\n" "$as_me: failed program was:" >&5
|
1413
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
1414
|
+
|
1415
|
+
ac_retval=1
|
1416
|
+
fi
|
1417
|
+
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
1418
|
+
as_fn_set_status $ac_retval
|
1419
|
+
|
1420
|
+
} # ac_fn_c_try_compile
|
1421
|
+
|
1422
|
+
# ac_fn_c_try_link LINENO
|
1423
|
+
# -----------------------
|
1424
|
+
# Try to link conftest.$ac_ext, and return whether this succeeded.
|
1425
|
+
ac_fn_c_try_link ()
|
1426
|
+
{
|
1427
|
+
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
1428
|
+
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
|
1429
|
+
if { { ac_try="$ac_link"
|
1430
|
+
case "(($ac_try" in
|
1431
|
+
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
1432
|
+
*) ac_try_echo=$ac_try;;
|
1433
|
+
esac
|
1434
|
+
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
1435
|
+
printf "%s\n" "$ac_try_echo"; } >&5
|
1436
|
+
(eval "$ac_link") 2>conftest.err
|
1437
|
+
ac_status=$?
|
1438
|
+
if test -s conftest.err; then
|
1439
|
+
grep -v '^ *+' conftest.err >conftest.er1
|
1440
|
+
cat conftest.er1 >&5
|
1441
|
+
mv -f conftest.er1 conftest.err
|
1442
|
+
fi
|
1443
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
1444
|
+
test $ac_status = 0; } && {
|
1445
|
+
test -z "$ac_c_werror_flag" ||
|
1446
|
+
test ! -s conftest.err
|
1447
|
+
} && test -s conftest$ac_exeext && {
|
1448
|
+
test "$cross_compiling" = yes ||
|
1449
|
+
test -x conftest$ac_exeext
|
1450
|
+
}
|
1451
|
+
then :
|
1452
|
+
ac_retval=0
|
1453
|
+
else $as_nop
|
1454
|
+
printf "%s\n" "$as_me: failed program was:" >&5
|
1455
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
1456
|
+
|
1457
|
+
ac_retval=1
|
1458
|
+
fi
|
1459
|
+
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
1460
|
+
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
1461
|
+
# interfere with the next link command; also delete a directory that is
|
1462
|
+
# left behind by Apple's compiler. We do this before executing the actions.
|
1463
|
+
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
1464
|
+
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
1465
|
+
as_fn_set_status $ac_retval
|
1466
|
+
|
1467
|
+
} # ac_fn_c_try_link
|
1468
|
+
|
1469
|
+
# ac_fn_c_check_func LINENO FUNC VAR
|
1470
|
+
# ----------------------------------
|
1471
|
+
# Tests whether FUNC exists, setting the cache variable VAR accordingly
|
1472
|
+
ac_fn_c_check_func ()
|
1473
|
+
{
|
1474
|
+
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
1475
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
1476
|
+
printf %s "checking for $2... " >&6; }
|
1477
|
+
if eval test \${$3+y}
|
1478
|
+
then :
|
1479
|
+
printf %s "(cached) " >&6
|
1480
|
+
else $as_nop
|
1481
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
1482
|
+
/* end confdefs.h. */
|
1483
|
+
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
1484
|
+
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
1485
|
+
#define $2 innocuous_$2
|
1486
|
+
|
1487
|
+
/* System header to define __stub macros and hopefully few prototypes,
|
1488
|
+
which can conflict with char $2 (); below. */
|
1489
|
+
|
1490
|
+
#include <limits.h>
|
1491
|
+
#undef $2
|
1492
|
+
|
1493
|
+
/* Override any GCC internal prototype to avoid an error.
|
1494
|
+
Use char because int might match the return type of a GCC
|
1495
|
+
builtin and then its argument prototype would still apply. */
|
1496
|
+
#ifdef __cplusplus
|
1497
|
+
extern "C"
|
1498
|
+
#endif
|
1499
|
+
char $2 ();
|
1500
|
+
/* The GNU C library defines this for functions which it implements
|
1501
|
+
to always fail with ENOSYS. Some functions are actually named
|
1502
|
+
something starting with __ and the normal name is an alias. */
|
1503
|
+
#if defined __stub_$2 || defined __stub___$2
|
1504
|
+
choke me
|
1505
|
+
#endif
|
1506
|
+
|
1507
|
+
int
|
1508
|
+
main (void)
|
1509
|
+
{
|
1510
|
+
return $2 ();
|
1511
|
+
;
|
1512
|
+
return 0;
|
1513
|
+
}
|
1514
|
+
_ACEOF
|
1515
|
+
if ac_fn_c_try_link "$LINENO"
|
1516
|
+
then :
|
1517
|
+
eval "$3=yes"
|
1518
|
+
else $as_nop
|
1519
|
+
eval "$3=no"
|
1520
|
+
fi
|
1521
|
+
rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
1522
|
+
conftest$ac_exeext conftest.$ac_ext
|
1523
|
+
fi
|
1524
|
+
eval ac_res=\$$3
|
1525
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
1526
|
+
printf "%s\n" "$ac_res" >&6; }
|
1527
|
+
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
1528
|
+
|
1529
|
+
} # ac_fn_c_check_func
|
1530
|
+
ac_configure_args_raw=
|
1531
|
+
for ac_arg
|
1532
|
+
do
|
1533
|
+
case $ac_arg in
|
1534
|
+
*\'*)
|
1535
|
+
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
1536
|
+
esac
|
1537
|
+
as_fn_append ac_configure_args_raw " '$ac_arg'"
|
1538
|
+
done
|
1539
|
+
|
1540
|
+
case $ac_configure_args_raw in
|
1541
|
+
*$as_nl*)
|
1542
|
+
ac_safe_unquote= ;;
|
1543
|
+
*)
|
1544
|
+
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
|
1545
|
+
ac_unsafe_a="$ac_unsafe_z#~"
|
1546
|
+
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
|
1547
|
+
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
|
1548
|
+
esac
|
1549
|
+
|
1550
|
+
cat >config.log <<_ACEOF
|
1551
|
+
This file contains any messages produced by compilers while
|
1552
|
+
running configure, to aid debugging if configure makes a mistake.
|
1553
|
+
|
1554
|
+
It was created by YARP $as_me _YP_VERSION, which was
|
1555
|
+
generated by GNU Autoconf 2.71. Invocation command line was
|
1556
|
+
|
1557
|
+
$ $0$ac_configure_args_raw
|
1558
|
+
|
1559
|
+
_ACEOF
|
1560
|
+
exec 5>>config.log
|
1561
|
+
{
|
1562
|
+
cat <<_ASUNAME
|
1563
|
+
## --------- ##
|
1564
|
+
## Platform. ##
|
1565
|
+
## --------- ##
|
1566
|
+
|
1567
|
+
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
1568
|
+
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
1569
|
+
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
1570
|
+
uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
1571
|
+
uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
1572
|
+
|
1573
|
+
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
1574
|
+
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
1575
|
+
|
1576
|
+
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
1577
|
+
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
1578
|
+
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
1579
|
+
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
1580
|
+
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
1581
|
+
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
1582
|
+
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
1583
|
+
|
1584
|
+
_ASUNAME
|
1585
|
+
|
1586
|
+
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1587
|
+
for as_dir in $PATH
|
1588
|
+
do
|
1589
|
+
IFS=$as_save_IFS
|
1590
|
+
case $as_dir in #(((
|
1591
|
+
'') as_dir=./ ;;
|
1592
|
+
*/) ;;
|
1593
|
+
*) as_dir=$as_dir/ ;;
|
1594
|
+
esac
|
1595
|
+
printf "%s\n" "PATH: $as_dir"
|
1596
|
+
done
|
1597
|
+
IFS=$as_save_IFS
|
1598
|
+
|
1599
|
+
} >&5
|
1600
|
+
|
1601
|
+
cat >&5 <<_ACEOF
|
1602
|
+
|
1603
|
+
|
1604
|
+
## ----------- ##
|
1605
|
+
## Core tests. ##
|
1606
|
+
## ----------- ##
|
1607
|
+
|
1608
|
+
_ACEOF
|
1609
|
+
|
1610
|
+
|
1611
|
+
# Keep a trace of the command line.
|
1612
|
+
# Strip out --no-create and --no-recursion so they do not pile up.
|
1613
|
+
# Strip out --silent because we don't want to record it for future runs.
|
1614
|
+
# Also quote any args containing shell meta-characters.
|
1615
|
+
# Make two passes to allow for proper duplicate-argument suppression.
|
1616
|
+
ac_configure_args=
|
1617
|
+
ac_configure_args0=
|
1618
|
+
ac_configure_args1=
|
1619
|
+
ac_must_keep_next=false
|
1620
|
+
for ac_pass in 1 2
|
1621
|
+
do
|
1622
|
+
for ac_arg
|
1623
|
+
do
|
1624
|
+
case $ac_arg in
|
1625
|
+
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
1626
|
+
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
1627
|
+
| -silent | --silent | --silen | --sile | --sil)
|
1628
|
+
continue ;;
|
1629
|
+
*\'*)
|
1630
|
+
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
1631
|
+
esac
|
1632
|
+
case $ac_pass in
|
1633
|
+
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
1634
|
+
2)
|
1635
|
+
as_fn_append ac_configure_args1 " '$ac_arg'"
|
1636
|
+
if test $ac_must_keep_next = true; then
|
1637
|
+
ac_must_keep_next=false # Got value, back to normal.
|
1638
|
+
else
|
1639
|
+
case $ac_arg in
|
1640
|
+
*=* | --config-cache | -C | -disable-* | --disable-* \
|
1641
|
+
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
1642
|
+
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
1643
|
+
| -with-* | --with-* | -without-* | --without-* | --x)
|
1644
|
+
case "$ac_configure_args0 " in
|
1645
|
+
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
1646
|
+
esac
|
1647
|
+
;;
|
1648
|
+
-* ) ac_must_keep_next=true ;;
|
1649
|
+
esac
|
1650
|
+
fi
|
1651
|
+
as_fn_append ac_configure_args " '$ac_arg'"
|
1652
|
+
;;
|
1653
|
+
esac
|
1654
|
+
done
|
1655
|
+
done
|
1656
|
+
{ ac_configure_args0=; unset ac_configure_args0;}
|
1657
|
+
{ ac_configure_args1=; unset ac_configure_args1;}
|
1658
|
+
|
1659
|
+
# When interrupted or exit'd, cleanup temporary files, and complete
|
1660
|
+
# config.log. We remove comments because anyway the quotes in there
|
1661
|
+
# would cause problems or look ugly.
|
1662
|
+
# WARNING: Use '\'' to represent an apostrophe within the trap.
|
1663
|
+
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
1664
|
+
trap 'exit_status=$?
|
1665
|
+
# Sanitize IFS.
|
1666
|
+
IFS=" "" $as_nl"
|
1667
|
+
# Save into config.log some information that might help in debugging.
|
1668
|
+
{
|
1669
|
+
echo
|
1670
|
+
|
1671
|
+
printf "%s\n" "## ---------------- ##
|
1672
|
+
## Cache variables. ##
|
1673
|
+
## ---------------- ##"
|
1674
|
+
echo
|
1675
|
+
# The following way of writing the cache mishandles newlines in values,
|
1676
|
+
(
|
1677
|
+
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
1678
|
+
eval ac_val=\$$ac_var
|
1679
|
+
case $ac_val in #(
|
1680
|
+
*${as_nl}*)
|
1681
|
+
case $ac_var in #(
|
1682
|
+
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
1683
|
+
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
1684
|
+
esac
|
1685
|
+
case $ac_var in #(
|
1686
|
+
_ | IFS | as_nl) ;; #(
|
1687
|
+
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
1688
|
+
*) { eval $ac_var=; unset $ac_var;} ;;
|
1689
|
+
esac ;;
|
1690
|
+
esac
|
1691
|
+
done
|
1692
|
+
(set) 2>&1 |
|
1693
|
+
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
1694
|
+
*${as_nl}ac_space=\ *)
|
1695
|
+
sed -n \
|
1696
|
+
"s/'\''/'\''\\\\'\'''\''/g;
|
1697
|
+
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
1698
|
+
;; #(
|
1699
|
+
*)
|
1700
|
+
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
1701
|
+
;;
|
1702
|
+
esac |
|
1703
|
+
sort
|
1704
|
+
)
|
1705
|
+
echo
|
1706
|
+
|
1707
|
+
printf "%s\n" "## ----------------- ##
|
1708
|
+
## Output variables. ##
|
1709
|
+
## ----------------- ##"
|
1710
|
+
echo
|
1711
|
+
for ac_var in $ac_subst_vars
|
1712
|
+
do
|
1713
|
+
eval ac_val=\$$ac_var
|
1714
|
+
case $ac_val in
|
1715
|
+
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
1716
|
+
esac
|
1717
|
+
printf "%s\n" "$ac_var='\''$ac_val'\''"
|
1718
|
+
done | sort
|
1719
|
+
echo
|
1720
|
+
|
1721
|
+
if test -n "$ac_subst_files"; then
|
1722
|
+
printf "%s\n" "## ------------------- ##
|
1723
|
+
## File substitutions. ##
|
1724
|
+
## ------------------- ##"
|
1725
|
+
echo
|
1726
|
+
for ac_var in $ac_subst_files
|
1727
|
+
do
|
1728
|
+
eval ac_val=\$$ac_var
|
1729
|
+
case $ac_val in
|
1730
|
+
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
1731
|
+
esac
|
1732
|
+
printf "%s\n" "$ac_var='\''$ac_val'\''"
|
1733
|
+
done | sort
|
1734
|
+
echo
|
1735
|
+
fi
|
1736
|
+
|
1737
|
+
if test -s confdefs.h; then
|
1738
|
+
printf "%s\n" "## ----------- ##
|
1739
|
+
## confdefs.h. ##
|
1740
|
+
## ----------- ##"
|
1741
|
+
echo
|
1742
|
+
cat confdefs.h
|
1743
|
+
echo
|
1744
|
+
fi
|
1745
|
+
test "$ac_signal" != 0 &&
|
1746
|
+
printf "%s\n" "$as_me: caught signal $ac_signal"
|
1747
|
+
printf "%s\n" "$as_me: exit $exit_status"
|
1748
|
+
} >&5
|
1749
|
+
rm -f core *.core core.conftest.* &&
|
1750
|
+
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
1751
|
+
exit $exit_status
|
1752
|
+
' 0
|
1753
|
+
for ac_signal in 1 2 13 15; do
|
1754
|
+
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
1755
|
+
done
|
1756
|
+
ac_signal=0
|
1757
|
+
|
1758
|
+
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
1759
|
+
rm -f -r conftest* confdefs.h
|
1760
|
+
|
1761
|
+
printf "%s\n" "/* confdefs.h */" > confdefs.h
|
1762
|
+
|
1763
|
+
# Predefined preprocessor variables.
|
1764
|
+
|
1765
|
+
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
|
1766
|
+
|
1767
|
+
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
|
1768
|
+
|
1769
|
+
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
|
1770
|
+
|
1771
|
+
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
|
1772
|
+
|
1773
|
+
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
|
1774
|
+
|
1775
|
+
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
|
1776
|
+
|
1777
|
+
|
1778
|
+
# Let the site file select an alternate cache file if it wants to.
|
1779
|
+
# Prefer an explicitly selected file to automatically selected ones.
|
1780
|
+
if test -n "$CONFIG_SITE"; then
|
1781
|
+
ac_site_files="$CONFIG_SITE"
|
1782
|
+
elif test "x$prefix" != xNONE; then
|
1783
|
+
ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
|
1784
|
+
else
|
1785
|
+
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
1786
|
+
fi
|
1787
|
+
|
1788
|
+
for ac_site_file in $ac_site_files
|
1789
|
+
do
|
1790
|
+
case $ac_site_file in #(
|
1791
|
+
*/*) :
|
1792
|
+
;; #(
|
1793
|
+
*) :
|
1794
|
+
ac_site_file=./$ac_site_file ;;
|
1795
|
+
esac
|
1796
|
+
if test -f "$ac_site_file" && test -r "$ac_site_file"; then
|
1797
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
1798
|
+
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
|
1799
|
+
sed 's/^/| /' "$ac_site_file" >&5
|
1800
|
+
. "$ac_site_file" \
|
1801
|
+
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
1802
|
+
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
1803
|
+
as_fn_error $? "failed to load site script $ac_site_file
|
1804
|
+
See \`config.log' for more details" "$LINENO" 5; }
|
1805
|
+
fi
|
1806
|
+
done
|
1807
|
+
|
1808
|
+
if test -r "$cache_file"; then
|
1809
|
+
# Some versions of bash will fail to source /dev/null (special files
|
1810
|
+
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
1811
|
+
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
1812
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
1813
|
+
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
|
1814
|
+
case $cache_file in
|
1815
|
+
[\\/]* | ?:[\\/]* ) . "$cache_file";;
|
1816
|
+
*) . "./$cache_file";;
|
1817
|
+
esac
|
1818
|
+
fi
|
1819
|
+
else
|
1820
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
1821
|
+
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
|
1822
|
+
>$cache_file
|
1823
|
+
fi
|
1824
|
+
|
1825
|
+
# Test code for whether the C compiler supports C89 (global declarations)
|
1826
|
+
ac_c_conftest_c89_globals='
|
1827
|
+
/* Does the compiler advertise C89 conformance?
|
1828
|
+
Do not test the value of __STDC__, because some compilers set it to 0
|
1829
|
+
while being otherwise adequately conformant. */
|
1830
|
+
#if !defined __STDC__
|
1831
|
+
# error "Compiler does not advertise C89 conformance"
|
1832
|
+
#endif
|
1833
|
+
|
1834
|
+
#include <stddef.h>
|
1835
|
+
#include <stdarg.h>
|
1836
|
+
struct stat;
|
1837
|
+
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
|
1838
|
+
struct buf { int x; };
|
1839
|
+
struct buf * (*rcsopen) (struct buf *, struct stat *, int);
|
1840
|
+
static char *e (p, i)
|
1841
|
+
char **p;
|
1842
|
+
int i;
|
1843
|
+
{
|
1844
|
+
return p[i];
|
1845
|
+
}
|
1846
|
+
static char *f (char * (*g) (char **, int), char **p, ...)
|
1847
|
+
{
|
1848
|
+
char *s;
|
1849
|
+
va_list v;
|
1850
|
+
va_start (v,p);
|
1851
|
+
s = g (p, va_arg (v,int));
|
1852
|
+
va_end (v);
|
1853
|
+
return s;
|
1854
|
+
}
|
1855
|
+
|
1856
|
+
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
1857
|
+
function prototypes and stuff, but not \xHH hex character constants.
|
1858
|
+
These do not provoke an error unfortunately, instead are silently treated
|
1859
|
+
as an "x". The following induces an error, until -std is added to get
|
1860
|
+
proper ANSI mode. Curiously \x00 != x always comes out true, for an
|
1861
|
+
array size at least. It is necessary to write \x00 == 0 to get something
|
1862
|
+
that is true only with -std. */
|
1863
|
+
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
|
1864
|
+
|
1865
|
+
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
1866
|
+
inside strings and character constants. */
|
1867
|
+
#define FOO(x) '\''x'\''
|
1868
|
+
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
|
1869
|
+
|
1870
|
+
int test (int i, double x);
|
1871
|
+
struct s1 {int (*f) (int a);};
|
1872
|
+
struct s2 {int (*f) (double a);};
|
1873
|
+
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
|
1874
|
+
int, int);'
|
1875
|
+
|
1876
|
+
# Test code for whether the C compiler supports C89 (body of main).
|
1877
|
+
ac_c_conftest_c89_main='
|
1878
|
+
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
|
1879
|
+
'
|
1880
|
+
|
1881
|
+
# Test code for whether the C compiler supports C99 (global declarations)
|
1882
|
+
ac_c_conftest_c99_globals='
|
1883
|
+
// Does the compiler advertise C99 conformance?
|
1884
|
+
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
|
1885
|
+
# error "Compiler does not advertise C99 conformance"
|
1886
|
+
#endif
|
1887
|
+
|
1888
|
+
#include <stdbool.h>
|
1889
|
+
extern int puts (const char *);
|
1890
|
+
extern int printf (const char *, ...);
|
1891
|
+
extern int dprintf (int, const char *, ...);
|
1892
|
+
extern void *malloc (size_t);
|
1893
|
+
|
1894
|
+
// Check varargs macros. These examples are taken from C99 6.10.3.5.
|
1895
|
+
// dprintf is used instead of fprintf to avoid needing to declare
|
1896
|
+
// FILE and stderr.
|
1897
|
+
#define debug(...) dprintf (2, __VA_ARGS__)
|
1898
|
+
#define showlist(...) puts (#__VA_ARGS__)
|
1899
|
+
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
|
1900
|
+
static void
|
1901
|
+
test_varargs_macros (void)
|
1902
|
+
{
|
1903
|
+
int x = 1234;
|
1904
|
+
int y = 5678;
|
1905
|
+
debug ("Flag");
|
1906
|
+
debug ("X = %d\n", x);
|
1907
|
+
showlist (The first, second, and third items.);
|
1908
|
+
report (x>y, "x is %d but y is %d", x, y);
|
1909
|
+
}
|
1910
|
+
|
1911
|
+
// Check long long types.
|
1912
|
+
#define BIG64 18446744073709551615ull
|
1913
|
+
#define BIG32 4294967295ul
|
1914
|
+
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
|
1915
|
+
#if !BIG_OK
|
1916
|
+
#error "your preprocessor is broken"
|
1917
|
+
#endif
|
1918
|
+
#if BIG_OK
|
1919
|
+
#else
|
1920
|
+
#error "your preprocessor is broken"
|
1921
|
+
#endif
|
1922
|
+
static long long int bignum = -9223372036854775807LL;
|
1923
|
+
static unsigned long long int ubignum = BIG64;
|
1924
|
+
|
1925
|
+
struct incomplete_array
|
1926
|
+
{
|
1927
|
+
int datasize;
|
1928
|
+
double data[];
|
1929
|
+
};
|
1930
|
+
|
1931
|
+
struct named_init {
|
1932
|
+
int number;
|
1933
|
+
const wchar_t *name;
|
1934
|
+
double average;
|
1935
|
+
};
|
1936
|
+
|
1937
|
+
typedef const char *ccp;
|
1938
|
+
|
1939
|
+
static inline int
|
1940
|
+
test_restrict (ccp restrict text)
|
1941
|
+
{
|
1942
|
+
// See if C++-style comments work.
|
1943
|
+
// Iterate through items via the restricted pointer.
|
1944
|
+
// Also check for declarations in for loops.
|
1945
|
+
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
|
1946
|
+
continue;
|
1947
|
+
return 0;
|
1948
|
+
}
|
1949
|
+
|
1950
|
+
// Check varargs and va_copy.
|
1951
|
+
static bool
|
1952
|
+
test_varargs (const char *format, ...)
|
1953
|
+
{
|
1954
|
+
va_list args;
|
1955
|
+
va_start (args, format);
|
1956
|
+
va_list args_copy;
|
1957
|
+
va_copy (args_copy, args);
|
1958
|
+
|
1959
|
+
const char *str = "";
|
1960
|
+
int number = 0;
|
1961
|
+
float fnumber = 0;
|
1962
|
+
|
1963
|
+
while (*format)
|
1964
|
+
{
|
1965
|
+
switch (*format++)
|
1966
|
+
{
|
1967
|
+
case '\''s'\'': // string
|
1968
|
+
str = va_arg (args_copy, const char *);
|
1969
|
+
break;
|
1970
|
+
case '\''d'\'': // int
|
1971
|
+
number = va_arg (args_copy, int);
|
1972
|
+
break;
|
1973
|
+
case '\''f'\'': // float
|
1974
|
+
fnumber = va_arg (args_copy, double);
|
1975
|
+
break;
|
1976
|
+
default:
|
1977
|
+
break;
|
1978
|
+
}
|
1979
|
+
}
|
1980
|
+
va_end (args_copy);
|
1981
|
+
va_end (args);
|
1982
|
+
|
1983
|
+
return *str && number && fnumber;
|
1984
|
+
}
|
1985
|
+
'
|
1986
|
+
|
1987
|
+
# Test code for whether the C compiler supports C99 (body of main).
|
1988
|
+
ac_c_conftest_c99_main='
|
1989
|
+
// Check bool.
|
1990
|
+
_Bool success = false;
|
1991
|
+
success |= (argc != 0);
|
1992
|
+
|
1993
|
+
// Check restrict.
|
1994
|
+
if (test_restrict ("String literal") == 0)
|
1995
|
+
success = true;
|
1996
|
+
char *restrict newvar = "Another string";
|
1997
|
+
|
1998
|
+
// Check varargs.
|
1999
|
+
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
|
2000
|
+
test_varargs_macros ();
|
2001
|
+
|
2002
|
+
// Check flexible array members.
|
2003
|
+
struct incomplete_array *ia =
|
2004
|
+
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
|
2005
|
+
ia->datasize = 10;
|
2006
|
+
for (int i = 0; i < ia->datasize; ++i)
|
2007
|
+
ia->data[i] = i * 1.234;
|
2008
|
+
|
2009
|
+
// Check named initializers.
|
2010
|
+
struct named_init ni = {
|
2011
|
+
.number = 34,
|
2012
|
+
.name = L"Test wide string",
|
2013
|
+
.average = 543.34343,
|
2014
|
+
};
|
2015
|
+
|
2016
|
+
ni.number = 58;
|
2017
|
+
|
2018
|
+
int dynamic_array[ni.number];
|
2019
|
+
dynamic_array[0] = argv[0][0];
|
2020
|
+
dynamic_array[ni.number - 1] = 543;
|
2021
|
+
|
2022
|
+
// work around unused variable warnings
|
2023
|
+
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
|
2024
|
+
|| dynamic_array[ni.number - 1] != 543);
|
2025
|
+
'
|
2026
|
+
|
2027
|
+
# Test code for whether the C compiler supports C11 (global declarations)
|
2028
|
+
ac_c_conftest_c11_globals='
|
2029
|
+
// Does the compiler advertise C11 conformance?
|
2030
|
+
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
|
2031
|
+
# error "Compiler does not advertise C11 conformance"
|
2032
|
+
#endif
|
2033
|
+
|
2034
|
+
// Check _Alignas.
|
2035
|
+
char _Alignas (double) aligned_as_double;
|
2036
|
+
char _Alignas (0) no_special_alignment;
|
2037
|
+
extern char aligned_as_int;
|
2038
|
+
char _Alignas (0) _Alignas (int) aligned_as_int;
|
2039
|
+
|
2040
|
+
// Check _Alignof.
|
2041
|
+
enum
|
2042
|
+
{
|
2043
|
+
int_alignment = _Alignof (int),
|
2044
|
+
int_array_alignment = _Alignof (int[100]),
|
2045
|
+
char_alignment = _Alignof (char)
|
2046
|
+
};
|
2047
|
+
_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
|
2048
|
+
|
2049
|
+
// Check _Noreturn.
|
2050
|
+
int _Noreturn does_not_return (void) { for (;;) continue; }
|
2051
|
+
|
2052
|
+
// Check _Static_assert.
|
2053
|
+
struct test_static_assert
|
2054
|
+
{
|
2055
|
+
int x;
|
2056
|
+
_Static_assert (sizeof (int) <= sizeof (long int),
|
2057
|
+
"_Static_assert does not work in struct");
|
2058
|
+
long int y;
|
2059
|
+
};
|
2060
|
+
|
2061
|
+
// Check UTF-8 literals.
|
2062
|
+
#define u8 syntax error!
|
2063
|
+
char const utf8_literal[] = u8"happens to be ASCII" "another string";
|
2064
|
+
|
2065
|
+
// Check duplicate typedefs.
|
2066
|
+
typedef long *long_ptr;
|
2067
|
+
typedef long int *long_ptr;
|
2068
|
+
typedef long_ptr long_ptr;
|
2069
|
+
|
2070
|
+
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
|
2071
|
+
struct anonymous
|
2072
|
+
{
|
2073
|
+
union {
|
2074
|
+
struct { int i; int j; };
|
2075
|
+
struct { int k; long int l; } w;
|
2076
|
+
};
|
2077
|
+
int m;
|
2078
|
+
} v1;
|
2079
|
+
'
|
2080
|
+
|
2081
|
+
# Test code for whether the C compiler supports C11 (body of main).
|
2082
|
+
ac_c_conftest_c11_main='
|
2083
|
+
_Static_assert ((offsetof (struct anonymous, i)
|
2084
|
+
== offsetof (struct anonymous, w.k)),
|
2085
|
+
"Anonymous union alignment botch");
|
2086
|
+
v1.i = 2;
|
2087
|
+
v1.w.k = 5;
|
2088
|
+
ok |= v1.i != 5;
|
2089
|
+
'
|
2090
|
+
|
2091
|
+
# Test code for whether the C compiler supports C11 (complete).
|
2092
|
+
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
|
2093
|
+
${ac_c_conftest_c99_globals}
|
2094
|
+
${ac_c_conftest_c11_globals}
|
2095
|
+
|
2096
|
+
int
|
2097
|
+
main (int argc, char **argv)
|
2098
|
+
{
|
2099
|
+
int ok = 0;
|
2100
|
+
${ac_c_conftest_c89_main}
|
2101
|
+
${ac_c_conftest_c99_main}
|
2102
|
+
${ac_c_conftest_c11_main}
|
2103
|
+
return ok;
|
2104
|
+
}
|
2105
|
+
"
|
2106
|
+
|
2107
|
+
# Test code for whether the C compiler supports C99 (complete).
|
2108
|
+
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
|
2109
|
+
${ac_c_conftest_c99_globals}
|
2110
|
+
|
2111
|
+
int
|
2112
|
+
main (int argc, char **argv)
|
2113
|
+
{
|
2114
|
+
int ok = 0;
|
2115
|
+
${ac_c_conftest_c89_main}
|
2116
|
+
${ac_c_conftest_c99_main}
|
2117
|
+
return ok;
|
2118
|
+
}
|
2119
|
+
"
|
2120
|
+
|
2121
|
+
# Test code for whether the C compiler supports C89 (complete).
|
2122
|
+
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
|
2123
|
+
|
2124
|
+
int
|
2125
|
+
main (int argc, char **argv)
|
2126
|
+
{
|
2127
|
+
int ok = 0;
|
2128
|
+
${ac_c_conftest_c89_main}
|
2129
|
+
return ok;
|
2130
|
+
}
|
2131
|
+
"
|
2132
|
+
|
2133
|
+
# Check that the precious variables saved in the cache have kept the same
|
2134
|
+
# value.
|
2135
|
+
ac_cache_corrupted=false
|
2136
|
+
for ac_var in $ac_precious_vars; do
|
2137
|
+
eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
2138
|
+
eval ac_new_set=\$ac_env_${ac_var}_set
|
2139
|
+
eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
2140
|
+
eval ac_new_val=\$ac_env_${ac_var}_value
|
2141
|
+
case $ac_old_set,$ac_new_set in
|
2142
|
+
set,)
|
2143
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
2144
|
+
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
2145
|
+
ac_cache_corrupted=: ;;
|
2146
|
+
,set)
|
2147
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
2148
|
+
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
2149
|
+
ac_cache_corrupted=: ;;
|
2150
|
+
,);;
|
2151
|
+
*)
|
2152
|
+
if test "x$ac_old_val" != "x$ac_new_val"; then
|
2153
|
+
# differences in whitespace do not lead to failure.
|
2154
|
+
ac_old_val_w=`echo x $ac_old_val`
|
2155
|
+
ac_new_val_w=`echo x $ac_new_val`
|
2156
|
+
if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
2157
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
2158
|
+
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
2159
|
+
ac_cache_corrupted=:
|
2160
|
+
else
|
2161
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
2162
|
+
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
2163
|
+
eval $ac_var=\$ac_old_val
|
2164
|
+
fi
|
2165
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
2166
|
+
printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
|
2167
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
2168
|
+
printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
|
2169
|
+
fi;;
|
2170
|
+
esac
|
2171
|
+
# Pass precious variables to config.status.
|
2172
|
+
if test "$ac_new_set" = set; then
|
2173
|
+
case $ac_new_val in
|
2174
|
+
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
2175
|
+
*) ac_arg=$ac_var=$ac_new_val ;;
|
2176
|
+
esac
|
2177
|
+
case " $ac_configure_args " in
|
2178
|
+
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
2179
|
+
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
2180
|
+
esac
|
2181
|
+
fi
|
2182
|
+
done
|
2183
|
+
if $ac_cache_corrupted; then
|
2184
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
2185
|
+
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
2186
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
2187
|
+
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
|
2188
|
+
as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
|
2189
|
+
and start over" "$LINENO" 5
|
2190
|
+
fi
|
2191
|
+
## -------------------- ##
|
2192
|
+
## Main body of script. ##
|
2193
|
+
## -------------------- ##
|
2194
|
+
|
2195
|
+
ac_ext=c
|
2196
|
+
ac_cpp='$CPP $CPPFLAGS'
|
2197
|
+
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
2198
|
+
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
2199
|
+
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2200
|
+
|
2201
|
+
|
2202
|
+
|
2203
|
+
|
2204
|
+
|
2205
|
+
|
2206
|
+
|
2207
|
+
|
2208
|
+
|
2209
|
+
|
2210
|
+
|
2211
|
+
|
2212
|
+
ac_ext=c
|
2213
|
+
ac_cpp='$CPP $CPPFLAGS'
|
2214
|
+
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
2215
|
+
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
2216
|
+
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2217
|
+
if test -n "$ac_tool_prefix"; then
|
2218
|
+
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
2219
|
+
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
2220
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2221
|
+
printf %s "checking for $ac_word... " >&6; }
|
2222
|
+
if test ${ac_cv_prog_CC+y}
|
2223
|
+
then :
|
2224
|
+
printf %s "(cached) " >&6
|
2225
|
+
else $as_nop
|
2226
|
+
if test -n "$CC"; then
|
2227
|
+
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2228
|
+
else
|
2229
|
+
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2230
|
+
for as_dir in $PATH
|
2231
|
+
do
|
2232
|
+
IFS=$as_save_IFS
|
2233
|
+
case $as_dir in #(((
|
2234
|
+
'') as_dir=./ ;;
|
2235
|
+
*/) ;;
|
2236
|
+
*) as_dir=$as_dir/ ;;
|
2237
|
+
esac
|
2238
|
+
for ac_exec_ext in '' $ac_executable_extensions; do
|
2239
|
+
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
2240
|
+
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
2241
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
2242
|
+
break 2
|
2243
|
+
fi
|
2244
|
+
done
|
2245
|
+
done
|
2246
|
+
IFS=$as_save_IFS
|
2247
|
+
|
2248
|
+
fi
|
2249
|
+
fi
|
2250
|
+
CC=$ac_cv_prog_CC
|
2251
|
+
if test -n "$CC"; then
|
2252
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
2253
|
+
printf "%s\n" "$CC" >&6; }
|
2254
|
+
else
|
2255
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2256
|
+
printf "%s\n" "no" >&6; }
|
2257
|
+
fi
|
2258
|
+
|
2259
|
+
|
2260
|
+
fi
|
2261
|
+
if test -z "$ac_cv_prog_CC"; then
|
2262
|
+
ac_ct_CC=$CC
|
2263
|
+
# Extract the first word of "gcc", so it can be a program name with args.
|
2264
|
+
set dummy gcc; ac_word=$2
|
2265
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2266
|
+
printf %s "checking for $ac_word... " >&6; }
|
2267
|
+
if test ${ac_cv_prog_ac_ct_CC+y}
|
2268
|
+
then :
|
2269
|
+
printf %s "(cached) " >&6
|
2270
|
+
else $as_nop
|
2271
|
+
if test -n "$ac_ct_CC"; then
|
2272
|
+
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
2273
|
+
else
|
2274
|
+
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2275
|
+
for as_dir in $PATH
|
2276
|
+
do
|
2277
|
+
IFS=$as_save_IFS
|
2278
|
+
case $as_dir in #(((
|
2279
|
+
'') as_dir=./ ;;
|
2280
|
+
*/) ;;
|
2281
|
+
*) as_dir=$as_dir/ ;;
|
2282
|
+
esac
|
2283
|
+
for ac_exec_ext in '' $ac_executable_extensions; do
|
2284
|
+
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
2285
|
+
ac_cv_prog_ac_ct_CC="gcc"
|
2286
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
2287
|
+
break 2
|
2288
|
+
fi
|
2289
|
+
done
|
2290
|
+
done
|
2291
|
+
IFS=$as_save_IFS
|
2292
|
+
|
2293
|
+
fi
|
2294
|
+
fi
|
2295
|
+
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
2296
|
+
if test -n "$ac_ct_CC"; then
|
2297
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
2298
|
+
printf "%s\n" "$ac_ct_CC" >&6; }
|
2299
|
+
else
|
2300
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2301
|
+
printf "%s\n" "no" >&6; }
|
2302
|
+
fi
|
2303
|
+
|
2304
|
+
if test "x$ac_ct_CC" = x; then
|
2305
|
+
CC=""
|
2306
|
+
else
|
2307
|
+
case $cross_compiling:$ac_tool_warned in
|
2308
|
+
yes:)
|
2309
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
2310
|
+
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
2311
|
+
ac_tool_warned=yes ;;
|
2312
|
+
esac
|
2313
|
+
CC=$ac_ct_CC
|
2314
|
+
fi
|
2315
|
+
else
|
2316
|
+
CC="$ac_cv_prog_CC"
|
2317
|
+
fi
|
2318
|
+
|
2319
|
+
if test -z "$CC"; then
|
2320
|
+
if test -n "$ac_tool_prefix"; then
|
2321
|
+
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
2322
|
+
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
2323
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2324
|
+
printf %s "checking for $ac_word... " >&6; }
|
2325
|
+
if test ${ac_cv_prog_CC+y}
|
2326
|
+
then :
|
2327
|
+
printf %s "(cached) " >&6
|
2328
|
+
else $as_nop
|
2329
|
+
if test -n "$CC"; then
|
2330
|
+
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2331
|
+
else
|
2332
|
+
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2333
|
+
for as_dir in $PATH
|
2334
|
+
do
|
2335
|
+
IFS=$as_save_IFS
|
2336
|
+
case $as_dir in #(((
|
2337
|
+
'') as_dir=./ ;;
|
2338
|
+
*/) ;;
|
2339
|
+
*) as_dir=$as_dir/ ;;
|
2340
|
+
esac
|
2341
|
+
for ac_exec_ext in '' $ac_executable_extensions; do
|
2342
|
+
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
2343
|
+
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
2344
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
2345
|
+
break 2
|
2346
|
+
fi
|
2347
|
+
done
|
2348
|
+
done
|
2349
|
+
IFS=$as_save_IFS
|
2350
|
+
|
2351
|
+
fi
|
2352
|
+
fi
|
2353
|
+
CC=$ac_cv_prog_CC
|
2354
|
+
if test -n "$CC"; then
|
2355
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
2356
|
+
printf "%s\n" "$CC" >&6; }
|
2357
|
+
else
|
2358
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2359
|
+
printf "%s\n" "no" >&6; }
|
2360
|
+
fi
|
2361
|
+
|
2362
|
+
|
2363
|
+
fi
|
2364
|
+
fi
|
2365
|
+
if test -z "$CC"; then
|
2366
|
+
# Extract the first word of "cc", so it can be a program name with args.
|
2367
|
+
set dummy cc; ac_word=$2
|
2368
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2369
|
+
printf %s "checking for $ac_word... " >&6; }
|
2370
|
+
if test ${ac_cv_prog_CC+y}
|
2371
|
+
then :
|
2372
|
+
printf %s "(cached) " >&6
|
2373
|
+
else $as_nop
|
2374
|
+
if test -n "$CC"; then
|
2375
|
+
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2376
|
+
else
|
2377
|
+
ac_prog_rejected=no
|
2378
|
+
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2379
|
+
for as_dir in $PATH
|
2380
|
+
do
|
2381
|
+
IFS=$as_save_IFS
|
2382
|
+
case $as_dir in #(((
|
2383
|
+
'') as_dir=./ ;;
|
2384
|
+
*/) ;;
|
2385
|
+
*) as_dir=$as_dir/ ;;
|
2386
|
+
esac
|
2387
|
+
for ac_exec_ext in '' $ac_executable_extensions; do
|
2388
|
+
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
2389
|
+
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
2390
|
+
ac_prog_rejected=yes
|
2391
|
+
continue
|
2392
|
+
fi
|
2393
|
+
ac_cv_prog_CC="cc"
|
2394
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
2395
|
+
break 2
|
2396
|
+
fi
|
2397
|
+
done
|
2398
|
+
done
|
2399
|
+
IFS=$as_save_IFS
|
2400
|
+
|
2401
|
+
if test $ac_prog_rejected = yes; then
|
2402
|
+
# We found a bogon in the path, so make sure we never use it.
|
2403
|
+
set dummy $ac_cv_prog_CC
|
2404
|
+
shift
|
2405
|
+
if test $# != 0; then
|
2406
|
+
# We chose a different compiler from the bogus one.
|
2407
|
+
# However, it has the same basename, so the bogon will be chosen
|
2408
|
+
# first if we set CC to just the basename; use the full file name.
|
2409
|
+
shift
|
2410
|
+
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
|
2411
|
+
fi
|
2412
|
+
fi
|
2413
|
+
fi
|
2414
|
+
fi
|
2415
|
+
CC=$ac_cv_prog_CC
|
2416
|
+
if test -n "$CC"; then
|
2417
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
2418
|
+
printf "%s\n" "$CC" >&6; }
|
2419
|
+
else
|
2420
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2421
|
+
printf "%s\n" "no" >&6; }
|
2422
|
+
fi
|
2423
|
+
|
2424
|
+
|
2425
|
+
fi
|
2426
|
+
if test -z "$CC"; then
|
2427
|
+
if test -n "$ac_tool_prefix"; then
|
2428
|
+
for ac_prog in cl.exe
|
2429
|
+
do
|
2430
|
+
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
2431
|
+
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
2432
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2433
|
+
printf %s "checking for $ac_word... " >&6; }
|
2434
|
+
if test ${ac_cv_prog_CC+y}
|
2435
|
+
then :
|
2436
|
+
printf %s "(cached) " >&6
|
2437
|
+
else $as_nop
|
2438
|
+
if test -n "$CC"; then
|
2439
|
+
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2440
|
+
else
|
2441
|
+
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2442
|
+
for as_dir in $PATH
|
2443
|
+
do
|
2444
|
+
IFS=$as_save_IFS
|
2445
|
+
case $as_dir in #(((
|
2446
|
+
'') as_dir=./ ;;
|
2447
|
+
*/) ;;
|
2448
|
+
*) as_dir=$as_dir/ ;;
|
2449
|
+
esac
|
2450
|
+
for ac_exec_ext in '' $ac_executable_extensions; do
|
2451
|
+
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
2452
|
+
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
2453
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
2454
|
+
break 2
|
2455
|
+
fi
|
2456
|
+
done
|
2457
|
+
done
|
2458
|
+
IFS=$as_save_IFS
|
2459
|
+
|
2460
|
+
fi
|
2461
|
+
fi
|
2462
|
+
CC=$ac_cv_prog_CC
|
2463
|
+
if test -n "$CC"; then
|
2464
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
2465
|
+
printf "%s\n" "$CC" >&6; }
|
2466
|
+
else
|
2467
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2468
|
+
printf "%s\n" "no" >&6; }
|
2469
|
+
fi
|
2470
|
+
|
2471
|
+
|
2472
|
+
test -n "$CC" && break
|
2473
|
+
done
|
2474
|
+
fi
|
2475
|
+
if test -z "$CC"; then
|
2476
|
+
ac_ct_CC=$CC
|
2477
|
+
for ac_prog in cl.exe
|
2478
|
+
do
|
2479
|
+
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
2480
|
+
set dummy $ac_prog; ac_word=$2
|
2481
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2482
|
+
printf %s "checking for $ac_word... " >&6; }
|
2483
|
+
if test ${ac_cv_prog_ac_ct_CC+y}
|
2484
|
+
then :
|
2485
|
+
printf %s "(cached) " >&6
|
2486
|
+
else $as_nop
|
2487
|
+
if test -n "$ac_ct_CC"; then
|
2488
|
+
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
2489
|
+
else
|
2490
|
+
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2491
|
+
for as_dir in $PATH
|
2492
|
+
do
|
2493
|
+
IFS=$as_save_IFS
|
2494
|
+
case $as_dir in #(((
|
2495
|
+
'') as_dir=./ ;;
|
2496
|
+
*/) ;;
|
2497
|
+
*) as_dir=$as_dir/ ;;
|
2498
|
+
esac
|
2499
|
+
for ac_exec_ext in '' $ac_executable_extensions; do
|
2500
|
+
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
2501
|
+
ac_cv_prog_ac_ct_CC="$ac_prog"
|
2502
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
2503
|
+
break 2
|
2504
|
+
fi
|
2505
|
+
done
|
2506
|
+
done
|
2507
|
+
IFS=$as_save_IFS
|
2508
|
+
|
2509
|
+
fi
|
2510
|
+
fi
|
2511
|
+
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
2512
|
+
if test -n "$ac_ct_CC"; then
|
2513
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
2514
|
+
printf "%s\n" "$ac_ct_CC" >&6; }
|
2515
|
+
else
|
2516
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2517
|
+
printf "%s\n" "no" >&6; }
|
2518
|
+
fi
|
2519
|
+
|
2520
|
+
|
2521
|
+
test -n "$ac_ct_CC" && break
|
2522
|
+
done
|
2523
|
+
|
2524
|
+
if test "x$ac_ct_CC" = x; then
|
2525
|
+
CC=""
|
2526
|
+
else
|
2527
|
+
case $cross_compiling:$ac_tool_warned in
|
2528
|
+
yes:)
|
2529
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
2530
|
+
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
2531
|
+
ac_tool_warned=yes ;;
|
2532
|
+
esac
|
2533
|
+
CC=$ac_ct_CC
|
2534
|
+
fi
|
2535
|
+
fi
|
2536
|
+
|
2537
|
+
fi
|
2538
|
+
if test -z "$CC"; then
|
2539
|
+
if test -n "$ac_tool_prefix"; then
|
2540
|
+
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
|
2541
|
+
set dummy ${ac_tool_prefix}clang; ac_word=$2
|
2542
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2543
|
+
printf %s "checking for $ac_word... " >&6; }
|
2544
|
+
if test ${ac_cv_prog_CC+y}
|
2545
|
+
then :
|
2546
|
+
printf %s "(cached) " >&6
|
2547
|
+
else $as_nop
|
2548
|
+
if test -n "$CC"; then
|
2549
|
+
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2550
|
+
else
|
2551
|
+
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2552
|
+
for as_dir in $PATH
|
2553
|
+
do
|
2554
|
+
IFS=$as_save_IFS
|
2555
|
+
case $as_dir in #(((
|
2556
|
+
'') as_dir=./ ;;
|
2557
|
+
*/) ;;
|
2558
|
+
*) as_dir=$as_dir/ ;;
|
2559
|
+
esac
|
2560
|
+
for ac_exec_ext in '' $ac_executable_extensions; do
|
2561
|
+
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
2562
|
+
ac_cv_prog_CC="${ac_tool_prefix}clang"
|
2563
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
2564
|
+
break 2
|
2565
|
+
fi
|
2566
|
+
done
|
2567
|
+
done
|
2568
|
+
IFS=$as_save_IFS
|
2569
|
+
|
2570
|
+
fi
|
2571
|
+
fi
|
2572
|
+
CC=$ac_cv_prog_CC
|
2573
|
+
if test -n "$CC"; then
|
2574
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
2575
|
+
printf "%s\n" "$CC" >&6; }
|
2576
|
+
else
|
2577
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2578
|
+
printf "%s\n" "no" >&6; }
|
2579
|
+
fi
|
2580
|
+
|
2581
|
+
|
2582
|
+
fi
|
2583
|
+
if test -z "$ac_cv_prog_CC"; then
|
2584
|
+
ac_ct_CC=$CC
|
2585
|
+
# Extract the first word of "clang", so it can be a program name with args.
|
2586
|
+
set dummy clang; ac_word=$2
|
2587
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
2588
|
+
printf %s "checking for $ac_word... " >&6; }
|
2589
|
+
if test ${ac_cv_prog_ac_ct_CC+y}
|
2590
|
+
then :
|
2591
|
+
printf %s "(cached) " >&6
|
2592
|
+
else $as_nop
|
2593
|
+
if test -n "$ac_ct_CC"; then
|
2594
|
+
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
2595
|
+
else
|
2596
|
+
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2597
|
+
for as_dir in $PATH
|
2598
|
+
do
|
2599
|
+
IFS=$as_save_IFS
|
2600
|
+
case $as_dir in #(((
|
2601
|
+
'') as_dir=./ ;;
|
2602
|
+
*/) ;;
|
2603
|
+
*) as_dir=$as_dir/ ;;
|
2604
|
+
esac
|
2605
|
+
for ac_exec_ext in '' $ac_executable_extensions; do
|
2606
|
+
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
2607
|
+
ac_cv_prog_ac_ct_CC="clang"
|
2608
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
2609
|
+
break 2
|
2610
|
+
fi
|
2611
|
+
done
|
2612
|
+
done
|
2613
|
+
IFS=$as_save_IFS
|
2614
|
+
|
2615
|
+
fi
|
2616
|
+
fi
|
2617
|
+
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
2618
|
+
if test -n "$ac_ct_CC"; then
|
2619
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
2620
|
+
printf "%s\n" "$ac_ct_CC" >&6; }
|
2621
|
+
else
|
2622
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2623
|
+
printf "%s\n" "no" >&6; }
|
2624
|
+
fi
|
2625
|
+
|
2626
|
+
if test "x$ac_ct_CC" = x; then
|
2627
|
+
CC=""
|
2628
|
+
else
|
2629
|
+
case $cross_compiling:$ac_tool_warned in
|
2630
|
+
yes:)
|
2631
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
2632
|
+
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
2633
|
+
ac_tool_warned=yes ;;
|
2634
|
+
esac
|
2635
|
+
CC=$ac_ct_CC
|
2636
|
+
fi
|
2637
|
+
else
|
2638
|
+
CC="$ac_cv_prog_CC"
|
2639
|
+
fi
|
2640
|
+
|
2641
|
+
fi
|
2642
|
+
|
2643
|
+
|
2644
|
+
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
2645
|
+
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
2646
|
+
as_fn_error $? "no acceptable C compiler found in \$PATH
|
2647
|
+
See \`config.log' for more details" "$LINENO" 5; }
|
2648
|
+
|
2649
|
+
# Provide some information about the compiler.
|
2650
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
2651
|
+
set X $ac_compile
|
2652
|
+
ac_compiler=$2
|
2653
|
+
for ac_option in --version -v -V -qversion -version; do
|
2654
|
+
{ { ac_try="$ac_compiler $ac_option >&5"
|
2655
|
+
case "(($ac_try" in
|
2656
|
+
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2657
|
+
*) ac_try_echo=$ac_try;;
|
2658
|
+
esac
|
2659
|
+
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
2660
|
+
printf "%s\n" "$ac_try_echo"; } >&5
|
2661
|
+
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
2662
|
+
ac_status=$?
|
2663
|
+
if test -s conftest.err; then
|
2664
|
+
sed '10a\
|
2665
|
+
... rest of stderr output deleted ...
|
2666
|
+
10q' conftest.err >conftest.er1
|
2667
|
+
cat conftest.er1 >&5
|
2668
|
+
fi
|
2669
|
+
rm -f conftest.er1 conftest.err
|
2670
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
2671
|
+
test $ac_status = 0; }
|
2672
|
+
done
|
2673
|
+
|
2674
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2675
|
+
/* end confdefs.h. */
|
2676
|
+
|
2677
|
+
int
|
2678
|
+
main (void)
|
2679
|
+
{
|
2680
|
+
|
2681
|
+
;
|
2682
|
+
return 0;
|
2683
|
+
}
|
2684
|
+
_ACEOF
|
2685
|
+
ac_clean_files_save=$ac_clean_files
|
2686
|
+
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
2687
|
+
# Try to create an executable without -o first, disregard a.out.
|
2688
|
+
# It will help us diagnose broken compilers, and finding out an intuition
|
2689
|
+
# of exeext.
|
2690
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
2691
|
+
printf %s "checking whether the C compiler works... " >&6; }
|
2692
|
+
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
2693
|
+
|
2694
|
+
# The possible output files:
|
2695
|
+
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
2696
|
+
|
2697
|
+
ac_rmfiles=
|
2698
|
+
for ac_file in $ac_files
|
2699
|
+
do
|
2700
|
+
case $ac_file in
|
2701
|
+
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
2702
|
+
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
2703
|
+
esac
|
2704
|
+
done
|
2705
|
+
rm -f $ac_rmfiles
|
2706
|
+
|
2707
|
+
if { { ac_try="$ac_link_default"
|
2708
|
+
case "(($ac_try" in
|
2709
|
+
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2710
|
+
*) ac_try_echo=$ac_try;;
|
2711
|
+
esac
|
2712
|
+
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
2713
|
+
printf "%s\n" "$ac_try_echo"; } >&5
|
2714
|
+
(eval "$ac_link_default") 2>&5
|
2715
|
+
ac_status=$?
|
2716
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
2717
|
+
test $ac_status = 0; }
|
2718
|
+
then :
|
2719
|
+
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
2720
|
+
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
2721
|
+
# in a Makefile. We should not override ac_cv_exeext if it was cached,
|
2722
|
+
# so that the user can short-circuit this test for compilers unknown to
|
2723
|
+
# Autoconf.
|
2724
|
+
for ac_file in $ac_files ''
|
2725
|
+
do
|
2726
|
+
test -f "$ac_file" || continue
|
2727
|
+
case $ac_file in
|
2728
|
+
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
2729
|
+
;;
|
2730
|
+
[ab].out )
|
2731
|
+
# We found the default executable, but exeext='' is most
|
2732
|
+
# certainly right.
|
2733
|
+
break;;
|
2734
|
+
*.* )
|
2735
|
+
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
|
2736
|
+
then :; else
|
2737
|
+
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
2738
|
+
fi
|
2739
|
+
# We set ac_cv_exeext here because the later test for it is not
|
2740
|
+
# safe: cross compilers may not add the suffix if given an `-o'
|
2741
|
+
# argument, so we may need to know it at that point already.
|
2742
|
+
# Even if this section looks crufty: it has the advantage of
|
2743
|
+
# actually working.
|
2744
|
+
break;;
|
2745
|
+
* )
|
2746
|
+
break;;
|
2747
|
+
esac
|
2748
|
+
done
|
2749
|
+
test "$ac_cv_exeext" = no && ac_cv_exeext=
|
2750
|
+
|
2751
|
+
else $as_nop
|
2752
|
+
ac_file=''
|
2753
|
+
fi
|
2754
|
+
if test -z "$ac_file"
|
2755
|
+
then :
|
2756
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
2757
|
+
printf "%s\n" "no" >&6; }
|
2758
|
+
printf "%s\n" "$as_me: failed program was:" >&5
|
2759
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
2760
|
+
|
2761
|
+
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
2762
|
+
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
2763
|
+
as_fn_error 77 "C compiler cannot create executables
|
2764
|
+
See \`config.log' for more details" "$LINENO" 5; }
|
2765
|
+
else $as_nop
|
2766
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
2767
|
+
printf "%s\n" "yes" >&6; }
|
2768
|
+
fi
|
2769
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
2770
|
+
printf %s "checking for C compiler default output file name... " >&6; }
|
2771
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
2772
|
+
printf "%s\n" "$ac_file" >&6; }
|
2773
|
+
ac_exeext=$ac_cv_exeext
|
2774
|
+
|
2775
|
+
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
2776
|
+
ac_clean_files=$ac_clean_files_save
|
2777
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
2778
|
+
printf %s "checking for suffix of executables... " >&6; }
|
2779
|
+
if { { ac_try="$ac_link"
|
2780
|
+
case "(($ac_try" in
|
2781
|
+
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2782
|
+
*) ac_try_echo=$ac_try;;
|
2783
|
+
esac
|
2784
|
+
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
2785
|
+
printf "%s\n" "$ac_try_echo"; } >&5
|
2786
|
+
(eval "$ac_link") 2>&5
|
2787
|
+
ac_status=$?
|
2788
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
2789
|
+
test $ac_status = 0; }
|
2790
|
+
then :
|
2791
|
+
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
2792
|
+
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
2793
|
+
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
2794
|
+
# `rm'.
|
2795
|
+
for ac_file in conftest.exe conftest conftest.*; do
|
2796
|
+
test -f "$ac_file" || continue
|
2797
|
+
case $ac_file in
|
2798
|
+
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
2799
|
+
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
2800
|
+
break;;
|
2801
|
+
* ) break;;
|
2802
|
+
esac
|
2803
|
+
done
|
2804
|
+
else $as_nop
|
2805
|
+
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
2806
|
+
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
2807
|
+
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
2808
|
+
See \`config.log' for more details" "$LINENO" 5; }
|
2809
|
+
fi
|
2810
|
+
rm -f conftest conftest$ac_cv_exeext
|
2811
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
2812
|
+
printf "%s\n" "$ac_cv_exeext" >&6; }
|
2813
|
+
|
2814
|
+
rm -f conftest.$ac_ext
|
2815
|
+
EXEEXT=$ac_cv_exeext
|
2816
|
+
ac_exeext=$EXEEXT
|
2817
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2818
|
+
/* end confdefs.h. */
|
2819
|
+
#include <stdio.h>
|
2820
|
+
int
|
2821
|
+
main (void)
|
2822
|
+
{
|
2823
|
+
FILE *f = fopen ("conftest.out", "w");
|
2824
|
+
return ferror (f) || fclose (f) != 0;
|
2825
|
+
|
2826
|
+
;
|
2827
|
+
return 0;
|
2828
|
+
}
|
2829
|
+
_ACEOF
|
2830
|
+
ac_clean_files="$ac_clean_files conftest.out"
|
2831
|
+
# Check that the compiler produces executables we can run. If not, either
|
2832
|
+
# the compiler is broken, or we cross compile.
|
2833
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
2834
|
+
printf %s "checking whether we are cross compiling... " >&6; }
|
2835
|
+
if test "$cross_compiling" != yes; then
|
2836
|
+
{ { ac_try="$ac_link"
|
2837
|
+
case "(($ac_try" in
|
2838
|
+
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2839
|
+
*) ac_try_echo=$ac_try;;
|
2840
|
+
esac
|
2841
|
+
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
2842
|
+
printf "%s\n" "$ac_try_echo"; } >&5
|
2843
|
+
(eval "$ac_link") 2>&5
|
2844
|
+
ac_status=$?
|
2845
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
2846
|
+
test $ac_status = 0; }
|
2847
|
+
if { ac_try='./conftest$ac_cv_exeext'
|
2848
|
+
{ { case "(($ac_try" in
|
2849
|
+
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2850
|
+
*) ac_try_echo=$ac_try;;
|
2851
|
+
esac
|
2852
|
+
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
2853
|
+
printf "%s\n" "$ac_try_echo"; } >&5
|
2854
|
+
(eval "$ac_try") 2>&5
|
2855
|
+
ac_status=$?
|
2856
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
2857
|
+
test $ac_status = 0; }; }; then
|
2858
|
+
cross_compiling=no
|
2859
|
+
else
|
2860
|
+
if test "$cross_compiling" = maybe; then
|
2861
|
+
cross_compiling=yes
|
2862
|
+
else
|
2863
|
+
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
2864
|
+
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
2865
|
+
as_fn_error 77 "cannot run C compiled programs.
|
2866
|
+
If you meant to cross compile, use \`--host'.
|
2867
|
+
See \`config.log' for more details" "$LINENO" 5; }
|
2868
|
+
fi
|
2869
|
+
fi
|
2870
|
+
fi
|
2871
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
2872
|
+
printf "%s\n" "$cross_compiling" >&6; }
|
2873
|
+
|
2874
|
+
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
2875
|
+
ac_clean_files=$ac_clean_files_save
|
2876
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
2877
|
+
printf %s "checking for suffix of object files... " >&6; }
|
2878
|
+
if test ${ac_cv_objext+y}
|
2879
|
+
then :
|
2880
|
+
printf %s "(cached) " >&6
|
2881
|
+
else $as_nop
|
2882
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2883
|
+
/* end confdefs.h. */
|
2884
|
+
|
2885
|
+
int
|
2886
|
+
main (void)
|
2887
|
+
{
|
2888
|
+
|
2889
|
+
;
|
2890
|
+
return 0;
|
2891
|
+
}
|
2892
|
+
_ACEOF
|
2893
|
+
rm -f conftest.o conftest.obj
|
2894
|
+
if { { ac_try="$ac_compile"
|
2895
|
+
case "(($ac_try" in
|
2896
|
+
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2897
|
+
*) ac_try_echo=$ac_try;;
|
2898
|
+
esac
|
2899
|
+
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
2900
|
+
printf "%s\n" "$ac_try_echo"; } >&5
|
2901
|
+
(eval "$ac_compile") 2>&5
|
2902
|
+
ac_status=$?
|
2903
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
2904
|
+
test $ac_status = 0; }
|
2905
|
+
then :
|
2906
|
+
for ac_file in conftest.o conftest.obj conftest.*; do
|
2907
|
+
test -f "$ac_file" || continue;
|
2908
|
+
case $ac_file in
|
2909
|
+
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
2910
|
+
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
2911
|
+
break;;
|
2912
|
+
esac
|
2913
|
+
done
|
2914
|
+
else $as_nop
|
2915
|
+
printf "%s\n" "$as_me: failed program was:" >&5
|
2916
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
2917
|
+
|
2918
|
+
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
2919
|
+
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
|
2920
|
+
as_fn_error $? "cannot compute suffix of object files: cannot compile
|
2921
|
+
See \`config.log' for more details" "$LINENO" 5; }
|
2922
|
+
fi
|
2923
|
+
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
2924
|
+
fi
|
2925
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
2926
|
+
printf "%s\n" "$ac_cv_objext" >&6; }
|
2927
|
+
OBJEXT=$ac_cv_objext
|
2928
|
+
ac_objext=$OBJEXT
|
2929
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
|
2930
|
+
printf %s "checking whether the compiler supports GNU C... " >&6; }
|
2931
|
+
if test ${ac_cv_c_compiler_gnu+y}
|
2932
|
+
then :
|
2933
|
+
printf %s "(cached) " >&6
|
2934
|
+
else $as_nop
|
2935
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2936
|
+
/* end confdefs.h. */
|
2937
|
+
|
2938
|
+
int
|
2939
|
+
main (void)
|
2940
|
+
{
|
2941
|
+
#ifndef __GNUC__
|
2942
|
+
choke me
|
2943
|
+
#endif
|
2944
|
+
|
2945
|
+
;
|
2946
|
+
return 0;
|
2947
|
+
}
|
2948
|
+
_ACEOF
|
2949
|
+
if ac_fn_c_try_compile "$LINENO"
|
2950
|
+
then :
|
2951
|
+
ac_compiler_gnu=yes
|
2952
|
+
else $as_nop
|
2953
|
+
ac_compiler_gnu=no
|
2954
|
+
fi
|
2955
|
+
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
2956
|
+
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
2957
|
+
|
2958
|
+
fi
|
2959
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
2960
|
+
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
|
2961
|
+
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2962
|
+
|
2963
|
+
if test $ac_compiler_gnu = yes; then
|
2964
|
+
GCC=yes
|
2965
|
+
else
|
2966
|
+
GCC=
|
2967
|
+
fi
|
2968
|
+
ac_test_CFLAGS=${CFLAGS+y}
|
2969
|
+
ac_save_CFLAGS=$CFLAGS
|
2970
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
2971
|
+
printf %s "checking whether $CC accepts -g... " >&6; }
|
2972
|
+
if test ${ac_cv_prog_cc_g+y}
|
2973
|
+
then :
|
2974
|
+
printf %s "(cached) " >&6
|
2975
|
+
else $as_nop
|
2976
|
+
ac_save_c_werror_flag=$ac_c_werror_flag
|
2977
|
+
ac_c_werror_flag=yes
|
2978
|
+
ac_cv_prog_cc_g=no
|
2979
|
+
CFLAGS="-g"
|
2980
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2981
|
+
/* end confdefs.h. */
|
2982
|
+
|
2983
|
+
int
|
2984
|
+
main (void)
|
2985
|
+
{
|
2986
|
+
|
2987
|
+
;
|
2988
|
+
return 0;
|
2989
|
+
}
|
2990
|
+
_ACEOF
|
2991
|
+
if ac_fn_c_try_compile "$LINENO"
|
2992
|
+
then :
|
2993
|
+
ac_cv_prog_cc_g=yes
|
2994
|
+
else $as_nop
|
2995
|
+
CFLAGS=""
|
2996
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2997
|
+
/* end confdefs.h. */
|
2998
|
+
|
2999
|
+
int
|
3000
|
+
main (void)
|
3001
|
+
{
|
3002
|
+
|
3003
|
+
;
|
3004
|
+
return 0;
|
3005
|
+
}
|
3006
|
+
_ACEOF
|
3007
|
+
if ac_fn_c_try_compile "$LINENO"
|
3008
|
+
then :
|
3009
|
+
|
3010
|
+
else $as_nop
|
3011
|
+
ac_c_werror_flag=$ac_save_c_werror_flag
|
3012
|
+
CFLAGS="-g"
|
3013
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
3014
|
+
/* end confdefs.h. */
|
3015
|
+
|
3016
|
+
int
|
3017
|
+
main (void)
|
3018
|
+
{
|
3019
|
+
|
3020
|
+
;
|
3021
|
+
return 0;
|
3022
|
+
}
|
3023
|
+
_ACEOF
|
3024
|
+
if ac_fn_c_try_compile "$LINENO"
|
3025
|
+
then :
|
3026
|
+
ac_cv_prog_cc_g=yes
|
3027
|
+
fi
|
3028
|
+
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
3029
|
+
fi
|
3030
|
+
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
3031
|
+
fi
|
3032
|
+
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
3033
|
+
ac_c_werror_flag=$ac_save_c_werror_flag
|
3034
|
+
fi
|
3035
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
3036
|
+
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
|
3037
|
+
if test $ac_test_CFLAGS; then
|
3038
|
+
CFLAGS=$ac_save_CFLAGS
|
3039
|
+
elif test $ac_cv_prog_cc_g = yes; then
|
3040
|
+
if test "$GCC" = yes; then
|
3041
|
+
CFLAGS="-g -O2"
|
3042
|
+
else
|
3043
|
+
CFLAGS="-g"
|
3044
|
+
fi
|
3045
|
+
else
|
3046
|
+
if test "$GCC" = yes; then
|
3047
|
+
CFLAGS="-O2"
|
3048
|
+
else
|
3049
|
+
CFLAGS=
|
3050
|
+
fi
|
3051
|
+
fi
|
3052
|
+
ac_prog_cc_stdc=no
|
3053
|
+
if test x$ac_prog_cc_stdc = xno
|
3054
|
+
then :
|
3055
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
|
3056
|
+
printf %s "checking for $CC option to enable C11 features... " >&6; }
|
3057
|
+
if test ${ac_cv_prog_cc_c11+y}
|
3058
|
+
then :
|
3059
|
+
printf %s "(cached) " >&6
|
3060
|
+
else $as_nop
|
3061
|
+
ac_cv_prog_cc_c11=no
|
3062
|
+
ac_save_CC=$CC
|
3063
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
3064
|
+
/* end confdefs.h. */
|
3065
|
+
$ac_c_conftest_c11_program
|
3066
|
+
_ACEOF
|
3067
|
+
for ac_arg in '' -std=gnu11
|
3068
|
+
do
|
3069
|
+
CC="$ac_save_CC $ac_arg"
|
3070
|
+
if ac_fn_c_try_compile "$LINENO"
|
3071
|
+
then :
|
3072
|
+
ac_cv_prog_cc_c11=$ac_arg
|
3073
|
+
fi
|
3074
|
+
rm -f core conftest.err conftest.$ac_objext conftest.beam
|
3075
|
+
test "x$ac_cv_prog_cc_c11" != "xno" && break
|
3076
|
+
done
|
3077
|
+
rm -f conftest.$ac_ext
|
3078
|
+
CC=$ac_save_CC
|
3079
|
+
fi
|
3080
|
+
|
3081
|
+
if test "x$ac_cv_prog_cc_c11" = xno
|
3082
|
+
then :
|
3083
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
3084
|
+
printf "%s\n" "unsupported" >&6; }
|
3085
|
+
else $as_nop
|
3086
|
+
if test "x$ac_cv_prog_cc_c11" = x
|
3087
|
+
then :
|
3088
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
3089
|
+
printf "%s\n" "none needed" >&6; }
|
3090
|
+
else $as_nop
|
3091
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
|
3092
|
+
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
|
3093
|
+
CC="$CC $ac_cv_prog_cc_c11"
|
3094
|
+
fi
|
3095
|
+
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
|
3096
|
+
ac_prog_cc_stdc=c11
|
3097
|
+
fi
|
3098
|
+
fi
|
3099
|
+
if test x$ac_prog_cc_stdc = xno
|
3100
|
+
then :
|
3101
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
|
3102
|
+
printf %s "checking for $CC option to enable C99 features... " >&6; }
|
3103
|
+
if test ${ac_cv_prog_cc_c99+y}
|
3104
|
+
then :
|
3105
|
+
printf %s "(cached) " >&6
|
3106
|
+
else $as_nop
|
3107
|
+
ac_cv_prog_cc_c99=no
|
3108
|
+
ac_save_CC=$CC
|
3109
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
3110
|
+
/* end confdefs.h. */
|
3111
|
+
$ac_c_conftest_c99_program
|
3112
|
+
_ACEOF
|
3113
|
+
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
|
3114
|
+
do
|
3115
|
+
CC="$ac_save_CC $ac_arg"
|
3116
|
+
if ac_fn_c_try_compile "$LINENO"
|
3117
|
+
then :
|
3118
|
+
ac_cv_prog_cc_c99=$ac_arg
|
3119
|
+
fi
|
3120
|
+
rm -f core conftest.err conftest.$ac_objext conftest.beam
|
3121
|
+
test "x$ac_cv_prog_cc_c99" != "xno" && break
|
3122
|
+
done
|
3123
|
+
rm -f conftest.$ac_ext
|
3124
|
+
CC=$ac_save_CC
|
3125
|
+
fi
|
3126
|
+
|
3127
|
+
if test "x$ac_cv_prog_cc_c99" = xno
|
3128
|
+
then :
|
3129
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
3130
|
+
printf "%s\n" "unsupported" >&6; }
|
3131
|
+
else $as_nop
|
3132
|
+
if test "x$ac_cv_prog_cc_c99" = x
|
3133
|
+
then :
|
3134
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
3135
|
+
printf "%s\n" "none needed" >&6; }
|
3136
|
+
else $as_nop
|
3137
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
|
3138
|
+
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
|
3139
|
+
CC="$CC $ac_cv_prog_cc_c99"
|
3140
|
+
fi
|
3141
|
+
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
|
3142
|
+
ac_prog_cc_stdc=c99
|
3143
|
+
fi
|
3144
|
+
fi
|
3145
|
+
if test x$ac_prog_cc_stdc = xno
|
3146
|
+
then :
|
3147
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
|
3148
|
+
printf %s "checking for $CC option to enable C89 features... " >&6; }
|
3149
|
+
if test ${ac_cv_prog_cc_c89+y}
|
3150
|
+
then :
|
3151
|
+
printf %s "(cached) " >&6
|
3152
|
+
else $as_nop
|
3153
|
+
ac_cv_prog_cc_c89=no
|
3154
|
+
ac_save_CC=$CC
|
3155
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
3156
|
+
/* end confdefs.h. */
|
3157
|
+
$ac_c_conftest_c89_program
|
3158
|
+
_ACEOF
|
3159
|
+
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
3160
|
+
do
|
3161
|
+
CC="$ac_save_CC $ac_arg"
|
3162
|
+
if ac_fn_c_try_compile "$LINENO"
|
3163
|
+
then :
|
3164
|
+
ac_cv_prog_cc_c89=$ac_arg
|
3165
|
+
fi
|
3166
|
+
rm -f core conftest.err conftest.$ac_objext conftest.beam
|
3167
|
+
test "x$ac_cv_prog_cc_c89" != "xno" && break
|
3168
|
+
done
|
3169
|
+
rm -f conftest.$ac_ext
|
3170
|
+
CC=$ac_save_CC
|
3171
|
+
fi
|
3172
|
+
|
3173
|
+
if test "x$ac_cv_prog_cc_c89" = xno
|
3174
|
+
then :
|
3175
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
3176
|
+
printf "%s\n" "unsupported" >&6; }
|
3177
|
+
else $as_nop
|
3178
|
+
if test "x$ac_cv_prog_cc_c89" = x
|
3179
|
+
then :
|
3180
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
3181
|
+
printf "%s\n" "none needed" >&6; }
|
3182
|
+
else $as_nop
|
3183
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
3184
|
+
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
|
3185
|
+
CC="$CC $ac_cv_prog_cc_c89"
|
3186
|
+
fi
|
3187
|
+
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
|
3188
|
+
ac_prog_cc_stdc=c89
|
3189
|
+
fi
|
3190
|
+
fi
|
3191
|
+
|
3192
|
+
ac_ext=c
|
3193
|
+
ac_cpp='$CPP $CPPFLAGS'
|
3194
|
+
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3195
|
+
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3196
|
+
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3197
|
+
|
3198
|
+
|
3199
|
+
|
3200
|
+
ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
|
3201
|
+
if test "x$ac_cv_func_mmap" = xyes
|
3202
|
+
then :
|
3203
|
+
printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
|
3204
|
+
|
3205
|
+
fi
|
3206
|
+
|
3207
|
+
ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
|
3208
|
+
if test "x$ac_cv_func_snprintf" = xyes
|
3209
|
+
then :
|
3210
|
+
printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
|
3211
|
+
|
3212
|
+
fi
|
3213
|
+
|
3214
|
+
|
3215
|
+
ac_config_headers="$ac_config_headers include/yarp/config.h:config.h.in"
|
3216
|
+
|
3217
|
+
ac_config_files="$ac_config_files Makefile"
|
3218
|
+
|
3219
|
+
cat >confcache <<\_ACEOF
|
3220
|
+
# This file is a shell script that caches the results of configure
|
3221
|
+
# tests run on this system so they can be shared between configure
|
3222
|
+
# scripts and configure runs, see configure's option --config-cache.
|
3223
|
+
# It is not useful on other systems. If it contains results you don't
|
3224
|
+
# want to keep, you may remove or edit it.
|
3225
|
+
#
|
3226
|
+
# config.status only pays attention to the cache file if you give it
|
3227
|
+
# the --recheck option to rerun configure.
|
3228
|
+
#
|
3229
|
+
# `ac_cv_env_foo' variables (set or unset) will be overridden when
|
3230
|
+
# loading this file, other *unset* `ac_cv_foo' will be assigned the
|
3231
|
+
# following values.
|
3232
|
+
|
3233
|
+
_ACEOF
|
3234
|
+
|
3235
|
+
# The following way of writing the cache mishandles newlines in values,
|
3236
|
+
# but we know of no workaround that is simple, portable, and efficient.
|
3237
|
+
# So, we kill variables containing newlines.
|
3238
|
+
# Ultrix sh set writes to stderr and can't be redirected directly,
|
3239
|
+
# and sets the high bit in the cache file unless we assign to the vars.
|
3240
|
+
(
|
3241
|
+
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
3242
|
+
eval ac_val=\$$ac_var
|
3243
|
+
case $ac_val in #(
|
3244
|
+
*${as_nl}*)
|
3245
|
+
case $ac_var in #(
|
3246
|
+
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
3247
|
+
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
3248
|
+
esac
|
3249
|
+
case $ac_var in #(
|
3250
|
+
_ | IFS | as_nl) ;; #(
|
3251
|
+
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
3252
|
+
*) { eval $ac_var=; unset $ac_var;} ;;
|
3253
|
+
esac ;;
|
3254
|
+
esac
|
3255
|
+
done
|
3256
|
+
|
3257
|
+
(set) 2>&1 |
|
3258
|
+
case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
3259
|
+
*${as_nl}ac_space=\ *)
|
3260
|
+
# `set' does not quote correctly, so add quotes: double-quote
|
3261
|
+
# substitution turns \\\\ into \\, and sed turns \\ into \.
|
3262
|
+
sed -n \
|
3263
|
+
"s/'/'\\\\''/g;
|
3264
|
+
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
3265
|
+
;; #(
|
3266
|
+
*)
|
3267
|
+
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
3268
|
+
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
3269
|
+
;;
|
3270
|
+
esac |
|
3271
|
+
sort
|
3272
|
+
) |
|
3273
|
+
sed '
|
3274
|
+
/^ac_cv_env_/b end
|
3275
|
+
t clear
|
3276
|
+
:clear
|
3277
|
+
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
|
3278
|
+
t end
|
3279
|
+
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
3280
|
+
:end' >>confcache
|
3281
|
+
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
3282
|
+
if test -w "$cache_file"; then
|
3283
|
+
if test "x$cache_file" != "x/dev/null"; then
|
3284
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
3285
|
+
printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
|
3286
|
+
if test ! -f "$cache_file" || test -h "$cache_file"; then
|
3287
|
+
cat confcache >"$cache_file"
|
3288
|
+
else
|
3289
|
+
case $cache_file in #(
|
3290
|
+
*/* | ?:*)
|
3291
|
+
mv -f confcache "$cache_file"$$ &&
|
3292
|
+
mv -f "$cache_file"$$ "$cache_file" ;; #(
|
3293
|
+
*)
|
3294
|
+
mv -f confcache "$cache_file" ;;
|
3295
|
+
esac
|
3296
|
+
fi
|
3297
|
+
fi
|
3298
|
+
else
|
3299
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
3300
|
+
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
|
3301
|
+
fi
|
3302
|
+
fi
|
3303
|
+
rm -f confcache
|
3304
|
+
|
3305
|
+
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
3306
|
+
# Let make expand exec_prefix.
|
3307
|
+
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
3308
|
+
|
3309
|
+
DEFS=-DHAVE_CONFIG_H
|
3310
|
+
|
3311
|
+
ac_libobjs=
|
3312
|
+
ac_ltlibobjs=
|
3313
|
+
U=
|
3314
|
+
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
3315
|
+
# 1. Remove the extension, and $U if already installed.
|
3316
|
+
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
3317
|
+
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
|
3318
|
+
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
3319
|
+
# will be set to the directory where LIBOBJS objects are built.
|
3320
|
+
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
3321
|
+
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
3322
|
+
done
|
3323
|
+
LIBOBJS=$ac_libobjs
|
3324
|
+
|
3325
|
+
LTLIBOBJS=$ac_ltlibobjs
|
3326
|
+
|
3327
|
+
|
3328
|
+
|
3329
|
+
: "${CONFIG_STATUS=./config.status}"
|
3330
|
+
ac_write_fail=0
|
3331
|
+
ac_clean_files_save=$ac_clean_files
|
3332
|
+
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
3333
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
3334
|
+
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
|
3335
|
+
as_write_fail=0
|
3336
|
+
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
3337
|
+
#! $SHELL
|
3338
|
+
# Generated by $as_me.
|
3339
|
+
# Run this file to recreate the current configuration.
|
3340
|
+
# Compiler output produced by configure, useful for debugging
|
3341
|
+
# configure, is in config.log if it exists.
|
3342
|
+
|
3343
|
+
debug=false
|
3344
|
+
ac_cs_recheck=false
|
3345
|
+
ac_cs_silent=false
|
3346
|
+
|
3347
|
+
SHELL=\${CONFIG_SHELL-$SHELL}
|
3348
|
+
export SHELL
|
3349
|
+
_ASEOF
|
3350
|
+
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
3351
|
+
## -------------------- ##
|
3352
|
+
## M4sh Initialization. ##
|
3353
|
+
## -------------------- ##
|
3354
|
+
|
3355
|
+
# Be more Bourne compatible
|
3356
|
+
DUALCASE=1; export DUALCASE # for MKS sh
|
3357
|
+
as_nop=:
|
3358
|
+
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
3359
|
+
then :
|
3360
|
+
emulate sh
|
3361
|
+
NULLCMD=:
|
3362
|
+
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
3363
|
+
# is contrary to our usage. Disable this feature.
|
3364
|
+
alias -g '${1+"$@"}'='"$@"'
|
3365
|
+
setopt NO_GLOB_SUBST
|
3366
|
+
else $as_nop
|
3367
|
+
case `(set -o) 2>/dev/null` in #(
|
3368
|
+
*posix*) :
|
3369
|
+
set -o posix ;; #(
|
3370
|
+
*) :
|
3371
|
+
;;
|
3372
|
+
esac
|
3373
|
+
fi
|
3374
|
+
|
3375
|
+
|
3376
|
+
|
3377
|
+
# Reset variables that may have inherited troublesome values from
|
3378
|
+
# the environment.
|
3379
|
+
|
3380
|
+
# IFS needs to be set, to space, tab, and newline, in precisely that order.
|
3381
|
+
# (If _AS_PATH_WALK were called with IFS unset, it would have the
|
3382
|
+
# side effect of setting IFS to empty, thus disabling word splitting.)
|
3383
|
+
# Quoting is to prevent editors from complaining about space-tab.
|
3384
|
+
as_nl='
|
3385
|
+
'
|
3386
|
+
export as_nl
|
3387
|
+
IFS=" "" $as_nl"
|
3388
|
+
|
3389
|
+
PS1='$ '
|
3390
|
+
PS2='> '
|
3391
|
+
PS4='+ '
|
3392
|
+
|
3393
|
+
# Ensure predictable behavior from utilities with locale-dependent output.
|
3394
|
+
LC_ALL=C
|
3395
|
+
export LC_ALL
|
3396
|
+
LANGUAGE=C
|
3397
|
+
export LANGUAGE
|
3398
|
+
|
3399
|
+
# We cannot yet rely on "unset" to work, but we need these variables
|
3400
|
+
# to be unset--not just set to an empty or harmless value--now, to
|
3401
|
+
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
|
3402
|
+
# also avoids known problems related to "unset" and subshell syntax
|
3403
|
+
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
|
3404
|
+
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
|
3405
|
+
do eval test \${$as_var+y} \
|
3406
|
+
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
3407
|
+
done
|
3408
|
+
|
3409
|
+
# Ensure that fds 0, 1, and 2 are open.
|
3410
|
+
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
|
3411
|
+
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
|
3412
|
+
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
|
3413
|
+
|
3414
|
+
# The user is always right.
|
3415
|
+
if ${PATH_SEPARATOR+false} :; then
|
3416
|
+
PATH_SEPARATOR=:
|
3417
|
+
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
3418
|
+
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
3419
|
+
PATH_SEPARATOR=';'
|
3420
|
+
}
|
3421
|
+
fi
|
3422
|
+
|
3423
|
+
|
3424
|
+
# Find who we are. Look in the path if we contain no directory separator.
|
3425
|
+
as_myself=
|
3426
|
+
case $0 in #((
|
3427
|
+
*[\\/]* ) as_myself=$0 ;;
|
3428
|
+
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3429
|
+
for as_dir in $PATH
|
3430
|
+
do
|
3431
|
+
IFS=$as_save_IFS
|
3432
|
+
case $as_dir in #(((
|
3433
|
+
'') as_dir=./ ;;
|
3434
|
+
*/) ;;
|
3435
|
+
*) as_dir=$as_dir/ ;;
|
3436
|
+
esac
|
3437
|
+
test -r "$as_dir$0" && as_myself=$as_dir$0 && break
|
3438
|
+
done
|
3439
|
+
IFS=$as_save_IFS
|
3440
|
+
|
3441
|
+
;;
|
3442
|
+
esac
|
3443
|
+
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
3444
|
+
# in which case we are not to be found in the path.
|
3445
|
+
if test "x$as_myself" = x; then
|
3446
|
+
as_myself=$0
|
3447
|
+
fi
|
3448
|
+
if test ! -f "$as_myself"; then
|
3449
|
+
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
3450
|
+
exit 1
|
3451
|
+
fi
|
3452
|
+
|
3453
|
+
|
3454
|
+
|
3455
|
+
# as_fn_error STATUS ERROR [LINENO LOG_FD]
|
3456
|
+
# ----------------------------------------
|
3457
|
+
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
3458
|
+
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
3459
|
+
# script with STATUS, using 1 if that was 0.
|
3460
|
+
as_fn_error ()
|
3461
|
+
{
|
3462
|
+
as_status=$1; test $as_status -eq 0 && as_status=1
|
3463
|
+
if test "$4"; then
|
3464
|
+
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
3465
|
+
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
3466
|
+
fi
|
3467
|
+
printf "%s\n" "$as_me: error: $2" >&2
|
3468
|
+
as_fn_exit $as_status
|
3469
|
+
} # as_fn_error
|
3470
|
+
|
3471
|
+
|
3472
|
+
|
3473
|
+
# as_fn_set_status STATUS
|
3474
|
+
# -----------------------
|
3475
|
+
# Set $? to STATUS, without forking.
|
3476
|
+
as_fn_set_status ()
|
3477
|
+
{
|
3478
|
+
return $1
|
3479
|
+
} # as_fn_set_status
|
3480
|
+
|
3481
|
+
# as_fn_exit STATUS
|
3482
|
+
# -----------------
|
3483
|
+
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
3484
|
+
as_fn_exit ()
|
3485
|
+
{
|
3486
|
+
set +e
|
3487
|
+
as_fn_set_status $1
|
3488
|
+
exit $1
|
3489
|
+
} # as_fn_exit
|
3490
|
+
|
3491
|
+
# as_fn_unset VAR
|
3492
|
+
# ---------------
|
3493
|
+
# Portably unset VAR.
|
3494
|
+
as_fn_unset ()
|
3495
|
+
{
|
3496
|
+
{ eval $1=; unset $1;}
|
3497
|
+
}
|
3498
|
+
as_unset=as_fn_unset
|
3499
|
+
|
3500
|
+
# as_fn_append VAR VALUE
|
3501
|
+
# ----------------------
|
3502
|
+
# Append the text in VALUE to the end of the definition contained in VAR. Take
|
3503
|
+
# advantage of any shell optimizations that allow amortized linear growth over
|
3504
|
+
# repeated appends, instead of the typical quadratic growth present in naive
|
3505
|
+
# implementations.
|
3506
|
+
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
|
3507
|
+
then :
|
3508
|
+
eval 'as_fn_append ()
|
3509
|
+
{
|
3510
|
+
eval $1+=\$2
|
3511
|
+
}'
|
3512
|
+
else $as_nop
|
3513
|
+
as_fn_append ()
|
3514
|
+
{
|
3515
|
+
eval $1=\$$1\$2
|
3516
|
+
}
|
3517
|
+
fi # as_fn_append
|
3518
|
+
|
3519
|
+
# as_fn_arith ARG...
|
3520
|
+
# ------------------
|
3521
|
+
# Perform arithmetic evaluation on the ARGs, and store the result in the
|
3522
|
+
# global $as_val. Take advantage of shells that can avoid forks. The arguments
|
3523
|
+
# must be portable across $(()) and expr.
|
3524
|
+
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
|
3525
|
+
then :
|
3526
|
+
eval 'as_fn_arith ()
|
3527
|
+
{
|
3528
|
+
as_val=$(( $* ))
|
3529
|
+
}'
|
3530
|
+
else $as_nop
|
3531
|
+
as_fn_arith ()
|
3532
|
+
{
|
3533
|
+
as_val=`expr "$@" || test $? -eq 1`
|
3534
|
+
}
|
3535
|
+
fi # as_fn_arith
|
3536
|
+
|
3537
|
+
|
3538
|
+
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
3539
|
+
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
3540
|
+
as_expr=expr
|
3541
|
+
else
|
3542
|
+
as_expr=false
|
3543
|
+
fi
|
3544
|
+
|
3545
|
+
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
3546
|
+
as_basename=basename
|
3547
|
+
else
|
3548
|
+
as_basename=false
|
3549
|
+
fi
|
3550
|
+
|
3551
|
+
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
3552
|
+
as_dirname=dirname
|
3553
|
+
else
|
3554
|
+
as_dirname=false
|
3555
|
+
fi
|
3556
|
+
|
3557
|
+
as_me=`$as_basename -- "$0" ||
|
3558
|
+
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
3559
|
+
X"$0" : 'X\(//\)$' \| \
|
3560
|
+
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
3561
|
+
printf "%s\n" X/"$0" |
|
3562
|
+
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
3563
|
+
s//\1/
|
3564
|
+
q
|
3565
|
+
}
|
3566
|
+
/^X\/\(\/\/\)$/{
|
3567
|
+
s//\1/
|
3568
|
+
q
|
3569
|
+
}
|
3570
|
+
/^X\/\(\/\).*/{
|
3571
|
+
s//\1/
|
3572
|
+
q
|
3573
|
+
}
|
3574
|
+
s/.*/./; q'`
|
3575
|
+
|
3576
|
+
# Avoid depending upon Character Ranges.
|
3577
|
+
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
3578
|
+
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
3579
|
+
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
3580
|
+
as_cr_digits='0123456789'
|
3581
|
+
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
3582
|
+
|
3583
|
+
|
3584
|
+
# Determine whether it's possible to make 'echo' print without a newline.
|
3585
|
+
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
|
3586
|
+
# for compatibility with existing Makefiles.
|
3587
|
+
ECHO_C= ECHO_N= ECHO_T=
|
3588
|
+
case `echo -n x` in #(((((
|
3589
|
+
-n*)
|
3590
|
+
case `echo 'xy\c'` in
|
3591
|
+
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
3592
|
+
xy) ECHO_C='\c';;
|
3593
|
+
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
3594
|
+
ECHO_T=' ';;
|
3595
|
+
esac;;
|
3596
|
+
*)
|
3597
|
+
ECHO_N='-n';;
|
3598
|
+
esac
|
3599
|
+
|
3600
|
+
# For backward compatibility with old third-party macros, we provide
|
3601
|
+
# the shell variables $as_echo and $as_echo_n. New code should use
|
3602
|
+
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
|
3603
|
+
as_echo='printf %s\n'
|
3604
|
+
as_echo_n='printf %s'
|
3605
|
+
|
3606
|
+
rm -f conf$$ conf$$.exe conf$$.file
|
3607
|
+
if test -d conf$$.dir; then
|
3608
|
+
rm -f conf$$.dir/conf$$.file
|
3609
|
+
else
|
3610
|
+
rm -f conf$$.dir
|
3611
|
+
mkdir conf$$.dir 2>/dev/null
|
3612
|
+
fi
|
3613
|
+
if (echo >conf$$.file) 2>/dev/null; then
|
3614
|
+
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
3615
|
+
as_ln_s='ln -s'
|
3616
|
+
# ... but there are two gotchas:
|
3617
|
+
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
3618
|
+
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
3619
|
+
# In both cases, we have to default to `cp -pR'.
|
3620
|
+
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
3621
|
+
as_ln_s='cp -pR'
|
3622
|
+
elif ln conf$$.file conf$$ 2>/dev/null; then
|
3623
|
+
as_ln_s=ln
|
3624
|
+
else
|
3625
|
+
as_ln_s='cp -pR'
|
3626
|
+
fi
|
3627
|
+
else
|
3628
|
+
as_ln_s='cp -pR'
|
3629
|
+
fi
|
3630
|
+
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
3631
|
+
rmdir conf$$.dir 2>/dev/null
|
3632
|
+
|
3633
|
+
|
3634
|
+
# as_fn_mkdir_p
|
3635
|
+
# -------------
|
3636
|
+
# Create "$as_dir" as a directory, including parents if necessary.
|
3637
|
+
as_fn_mkdir_p ()
|
3638
|
+
{
|
3639
|
+
|
3640
|
+
case $as_dir in #(
|
3641
|
+
-*) as_dir=./$as_dir;;
|
3642
|
+
esac
|
3643
|
+
test -d "$as_dir" || eval $as_mkdir_p || {
|
3644
|
+
as_dirs=
|
3645
|
+
while :; do
|
3646
|
+
case $as_dir in #(
|
3647
|
+
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
3648
|
+
*) as_qdir=$as_dir;;
|
3649
|
+
esac
|
3650
|
+
as_dirs="'$as_qdir' $as_dirs"
|
3651
|
+
as_dir=`$as_dirname -- "$as_dir" ||
|
3652
|
+
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
3653
|
+
X"$as_dir" : 'X\(//\)[^/]' \| \
|
3654
|
+
X"$as_dir" : 'X\(//\)$' \| \
|
3655
|
+
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
3656
|
+
printf "%s\n" X"$as_dir" |
|
3657
|
+
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
3658
|
+
s//\1/
|
3659
|
+
q
|
3660
|
+
}
|
3661
|
+
/^X\(\/\/\)[^/].*/{
|
3662
|
+
s//\1/
|
3663
|
+
q
|
3664
|
+
}
|
3665
|
+
/^X\(\/\/\)$/{
|
3666
|
+
s//\1/
|
3667
|
+
q
|
3668
|
+
}
|
3669
|
+
/^X\(\/\).*/{
|
3670
|
+
s//\1/
|
3671
|
+
q
|
3672
|
+
}
|
3673
|
+
s/.*/./; q'`
|
3674
|
+
test -d "$as_dir" && break
|
3675
|
+
done
|
3676
|
+
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
3677
|
+
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
3678
|
+
|
3679
|
+
|
3680
|
+
} # as_fn_mkdir_p
|
3681
|
+
if mkdir -p . 2>/dev/null; then
|
3682
|
+
as_mkdir_p='mkdir -p "$as_dir"'
|
3683
|
+
else
|
3684
|
+
test -d ./-p && rmdir ./-p
|
3685
|
+
as_mkdir_p=false
|
3686
|
+
fi
|
3687
|
+
|
3688
|
+
|
3689
|
+
# as_fn_executable_p FILE
|
3690
|
+
# -----------------------
|
3691
|
+
# Test if FILE is an executable regular file.
|
3692
|
+
as_fn_executable_p ()
|
3693
|
+
{
|
3694
|
+
test -f "$1" && test -x "$1"
|
3695
|
+
} # as_fn_executable_p
|
3696
|
+
as_test_x='test -x'
|
3697
|
+
as_executable_p=as_fn_executable_p
|
3698
|
+
|
3699
|
+
# Sed expression to map a string onto a valid CPP name.
|
3700
|
+
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
3701
|
+
|
3702
|
+
# Sed expression to map a string onto a valid variable name.
|
3703
|
+
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
3704
|
+
|
3705
|
+
|
3706
|
+
exec 6>&1
|
3707
|
+
## ----------------------------------- ##
|
3708
|
+
## Main body of $CONFIG_STATUS script. ##
|
3709
|
+
## ----------------------------------- ##
|
3710
|
+
_ASEOF
|
3711
|
+
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
3712
|
+
|
3713
|
+
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
3714
|
+
# Save the log message, to keep $0 and so on meaningful, and to
|
3715
|
+
# report actual input values of CONFIG_FILES etc. instead of their
|
3716
|
+
# values after options handling.
|
3717
|
+
ac_log="
|
3718
|
+
This file was extended by YARP $as_me _YP_VERSION, which was
|
3719
|
+
generated by GNU Autoconf 2.71. Invocation command line was
|
3720
|
+
|
3721
|
+
CONFIG_FILES = $CONFIG_FILES
|
3722
|
+
CONFIG_HEADERS = $CONFIG_HEADERS
|
3723
|
+
CONFIG_LINKS = $CONFIG_LINKS
|
3724
|
+
CONFIG_COMMANDS = $CONFIG_COMMANDS
|
3725
|
+
$ $0 $@
|
3726
|
+
|
3727
|
+
on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
3728
|
+
"
|
3729
|
+
|
3730
|
+
_ACEOF
|
3731
|
+
|
3732
|
+
case $ac_config_files in *"
|
3733
|
+
"*) set x $ac_config_files; shift; ac_config_files=$*;;
|
3734
|
+
esac
|
3735
|
+
|
3736
|
+
case $ac_config_headers in *"
|
3737
|
+
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
3738
|
+
esac
|
3739
|
+
|
3740
|
+
|
3741
|
+
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
3742
|
+
# Files that config.status was made for.
|
3743
|
+
config_files="$ac_config_files"
|
3744
|
+
config_headers="$ac_config_headers"
|
3745
|
+
|
3746
|
+
_ACEOF
|
3747
|
+
|
3748
|
+
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
3749
|
+
ac_cs_usage="\
|
3750
|
+
\`$as_me' instantiates files and other configuration actions
|
3751
|
+
from templates according to the current configuration. Unless the files
|
3752
|
+
and actions are specified as TAGs, all are instantiated by default.
|
3753
|
+
|
3754
|
+
Usage: $0 [OPTION]... [TAG]...
|
3755
|
+
|
3756
|
+
-h, --help print this help, then exit
|
3757
|
+
-V, --version print version number and configuration settings, then exit
|
3758
|
+
--config print configuration, then exit
|
3759
|
+
-q, --quiet, --silent
|
3760
|
+
do not print progress messages
|
3761
|
+
-d, --debug don't remove temporary files
|
3762
|
+
--recheck update $as_me by reconfiguring in the same conditions
|
3763
|
+
--file=FILE[:TEMPLATE]
|
3764
|
+
instantiate the configuration file FILE
|
3765
|
+
--header=FILE[:TEMPLATE]
|
3766
|
+
instantiate the configuration header FILE
|
3767
|
+
|
3768
|
+
Configuration files:
|
3769
|
+
$config_files
|
3770
|
+
|
3771
|
+
Configuration headers:
|
3772
|
+
$config_headers
|
3773
|
+
|
3774
|
+
Report bugs to <https://github.com/ruby/yarp/issues/new>.
|
3775
|
+
YARP home page: <https://github.com/ruby/yarp>."
|
3776
|
+
|
3777
|
+
_ACEOF
|
3778
|
+
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
|
3779
|
+
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
|
3780
|
+
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
3781
|
+
ac_cs_config='$ac_cs_config_escaped'
|
3782
|
+
ac_cs_version="\\
|
3783
|
+
YARP config.status _YP_VERSION
|
3784
|
+
configured by $0, generated by GNU Autoconf 2.71,
|
3785
|
+
with options \\"\$ac_cs_config\\"
|
3786
|
+
|
3787
|
+
Copyright (C) 2021 Free Software Foundation, Inc.
|
3788
|
+
This config.status script is free software; the Free Software Foundation
|
3789
|
+
gives unlimited permission to copy, distribute and modify it."
|
3790
|
+
|
3791
|
+
ac_pwd='$ac_pwd'
|
3792
|
+
srcdir='$srcdir'
|
3793
|
+
test -n "\$AWK" || AWK=awk
|
3794
|
+
_ACEOF
|
3795
|
+
|
3796
|
+
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
3797
|
+
# The default lists apply if the user does not specify any file.
|
3798
|
+
ac_need_defaults=:
|
3799
|
+
while test $# != 0
|
3800
|
+
do
|
3801
|
+
case $1 in
|
3802
|
+
--*=?*)
|
3803
|
+
ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
3804
|
+
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
3805
|
+
ac_shift=:
|
3806
|
+
;;
|
3807
|
+
--*=)
|
3808
|
+
ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
3809
|
+
ac_optarg=
|
3810
|
+
ac_shift=:
|
3811
|
+
;;
|
3812
|
+
*)
|
3813
|
+
ac_option=$1
|
3814
|
+
ac_optarg=$2
|
3815
|
+
ac_shift=shift
|
3816
|
+
;;
|
3817
|
+
esac
|
3818
|
+
|
3819
|
+
case $ac_option in
|
3820
|
+
# Handling of the options.
|
3821
|
+
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
3822
|
+
ac_cs_recheck=: ;;
|
3823
|
+
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
3824
|
+
printf "%s\n" "$ac_cs_version"; exit ;;
|
3825
|
+
--config | --confi | --conf | --con | --co | --c )
|
3826
|
+
printf "%s\n" "$ac_cs_config"; exit ;;
|
3827
|
+
--debug | --debu | --deb | --de | --d | -d )
|
3828
|
+
debug=: ;;
|
3829
|
+
--file | --fil | --fi | --f )
|
3830
|
+
$ac_shift
|
3831
|
+
case $ac_optarg in
|
3832
|
+
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
3833
|
+
'') as_fn_error $? "missing file argument" ;;
|
3834
|
+
esac
|
3835
|
+
as_fn_append CONFIG_FILES " '$ac_optarg'"
|
3836
|
+
ac_need_defaults=false;;
|
3837
|
+
--header | --heade | --head | --hea )
|
3838
|
+
$ac_shift
|
3839
|
+
case $ac_optarg in
|
3840
|
+
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
3841
|
+
esac
|
3842
|
+
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
3843
|
+
ac_need_defaults=false;;
|
3844
|
+
--he | --h)
|
3845
|
+
# Conflict between --help and --header
|
3846
|
+
as_fn_error $? "ambiguous option: \`$1'
|
3847
|
+
Try \`$0 --help' for more information.";;
|
3848
|
+
--help | --hel | -h )
|
3849
|
+
printf "%s\n" "$ac_cs_usage"; exit ;;
|
3850
|
+
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
3851
|
+
| -silent | --silent | --silen | --sile | --sil | --si | --s)
|
3852
|
+
ac_cs_silent=: ;;
|
3853
|
+
|
3854
|
+
# This is an error.
|
3855
|
+
-*) as_fn_error $? "unrecognized option: \`$1'
|
3856
|
+
Try \`$0 --help' for more information." ;;
|
3857
|
+
|
3858
|
+
*) as_fn_append ac_config_targets " $1"
|
3859
|
+
ac_need_defaults=false ;;
|
3860
|
+
|
3861
|
+
esac
|
3862
|
+
shift
|
3863
|
+
done
|
3864
|
+
|
3865
|
+
ac_configure_extra_args=
|
3866
|
+
|
3867
|
+
if $ac_cs_silent; then
|
3868
|
+
exec 6>/dev/null
|
3869
|
+
ac_configure_extra_args="$ac_configure_extra_args --silent"
|
3870
|
+
fi
|
3871
|
+
|
3872
|
+
_ACEOF
|
3873
|
+
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
3874
|
+
if \$ac_cs_recheck; then
|
3875
|
+
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
3876
|
+
shift
|
3877
|
+
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
|
3878
|
+
CONFIG_SHELL='$SHELL'
|
3879
|
+
export CONFIG_SHELL
|
3880
|
+
exec "\$@"
|
3881
|
+
fi
|
3882
|
+
|
3883
|
+
_ACEOF
|
3884
|
+
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
3885
|
+
exec 5>>config.log
|
3886
|
+
{
|
3887
|
+
echo
|
3888
|
+
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
3889
|
+
## Running $as_me. ##
|
3890
|
+
_ASBOX
|
3891
|
+
printf "%s\n" "$ac_log"
|
3892
|
+
} >&5
|
3893
|
+
|
3894
|
+
_ACEOF
|
3895
|
+
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
3896
|
+
_ACEOF
|
3897
|
+
|
3898
|
+
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
3899
|
+
|
3900
|
+
# Handling of arguments.
|
3901
|
+
for ac_config_target in $ac_config_targets
|
3902
|
+
do
|
3903
|
+
case $ac_config_target in
|
3904
|
+
"include/yarp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/yarp/config.h:config.h.in" ;;
|
3905
|
+
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
3906
|
+
|
3907
|
+
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
3908
|
+
esac
|
3909
|
+
done
|
3910
|
+
|
3911
|
+
|
3912
|
+
# If the user did not use the arguments to specify the items to instantiate,
|
3913
|
+
# then the envvar interface is used. Set only those that are not.
|
3914
|
+
# We use the long form for the default assignment because of an extremely
|
3915
|
+
# bizarre bug on SunOS 4.1.3.
|
3916
|
+
if $ac_need_defaults; then
|
3917
|
+
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
|
3918
|
+
test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
|
3919
|
+
fi
|
3920
|
+
|
3921
|
+
# Have a temporary directory for convenience. Make it in the build tree
|
3922
|
+
# simply because there is no reason against having it here, and in addition,
|
3923
|
+
# creating and moving files from /tmp can sometimes cause problems.
|
3924
|
+
# Hook for its removal unless debugging.
|
3925
|
+
# Note that there is a small window in which the directory will not be cleaned:
|
3926
|
+
# after its creation but before its name has been assigned to `$tmp'.
|
3927
|
+
$debug ||
|
3928
|
+
{
|
3929
|
+
tmp= ac_tmp=
|
3930
|
+
trap 'exit_status=$?
|
3931
|
+
: "${ac_tmp:=$tmp}"
|
3932
|
+
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
3933
|
+
' 0
|
3934
|
+
trap 'as_fn_exit 1' 1 2 13 15
|
3935
|
+
}
|
3936
|
+
# Create a (secure) tmp directory for tmp files.
|
3937
|
+
|
3938
|
+
{
|
3939
|
+
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
3940
|
+
test -d "$tmp"
|
3941
|
+
} ||
|
3942
|
+
{
|
3943
|
+
tmp=./conf$$-$RANDOM
|
3944
|
+
(umask 077 && mkdir "$tmp")
|
3945
|
+
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
3946
|
+
ac_tmp=$tmp
|
3947
|
+
|
3948
|
+
# Set up the scripts for CONFIG_FILES section.
|
3949
|
+
# No need to generate them if there are no CONFIG_FILES.
|
3950
|
+
# This happens for instance with `./config.status config.h'.
|
3951
|
+
if test -n "$CONFIG_FILES"; then
|
3952
|
+
|
3953
|
+
|
3954
|
+
ac_cr=`echo X | tr X '\015'`
|
3955
|
+
# On cygwin, bash can eat \r inside `` if the user requested igncr.
|
3956
|
+
# But we know of no other shell where ac_cr would be empty at this
|
3957
|
+
# point, so we can use a bashism as a fallback.
|
3958
|
+
if test "x$ac_cr" = x; then
|
3959
|
+
eval ac_cr=\$\'\\r\'
|
3960
|
+
fi
|
3961
|
+
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
3962
|
+
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
3963
|
+
ac_cs_awk_cr='\\r'
|
3964
|
+
else
|
3965
|
+
ac_cs_awk_cr=$ac_cr
|
3966
|
+
fi
|
3967
|
+
|
3968
|
+
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
3969
|
+
_ACEOF
|
3970
|
+
|
3971
|
+
|
3972
|
+
{
|
3973
|
+
echo "cat >conf$$subs.awk <<_ACEOF" &&
|
3974
|
+
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
3975
|
+
echo "_ACEOF"
|
3976
|
+
} >conf$$subs.sh ||
|
3977
|
+
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
3978
|
+
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
3979
|
+
ac_delim='%!_!# '
|
3980
|
+
for ac_last_try in false false false false false :; do
|
3981
|
+
. ./conf$$subs.sh ||
|
3982
|
+
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
3983
|
+
|
3984
|
+
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
3985
|
+
if test $ac_delim_n = $ac_delim_num; then
|
3986
|
+
break
|
3987
|
+
elif $ac_last_try; then
|
3988
|
+
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
3989
|
+
else
|
3990
|
+
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
3991
|
+
fi
|
3992
|
+
done
|
3993
|
+
rm -f conf$$subs.sh
|
3994
|
+
|
3995
|
+
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
3996
|
+
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
3997
|
+
_ACEOF
|
3998
|
+
sed -n '
|
3999
|
+
h
|
4000
|
+
s/^/S["/; s/!.*/"]=/
|
4001
|
+
p
|
4002
|
+
g
|
4003
|
+
s/^[^!]*!//
|
4004
|
+
:repl
|
4005
|
+
t repl
|
4006
|
+
s/'"$ac_delim"'$//
|
4007
|
+
t delim
|
4008
|
+
:nl
|
4009
|
+
h
|
4010
|
+
s/\(.\{148\}\)..*/\1/
|
4011
|
+
t more1
|
4012
|
+
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
4013
|
+
p
|
4014
|
+
n
|
4015
|
+
b repl
|
4016
|
+
:more1
|
4017
|
+
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
4018
|
+
p
|
4019
|
+
g
|
4020
|
+
s/.\{148\}//
|
4021
|
+
t nl
|
4022
|
+
:delim
|
4023
|
+
h
|
4024
|
+
s/\(.\{148\}\)..*/\1/
|
4025
|
+
t more2
|
4026
|
+
s/["\\]/\\&/g; s/^/"/; s/$/"/
|
4027
|
+
p
|
4028
|
+
b
|
4029
|
+
:more2
|
4030
|
+
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
4031
|
+
p
|
4032
|
+
g
|
4033
|
+
s/.\{148\}//
|
4034
|
+
t delim
|
4035
|
+
' <conf$$subs.awk | sed '
|
4036
|
+
/^[^""]/{
|
4037
|
+
N
|
4038
|
+
s/\n//
|
4039
|
+
}
|
4040
|
+
' >>$CONFIG_STATUS || ac_write_fail=1
|
4041
|
+
rm -f conf$$subs.awk
|
4042
|
+
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
4043
|
+
_ACAWK
|
4044
|
+
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
4045
|
+
for (key in S) S_is_set[key] = 1
|
4046
|
+
FS = ""
|
4047
|
+
|
4048
|
+
}
|
4049
|
+
{
|
4050
|
+
line = $ 0
|
4051
|
+
nfields = split(line, field, "@")
|
4052
|
+
substed = 0
|
4053
|
+
len = length(field[1])
|
4054
|
+
for (i = 2; i < nfields; i++) {
|
4055
|
+
key = field[i]
|
4056
|
+
keylen = length(key)
|
4057
|
+
if (S_is_set[key]) {
|
4058
|
+
value = S[key]
|
4059
|
+
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
4060
|
+
len += length(value) + length(field[++i])
|
4061
|
+
substed = 1
|
4062
|
+
} else
|
4063
|
+
len += 1 + keylen
|
4064
|
+
}
|
4065
|
+
|
4066
|
+
print line
|
4067
|
+
}
|
4068
|
+
|
4069
|
+
_ACAWK
|
4070
|
+
_ACEOF
|
4071
|
+
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
4072
|
+
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
4073
|
+
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
4074
|
+
else
|
4075
|
+
cat
|
4076
|
+
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
4077
|
+
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
4078
|
+
_ACEOF
|
4079
|
+
|
4080
|
+
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
4081
|
+
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
4082
|
+
# trailing colons and then remove the whole line if VPATH becomes empty
|
4083
|
+
# (actually we leave an empty line to preserve line numbers).
|
4084
|
+
if test "x$srcdir" = x.; then
|
4085
|
+
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
4086
|
+
h
|
4087
|
+
s///
|
4088
|
+
s/^/:/
|
4089
|
+
s/[ ]*$/:/
|
4090
|
+
s/:\$(srcdir):/:/g
|
4091
|
+
s/:\${srcdir}:/:/g
|
4092
|
+
s/:@srcdir@:/:/g
|
4093
|
+
s/^:*//
|
4094
|
+
s/:*$//
|
4095
|
+
x
|
4096
|
+
s/\(=[ ]*\).*/\1/
|
4097
|
+
G
|
4098
|
+
s/\n//
|
4099
|
+
s/^[^=]*=[ ]*$//
|
4100
|
+
}'
|
4101
|
+
fi
|
4102
|
+
|
4103
|
+
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
4104
|
+
fi # test -n "$CONFIG_FILES"
|
4105
|
+
|
4106
|
+
# Set up the scripts for CONFIG_HEADERS section.
|
4107
|
+
# No need to generate them if there are no CONFIG_HEADERS.
|
4108
|
+
# This happens for instance with `./config.status Makefile'.
|
4109
|
+
if test -n "$CONFIG_HEADERS"; then
|
4110
|
+
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
4111
|
+
BEGIN {
|
4112
|
+
_ACEOF
|
4113
|
+
|
4114
|
+
# Transform confdefs.h into an awk script `defines.awk', embedded as
|
4115
|
+
# here-document in config.status, that substitutes the proper values into
|
4116
|
+
# config.h.in to produce config.h.
|
4117
|
+
|
4118
|
+
# Create a delimiter string that does not exist in confdefs.h, to ease
|
4119
|
+
# handling of long lines.
|
4120
|
+
ac_delim='%!_!# '
|
4121
|
+
for ac_last_try in false false :; do
|
4122
|
+
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
4123
|
+
if test -z "$ac_tt"; then
|
4124
|
+
break
|
4125
|
+
elif $ac_last_try; then
|
4126
|
+
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
4127
|
+
else
|
4128
|
+
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
4129
|
+
fi
|
4130
|
+
done
|
4131
|
+
|
4132
|
+
# For the awk script, D is an array of macro values keyed by name,
|
4133
|
+
# likewise P contains macro parameters if any. Preserve backslash
|
4134
|
+
# newline sequences.
|
4135
|
+
|
4136
|
+
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
4137
|
+
sed -n '
|
4138
|
+
s/.\{148\}/&'"$ac_delim"'/g
|
4139
|
+
t rset
|
4140
|
+
:rset
|
4141
|
+
s/^[ ]*#[ ]*define[ ][ ]*/ /
|
4142
|
+
t def
|
4143
|
+
d
|
4144
|
+
:def
|
4145
|
+
s/\\$//
|
4146
|
+
t bsnl
|
4147
|
+
s/["\\]/\\&/g
|
4148
|
+
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
4149
|
+
D["\1"]=" \3"/p
|
4150
|
+
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
4151
|
+
d
|
4152
|
+
:bsnl
|
4153
|
+
s/["\\]/\\&/g
|
4154
|
+
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
4155
|
+
D["\1"]=" \3\\\\\\n"\\/p
|
4156
|
+
t cont
|
4157
|
+
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
4158
|
+
t cont
|
4159
|
+
d
|
4160
|
+
:cont
|
4161
|
+
n
|
4162
|
+
s/.\{148\}/&'"$ac_delim"'/g
|
4163
|
+
t clear
|
4164
|
+
:clear
|
4165
|
+
s/\\$//
|
4166
|
+
t bsnlc
|
4167
|
+
s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
4168
|
+
d
|
4169
|
+
:bsnlc
|
4170
|
+
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
4171
|
+
b cont
|
4172
|
+
' <confdefs.h | sed '
|
4173
|
+
s/'"$ac_delim"'/"\\\
|
4174
|
+
"/g' >>$CONFIG_STATUS || ac_write_fail=1
|
4175
|
+
|
4176
|
+
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
4177
|
+
for (key in D) D_is_set[key] = 1
|
4178
|
+
FS = ""
|
4179
|
+
}
|
4180
|
+
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
4181
|
+
line = \$ 0
|
4182
|
+
split(line, arg, " ")
|
4183
|
+
if (arg[1] == "#") {
|
4184
|
+
defundef = arg[2]
|
4185
|
+
mac1 = arg[3]
|
4186
|
+
} else {
|
4187
|
+
defundef = substr(arg[1], 2)
|
4188
|
+
mac1 = arg[2]
|
4189
|
+
}
|
4190
|
+
split(mac1, mac2, "(") #)
|
4191
|
+
macro = mac2[1]
|
4192
|
+
prefix = substr(line, 1, index(line, defundef) - 1)
|
4193
|
+
if (D_is_set[macro]) {
|
4194
|
+
# Preserve the white space surrounding the "#".
|
4195
|
+
print prefix "define", macro P[macro] D[macro]
|
4196
|
+
next
|
4197
|
+
} else {
|
4198
|
+
# Replace #undef with comments. This is necessary, for example,
|
4199
|
+
# in the case of _POSIX_SOURCE, which is predefined and required
|
4200
|
+
# on some systems where configure will not decide to define it.
|
4201
|
+
if (defundef == "undef") {
|
4202
|
+
print "/*", prefix defundef, macro, "*/"
|
4203
|
+
next
|
4204
|
+
}
|
4205
|
+
}
|
4206
|
+
}
|
4207
|
+
{ print }
|
4208
|
+
_ACAWK
|
4209
|
+
_ACEOF
|
4210
|
+
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
4211
|
+
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
4212
|
+
fi # test -n "$CONFIG_HEADERS"
|
4213
|
+
|
4214
|
+
|
4215
|
+
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
|
4216
|
+
shift
|
4217
|
+
for ac_tag
|
4218
|
+
do
|
4219
|
+
case $ac_tag in
|
4220
|
+
:[FHLC]) ac_mode=$ac_tag; continue;;
|
4221
|
+
esac
|
4222
|
+
case $ac_mode$ac_tag in
|
4223
|
+
:[FHL]*:*);;
|
4224
|
+
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
4225
|
+
:[FH]-) ac_tag=-:-;;
|
4226
|
+
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
4227
|
+
esac
|
4228
|
+
ac_save_IFS=$IFS
|
4229
|
+
IFS=:
|
4230
|
+
set x $ac_tag
|
4231
|
+
IFS=$ac_save_IFS
|
4232
|
+
shift
|
4233
|
+
ac_file=$1
|
4234
|
+
shift
|
4235
|
+
|
4236
|
+
case $ac_mode in
|
4237
|
+
:L) ac_source=$1;;
|
4238
|
+
:[FH])
|
4239
|
+
ac_file_inputs=
|
4240
|
+
for ac_f
|
4241
|
+
do
|
4242
|
+
case $ac_f in
|
4243
|
+
-) ac_f="$ac_tmp/stdin";;
|
4244
|
+
*) # Look for the file first in the build tree, then in the source tree
|
4245
|
+
# (if the path is not absolute). The absolute path cannot be DOS-style,
|
4246
|
+
# because $ac_f cannot contain `:'.
|
4247
|
+
test -f "$ac_f" ||
|
4248
|
+
case $ac_f in
|
4249
|
+
[\\/$]*) false;;
|
4250
|
+
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
4251
|
+
esac ||
|
4252
|
+
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
4253
|
+
esac
|
4254
|
+
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
4255
|
+
as_fn_append ac_file_inputs " '$ac_f'"
|
4256
|
+
done
|
4257
|
+
|
4258
|
+
# Let's still pretend it is `configure' which instantiates (i.e., don't
|
4259
|
+
# use $as_me), people would be surprised to read:
|
4260
|
+
# /* config.h. Generated by config.status. */
|
4261
|
+
configure_input='Generated from '`
|
4262
|
+
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
4263
|
+
`' by configure.'
|
4264
|
+
if test x"$ac_file" != x-; then
|
4265
|
+
configure_input="$ac_file. $configure_input"
|
4266
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
4267
|
+
printf "%s\n" "$as_me: creating $ac_file" >&6;}
|
4268
|
+
fi
|
4269
|
+
# Neutralize special characters interpreted by sed in replacement strings.
|
4270
|
+
case $configure_input in #(
|
4271
|
+
*\&* | *\|* | *\\* )
|
4272
|
+
ac_sed_conf_input=`printf "%s\n" "$configure_input" |
|
4273
|
+
sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
4274
|
+
*) ac_sed_conf_input=$configure_input;;
|
4275
|
+
esac
|
4276
|
+
|
4277
|
+
case $ac_tag in
|
4278
|
+
*:-:* | *:-) cat >"$ac_tmp/stdin" \
|
4279
|
+
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
4280
|
+
esac
|
4281
|
+
;;
|
4282
|
+
esac
|
4283
|
+
|
4284
|
+
ac_dir=`$as_dirname -- "$ac_file" ||
|
4285
|
+
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
4286
|
+
X"$ac_file" : 'X\(//\)[^/]' \| \
|
4287
|
+
X"$ac_file" : 'X\(//\)$' \| \
|
4288
|
+
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
4289
|
+
printf "%s\n" X"$ac_file" |
|
4290
|
+
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
4291
|
+
s//\1/
|
4292
|
+
q
|
4293
|
+
}
|
4294
|
+
/^X\(\/\/\)[^/].*/{
|
4295
|
+
s//\1/
|
4296
|
+
q
|
4297
|
+
}
|
4298
|
+
/^X\(\/\/\)$/{
|
4299
|
+
s//\1/
|
4300
|
+
q
|
4301
|
+
}
|
4302
|
+
/^X\(\/\).*/{
|
4303
|
+
s//\1/
|
4304
|
+
q
|
4305
|
+
}
|
4306
|
+
s/.*/./; q'`
|
4307
|
+
as_dir="$ac_dir"; as_fn_mkdir_p
|
4308
|
+
ac_builddir=.
|
4309
|
+
|
4310
|
+
case "$ac_dir" in
|
4311
|
+
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
4312
|
+
*)
|
4313
|
+
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
|
4314
|
+
# A ".." for each directory in $ac_dir_suffix.
|
4315
|
+
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
4316
|
+
case $ac_top_builddir_sub in
|
4317
|
+
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
4318
|
+
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
4319
|
+
esac ;;
|
4320
|
+
esac
|
4321
|
+
ac_abs_top_builddir=$ac_pwd
|
4322
|
+
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
4323
|
+
# for backward compatibility:
|
4324
|
+
ac_top_builddir=$ac_top_build_prefix
|
4325
|
+
|
4326
|
+
case $srcdir in
|
4327
|
+
.) # We are building in place.
|
4328
|
+
ac_srcdir=.
|
4329
|
+
ac_top_srcdir=$ac_top_builddir_sub
|
4330
|
+
ac_abs_top_srcdir=$ac_pwd ;;
|
4331
|
+
[\\/]* | ?:[\\/]* ) # Absolute name.
|
4332
|
+
ac_srcdir=$srcdir$ac_dir_suffix;
|
4333
|
+
ac_top_srcdir=$srcdir
|
4334
|
+
ac_abs_top_srcdir=$srcdir ;;
|
4335
|
+
*) # Relative name.
|
4336
|
+
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
4337
|
+
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
4338
|
+
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
4339
|
+
esac
|
4340
|
+
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
4341
|
+
|
4342
|
+
|
4343
|
+
case $ac_mode in
|
4344
|
+
:F)
|
4345
|
+
#
|
4346
|
+
# CONFIG_FILE
|
4347
|
+
#
|
4348
|
+
|
4349
|
+
_ACEOF
|
4350
|
+
|
4351
|
+
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
4352
|
+
# If the template does not know about datarootdir, expand it.
|
4353
|
+
# FIXME: This hack should be removed a few years after 2.60.
|
4354
|
+
ac_datarootdir_hack=; ac_datarootdir_seen=
|
4355
|
+
ac_sed_dataroot='
|
4356
|
+
/datarootdir/ {
|
4357
|
+
p
|
4358
|
+
q
|
4359
|
+
}
|
4360
|
+
/@datadir@/p
|
4361
|
+
/@docdir@/p
|
4362
|
+
/@infodir@/p
|
4363
|
+
/@localedir@/p
|
4364
|
+
/@mandir@/p'
|
4365
|
+
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
4366
|
+
*datarootdir*) ac_datarootdir_seen=yes;;
|
4367
|
+
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
4368
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
4369
|
+
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
4370
|
+
_ACEOF
|
4371
|
+
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
4372
|
+
ac_datarootdir_hack='
|
4373
|
+
s&@datadir@&$datadir&g
|
4374
|
+
s&@docdir@&$docdir&g
|
4375
|
+
s&@infodir@&$infodir&g
|
4376
|
+
s&@localedir@&$localedir&g
|
4377
|
+
s&@mandir@&$mandir&g
|
4378
|
+
s&\\\${datarootdir}&$datarootdir&g' ;;
|
4379
|
+
esac
|
4380
|
+
_ACEOF
|
4381
|
+
|
4382
|
+
# Neutralize VPATH when `$srcdir' = `.'.
|
4383
|
+
# Shell code in configure.ac might set extrasub.
|
4384
|
+
# FIXME: do we really want to maintain this feature?
|
4385
|
+
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
4386
|
+
ac_sed_extra="$ac_vpsub
|
4387
|
+
$extrasub
|
4388
|
+
_ACEOF
|
4389
|
+
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
4390
|
+
:t
|
4391
|
+
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
4392
|
+
s|@configure_input@|$ac_sed_conf_input|;t t
|
4393
|
+
s&@top_builddir@&$ac_top_builddir_sub&;t t
|
4394
|
+
s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
4395
|
+
s&@srcdir@&$ac_srcdir&;t t
|
4396
|
+
s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
4397
|
+
s&@top_srcdir@&$ac_top_srcdir&;t t
|
4398
|
+
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
4399
|
+
s&@builddir@&$ac_builddir&;t t
|
4400
|
+
s&@abs_builddir@&$ac_abs_builddir&;t t
|
4401
|
+
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
4402
|
+
$ac_datarootdir_hack
|
4403
|
+
"
|
4404
|
+
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
4405
|
+
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
4406
|
+
|
4407
|
+
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
4408
|
+
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
4409
|
+
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
4410
|
+
"$ac_tmp/out"`; test -z "$ac_out"; } &&
|
4411
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
4412
|
+
which seems to be undefined. Please make sure it is defined" >&5
|
4413
|
+
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
4414
|
+
which seems to be undefined. Please make sure it is defined" >&2;}
|
4415
|
+
|
4416
|
+
rm -f "$ac_tmp/stdin"
|
4417
|
+
case $ac_file in
|
4418
|
+
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
4419
|
+
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
4420
|
+
esac \
|
4421
|
+
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
4422
|
+
;;
|
4423
|
+
:H)
|
4424
|
+
#
|
4425
|
+
# CONFIG_HEADER
|
4426
|
+
#
|
4427
|
+
if test x"$ac_file" != x-; then
|
4428
|
+
{
|
4429
|
+
printf "%s\n" "/* $configure_input */" >&1 \
|
4430
|
+
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
4431
|
+
} >"$ac_tmp/config.h" \
|
4432
|
+
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
4433
|
+
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
4434
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
4435
|
+
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
|
4436
|
+
else
|
4437
|
+
rm -f "$ac_file"
|
4438
|
+
mv "$ac_tmp/config.h" "$ac_file" \
|
4439
|
+
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
4440
|
+
fi
|
4441
|
+
else
|
4442
|
+
printf "%s\n" "/* $configure_input */" >&1 \
|
4443
|
+
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
4444
|
+
|| as_fn_error $? "could not create -" "$LINENO" 5
|
4445
|
+
fi
|
4446
|
+
;;
|
4447
|
+
|
4448
|
+
|
4449
|
+
esac
|
4450
|
+
|
4451
|
+
done # for ac_tag
|
4452
|
+
|
4453
|
+
|
4454
|
+
as_fn_exit 0
|
4455
|
+
_ACEOF
|
4456
|
+
ac_clean_files=$ac_clean_files_save
|
4457
|
+
|
4458
|
+
test $ac_write_fail = 0 ||
|
4459
|
+
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
4460
|
+
|
4461
|
+
|
4462
|
+
# configure is writing to config.log, and then calls config.status.
|
4463
|
+
# config.status does its own redirection, appending to config.log.
|
4464
|
+
# Unfortunately, on DOS this fails, as config.log is still kept open
|
4465
|
+
# by configure, so config.status won't be able to write to it; its
|
4466
|
+
# output is simply discarded. So we exec the FD to /dev/null,
|
4467
|
+
# effectively closing config.log, so it can be properly (re)opened and
|
4468
|
+
# appended to by config.status. When coming back to configure, we
|
4469
|
+
# need to make the FD available again.
|
4470
|
+
if test "$no_create" != yes; then
|
4471
|
+
ac_cs_success=:
|
4472
|
+
ac_config_status_args=
|
4473
|
+
test "$silent" = yes &&
|
4474
|
+
ac_config_status_args="$ac_config_status_args --quiet"
|
4475
|
+
exec 5>/dev/null
|
4476
|
+
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
4477
|
+
exec 5>>config.log
|
4478
|
+
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
4479
|
+
# would make configure fail if this is the last instruction.
|
4480
|
+
$ac_cs_success || as_fn_exit 1
|
4481
|
+
fi
|
4482
|
+
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
4483
|
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
4484
|
+
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
4485
|
+
fi
|
4486
|
+
|
4487
|
+
|