Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
b7026657 | 2 | # Guess values for system-dependent variables and create Makefiles. |
d0ac1c44 SM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 7 | # |
b7026657 | 8 | # |
b7026657 AC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c906108c | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
b7026657 | 31 | fi |
c906108c | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
b7026657 | 79 | fi |
c906108c SS |
80 | |
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 90 | as_myself= |
81ecdfbb RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
b7026657 AC |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
c906108c | 125 | |
b7026657 | 126 | # NLS nuisances. |
81ecdfbb RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d0ac1c44 SM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
81ecdfbb RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
b5689863 | 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
81ecdfbb RW |
200 | if (eval "$as_required") 2>/dev/null; then : |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
b7026657 | 211 | do |
81ecdfbb RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
81ecdfbb RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
b7026657 | 266 | else |
81ecdfbb RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
b7026657 | 271 | fi |
81ecdfbb RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
301 | ||
302 | # as_fn_exit STATUS | |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
81ecdfbb RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
c906108c | 402 | |
d0ac1c44 SM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
81ecdfbb RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 407 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
408 | as_fn_error () |
409 | { | |
d0ac1c44 SM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 414 | fi |
d0ac1c44 | 415 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
c906108c | 425 | |
81ecdfbb | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
c906108c | 431 | |
81ecdfbb RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
c906108c | 437 | |
81ecdfbb | 438 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
c906108c | 456 | |
b7026657 AC |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
c906108c | 463 | |
c906108c | 464 | |
81ecdfbb RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
b7026657 | 474 | sed ' |
81ecdfbb RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
b7026657 | 479 | N |
81ecdfbb RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b7026657 | 482 | t loop |
81ecdfbb | 483 | s/-\n.*// |
b7026657 | 484 | ' >$as_me.lineno && |
81ecdfbb RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b7026657 | 487 | |
d0ac1c44 SM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
b7026657 AC |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
b7026657 AC |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
c906108c | 499 | |
81ecdfbb RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
b7026657 | 511 | esac |
c906108c | 512 | |
81ecdfbb RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 516 | else |
81ecdfbb RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 519 | fi |
81ecdfbb RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b7026657 | 522 | as_ln_s='ln -s' |
81ecdfbb RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 526 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 528 | as_ln_s='cp -pR' |
81ecdfbb RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
d0ac1c44 | 532 | as_ln_s='cp -pR' |
b7026657 | 533 | fi |
b7026657 | 534 | else |
d0ac1c44 | 535 | as_ln_s='cp -pR' |
b7026657 | 536 | fi |
81ecdfbb RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
c906108c | 539 | |
b7026657 | 540 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
c906108c | 546 | |
d0ac1c44 SM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
c906108c | 549 | |
b7026657 AC |
550 | # Sed expression to map a string onto a valid CPP name. |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 552 | |
b7026657 AC |
553 | # Sed expression to map a string onto a valid variable name. |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c SS |
555 | |
556 | ||
d0ac1c44 SM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
c906108c | 559 | |
b7026657 | 560 | # Name of the host. |
d0ac1c44 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b7026657 AC |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
c906108c | 564 | |
c906108c | 565 | # |
b7026657 | 566 | # Initializations. |
c906108c | 567 | # |
b7026657 | 568 | ac_default_prefix=/usr/local |
81ecdfbb | 569 | ac_clean_files= |
b7026657 | 570 | ac_config_libobj_dir=. |
81ecdfbb | 571 | LIBOBJS= |
b7026657 AC |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
b7026657 AC |
576 | |
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
81ecdfbb | 583 | PACKAGE_URL= |
b7026657 AC |
584 | |
585 | ac_unique_file="Makefile.in" | |
586 | # Factoring default headers for most tests. | |
587 | ac_includes_default="\ | |
588 | #include <stdio.h> | |
81ecdfbb | 589 | #ifdef HAVE_SYS_TYPES_H |
b7026657 AC |
590 | # include <sys/types.h> |
591 | #endif | |
81ecdfbb | 592 | #ifdef HAVE_SYS_STAT_H |
b7026657 AC |
593 | # include <sys/stat.h> |
594 | #endif | |
81ecdfbb | 595 | #ifdef STDC_HEADERS |
b7026657 AC |
596 | # include <stdlib.h> |
597 | # include <stddef.h> | |
598 | #else | |
81ecdfbb | 599 | # ifdef HAVE_STDLIB_H |
b7026657 AC |
600 | # include <stdlib.h> |
601 | # endif | |
602 | #endif | |
81ecdfbb RW |
603 | #ifdef HAVE_STRING_H |
604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
b7026657 AC |
605 | # include <memory.h> |
606 | # endif | |
607 | # include <string.h> | |
608 | #endif | |
81ecdfbb | 609 | #ifdef HAVE_STRINGS_H |
b7026657 AC |
610 | # include <strings.h> |
611 | #endif | |
81ecdfbb | 612 | #ifdef HAVE_INTTYPES_H |
b7026657 | 613 | # include <inttypes.h> |
b7026657 | 614 | #endif |
81ecdfbb RW |
615 | #ifdef HAVE_STDINT_H |
616 | # include <stdint.h> | |
617 | #endif | |
618 | #ifdef HAVE_UNISTD_H | |
b7026657 AC |
619 | # include <unistd.h> |
620 | #endif" | |
c906108c | 621 | |
81ecdfbb RW |
622 | ac_subst_vars='LTLIBOBJS |
623 | LIBOBJS | |
760b3e8b | 624 | sim_reserved_bits |
760b3e8b MF |
625 | sim_default_model |
626 | sim_scache | |
627 | sim_float | |
628 | sim_bitsize | |
81ecdfbb | 629 | cgen_breaks |
81ecdfbb | 630 | MAINT |
31e6ad7d MF |
631 | MAINTAINER_MODE_FALSE |
632 | MAINTAINER_MODE_TRUE | |
81ecdfbb RW |
633 | CATOBJEXT |
634 | GENCAT | |
635 | INSTOBJEXT | |
636 | DATADIRNAME | |
637 | CATALOGS | |
638 | POSUB | |
639 | GMSGFMT | |
640 | XGETTEXT | |
641 | INCINTL | |
642 | LIBINTL_DEP | |
643 | LIBINTL | |
644 | USE_NLS | |
db2e4d67 MF |
645 | CCDEPMODE |
646 | DEPDIR | |
647 | am__leading_dot | |
46f900c0 | 648 | C_DIALECT |
81ecdfbb RW |
649 | RANLIB |
650 | AR | |
c2783492 | 651 | LDFLAGS_FOR_BUILD |
c25ea03d | 652 | CFLAGS_FOR_BUILD |
aa0fca16 | 653 | RANLIB_FOR_BUILD |
81ecdfbb | 654 | CC_FOR_BUILD |
aa0fca16 | 655 | AR_FOR_BUILD |
81ecdfbb RW |
656 | INSTALL_DATA |
657 | INSTALL_SCRIPT | |
658 | INSTALL_PROGRAM | |
2232061b MF |
659 | EGREP |
660 | GREP | |
c2783492 MF |
661 | CPP |
662 | OBJEXT | |
663 | EXEEXT | |
664 | ac_ct_CC | |
665 | CPPFLAGS | |
666 | LDFLAGS | |
667 | CFLAGS | |
668 | CC | |
81ecdfbb RW |
669 | target_os |
670 | target_vendor | |
671 | target_cpu | |
672 | target | |
673 | host_os | |
674 | host_vendor | |
675 | host_cpu | |
676 | host | |
677 | build_os | |
678 | build_vendor | |
679 | build_cpu | |
680 | build | |
81ecdfbb RW |
681 | target_alias |
682 | host_alias | |
683 | build_alias | |
684 | LIBS | |
685 | ECHO_T | |
686 | ECHO_N | |
687 | ECHO_C | |
688 | DEFS | |
689 | mandir | |
690 | localedir | |
691 | libdir | |
692 | psdir | |
693 | pdfdir | |
694 | dvidir | |
695 | htmldir | |
696 | infodir | |
697 | docdir | |
698 | oldincludedir | |
699 | includedir | |
700 | localstatedir | |
701 | sharedstatedir | |
702 | sysconfdir | |
703 | datadir | |
704 | datarootdir | |
705 | libexecdir | |
706 | sbindir | |
707 | bindir | |
708 | program_transform_name | |
709 | prefix | |
710 | exec_prefix | |
711 | PACKAGE_URL | |
712 | PACKAGE_BUGREPORT | |
713 | PACKAGE_STRING | |
714 | PACKAGE_VERSION | |
715 | PACKAGE_TARNAME | |
716 | PACKAGE_NAME | |
717 | PATH_SEPARATOR | |
136da8cd | 718 | SHELL |
136da8cd | 719 | sim_inline |
66d055c7 MF |
720 | sim_hw |
721 | sim_hw_objs | |
f9a4d543 | 722 | sim_hw_cflags' |
b7026657 | 723 | ac_subst_files='' |
81ecdfbb RW |
724 | ac_user_opts=' |
725 | enable_option_checking | |
726 | enable_maintainer_mode | |
347fe5bb | 727 | enable_sim_inline |
66d055c7 | 728 | enable_sim_hardware |
81ecdfbb RW |
729 | ' |
730 | ac_precious_vars='build_alias | |
731 | host_alias | |
732 | target_alias | |
733 | CC | |
734 | CFLAGS | |
735 | LDFLAGS | |
736 | LIBS | |
737 | CPPFLAGS | |
738 | CPP' | |
739 | ||
c906108c SS |
740 | |
741 | # Initialize some variables set by options. | |
b7026657 AC |
742 | ac_init_help= |
743 | ac_init_version=false | |
81ecdfbb RW |
744 | ac_unrecognized_opts= |
745 | ac_unrecognized_sep= | |
c906108c SS |
746 | # The variables have the same names as the options, with |
747 | # dashes changed to underlines. | |
b7026657 | 748 | cache_file=/dev/null |
c906108c | 749 | exec_prefix=NONE |
c906108c | 750 | no_create= |
c906108c SS |
751 | no_recursion= |
752 | prefix=NONE | |
753 | program_prefix=NONE | |
754 | program_suffix=NONE | |
755 | program_transform_name=s,x,x, | |
756 | silent= | |
757 | site= | |
758 | srcdir= | |
c906108c SS |
759 | verbose= |
760 | x_includes=NONE | |
761 | x_libraries=NONE | |
b7026657 AC |
762 | |
763 | # Installation directory options. | |
764 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
765 | # and all the variables that are supposed to be based on exec_prefix | |
766 | # by default will actually change. | |
767 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 768 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
769 | bindir='${exec_prefix}/bin' |
770 | sbindir='${exec_prefix}/sbin' | |
771 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
772 | datarootdir='${prefix}/share' |
773 | datadir='${datarootdir}' | |
c906108c SS |
774 | sysconfdir='${prefix}/etc' |
775 | sharedstatedir='${prefix}/com' | |
776 | localstatedir='${prefix}/var' | |
c906108c SS |
777 | includedir='${prefix}/include' |
778 | oldincludedir='/usr/include' | |
81ecdfbb RW |
779 | docdir='${datarootdir}/doc/${PACKAGE}' |
780 | infodir='${datarootdir}/info' | |
781 | htmldir='${docdir}' | |
782 | dvidir='${docdir}' | |
783 | pdfdir='${docdir}' | |
784 | psdir='${docdir}' | |
785 | libdir='${exec_prefix}/lib' | |
786 | localedir='${datarootdir}/locale' | |
787 | mandir='${datarootdir}/man' | |
c906108c | 788 | |
c906108c | 789 | ac_prev= |
81ecdfbb | 790 | ac_dashdash= |
c906108c SS |
791 | for ac_option |
792 | do | |
c906108c SS |
793 | # If the previous option needs an argument, assign it. |
794 | if test -n "$ac_prev"; then | |
81ecdfbb | 795 | eval $ac_prev=\$ac_option |
c906108c SS |
796 | ac_prev= |
797 | continue | |
798 | fi | |
799 | ||
81ecdfbb | 800 | case $ac_option in |
d0ac1c44 SM |
801 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
802 | *=) ac_optarg= ;; | |
803 | *) ac_optarg=yes ;; | |
81ecdfbb | 804 | esac |
c906108c SS |
805 | |
806 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
807 | ||
81ecdfbb RW |
808 | case $ac_dashdash$ac_option in |
809 | --) | |
810 | ac_dashdash=yes ;; | |
c906108c SS |
811 | |
812 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
813 | ac_prev=bindir ;; | |
814 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 815 | bindir=$ac_optarg ;; |
c906108c SS |
816 | |
817 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 818 | ac_prev=build_alias ;; |
c906108c | 819 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 820 | build_alias=$ac_optarg ;; |
c906108c SS |
821 | |
822 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
823 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
824 | ac_prev=cache_file ;; | |
825 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
826 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
827 | cache_file=$ac_optarg ;; |
828 | ||
829 | --config-cache | -C) | |
830 | cache_file=config.cache ;; | |
c906108c | 831 | |
81ecdfbb | 832 | -datadir | --datadir | --datadi | --datad) |
c906108c | 833 | ac_prev=datadir ;; |
81ecdfbb | 834 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b7026657 | 835 | datadir=$ac_optarg ;; |
c906108c | 836 | |
81ecdfbb RW |
837 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
838 | | --dataroo | --dataro | --datar) | |
839 | ac_prev=datarootdir ;; | |
840 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
841 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
842 | datarootdir=$ac_optarg ;; | |
843 | ||
c906108c | 844 | -disable-* | --disable-*) |
81ecdfbb | 845 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 846 | # Reject names that are not valid shell variable names. |
81ecdfbb | 847 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 848 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
849 | ac_useropt_orig=$ac_useropt |
850 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
851 | case $ac_user_opts in | |
852 | *" | |
853 | "enable_$ac_useropt" | |
854 | "*) ;; | |
855 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
856 | ac_unrecognized_sep=', ';; | |
857 | esac | |
858 | eval enable_$ac_useropt=no ;; | |
859 | ||
860 | -docdir | --docdir | --docdi | --doc | --do) | |
861 | ac_prev=docdir ;; | |
862 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
863 | docdir=$ac_optarg ;; | |
864 | ||
865 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
866 | ac_prev=dvidir ;; | |
867 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
868 | dvidir=$ac_optarg ;; | |
c906108c SS |
869 | |
870 | -enable-* | --enable-*) | |
81ecdfbb | 871 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 872 | # Reject names that are not valid shell variable names. |
81ecdfbb | 873 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 874 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
875 | ac_useropt_orig=$ac_useropt |
876 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
877 | case $ac_user_opts in | |
878 | *" | |
879 | "enable_$ac_useropt" | |
880 | "*) ;; | |
881 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
882 | ac_unrecognized_sep=', ';; | |
c906108c | 883 | esac |
81ecdfbb | 884 | eval enable_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
885 | |
886 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
887 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
888 | | --exec | --exe | --ex) | |
889 | ac_prev=exec_prefix ;; | |
890 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
891 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
892 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 893 | exec_prefix=$ac_optarg ;; |
c906108c SS |
894 | |
895 | -gas | --gas | --ga | --g) | |
896 | # Obsolete; use --with-gas. | |
897 | with_gas=yes ;; | |
898 | ||
b7026657 AC |
899 | -help | --help | --hel | --he | -h) |
900 | ac_init_help=long ;; | |
901 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
902 | ac_init_help=recursive ;; | |
903 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
904 | ac_init_help=short ;; | |
c906108c SS |
905 | |
906 | -host | --host | --hos | --ho) | |
b7026657 | 907 | ac_prev=host_alias ;; |
c906108c | 908 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 909 | host_alias=$ac_optarg ;; |
c906108c | 910 | |
81ecdfbb RW |
911 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
912 | ac_prev=htmldir ;; | |
913 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
914 | | --ht=*) | |
915 | htmldir=$ac_optarg ;; | |
916 | ||
c906108c SS |
917 | -includedir | --includedir | --includedi | --included | --include \ |
918 | | --includ | --inclu | --incl | --inc) | |
919 | ac_prev=includedir ;; | |
920 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
921 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 922 | includedir=$ac_optarg ;; |
c906108c SS |
923 | |
924 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
925 | ac_prev=infodir ;; | |
926 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 927 | infodir=$ac_optarg ;; |
c906108c SS |
928 | |
929 | -libdir | --libdir | --libdi | --libd) | |
930 | ac_prev=libdir ;; | |
931 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 932 | libdir=$ac_optarg ;; |
c906108c SS |
933 | |
934 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
935 | | --libexe | --libex | --libe) | |
936 | ac_prev=libexecdir ;; | |
937 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
938 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 939 | libexecdir=$ac_optarg ;; |
c906108c | 940 | |
81ecdfbb RW |
941 | -localedir | --localedir | --localedi | --localed | --locale) |
942 | ac_prev=localedir ;; | |
943 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
944 | localedir=$ac_optarg ;; | |
945 | ||
c906108c | 946 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 947 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
948 | ac_prev=localstatedir ;; |
949 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 950 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b7026657 | 951 | localstatedir=$ac_optarg ;; |
c906108c SS |
952 | |
953 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
954 | ac_prev=mandir ;; | |
955 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 956 | mandir=$ac_optarg ;; |
c906108c SS |
957 | |
958 | -nfp | --nfp | --nf) | |
959 | # Obsolete; use --without-fp. | |
960 | with_fp=no ;; | |
961 | ||
962 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 963 | | --no-cr | --no-c | -n) |
c906108c SS |
964 | no_create=yes ;; |
965 | ||
966 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
967 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
968 | no_recursion=yes ;; | |
969 | ||
970 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
971 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
972 | | --oldin | --oldi | --old | --ol | --o) | |
973 | ac_prev=oldincludedir ;; | |
974 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
975 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
976 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 977 | oldincludedir=$ac_optarg ;; |
c906108c SS |
978 | |
979 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
980 | ac_prev=prefix ;; | |
981 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 982 | prefix=$ac_optarg ;; |
c906108c SS |
983 | |
984 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
985 | | --program-pre | --program-pr | --program-p) | |
986 | ac_prev=program_prefix ;; | |
987 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
988 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 989 | program_prefix=$ac_optarg ;; |
c906108c SS |
990 | |
991 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
992 | | --program-suf | --program-su | --program-s) | |
993 | ac_prev=program_suffix ;; | |
994 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
995 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 996 | program_suffix=$ac_optarg ;; |
c906108c SS |
997 | |
998 | -program-transform-name | --program-transform-name \ | |
999 | | --program-transform-nam | --program-transform-na \ | |
1000 | | --program-transform-n | --program-transform- \ | |
1001 | | --program-transform | --program-transfor \ | |
1002 | | --program-transfo | --program-transf \ | |
1003 | | --program-trans | --program-tran \ | |
1004 | | --progr-tra | --program-tr | --program-t) | |
1005 | ac_prev=program_transform_name ;; | |
1006 | -program-transform-name=* | --program-transform-name=* \ | |
1007 | | --program-transform-nam=* | --program-transform-na=* \ | |
1008 | | --program-transform-n=* | --program-transform-=* \ | |
1009 | | --program-transform=* | --program-transfor=* \ | |
1010 | | --program-transfo=* | --program-transf=* \ | |
1011 | | --program-trans=* | --program-tran=* \ | |
1012 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 1013 | program_transform_name=$ac_optarg ;; |
c906108c | 1014 | |
81ecdfbb RW |
1015 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1016 | ac_prev=pdfdir ;; | |
1017 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1018 | pdfdir=$ac_optarg ;; | |
1019 | ||
1020 | -psdir | --psdir | --psdi | --psd | --ps) | |
1021 | ac_prev=psdir ;; | |
1022 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1023 | psdir=$ac_optarg ;; | |
1024 | ||
c906108c SS |
1025 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1026 | | -silent | --silent | --silen | --sile | --sil) | |
1027 | silent=yes ;; | |
1028 | ||
1029 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1030 | ac_prev=sbindir ;; | |
1031 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1032 | | --sbi=* | --sb=*) | |
b7026657 | 1033 | sbindir=$ac_optarg ;; |
c906108c SS |
1034 | |
1035 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1036 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1037 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1038 | | --sha | --sh) | |
1039 | ac_prev=sharedstatedir ;; | |
1040 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1041 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1042 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1043 | | --sha=* | --sh=*) | |
b7026657 | 1044 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
1045 | |
1046 | -site | --site | --sit) | |
1047 | ac_prev=site ;; | |
1048 | -site=* | --site=* | --sit=*) | |
b7026657 | 1049 | site=$ac_optarg ;; |
eb2d80b4 | 1050 | |
c906108c SS |
1051 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1052 | ac_prev=srcdir ;; | |
1053 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 1054 | srcdir=$ac_optarg ;; |
c906108c SS |
1055 | |
1056 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1057 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1058 | ac_prev=sysconfdir ;; | |
1059 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1060 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 1061 | sysconfdir=$ac_optarg ;; |
c906108c SS |
1062 | |
1063 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 1064 | ac_prev=target_alias ;; |
c906108c | 1065 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 1066 | target_alias=$ac_optarg ;; |
c906108c SS |
1067 | |
1068 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1069 | verbose=yes ;; | |
1070 | ||
b7026657 AC |
1071 | -version | --version | --versio | --versi | --vers | -V) |
1072 | ac_init_version=: ;; | |
c906108c SS |
1073 | |
1074 | -with-* | --with-*) | |
81ecdfbb | 1075 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1076 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1077 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1078 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1079 | ac_useropt_orig=$ac_useropt |
1080 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1081 | case $ac_user_opts in | |
1082 | *" | |
1083 | "with_$ac_useropt" | |
1084 | "*) ;; | |
1085 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1086 | ac_unrecognized_sep=', ';; | |
c906108c | 1087 | esac |
81ecdfbb | 1088 | eval with_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1089 | |
1090 | -without-* | --without-*) | |
81ecdfbb | 1091 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1092 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1093 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1094 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1095 | ac_useropt_orig=$ac_useropt |
1096 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1097 | case $ac_user_opts in | |
1098 | *" | |
1099 | "with_$ac_useropt" | |
1100 | "*) ;; | |
1101 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1102 | ac_unrecognized_sep=', ';; | |
1103 | esac | |
1104 | eval with_$ac_useropt=no ;; | |
c906108c SS |
1105 | |
1106 | --x) | |
1107 | # Obsolete; use --with-x. | |
1108 | with_x=yes ;; | |
1109 | ||
1110 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1111 | | --x-incl | --x-inc | --x-in | --x-i) | |
1112 | ac_prev=x_includes ;; | |
1113 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1114 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 1115 | x_includes=$ac_optarg ;; |
c906108c SS |
1116 | |
1117 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1118 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1119 | ac_prev=x_libraries ;; | |
1120 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1121 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 1122 | x_libraries=$ac_optarg ;; |
c906108c | 1123 | |
d0ac1c44 SM |
1124 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1125 | Try \`$0 --help' for more information" | |
c906108c SS |
1126 | ;; |
1127 | ||
b7026657 AC |
1128 | *=*) |
1129 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1130 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1131 | case $ac_envvar in #( |
1132 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1133 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1134 | esac |
1135 | eval $ac_envvar=\$ac_optarg | |
b7026657 AC |
1136 | export $ac_envvar ;; |
1137 | ||
c906108c | 1138 | *) |
b7026657 | 1139 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1140 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b7026657 | 1141 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1142 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1143 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c906108c SS |
1144 | ;; |
1145 | ||
1146 | esac | |
1147 | done | |
1148 | ||
1149 | if test -n "$ac_prev"; then | |
b7026657 | 1150 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1151 | as_fn_error $? "missing argument to $ac_option" |
c906108c | 1152 | fi |
c906108c | 1153 | |
81ecdfbb RW |
1154 | if test -n "$ac_unrecognized_opts"; then |
1155 | case $enable_option_checking in | |
1156 | no) ;; | |
d0ac1c44 | 1157 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1158 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
b7026657 | 1159 | esac |
81ecdfbb | 1160 | fi |
c906108c | 1161 | |
81ecdfbb RW |
1162 | # Check all directory arguments for consistency. |
1163 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1164 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1165 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1166 | libdir localedir mandir | |
c906108c | 1167 | do |
81ecdfbb RW |
1168 | eval ac_val=\$$ac_var |
1169 | # Remove trailing slashes. | |
1170 | case $ac_val in | |
1171 | */ ) | |
1172 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1173 | eval $ac_var=\$ac_val;; | |
1174 | esac | |
1175 | # Be sure to have absolute directory names. | |
b7026657 | 1176 | case $ac_val in |
81ecdfbb RW |
1177 | [\\/$]* | ?:[\\/]* ) continue;; |
1178 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
c906108c | 1179 | esac |
d0ac1c44 | 1180 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c906108c SS |
1181 | done |
1182 | ||
b7026657 AC |
1183 | # There might be people who depend on the old broken behavior: `$host' |
1184 | # used to hold the argument of --host etc. | |
1185 | # FIXME: To remove some day. | |
1186 | build=$build_alias | |
1187 | host=$host_alias | |
1188 | target=$target_alias | |
1189 | ||
1190 | # FIXME: To remove some day. | |
1191 | if test "x$host_alias" != x; then | |
1192 | if test "x$build_alias" = x; then | |
1193 | cross_compiling=maybe | |
b7026657 AC |
1194 | elif test "x$build_alias" != "x$host_alias"; then |
1195 | cross_compiling=yes | |
1196 | fi | |
1197 | fi | |
c906108c | 1198 | |
b7026657 AC |
1199 | ac_tool_prefix= |
1200 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1201 | ||
1202 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1203 | |
c906108c | 1204 | |
81ecdfbb RW |
1205 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1206 | ac_ls_di=`ls -di .` && | |
1207 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1208 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1209 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1210 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1211 | |
1212 | ||
c906108c SS |
1213 | # Find the source files, if location was not specified. |
1214 | if test -z "$srcdir"; then | |
1215 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1216 | # Try the directory containing this script, then the parent directory. |
1217 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1218 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1219 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1220 | X"$as_myself" : 'X\(//\)$' \| \ | |
1221 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1222 | $as_echo X"$as_myself" | | |
1223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1224 | s//\1/ | |
1225 | q | |
1226 | } | |
1227 | /^X\(\/\/\)[^/].*/{ | |
1228 | s//\1/ | |
1229 | q | |
1230 | } | |
1231 | /^X\(\/\/\)$/{ | |
1232 | s//\1/ | |
1233 | q | |
1234 | } | |
1235 | /^X\(\/\).*/{ | |
1236 | s//\1/ | |
1237 | q | |
1238 | } | |
1239 | s/.*/./; q'` | |
c906108c | 1240 | srcdir=$ac_confdir |
81ecdfbb | 1241 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1242 | srcdir=.. |
1243 | fi | |
1244 | else | |
1245 | ac_srcdir_defaulted=no | |
1246 | fi | |
81ecdfbb RW |
1247 | if test ! -r "$srcdir/$ac_unique_file"; then |
1248 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1249 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1250 | fi |
1251 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1252 | ac_abs_confdir=`( | |
d0ac1c44 | 1253 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1254 | pwd)` |
1255 | # When building in place, set srcdir=. | |
1256 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1257 | srcdir=. | |
1258 | fi | |
1259 | # Remove unnecessary trailing slashes from srcdir. | |
1260 | # Double slashes in file names in object file debugging info | |
1261 | # mess up M-x gdb in Emacs. | |
1262 | case $srcdir in | |
1263 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1264 | esac | |
1265 | for ac_var in $ac_precious_vars; do | |
1266 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1267 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1268 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1269 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1270 | done | |
c906108c | 1271 | |
b7026657 AC |
1272 | # |
1273 | # Report the --help message. | |
1274 | # | |
1275 | if test "$ac_init_help" = "long"; then | |
1276 | # Omit some internal or obsolete options to make the list less imposing. | |
1277 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1278 | cat <<_ACEOF | |
1279 | \`configure' configures this package to adapt to many kinds of systems. | |
c906108c | 1280 | |
b7026657 | 1281 | Usage: $0 [OPTION]... [VAR=VALUE]... |
c906108c | 1282 | |
b7026657 AC |
1283 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1284 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
c906108c | 1285 | |
b7026657 | 1286 | Defaults for the options are specified in brackets. |
c906108c | 1287 | |
b7026657 AC |
1288 | Configuration: |
1289 | -h, --help display this help and exit | |
1290 | --help=short display options specific to this package | |
1291 | --help=recursive display the short help of all the included packages | |
1292 | -V, --version display version information and exit | |
d0ac1c44 | 1293 | -q, --quiet, --silent do not print \`checking ...' messages |
b7026657 AC |
1294 | --cache-file=FILE cache test results in FILE [disabled] |
1295 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1296 | -n, --no-create do not create output files | |
1297 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1298 | ||
b7026657 AC |
1299 | Installation directories: |
1300 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1301 | [$ac_default_prefix] |
b7026657 | 1302 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1303 | [PREFIX] |
c906108c | 1304 | |
b7026657 AC |
1305 | By default, \`make install' will install all the files in |
1306 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1307 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1308 | for instance \`--prefix=\$HOME'. | |
c906108c | 1309 | |
b7026657 AC |
1310 | For better control, use the options below. |
1311 | ||
1312 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1313 | --bindir=DIR user executables [EPREFIX/bin] |
1314 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1315 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1316 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1317 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1318 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1319 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1320 | --includedir=DIR C header files [PREFIX/include] | |
1321 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1322 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1323 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1324 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1325 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1326 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1327 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1328 | --htmldir=DIR html documentation [DOCDIR] | |
1329 | --dvidir=DIR dvi documentation [DOCDIR] | |
1330 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1331 | --psdir=DIR ps documentation [DOCDIR] | |
b7026657 AC |
1332 | _ACEOF |
1333 | ||
1334 | cat <<\_ACEOF | |
1335 | ||
1336 | Program names: | |
1337 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1338 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1339 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1340 | ||
1341 | System types: | |
1342 | --build=BUILD configure for building on BUILD [guessed] | |
1343 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1344 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1345 | _ACEOF | |
c906108c | 1346 | fi |
b7026657 AC |
1347 | |
1348 | if test -n "$ac_init_help"; then | |
1349 | ||
1350 | cat <<\_ACEOF | |
1351 | ||
1352 | Optional Features: | |
81ecdfbb | 1353 | --disable-option-checking ignore unrecognized --enable/--with options |
b7026657 AC |
1354 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1355 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d0ac1c44 SM |
1356 | --enable-maintainer-mode |
1357 | enable make rules and dependencies not useful (and | |
1358 | sometimes confusing) to the casual installer | |
347fe5bb MF |
1359 | --enable-sim-inline=inlines |
1360 | Specify which functions should be inlined | |
66d055c7 MF |
1361 | --enable-sim-hardware=LIST |
1362 | Specify the hardware to be included in the build. | |
b7026657 | 1363 | |
b7026657 AC |
1364 | Some influential environment variables: |
1365 | CC C compiler command | |
1366 | CFLAGS C compiler flags | |
1367 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1368 | nonstandard directory <lib dir> | |
81ecdfbb | 1369 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1370 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1371 | you have headers in a nonstandard directory <include dir> |
b7026657 AC |
1372 | CPP C preprocessor |
1373 | ||
1374 | Use these variables to override the choices made by `configure' or to help | |
1375 | it to find libraries and programs with nonstandard names/locations. | |
1376 | ||
81ecdfbb | 1377 | Report bugs to the package provider. |
b7026657 | 1378 | _ACEOF |
81ecdfbb | 1379 | ac_status=$? |
c906108c SS |
1380 | fi |
1381 | ||
b7026657 AC |
1382 | if test "$ac_init_help" = "recursive"; then |
1383 | # If there are subdirs, report their specific --help. | |
b7026657 | 1384 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1385 | test -d "$ac_dir" || |
1386 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1387 | continue | |
b7026657 | 1388 | ac_builddir=. |
c906108c | 1389 | |
81ecdfbb RW |
1390 | case "$ac_dir" in |
1391 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1392 | *) | |
1393 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1394 | # A ".." for each directory in $ac_dir_suffix. | |
1395 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1396 | case $ac_top_builddir_sub in | |
1397 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1398 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1399 | esac ;; | |
1400 | esac | |
1401 | ac_abs_top_builddir=$ac_pwd | |
1402 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1403 | # for backward compatibility: | |
1404 | ac_top_builddir=$ac_top_build_prefix | |
c906108c | 1405 | |
b7026657 | 1406 | case $srcdir in |
81ecdfbb | 1407 | .) # We are building in place. |
b7026657 | 1408 | ac_srcdir=. |
81ecdfbb RW |
1409 | ac_top_srcdir=$ac_top_builddir_sub |
1410 | ac_abs_top_srcdir=$ac_pwd ;; | |
1411 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 1412 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1413 | ac_top_srcdir=$srcdir |
1414 | ac_abs_top_srcdir=$srcdir ;; | |
1415 | *) # Relative name. | |
1416 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1417 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1418 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 1419 | esac |
81ecdfbb RW |
1420 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1421 | ||
1422 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1423 | # Check for guested configure. | |
1424 | if test -f "$ac_srcdir/configure.gnu"; then | |
1425 | echo && | |
1426 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1427 | elif test -f "$ac_srcdir/configure"; then | |
1428 | echo && | |
1429 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b7026657 | 1430 | else |
81ecdfbb RW |
1431 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1432 | fi || ac_status=$? | |
1433 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b7026657 | 1434 | done |
c906108c | 1435 | fi |
b7026657 | 1436 | |
81ecdfbb | 1437 | test -n "$ac_init_help" && exit $ac_status |
b7026657 AC |
1438 | if $ac_init_version; then |
1439 | cat <<\_ACEOF | |
81ecdfbb | 1440 | configure |
d0ac1c44 | 1441 | generated by GNU Autoconf 2.69 |
b7026657 | 1442 | |
d0ac1c44 | 1443 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
1444 | This configure script is free software; the Free Software Foundation |
1445 | gives unlimited permission to copy, distribute and modify it. | |
1446 | _ACEOF | |
81ecdfbb | 1447 | exit |
b7026657 | 1448 | fi |
b7026657 | 1449 | |
81ecdfbb RW |
1450 | ## ------------------------ ## |
1451 | ## Autoconf initialization. ## | |
1452 | ## ------------------------ ## | |
b7026657 | 1453 | |
81ecdfbb RW |
1454 | # ac_fn_c_try_compile LINENO |
1455 | # -------------------------- | |
1456 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1457 | ac_fn_c_try_compile () | |
b7026657 | 1458 | { |
81ecdfbb RW |
1459 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1460 | rm -f conftest.$ac_objext | |
1461 | if { { ac_try="$ac_compile" | |
1462 | case "(($ac_try" in | |
1463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1464 | *) ac_try_echo=$ac_try;; | |
1465 | esac | |
1466 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1467 | $as_echo "$ac_try_echo"; } >&5 | |
1468 | (eval "$ac_compile") 2>conftest.err | |
1469 | ac_status=$? | |
1470 | if test -s conftest.err; then | |
1471 | grep -v '^ *+' conftest.err >conftest.er1 | |
1472 | cat conftest.er1 >&5 | |
1473 | mv -f conftest.er1 conftest.err | |
1474 | fi | |
1475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1476 | test $ac_status = 0; } && { | |
1477 | test -z "$ac_c_werror_flag" || | |
1478 | test ! -s conftest.err | |
1479 | } && test -s conftest.$ac_objext; then : | |
1480 | ac_retval=0 | |
1481 | else | |
1482 | $as_echo "$as_me: failed program was:" >&5 | |
1483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 1484 | |
81ecdfbb RW |
1485 | ac_retval=1 |
1486 | fi | |
d0ac1c44 SM |
1487 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1488 | as_fn_set_status $ac_retval | |
b7026657 | 1489 | |
81ecdfbb | 1490 | } # ac_fn_c_try_compile |
b7026657 | 1491 | |
81ecdfbb RW |
1492 | # ac_fn_c_try_cpp LINENO |
1493 | # ---------------------- | |
1494 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1495 | ac_fn_c_try_cpp () | |
1496 | { | |
1497 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1498 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1499 | case "(($ac_try" in | |
1500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1501 | *) ac_try_echo=$ac_try;; | |
1502 | esac | |
1503 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1504 | $as_echo "$ac_try_echo"; } >&5 | |
1505 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1506 | ac_status=$? | |
1507 | if test -s conftest.err; then | |
1508 | grep -v '^ *+' conftest.err >conftest.er1 | |
1509 | cat conftest.er1 >&5 | |
1510 | mv -f conftest.er1 conftest.err | |
1511 | fi | |
1512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 1513 | test $ac_status = 0; } > conftest.i && { |
81ecdfbb RW |
1514 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1515 | test ! -s conftest.err | |
1516 | }; then : | |
1517 | ac_retval=0 | |
1518 | else | |
1519 | $as_echo "$as_me: failed program was:" >&5 | |
1520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 1521 | |
81ecdfbb RW |
1522 | ac_retval=1 |
1523 | fi | |
d0ac1c44 SM |
1524 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1525 | as_fn_set_status $ac_retval | |
b7026657 | 1526 | |
81ecdfbb | 1527 | } # ac_fn_c_try_cpp |
b7026657 | 1528 | |
81ecdfbb RW |
1529 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1530 | # ------------------------------------------------------- | |
1531 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1532 | # the include files in INCLUDES and setting the cache variable VAR | |
1533 | # accordingly. | |
1534 | ac_fn_c_check_header_mongrel () | |
1535 | { | |
1536 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d0ac1c44 | 1537 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1539 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1540 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1541 | $as_echo_n "(cached) " >&6 |
1542 | fi | |
1543 | eval ac_res=\$$3 | |
1544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1545 | $as_echo "$ac_res" >&6; } | |
1546 | else | |
1547 | # Is the header compilable? | |
1548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1549 | $as_echo_n "checking $2 usability... " >&6; } | |
1550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1551 | /* end confdefs.h. */ | |
1552 | $4 | |
1553 | #include <$2> | |
1554 | _ACEOF | |
1555 | if ac_fn_c_try_compile "$LINENO"; then : | |
1556 | ac_header_compiler=yes | |
1557 | else | |
1558 | ac_header_compiler=no | |
1559 | fi | |
1560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1562 | $as_echo "$ac_header_compiler" >&6; } | |
1563 | ||
1564 | # Is the header present? | |
1565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1566 | $as_echo_n "checking $2 presence... " >&6; } | |
1567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1568 | /* end confdefs.h. */ | |
1569 | #include <$2> | |
1570 | _ACEOF | |
1571 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1572 | ac_header_preproc=yes | |
1573 | else | |
1574 | ac_header_preproc=no | |
1575 | fi | |
d0ac1c44 | 1576 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb RW |
1577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1578 | $as_echo "$ac_header_preproc" >&6; } | |
1579 | ||
1580 | # So? What about this header? | |
1581 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1582 | yes:no: ) | |
1583 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1584 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1586 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1587 | ;; | |
1588 | no:yes:* ) | |
1589 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1590 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1591 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1592 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1593 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1594 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1596 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1598 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1599 | ;; | |
1600 | esac | |
1601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1602 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1603 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1604 | $as_echo_n "(cached) " >&6 |
1605 | else | |
1606 | eval "$3=\$ac_header_compiler" | |
1607 | fi | |
1608 | eval ac_res=\$$3 | |
1609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1610 | $as_echo "$ac_res" >&6; } | |
1611 | fi | |
d0ac1c44 | 1612 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1613 | |
1614 | } # ac_fn_c_check_header_mongrel | |
1615 | ||
1616 | # ac_fn_c_try_run LINENO | |
1617 | # ---------------------- | |
1618 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1619 | # that executables *can* be run. | |
1620 | ac_fn_c_try_run () | |
1621 | { | |
1622 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1623 | if { { ac_try="$ac_link" | |
1624 | case "(($ac_try" in | |
1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1626 | *) ac_try_echo=$ac_try;; | |
1627 | esac | |
1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1629 | $as_echo "$ac_try_echo"; } >&5 | |
1630 | (eval "$ac_link") 2>&5 | |
1631 | ac_status=$? | |
1632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1633 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1634 | { { case "(($ac_try" in | |
1635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1636 | *) ac_try_echo=$ac_try;; | |
1637 | esac | |
1638 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1639 | $as_echo "$ac_try_echo"; } >&5 | |
1640 | (eval "$ac_try") 2>&5 | |
1641 | ac_status=$? | |
1642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1643 | test $ac_status = 0; }; }; then : | |
1644 | ac_retval=0 | |
1645 | else | |
1646 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1647 | $as_echo "$as_me: failed program was:" >&5 | |
1648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1649 | ||
1650 | ac_retval=$ac_status | |
1651 | fi | |
1652 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1653 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1654 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1655 | |
1656 | } # ac_fn_c_try_run | |
1657 | ||
1658 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1659 | # ------------------------------------------------------- | |
1660 | # Tests whether HEADER exists and can be compiled using the include files in | |
1661 | # INCLUDES, setting the cache variable VAR accordingly. | |
1662 | ac_fn_c_check_header_compile () | |
1663 | { | |
1664 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1666 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1667 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1668 | $as_echo_n "(cached) " >&6 |
1669 | else | |
1670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1671 | /* end confdefs.h. */ | |
1672 | $4 | |
1673 | #include <$2> | |
1674 | _ACEOF | |
1675 | if ac_fn_c_try_compile "$LINENO"; then : | |
1676 | eval "$3=yes" | |
1677 | else | |
1678 | eval "$3=no" | |
1679 | fi | |
1680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1681 | fi | |
1682 | eval ac_res=\$$3 | |
1683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1684 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1685 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1686 | |
1687 | } # ac_fn_c_check_header_compile | |
81ecdfbb RW |
1688 | cat >config.log <<_ACEOF |
1689 | This file contains any messages produced by compilers while | |
1690 | running configure, to aid debugging if configure makes a mistake. | |
1691 | ||
1692 | It was created by $as_me, which was | |
d0ac1c44 | 1693 | generated by GNU Autoconf 2.69. Invocation command line was |
81ecdfbb RW |
1694 | |
1695 | $ $0 $@ | |
1696 | ||
1697 | _ACEOF | |
1698 | exec 5>>config.log | |
1699 | { | |
1700 | cat <<_ASUNAME | |
1701 | ## --------- ## | |
1702 | ## Platform. ## | |
1703 | ## --------- ## | |
1704 | ||
1705 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1706 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1707 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1708 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1709 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1710 | ||
1711 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1712 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1713 | ||
1714 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1715 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1716 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1717 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1718 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1719 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1720 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1721 | ||
1722 | _ASUNAME | |
1723 | ||
1724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1725 | for as_dir in $PATH | |
1726 | do | |
1727 | IFS=$as_save_IFS | |
1728 | test -z "$as_dir" && as_dir=. | |
1729 | $as_echo "PATH: $as_dir" | |
1730 | done | |
1731 | IFS=$as_save_IFS | |
1732 | ||
1733 | } >&5 | |
1734 | ||
1735 | cat >&5 <<_ACEOF | |
b7026657 AC |
1736 | |
1737 | ||
1738 | ## ----------- ## | |
1739 | ## Core tests. ## | |
1740 | ## ----------- ## | |
1741 | ||
1742 | _ACEOF | |
1743 | ||
1744 | ||
1745 | # Keep a trace of the command line. | |
1746 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1747 | # Strip out --silent because we don't want to record it for future runs. | |
1748 | # Also quote any args containing shell meta-characters. | |
1749 | # Make two passes to allow for proper duplicate-argument suppression. | |
1750 | ac_configure_args= | |
1751 | ac_configure_args0= | |
1752 | ac_configure_args1= | |
b7026657 AC |
1753 | ac_must_keep_next=false |
1754 | for ac_pass in 1 2 | |
1755 | do | |
1756 | for ac_arg | |
1757 | do | |
1758 | case $ac_arg in | |
1759 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1760 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1761 | | -silent | --silent | --silen | --sile | --sil) | |
1762 | continue ;; | |
81ecdfbb RW |
1763 | *\'*) |
1764 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b7026657 AC |
1765 | esac |
1766 | case $ac_pass in | |
81ecdfbb | 1767 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b7026657 | 1768 | 2) |
81ecdfbb | 1769 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b7026657 AC |
1770 | if test $ac_must_keep_next = true; then |
1771 | ac_must_keep_next=false # Got value, back to normal. | |
1772 | else | |
1773 | case $ac_arg in | |
1774 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1775 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1776 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1777 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1778 | case "$ac_configure_args0 " in | |
1779 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1780 | esac | |
1781 | ;; | |
1782 | -* ) ac_must_keep_next=true ;; | |
1783 | esac | |
1784 | fi | |
81ecdfbb | 1785 | as_fn_append ac_configure_args " '$ac_arg'" |
b7026657 AC |
1786 | ;; |
1787 | esac | |
1788 | done | |
1789 | done | |
81ecdfbb RW |
1790 | { ac_configure_args0=; unset ac_configure_args0;} |
1791 | { ac_configure_args1=; unset ac_configure_args1;} | |
b7026657 AC |
1792 | |
1793 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1794 | # config.log. We remove comments because anyway the quotes in there | |
1795 | # would cause problems or look ugly. | |
81ecdfbb RW |
1796 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1797 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b7026657 AC |
1798 | trap 'exit_status=$? |
1799 | # Save into config.log some information that might help in debugging. | |
1800 | { | |
1801 | echo | |
1802 | ||
d0ac1c44 | 1803 | $as_echo "## ---------------- ## |
b7026657 | 1804 | ## Cache variables. ## |
d0ac1c44 | 1805 | ## ---------------- ##" |
b7026657 AC |
1806 | echo |
1807 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
1808 | ( |
1809 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1810 | eval ac_val=\$$ac_var | |
1811 | case $ac_val in #( | |
1812 | *${as_nl}*) | |
1813 | case $ac_var in #( | |
1814 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1815 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1816 | esac | |
1817 | case $ac_var in #( | |
1818 | _ | IFS | as_nl) ;; #( | |
1819 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1820 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1821 | esac ;; | |
1822 | esac | |
1823 | done | |
b7026657 | 1824 | (set) 2>&1 | |
81ecdfbb RW |
1825 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1826 | *${as_nl}ac_space=\ *) | |
b7026657 | 1827 | sed -n \ |
81ecdfbb RW |
1828 | "s/'\''/'\''\\\\'\'''\''/g; |
1829 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1830 | ;; #( | |
b7026657 | 1831 | *) |
81ecdfbb | 1832 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 1833 | ;; |
81ecdfbb RW |
1834 | esac | |
1835 | sort | |
1836 | ) | |
b7026657 AC |
1837 | echo |
1838 | ||
d0ac1c44 | 1839 | $as_echo "## ----------------- ## |
b7026657 | 1840 | ## Output variables. ## |
d0ac1c44 | 1841 | ## ----------------- ##" |
b7026657 AC |
1842 | echo |
1843 | for ac_var in $ac_subst_vars | |
1844 | do | |
81ecdfbb RW |
1845 | eval ac_val=\$$ac_var |
1846 | case $ac_val in | |
1847 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1848 | esac | |
1849 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
1850 | done | sort |
1851 | echo | |
1852 | ||
1853 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 1854 | $as_echo "## ------------------- ## |
81ecdfbb | 1855 | ## File substitutions. ## |
d0ac1c44 | 1856 | ## ------------------- ##" |
b7026657 AC |
1857 | echo |
1858 | for ac_var in $ac_subst_files | |
1859 | do | |
81ecdfbb RW |
1860 | eval ac_val=\$$ac_var |
1861 | case $ac_val in | |
1862 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1863 | esac | |
1864 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
1865 | done | sort |
1866 | echo | |
1867 | fi | |
1868 | ||
1869 | if test -s confdefs.h; then | |
d0ac1c44 | 1870 | $as_echo "## ----------- ## |
b7026657 | 1871 | ## confdefs.h. ## |
d0ac1c44 | 1872 | ## ----------- ##" |
b7026657 | 1873 | echo |
81ecdfbb | 1874 | cat confdefs.h |
b7026657 AC |
1875 | echo |
1876 | fi | |
1877 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
1878 | $as_echo "$as_me: caught signal $ac_signal" |
1879 | $as_echo "$as_me: exit $exit_status" | |
b7026657 | 1880 | } >&5 |
81ecdfbb RW |
1881 | rm -f core *.core core.conftest.* && |
1882 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b7026657 | 1883 | exit $exit_status |
81ecdfbb | 1884 | ' 0 |
b7026657 | 1885 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 1886 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b7026657 AC |
1887 | done |
1888 | ac_signal=0 | |
1889 | ||
1890 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
1891 | rm -f -r conftest* confdefs.h |
1892 | ||
1893 | $as_echo "/* confdefs.h */" > confdefs.h | |
b7026657 AC |
1894 | |
1895 | # Predefined preprocessor variables. | |
1896 | ||
1897 | cat >>confdefs.h <<_ACEOF | |
1898 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1899 | _ACEOF | |
1900 | ||
b7026657 AC |
1901 | cat >>confdefs.h <<_ACEOF |
1902 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1903 | _ACEOF | |
1904 | ||
b7026657 AC |
1905 | cat >>confdefs.h <<_ACEOF |
1906 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1907 | _ACEOF | |
1908 | ||
b7026657 AC |
1909 | cat >>confdefs.h <<_ACEOF |
1910 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1911 | _ACEOF | |
1912 | ||
b7026657 AC |
1913 | cat >>confdefs.h <<_ACEOF |
1914 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1915 | _ACEOF | |
1916 | ||
81ecdfbb RW |
1917 | cat >>confdefs.h <<_ACEOF |
1918 | #define PACKAGE_URL "$PACKAGE_URL" | |
1919 | _ACEOF | |
1920 | ||
b7026657 AC |
1921 | |
1922 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
1923 | # Prefer an explicitly selected file to automatically selected ones. |
1924 | ac_site_file1=NONE | |
1925 | ac_site_file2=NONE | |
1926 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
1927 | # We do not want a PATH search for config.site. |
1928 | case $CONFIG_SITE in #(( | |
1929 | -*) ac_site_file1=./$CONFIG_SITE;; | |
1930 | */*) ac_site_file1=$CONFIG_SITE;; | |
1931 | *) ac_site_file1=./$CONFIG_SITE;; | |
1932 | esac | |
81ecdfbb RW |
1933 | elif test "x$prefix" != xNONE; then |
1934 | ac_site_file1=$prefix/share/config.site | |
1935 | ac_site_file2=$prefix/etc/config.site | |
1936 | else | |
1937 | ac_site_file1=$ac_default_prefix/share/config.site | |
1938 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1939 | fi | |
1940 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1941 | do | |
1942 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 1943 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1945 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b7026657 | 1946 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
1947 | . "$ac_site_file" \ |
1948 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1949 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1950 | as_fn_error $? "failed to load site script $ac_site_file | |
1951 | See \`config.log' for more details" "$LINENO" 5; } | |
b7026657 AC |
1952 | fi |
1953 | done | |
1954 | ||
1955 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
1956 | # Some versions of bash will fail to source /dev/null (special files |
1957 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
1958 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1960 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b7026657 | 1961 | case $cache_file in |
81ecdfbb RW |
1962 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1963 | *) . "./$cache_file";; | |
b7026657 AC |
1964 | esac |
1965 | fi | |
1966 | else | |
81ecdfbb RW |
1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1968 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b7026657 AC |
1969 | >$cache_file |
1970 | fi | |
1971 | ||
1972 | # Check that the precious variables saved in the cache have kept the same | |
1973 | # value. | |
1974 | ac_cache_corrupted=false | |
81ecdfbb | 1975 | for ac_var in $ac_precious_vars; do |
b7026657 AC |
1976 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1977 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
1978 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1979 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b7026657 AC |
1980 | case $ac_old_set,$ac_new_set in |
1981 | set,) | |
81ecdfbb RW |
1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1983 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b7026657 AC |
1984 | ac_cache_corrupted=: ;; |
1985 | ,set) | |
81ecdfbb RW |
1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
1987 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b7026657 AC |
1988 | ac_cache_corrupted=: ;; |
1989 | ,);; | |
1990 | *) | |
1991 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
1992 | # differences in whitespace do not lead to failure. |
1993 | ac_old_val_w=`echo x $ac_old_val` | |
1994 | ac_new_val_w=`echo x $ac_new_val` | |
1995 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1997 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1998 | ac_cache_corrupted=: | |
1999 | else | |
2000 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2001 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2002 | eval $ac_var=\$ac_old_val | |
2003 | fi | |
2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2005 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2007 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b7026657 AC |
2008 | fi;; |
2009 | esac | |
2010 | # Pass precious variables to config.status. | |
2011 | if test "$ac_new_set" = set; then | |
2012 | case $ac_new_val in | |
81ecdfbb | 2013 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b7026657 AC |
2014 | *) ac_arg=$ac_var=$ac_new_val ;; |
2015 | esac | |
2016 | case " $ac_configure_args " in | |
2017 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2018 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b7026657 AC |
2019 | esac |
2020 | fi | |
2021 | done | |
2022 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2024 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2026 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2027 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
b7026657 | 2028 | fi |
81ecdfbb RW |
2029 | ## -------------------- ## |
2030 | ## Main body of script. ## | |
2031 | ## -------------------- ## | |
b7026657 AC |
2032 | |
2033 | ac_ext=c | |
2034 | ac_cpp='$CPP $CPPFLAGS' | |
2035 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2036 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2037 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2038 | ||
2039 | ||
6bb11ab3 L |
2040 | |
2041 | ||
2042 | ||
2043 | ||
2044 | ||
c2783492 MF |
2045 | ac_aux_dir= |
2046 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2047 | if test -f "$ac_dir/install-sh"; then | |
2048 | ac_aux_dir=$ac_dir | |
2049 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2050 | break | |
2051 | elif test -f "$ac_dir/install.sh"; then | |
2052 | ac_aux_dir=$ac_dir | |
2053 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2054 | break | |
2055 | elif test -f "$ac_dir/shtool"; then | |
2056 | ac_aux_dir=$ac_dir | |
2057 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2058 | break | |
2059 | fi | |
2060 | done | |
2061 | if test -z "$ac_aux_dir"; then | |
2062 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2063 | fi | |
2064 | ||
2065 | # These three variables are undocumented and unsupported, | |
2066 | # and are intended to be withdrawn in a future Autoconf release. | |
2067 | # They can cause serious problems if a builder's source tree is in a directory | |
2068 | # whose full name contains unusual characters. | |
2069 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2070 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2071 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2072 | ||
2073 | ||
2074 | # Make sure we can run config.sub. | |
2075 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2076 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2077 | ||
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2079 | $as_echo_n "checking build system type... " >&6; } | |
2080 | if ${ac_cv_build+:} false; then : | |
2081 | $as_echo_n "(cached) " >&6 | |
2082 | else | |
2083 | ac_build_alias=$build_alias | |
2084 | test "x$ac_build_alias" = x && | |
2085 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2086 | test "x$ac_build_alias" = x && | |
2087 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2088 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2089 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2090 | ||
2091 | fi | |
2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2093 | $as_echo "$ac_cv_build" >&6; } | |
2094 | case $ac_cv_build in | |
2095 | *-*-*) ;; | |
2096 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2097 | esac | |
2098 | build=$ac_cv_build | |
2099 | ac_save_IFS=$IFS; IFS='-' | |
2100 | set x $ac_cv_build | |
2101 | shift | |
2102 | build_cpu=$1 | |
2103 | build_vendor=$2 | |
2104 | shift; shift | |
2105 | # Remember, the first character of IFS is used to create $*, | |
2106 | # except with old shells: | |
2107 | build_os=$* | |
2108 | IFS=$ac_save_IFS | |
2109 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2110 | ||
2111 | ||
2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2113 | $as_echo_n "checking host system type... " >&6; } | |
2114 | if ${ac_cv_host+:} false; then : | |
2115 | $as_echo_n "(cached) " >&6 | |
2116 | else | |
2117 | if test "x$host_alias" = x; then | |
2118 | ac_cv_host=$ac_cv_build | |
2119 | else | |
2120 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2121 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2122 | fi | |
2123 | ||
2124 | fi | |
2125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2126 | $as_echo "$ac_cv_host" >&6; } | |
2127 | case $ac_cv_host in | |
2128 | *-*-*) ;; | |
2129 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2130 | esac | |
2131 | host=$ac_cv_host | |
2132 | ac_save_IFS=$IFS; IFS='-' | |
2133 | set x $ac_cv_host | |
2134 | shift | |
2135 | host_cpu=$1 | |
2136 | host_vendor=$2 | |
2137 | shift; shift | |
2138 | # Remember, the first character of IFS is used to create $*, | |
2139 | # except with old shells: | |
2140 | host_os=$* | |
2141 | IFS=$ac_save_IFS | |
2142 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2143 | ||
2144 | ||
2145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2146 | $as_echo_n "checking target system type... " >&6; } | |
2147 | if ${ac_cv_target+:} false; then : | |
2148 | $as_echo_n "(cached) " >&6 | |
2149 | else | |
2150 | if test "x$target_alias" = x; then | |
2151 | ac_cv_target=$ac_cv_host | |
2152 | else | |
2153 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2154 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2155 | fi | |
2156 | ||
2157 | fi | |
2158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2159 | $as_echo "$ac_cv_target" >&6; } | |
2160 | case $ac_cv_target in | |
2161 | *-*-*) ;; | |
2162 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2163 | esac | |
2164 | target=$ac_cv_target | |
2165 | ac_save_IFS=$IFS; IFS='-' | |
2166 | set x $ac_cv_target | |
2167 | shift | |
2168 | target_cpu=$1 | |
2169 | target_vendor=$2 | |
2170 | shift; shift | |
2171 | # Remember, the first character of IFS is used to create $*, | |
2172 | # except with old shells: | |
2173 | target_os=$* | |
2174 | IFS=$ac_save_IFS | |
2175 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2176 | ||
2177 | ||
2178 | # The aliases save the names the user supplied, while $host etc. | |
2179 | # will get canonicalized. | |
2180 | test -n "$target_alias" && | |
2181 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2182 | NONENONEs,x,x, && | |
2183 | program_prefix=${target_alias}- | |
6bb11ab3 L |
2184 | ac_ext=c |
2185 | ac_cpp='$CPP $CPPFLAGS' | |
2186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2189 | if test -n "$ac_tool_prefix"; then | |
2190 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2191 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2193 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2194 | if ${ac_cv_prog_CC+:} false; then : |
6bb11ab3 L |
2195 | $as_echo_n "(cached) " >&6 |
2196 | else | |
2197 | if test -n "$CC"; then | |
2198 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2199 | else | |
2200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2201 | for as_dir in $PATH | |
2202 | do | |
2203 | IFS=$as_save_IFS | |
2204 | test -z "$as_dir" && as_dir=. | |
2205 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2206 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
2207 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2209 | break 2 | |
2210 | fi | |
2211 | done | |
2212 | done | |
2213 | IFS=$as_save_IFS | |
2214 | ||
2215 | fi | |
2216 | fi | |
2217 | CC=$ac_cv_prog_CC | |
2218 | if test -n "$CC"; then | |
2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2220 | $as_echo "$CC" >&6; } | |
2221 | else | |
2222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2223 | $as_echo "no" >&6; } | |
2224 | fi | |
2225 | ||
2226 | ||
2227 | fi | |
2228 | if test -z "$ac_cv_prog_CC"; then | |
2229 | ac_ct_CC=$CC | |
2230 | # Extract the first word of "gcc", so it can be a program name with args. | |
2231 | set dummy gcc; ac_word=$2 | |
2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2233 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2234 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bb11ab3 L |
2235 | $as_echo_n "(cached) " >&6 |
2236 | else | |
2237 | if test -n "$ac_ct_CC"; then | |
2238 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2239 | else | |
2240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2241 | for as_dir in $PATH | |
2242 | do | |
2243 | IFS=$as_save_IFS | |
2244 | test -z "$as_dir" && as_dir=. | |
2245 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
2247 | ac_cv_prog_ac_ct_CC="gcc" |
2248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2249 | break 2 | |
2250 | fi | |
2251 | done | |
2252 | done | |
2253 | IFS=$as_save_IFS | |
2254 | ||
2255 | fi | |
2256 | fi | |
2257 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2258 | if test -n "$ac_ct_CC"; then | |
2259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2260 | $as_echo "$ac_ct_CC" >&6; } | |
2261 | else | |
2262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2263 | $as_echo "no" >&6; } | |
2264 | fi | |
2265 | ||
2266 | if test "x$ac_ct_CC" = x; then | |
2267 | CC="" | |
2268 | else | |
2269 | case $cross_compiling:$ac_tool_warned in | |
2270 | yes:) | |
2271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2272 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2273 | ac_tool_warned=yes ;; | |
2274 | esac | |
2275 | CC=$ac_ct_CC | |
2276 | fi | |
2277 | else | |
2278 | CC="$ac_cv_prog_CC" | |
2279 | fi | |
2280 | ||
2281 | if test -z "$CC"; then | |
2282 | if test -n "$ac_tool_prefix"; then | |
2283 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2284 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2286 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2287 | if ${ac_cv_prog_CC+:} false; then : |
6bb11ab3 L |
2288 | $as_echo_n "(cached) " >&6 |
2289 | else | |
2290 | if test -n "$CC"; then | |
2291 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2292 | else | |
2293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2294 | for as_dir in $PATH | |
2295 | do | |
2296 | IFS=$as_save_IFS | |
2297 | test -z "$as_dir" && as_dir=. | |
2298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
2300 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2302 | break 2 | |
2303 | fi | |
2304 | done | |
2305 | done | |
2306 | IFS=$as_save_IFS | |
2307 | ||
2308 | fi | |
2309 | fi | |
2310 | CC=$ac_cv_prog_CC | |
2311 | if test -n "$CC"; then | |
2312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2313 | $as_echo "$CC" >&6; } | |
2314 | else | |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2316 | $as_echo "no" >&6; } | |
2317 | fi | |
2318 | ||
2319 | ||
2320 | fi | |
2321 | fi | |
2322 | if test -z "$CC"; then | |
2323 | # Extract the first word of "cc", so it can be a program name with args. | |
2324 | set dummy cc; ac_word=$2 | |
2325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2326 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2327 | if ${ac_cv_prog_CC+:} false; then : |
6bb11ab3 L |
2328 | $as_echo_n "(cached) " >&6 |
2329 | else | |
2330 | if test -n "$CC"; then | |
2331 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2332 | else | |
2333 | ac_prog_rejected=no | |
2334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2335 | for as_dir in $PATH | |
2336 | do | |
2337 | IFS=$as_save_IFS | |
2338 | test -z "$as_dir" && as_dir=. | |
2339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2340 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
2341 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2342 | ac_prog_rejected=yes | |
2343 | continue | |
2344 | fi | |
2345 | ac_cv_prog_CC="cc" | |
2346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2347 | break 2 | |
2348 | fi | |
2349 | done | |
2350 | done | |
2351 | IFS=$as_save_IFS | |
2352 | ||
2353 | if test $ac_prog_rejected = yes; then | |
2354 | # We found a bogon in the path, so make sure we never use it. | |
2355 | set dummy $ac_cv_prog_CC | |
2356 | shift | |
2357 | if test $# != 0; then | |
2358 | # We chose a different compiler from the bogus one. | |
2359 | # However, it has the same basename, so the bogon will be chosen | |
2360 | # first if we set CC to just the basename; use the full file name. | |
2361 | shift | |
2362 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2363 | fi | |
2364 | fi | |
2365 | fi | |
2366 | fi | |
2367 | CC=$ac_cv_prog_CC | |
2368 | if test -n "$CC"; then | |
2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2370 | $as_echo "$CC" >&6; } | |
2371 | else | |
2372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2373 | $as_echo "no" >&6; } | |
2374 | fi | |
2375 | ||
2376 | ||
2377 | fi | |
2378 | if test -z "$CC"; then | |
2379 | if test -n "$ac_tool_prefix"; then | |
2380 | for ac_prog in cl.exe | |
2381 | do | |
2382 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2383 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2385 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2386 | if ${ac_cv_prog_CC+:} false; then : |
6bb11ab3 L |
2387 | $as_echo_n "(cached) " >&6 |
2388 | else | |
2389 | if test -n "$CC"; then | |
2390 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2391 | else | |
2392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2393 | for as_dir in $PATH | |
2394 | do | |
2395 | IFS=$as_save_IFS | |
2396 | test -z "$as_dir" && as_dir=. | |
2397 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2398 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
2399 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2401 | break 2 | |
2402 | fi | |
2403 | done | |
2404 | done | |
2405 | IFS=$as_save_IFS | |
2406 | ||
2407 | fi | |
2408 | fi | |
2409 | CC=$ac_cv_prog_CC | |
2410 | if test -n "$CC"; then | |
2411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2412 | $as_echo "$CC" >&6; } | |
2413 | else | |
2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2415 | $as_echo "no" >&6; } | |
2416 | fi | |
2417 | ||
2418 | ||
2419 | test -n "$CC" && break | |
2420 | done | |
2421 | fi | |
2422 | if test -z "$CC"; then | |
2423 | ac_ct_CC=$CC | |
2424 | for ac_prog in cl.exe | |
2425 | do | |
2426 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2427 | set dummy $ac_prog; ac_word=$2 | |
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2429 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2430 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bb11ab3 L |
2431 | $as_echo_n "(cached) " >&6 |
2432 | else | |
2433 | if test -n "$ac_ct_CC"; then | |
2434 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2435 | else | |
2436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2437 | for as_dir in $PATH | |
2438 | do | |
2439 | IFS=$as_save_IFS | |
2440 | test -z "$as_dir" && as_dir=. | |
2441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bb11ab3 L |
2443 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2445 | break 2 | |
2446 | fi | |
2447 | done | |
2448 | done | |
2449 | IFS=$as_save_IFS | |
2450 | ||
2451 | fi | |
2452 | fi | |
2453 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2454 | if test -n "$ac_ct_CC"; then | |
2455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2456 | $as_echo "$ac_ct_CC" >&6; } | |
2457 | else | |
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2459 | $as_echo "no" >&6; } | |
2460 | fi | |
2461 | ||
2462 | ||
2463 | test -n "$ac_ct_CC" && break | |
2464 | done | |
2465 | ||
2466 | if test "x$ac_ct_CC" = x; then | |
2467 | CC="" | |
2468 | else | |
2469 | case $cross_compiling:$ac_tool_warned in | |
2470 | yes:) | |
2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2472 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2473 | ac_tool_warned=yes ;; | |
2474 | esac | |
2475 | CC=$ac_ct_CC | |
2476 | fi | |
2477 | fi | |
2478 | ||
2479 | fi | |
2480 | ||
2481 | ||
2482 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2483 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2484 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2485 | See \`config.log' for more details" "$LINENO" 5; } | |
6bb11ab3 L |
2486 | |
2487 | # Provide some information about the compiler. | |
2488 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2489 | set X $ac_compile | |
2490 | ac_compiler=$2 | |
2491 | for ac_option in --version -v -V -qversion; do | |
2492 | { { ac_try="$ac_compiler $ac_option >&5" | |
2493 | case "(($ac_try" in | |
2494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2495 | *) ac_try_echo=$ac_try;; | |
2496 | esac | |
2497 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2498 | $as_echo "$ac_try_echo"; } >&5 | |
2499 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2500 | ac_status=$? | |
2501 | if test -s conftest.err; then | |
2502 | sed '10a\ | |
2503 | ... rest of stderr output deleted ... | |
2504 | 10q' conftest.err >conftest.er1 | |
2505 | cat conftest.er1 >&5 | |
6bb11ab3 | 2506 | fi |
d0ac1c44 | 2507 | rm -f conftest.er1 conftest.err |
6bb11ab3 L |
2508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2509 | test $ac_status = 0; } | |
2510 | done | |
2511 | ||
2512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2513 | /* end confdefs.h. */ | |
2514 | ||
2515 | int | |
2516 | main () | |
2517 | { | |
2518 | ||
2519 | ; | |
2520 | return 0; | |
2521 | } | |
2522 | _ACEOF | |
2523 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 2524 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
6bb11ab3 L |
2525 | # Try to create an executable without -o first, disregard a.out. |
2526 | # It will help us diagnose broken compilers, and finding out an intuition | |
2527 | # of exeext. | |
d0ac1c44 SM |
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2529 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
6bb11ab3 L |
2530 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2531 | ||
2532 | # The possible output files: | |
2533 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2534 | ||
2535 | ac_rmfiles= | |
2536 | for ac_file in $ac_files | |
2537 | do | |
2538 | case $ac_file in | |
2539 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2540 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2541 | esac | |
2542 | done | |
2543 | rm -f $ac_rmfiles | |
2544 | ||
2545 | if { { ac_try="$ac_link_default" | |
2546 | case "(($ac_try" in | |
2547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2548 | *) ac_try_echo=$ac_try;; | |
2549 | esac | |
2550 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2551 | $as_echo "$ac_try_echo"; } >&5 | |
2552 | (eval "$ac_link_default") 2>&5 | |
2553 | ac_status=$? | |
2554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2555 | test $ac_status = 0; }; then : | |
2556 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2557 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2558 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2559 | # so that the user can short-circuit this test for compilers unknown to | |
2560 | # Autoconf. | |
2561 | for ac_file in $ac_files '' | |
2562 | do | |
2563 | test -f "$ac_file" || continue | |
2564 | case $ac_file in | |
2565 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2566 | ;; | |
2567 | [ab].out ) | |
2568 | # We found the default executable, but exeext='' is most | |
2569 | # certainly right. | |
2570 | break;; | |
2571 | *.* ) | |
2572 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2573 | then :; else | |
2574 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2575 | fi | |
2576 | # We set ac_cv_exeext here because the later test for it is not | |
2577 | # safe: cross compilers may not add the suffix if given an `-o' | |
2578 | # argument, so we may need to know it at that point already. | |
2579 | # Even if this section looks crufty: it has the advantage of | |
2580 | # actually working. | |
2581 | break;; | |
2582 | * ) | |
2583 | break;; | |
2584 | esac | |
2585 | done | |
2586 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2587 | ||
2588 | else | |
2589 | ac_file='' | |
2590 | fi | |
6bb11ab3 | 2591 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2593 | $as_echo "no" >&6; } | |
2594 | $as_echo "$as_me: failed program was:" >&5 | |
6bb11ab3 L |
2595 | sed 's/^/| /' conftest.$ac_ext >&5 |
2596 | ||
2597 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2598 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2599 | as_fn_error 77 "C compiler cannot create executables |
2600 | See \`config.log' for more details" "$LINENO" 5; } | |
2601 | else | |
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2603 | $as_echo "yes" >&6; } | |
6bb11ab3 | 2604 | fi |
d0ac1c44 SM |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2606 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2608 | $as_echo "$ac_file" >&6; } | |
6bb11ab3 L |
2609 | ac_exeext=$ac_cv_exeext |
2610 | ||
d0ac1c44 | 2611 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
6bb11ab3 | 2612 | ac_clean_files=$ac_clean_files_save |
6bb11ab3 L |
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2614 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2615 | if { { ac_try="$ac_link" | |
2616 | case "(($ac_try" in | |
2617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2618 | *) ac_try_echo=$ac_try;; | |
2619 | esac | |
2620 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2621 | $as_echo "$ac_try_echo"; } >&5 | |
2622 | (eval "$ac_link") 2>&5 | |
2623 | ac_status=$? | |
2624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2625 | test $ac_status = 0; }; then : | |
2626 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2627 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2628 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2629 | # `rm'. | |
2630 | for ac_file in conftest.exe conftest conftest.*; do | |
2631 | test -f "$ac_file" || continue | |
2632 | case $ac_file in | |
2633 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2634 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2635 | break;; | |
2636 | * ) break;; | |
2637 | esac | |
2638 | done | |
2639 | else | |
2640 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2641 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2642 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2643 | See \`config.log' for more details" "$LINENO" 5; } | |
6bb11ab3 | 2644 | fi |
d0ac1c44 | 2645 | rm -f conftest conftest$ac_cv_exeext |
6bb11ab3 L |
2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2647 | $as_echo "$ac_cv_exeext" >&6; } | |
2648 | ||
2649 | rm -f conftest.$ac_ext | |
2650 | EXEEXT=$ac_cv_exeext | |
2651 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
2652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2653 | /* end confdefs.h. */ | |
2654 | #include <stdio.h> | |
2655 | int | |
2656 | main () | |
2657 | { | |
2658 | FILE *f = fopen ("conftest.out", "w"); | |
2659 | return ferror (f) || fclose (f) != 0; | |
2660 | ||
2661 | ; | |
2662 | return 0; | |
2663 | } | |
2664 | _ACEOF | |
2665 | ac_clean_files="$ac_clean_files conftest.out" | |
2666 | # Check that the compiler produces executables we can run. If not, either | |
2667 | # the compiler is broken, or we cross compile. | |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2669 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2670 | if test "$cross_compiling" != yes; then | |
2671 | { { ac_try="$ac_link" | |
2672 | case "(($ac_try" in | |
2673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2674 | *) ac_try_echo=$ac_try;; | |
2675 | esac | |
2676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2677 | $as_echo "$ac_try_echo"; } >&5 | |
2678 | (eval "$ac_link") 2>&5 | |
2679 | ac_status=$? | |
2680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2681 | test $ac_status = 0; } | |
2682 | if { ac_try='./conftest$ac_cv_exeext' | |
2683 | { { case "(($ac_try" in | |
2684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2685 | *) ac_try_echo=$ac_try;; | |
2686 | esac | |
2687 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2688 | $as_echo "$ac_try_echo"; } >&5 | |
2689 | (eval "$ac_try") 2>&5 | |
2690 | ac_status=$? | |
2691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2692 | test $ac_status = 0; }; }; then | |
2693 | cross_compiling=no | |
2694 | else | |
2695 | if test "$cross_compiling" = maybe; then | |
2696 | cross_compiling=yes | |
2697 | else | |
2698 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2699 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2700 | as_fn_error $? "cannot run C compiled programs. | |
2701 | If you meant to cross compile, use \`--host'. | |
2702 | See \`config.log' for more details" "$LINENO" 5; } | |
2703 | fi | |
2704 | fi | |
2705 | fi | |
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2707 | $as_echo "$cross_compiling" >&6; } | |
2708 | ||
2709 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2710 | ac_clean_files=$ac_clean_files_save | |
6bb11ab3 L |
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2712 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 2713 | if ${ac_cv_objext+:} false; then : |
6bb11ab3 L |
2714 | $as_echo_n "(cached) " >&6 |
2715 | else | |
2716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2717 | /* end confdefs.h. */ | |
2718 | ||
2719 | int | |
2720 | main () | |
2721 | { | |
2722 | ||
2723 | ; | |
2724 | return 0; | |
2725 | } | |
2726 | _ACEOF | |
2727 | rm -f conftest.o conftest.obj | |
2728 | if { { ac_try="$ac_compile" | |
2729 | case "(($ac_try" in | |
2730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2731 | *) ac_try_echo=$ac_try;; | |
2732 | esac | |
2733 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2734 | $as_echo "$ac_try_echo"; } >&5 | |
2735 | (eval "$ac_compile") 2>&5 | |
2736 | ac_status=$? | |
2737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2738 | test $ac_status = 0; }; then : | |
2739 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2740 | test -f "$ac_file" || continue; | |
2741 | case $ac_file in | |
2742 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2743 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2744 | break;; | |
2745 | esac | |
2746 | done | |
2747 | else | |
2748 | $as_echo "$as_me: failed program was:" >&5 | |
2749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2750 | ||
2751 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2752 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2753 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2754 | See \`config.log' for more details" "$LINENO" 5; } | |
6bb11ab3 L |
2755 | fi |
2756 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2757 | fi | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2759 | $as_echo "$ac_cv_objext" >&6; } | |
2760 | OBJEXT=$ac_cv_objext | |
2761 | ac_objext=$OBJEXT | |
2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2763 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 2764 | if ${ac_cv_c_compiler_gnu+:} false; then : |
6bb11ab3 L |
2765 | $as_echo_n "(cached) " >&6 |
2766 | else | |
2767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2768 | /* end confdefs.h. */ | |
2769 | ||
2770 | int | |
2771 | main () | |
2772 | { | |
2773 | #ifndef __GNUC__ | |
2774 | choke me | |
2775 | #endif | |
2776 | ||
2777 | ; | |
2778 | return 0; | |
2779 | } | |
2780 | _ACEOF | |
2781 | if ac_fn_c_try_compile "$LINENO"; then : | |
2782 | ac_compiler_gnu=yes | |
2783 | else | |
2784 | ac_compiler_gnu=no | |
2785 | fi | |
2786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2787 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2788 | ||
2789 | fi | |
2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
2791 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2792 | if test $ac_compiler_gnu = yes; then | |
2793 | GCC=yes | |
2794 | else | |
2795 | GCC= | |
2796 | fi | |
2797 | ac_test_CFLAGS=${CFLAGS+set} | |
2798 | ac_save_CFLAGS=$CFLAGS | |
2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
2800 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 2801 | if ${ac_cv_prog_cc_g+:} false; then : |
6bb11ab3 L |
2802 | $as_echo_n "(cached) " >&6 |
2803 | else | |
2804 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2805 | ac_c_werror_flag=yes | |
2806 | ac_cv_prog_cc_g=no | |
2807 | CFLAGS="-g" | |
2808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2809 | /* end confdefs.h. */ | |
2810 | ||
2811 | int | |
2812 | main () | |
2813 | { | |
2814 | ||
2815 | ; | |
2816 | return 0; | |
2817 | } | |
2818 | _ACEOF | |
2819 | if ac_fn_c_try_compile "$LINENO"; then : | |
2820 | ac_cv_prog_cc_g=yes | |
2821 | else | |
2822 | CFLAGS="" | |
2823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2824 | /* end confdefs.h. */ | |
2825 | ||
2826 | int | |
2827 | main () | |
2828 | { | |
2829 | ||
2830 | ; | |
2831 | return 0; | |
2832 | } | |
2833 | _ACEOF | |
2834 | if ac_fn_c_try_compile "$LINENO"; then : | |
2835 | ||
2836 | else | |
2837 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2838 | CFLAGS="-g" | |
2839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2840 | /* end confdefs.h. */ | |
2841 | ||
2842 | int | |
2843 | main () | |
2844 | { | |
2845 | ||
2846 | ; | |
2847 | return 0; | |
2848 | } | |
2849 | _ACEOF | |
2850 | if ac_fn_c_try_compile "$LINENO"; then : | |
2851 | ac_cv_prog_cc_g=yes | |
2852 | fi | |
2853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2854 | fi | |
2855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2856 | fi | |
2857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2858 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2859 | fi | |
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2861 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
2862 | if test "$ac_test_CFLAGS" = set; then | |
2863 | CFLAGS=$ac_save_CFLAGS | |
2864 | elif test $ac_cv_prog_cc_g = yes; then | |
2865 | if test "$GCC" = yes; then | |
2866 | CFLAGS="-g -O2" | |
2867 | else | |
2868 | CFLAGS="-g" | |
2869 | fi | |
2870 | else | |
2871 | if test "$GCC" = yes; then | |
2872 | CFLAGS="-O2" | |
2873 | else | |
2874 | CFLAGS= | |
2875 | fi | |
2876 | fi | |
2877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
2878 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 2879 | if ${ac_cv_prog_cc_c89+:} false; then : |
6bb11ab3 L |
2880 | $as_echo_n "(cached) " >&6 |
2881 | else | |
2882 | ac_cv_prog_cc_c89=no | |
2883 | ac_save_CC=$CC | |
2884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2885 | /* end confdefs.h. */ | |
2886 | #include <stdarg.h> | |
2887 | #include <stdio.h> | |
d0ac1c44 | 2888 | struct stat; |
6bb11ab3 L |
2889 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2890 | struct buf { int x; }; | |
2891 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2892 | static char *e (p, i) | |
2893 | char **p; | |
2894 | int i; | |
2895 | { | |
2896 | return p[i]; | |
2897 | } | |
2898 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2899 | { | |
2900 | char *s; | |
2901 | va_list v; | |
2902 | va_start (v,p); | |
2903 | s = g (p, va_arg (v,int)); | |
2904 | va_end (v); | |
2905 | return s; | |
2906 | } | |
2907 | ||
2908 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2909 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2910 | These don't provoke an error unfortunately, instead are silently treated | |
2911 | as 'x'. The following induces an error, until -std is added to get | |
2912 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2913 | array size at least. It's necessary to write '\x00'==0 to get something | |
2914 | that's true only with -std. */ | |
2915 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2916 | ||
2917 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2918 | inside strings and character constants. */ | |
2919 | #define FOO(x) 'x' | |
2920 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2921 | ||
2922 | int test (int i, double x); | |
2923 | struct s1 {int (*f) (int a);}; | |
2924 | struct s2 {int (*f) (double a);}; | |
2925 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2926 | int argc; | |
2927 | char **argv; | |
2928 | int | |
2929 | main () | |
2930 | { | |
2931 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2932 | ; | |
2933 | return 0; | |
2934 | } | |
2935 | _ACEOF | |
2936 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
2937 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2938 | do | |
2939 | CC="$ac_save_CC $ac_arg" | |
2940 | if ac_fn_c_try_compile "$LINENO"; then : | |
2941 | ac_cv_prog_cc_c89=$ac_arg | |
2942 | fi | |
2943 | rm -f core conftest.err conftest.$ac_objext | |
2944 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2945 | done | |
2946 | rm -f conftest.$ac_ext | |
2947 | CC=$ac_save_CC | |
2948 | ||
2949 | fi | |
2950 | # AC_CACHE_VAL | |
2951 | case "x$ac_cv_prog_cc_c89" in | |
2952 | x) | |
2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2954 | $as_echo "none needed" >&6; } ;; | |
2955 | xno) | |
2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2957 | $as_echo "unsupported" >&6; } ;; | |
2958 | *) | |
2959 | CC="$CC $ac_cv_prog_cc_c89" | |
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2961 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
2962 | esac | |
2963 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
2964 | ||
2965 | fi | |
2966 | ||
2967 | ac_ext=c | |
2968 | ac_cpp='$CPP $CPPFLAGS' | |
2969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2972 | ||
c2783492 | 2973 | |
ebe9564b MF |
2974 | ac_ext=c |
2975 | ac_cpp='$CPP $CPPFLAGS' | |
2976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
2980 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
2981 | # On Suns, sometimes $CPP names a directory. | |
2982 | if test -n "$CPP" && test -d "$CPP"; then | |
2983 | CPP= | |
2984 | fi | |
2985 | if test -z "$CPP"; then | |
2986 | if ${ac_cv_prog_CPP+:} false; then : | |
2987 | $as_echo_n "(cached) " >&6 | |
2988 | else | |
2989 | # Double quotes because CPP needs to be expanded | |
2990 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2991 | do | |
2992 | ac_preproc_ok=false | |
2993 | for ac_c_preproc_warn_flag in '' yes | |
2994 | do | |
2995 | # Use a header file that comes with gcc, so configuring glibc | |
2996 | # with a fresh cross-compiler works. | |
2997 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2998 | # <limits.h> exists even on freestanding compilers. | |
2999 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3000 | # not just through cpp. "Syntax error" is here to catch this case. | |
3001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3002 | /* end confdefs.h. */ | |
3003 | #ifdef __STDC__ | |
3004 | # include <limits.h> | |
3005 | #else | |
3006 | # include <assert.h> | |
3007 | #endif | |
3008 | Syntax error | |
3009 | _ACEOF | |
3010 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3011 | ||
3012 | else | |
3013 | # Broken: fails on valid input. | |
3014 | continue | |
3015 | fi | |
3016 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3017 | ||
3018 | # OK, works on sane cases. Now check whether nonexistent headers | |
3019 | # can be detected and how. | |
3020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3021 | /* end confdefs.h. */ | |
3022 | #include <ac_nonexistent.h> | |
3023 | _ACEOF | |
3024 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3025 | # Broken: success on invalid input. | |
3026 | continue | |
3027 | else | |
3028 | # Passes both tests. | |
3029 | ac_preproc_ok=: | |
3030 | break | |
3031 | fi | |
3032 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3033 | ||
3034 | done | |
3035 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3036 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3037 | if $ac_preproc_ok; then : | |
3038 | break | |
3039 | fi | |
3040 | ||
3041 | done | |
3042 | ac_cv_prog_CPP=$CPP | |
3043 | ||
3044 | fi | |
3045 | CPP=$ac_cv_prog_CPP | |
3046 | else | |
3047 | ac_cv_prog_CPP=$CPP | |
3048 | fi | |
3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3050 | $as_echo "$CPP" >&6; } | |
3051 | ac_preproc_ok=false | |
3052 | for ac_c_preproc_warn_flag in '' yes | |
3053 | do | |
3054 | # Use a header file that comes with gcc, so configuring glibc | |
3055 | # with a fresh cross-compiler works. | |
3056 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3057 | # <limits.h> exists even on freestanding compilers. | |
3058 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3059 | # not just through cpp. "Syntax error" is here to catch this case. | |
3060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3061 | /* end confdefs.h. */ | |
3062 | #ifdef __STDC__ | |
3063 | # include <limits.h> | |
3064 | #else | |
3065 | # include <assert.h> | |
3066 | #endif | |
3067 | Syntax error | |
3068 | _ACEOF | |
3069 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3070 | ||
3071 | else | |
3072 | # Broken: fails on valid input. | |
3073 | continue | |
3074 | fi | |
3075 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3076 | ||
3077 | # OK, works on sane cases. Now check whether nonexistent headers | |
3078 | # can be detected and how. | |
3079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3080 | /* end confdefs.h. */ | |
3081 | #include <ac_nonexistent.h> | |
3082 | _ACEOF | |
3083 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3084 | # Broken: success on invalid input. | |
3085 | continue | |
3086 | else | |
3087 | # Passes both tests. | |
3088 | ac_preproc_ok=: | |
3089 | break | |
3090 | fi | |
3091 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3092 | ||
3093 | done | |
3094 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3095 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3096 | if $ac_preproc_ok; then : | |
3097 | ||
3098 | else | |
3099 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3100 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3101 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3102 | See \`config.log' for more details" "$LINENO" 5; } | |
3103 | fi | |
3104 | ||
3105 | ac_ext=c | |
3106 | ac_cpp='$CPP $CPPFLAGS' | |
3107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3110 | ||
6bb11ab3 L |
3111 | |
3112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3113 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d0ac1c44 | 3114 | if ${ac_cv_path_GREP+:} false; then : |
6bb11ab3 L |
3115 | $as_echo_n "(cached) " >&6 |
3116 | else | |
3117 | if test -z "$GREP"; then | |
3118 | ac_path_GREP_found=false | |
3119 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3121 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3122 | do | |
3123 | IFS=$as_save_IFS | |
3124 | test -z "$as_dir" && as_dir=. | |
3125 | for ac_prog in grep ggrep; do | |
3126 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3127 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 3128 | as_fn_executable_p "$ac_path_GREP" || continue |
6bb11ab3 L |
3129 | # Check for GNU ac_path_GREP and select it if it is found. |
3130 | # Check for GNU $ac_path_GREP | |
3131 | case `"$ac_path_GREP" --version 2>&1` in | |
3132 | *GNU*) | |
3133 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3134 | *) | |
3135 | ac_count=0 | |
3136 | $as_echo_n 0123456789 >"conftest.in" | |
3137 | while : | |
3138 | do | |
3139 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3140 | mv "conftest.tmp" "conftest.in" | |
3141 | cp "conftest.in" "conftest.nl" | |
3142 | $as_echo 'GREP' >> "conftest.nl" | |
3143 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3144 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3145 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3146 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3147 | # Best one so far, save it but keep looking for a better one | |
3148 | ac_cv_path_GREP="$ac_path_GREP" | |
3149 | ac_path_GREP_max=$ac_count | |
3150 | fi | |
3151 | # 10*(2^10) chars as input seems more than enough | |
3152 | test $ac_count -gt 10 && break | |
3153 | done | |
3154 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3155 | esac | |
3156 | ||
3157 | $ac_path_GREP_found && break 3 | |
3158 | done | |
3159 | done | |
3160 | done | |
3161 | IFS=$as_save_IFS | |
3162 | if test -z "$ac_cv_path_GREP"; then | |
d0ac1c44 | 3163 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
6bb11ab3 L |
3164 | fi |
3165 | else | |
3166 | ac_cv_path_GREP=$GREP | |
3167 | fi | |
3168 | ||
3169 | fi | |
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3171 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3172 | GREP="$ac_cv_path_GREP" | |
3173 | ||
3174 | ||
3175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3176 | $as_echo_n "checking for egrep... " >&6; } | |
d0ac1c44 | 3177 | if ${ac_cv_path_EGREP+:} false; then : |
6bb11ab3 L |
3178 | $as_echo_n "(cached) " >&6 |
3179 | else | |
3180 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3181 | then ac_cv_path_EGREP="$GREP -E" | |
3182 | else | |
3183 | if test -z "$EGREP"; then | |
3184 | ac_path_EGREP_found=false | |
3185 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3187 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3188 | do | |
3189 | IFS=$as_save_IFS | |
3190 | test -z "$as_dir" && as_dir=. | |
3191 | for ac_prog in egrep; do | |
3192 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3193 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 3194 | as_fn_executable_p "$ac_path_EGREP" || continue |
6bb11ab3 L |
3195 | # Check for GNU ac_path_EGREP and select it if it is found. |
3196 | # Check for GNU $ac_path_EGREP | |
3197 | case `"$ac_path_EGREP" --version 2>&1` in | |
3198 | *GNU*) | |
3199 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3200 | *) | |
3201 | ac_count=0 | |
3202 | $as_echo_n 0123456789 >"conftest.in" | |
3203 | while : | |
3204 | do | |
3205 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3206 | mv "conftest.tmp" "conftest.in" | |
3207 | cp "conftest.in" "conftest.nl" | |
3208 | $as_echo 'EGREP' >> "conftest.nl" | |
3209 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3210 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3211 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3212 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3213 | # Best one so far, save it but keep looking for a better one | |
3214 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3215 | ac_path_EGREP_max=$ac_count | |
3216 | fi | |
3217 | # 10*(2^10) chars as input seems more than enough | |
3218 | test $ac_count -gt 10 && break | |
3219 | done | |
3220 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3221 | esac | |
3222 | ||
3223 | $ac_path_EGREP_found && break 3 | |
3224 | done | |
3225 | done | |
3226 | done | |
3227 | IFS=$as_save_IFS | |
3228 | if test -z "$ac_cv_path_EGREP"; then | |
d0ac1c44 | 3229 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
6bb11ab3 L |
3230 | fi |
3231 | else | |
3232 | ac_cv_path_EGREP=$EGREP | |
3233 | fi | |
3234 | ||
3235 | fi | |
3236 | fi | |
3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3238 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3239 | EGREP="$ac_cv_path_EGREP" | |
3240 | ||
3241 | ||
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3243 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 3244 | if ${ac_cv_header_stdc+:} false; then : |
6bb11ab3 L |
3245 | $as_echo_n "(cached) " >&6 |
3246 | else | |
3247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3248 | /* end confdefs.h. */ | |
3249 | #include <stdlib.h> | |
3250 | #include <stdarg.h> | |
3251 | #include <string.h> | |
3252 | #include <float.h> | |
3253 | ||
3254 | int | |
3255 | main () | |
3256 | { | |
3257 | ||
3258 | ; | |
3259 | return 0; | |
3260 | } | |
3261 | _ACEOF | |
3262 | if ac_fn_c_try_compile "$LINENO"; then : | |
3263 | ac_cv_header_stdc=yes | |
3264 | else | |
3265 | ac_cv_header_stdc=no | |
3266 | fi | |
3267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3268 | ||
3269 | if test $ac_cv_header_stdc = yes; then | |
3270 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3272 | /* end confdefs.h. */ | |
3273 | #include <string.h> | |
3274 | ||
3275 | _ACEOF | |
3276 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3277 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3278 | ||
3279 | else | |
3280 | ac_cv_header_stdc=no | |
3281 | fi | |
3282 | rm -f conftest* | |
3283 | ||
3284 | fi | |
3285 | ||
3286 | if test $ac_cv_header_stdc = yes; then | |
3287 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3289 | /* end confdefs.h. */ | |
3290 | #include <stdlib.h> | |
3291 | ||
3292 | _ACEOF | |
3293 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3294 | $EGREP "free" >/dev/null 2>&1; then : | |
3295 | ||
3296 | else | |
3297 | ac_cv_header_stdc=no | |
3298 | fi | |
3299 | rm -f conftest* | |
3300 | ||
3301 | fi | |
3302 | ||
3303 | if test $ac_cv_header_stdc = yes; then | |
3304 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3305 | if test "$cross_compiling" = yes; then : | |
3306 | : | |
3307 | else | |
3308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3309 | /* end confdefs.h. */ | |
3310 | #include <ctype.h> | |
3311 | #include <stdlib.h> | |
3312 | #if ((' ' & 0x0FF) == 0x020) | |
3313 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3314 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3315 | #else | |
3316 | # define ISLOWER(c) \ | |
3317 | (('a' <= (c) && (c) <= 'i') \ | |
3318 | || ('j' <= (c) && (c) <= 'r') \ | |
3319 | || ('s' <= (c) && (c) <= 'z')) | |
3320 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3321 | #endif | |
3322 | ||
3323 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3324 | int | |
3325 | main () | |
3326 | { | |
3327 | int i; | |
3328 | for (i = 0; i < 256; i++) | |
3329 | if (XOR (islower (i), ISLOWER (i)) | |
3330 | || toupper (i) != TOUPPER (i)) | |
3331 | return 2; | |
3332 | return 0; | |
3333 | } | |
3334 | _ACEOF | |
3335 | if ac_fn_c_try_run "$LINENO"; then : | |
3336 | ||
3337 | else | |
3338 | ac_cv_header_stdc=no | |
3339 | fi | |
3340 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3341 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3342 | fi | |
3343 | ||
3344 | fi | |
3345 | fi | |
3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3347 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3348 | if test $ac_cv_header_stdc = yes; then | |
3349 | ||
3350 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3351 | ||
3352 | fi | |
3353 | ||
3354 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3355 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3356 | inttypes.h stdint.h unistd.h | |
3357 | do : | |
3358 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3359 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3360 | " | |
d0ac1c44 | 3361 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6bb11ab3 L |
3362 | cat >>confdefs.h <<_ACEOF |
3363 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3364 | _ACEOF | |
3365 | ||
3366 | fi | |
3367 | ||
3368 | done | |
3369 | ||
3370 | ||
3371 | ||
3372 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
d0ac1c44 | 3373 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
6bb11ab3 L |
3374 | MINIX=yes |
3375 | else | |
3376 | MINIX= | |
3377 | fi | |
3378 | ||
3379 | ||
3380 | if test "$MINIX" = yes; then | |
3381 | ||
3382 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3383 | ||
3384 | ||
3385 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3386 | ||
3387 | ||
3388 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3389 | ||
3390 | fi | |
3391 | ||
3392 | ||
3393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3394 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d0ac1c44 | 3395 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
6bb11ab3 L |
3396 | $as_echo_n "(cached) " >&6 |
3397 | else | |
3398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3399 | /* end confdefs.h. */ | |
3400 | ||
d0ac1c44 SM |
3401 | # define __EXTENSIONS__ 1 |
3402 | $ac_includes_default | |
6bb11ab3 L |
3403 | int |
3404 | main () | |
3405 | { | |
3406 | ||
3407 | ; | |
3408 | return 0; | |
3409 | } | |
3410 | _ACEOF | |
3411 | if ac_fn_c_try_compile "$LINENO"; then : | |
3412 | ac_cv_safe_to_define___extensions__=yes | |
3413 | else | |
3414 | ac_cv_safe_to_define___extensions__=no | |
3415 | fi | |
3416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3417 | fi | |
3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
3419 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3420 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3421 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
3422 | ||
3423 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
3424 | ||
3425 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
3426 | ||
3427 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3428 | ||
3429 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
3430 | ||
3431 | ||
3432 | test "$program_prefix" != NONE && | |
3433 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3434 | # Use a double $ so make ignores it. | |
3435 | test "$program_suffix" != NONE && | |
3436 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3437 | # Double any \ or $. | |
3438 | # By default was `s,x,x', remove it if useless. | |
3439 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3440 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
3441 | ||
3442 | # Find a good install program. We prefer a C program (faster), | |
3443 | # so one script is as good as another. But avoid the broken or | |
3444 | # incompatible versions: | |
3445 | # SysV /etc/install, /usr/sbin/install | |
3446 | # SunOS /usr/etc/install | |
3447 | # IRIX /sbin/install | |
3448 | # AIX /bin/install | |
3449 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3450 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3451 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3452 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3453 | # OS/2's system install, which has a completely different semantic | |
3454 | # ./install, which can be erroneously created by make from ./install.sh. | |
3455 | # Reject install programs that cannot install multiple files. | |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3457 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3458 | if test -z "$INSTALL"; then | |
d0ac1c44 | 3459 | if ${ac_cv_path_install+:} false; then : |
6bb11ab3 L |
3460 | $as_echo_n "(cached) " >&6 |
3461 | else | |
3462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3463 | for as_dir in $PATH | |
3464 | do | |
3465 | IFS=$as_save_IFS | |
3466 | test -z "$as_dir" && as_dir=. | |
3467 | # Account for people who put trailing slashes in PATH elements. | |
3468 | case $as_dir/ in #(( | |
3469 | ./ | .// | /[cC]/* | \ | |
3470 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3471 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3472 | /usr/ucb/* ) ;; | |
3473 | *) | |
3474 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3475 | # Don't use installbsd from OSF since it installs stuff as root | |
3476 | # by default. | |
3477 | for ac_prog in ginstall scoinst install; do | |
3478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3479 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
6bb11ab3 L |
3480 | if test $ac_prog = install && |
3481 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3482 | # AIX install. It has an incompatible calling convention. | |
3483 | : | |
3484 | elif test $ac_prog = install && | |
3485 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3486 | # program-specific install script used by HP pwplus--don't use. | |
3487 | : | |
3488 | else | |
3489 | rm -rf conftest.one conftest.two conftest.dir | |
3490 | echo one > conftest.one | |
3491 | echo two > conftest.two | |
3492 | mkdir conftest.dir | |
3493 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3494 | test -s conftest.one && test -s conftest.two && | |
3495 | test -s conftest.dir/conftest.one && | |
3496 | test -s conftest.dir/conftest.two | |
3497 | then | |
3498 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3499 | break 3 | |
3500 | fi | |
3501 | fi | |
3502 | fi | |
3503 | done | |
3504 | done | |
3505 | ;; | |
3506 | esac | |
3507 | ||
3508 | done | |
3509 | IFS=$as_save_IFS | |
3510 | ||
3511 | rm -rf conftest.one conftest.two conftest.dir | |
3512 | ||
3513 | fi | |
3514 | if test "${ac_cv_path_install+set}" = set; then | |
3515 | INSTALL=$ac_cv_path_install | |
3516 | else | |
3517 | # As a last resort, use the slow shell script. Don't cache a | |
3518 | # value for INSTALL within a source directory, because that will | |
3519 | # break other packages using the cache if that directory is | |
3520 | # removed, or if the value is a relative name. | |
3521 | INSTALL=$ac_install_sh | |
3522 | fi | |
3523 | fi | |
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3525 | $as_echo "$INSTALL" >&6; } | |
3526 | ||
3527 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3528 | # It thinks the first close brace ends the variable substitution. | |
3529 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3530 | ||
3531 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3532 | ||
3533 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3534 | ||
3535 | rm -rf .tst 2>/dev/null | |
3536 | mkdir .tst 2>/dev/null | |
3537 | if test -d .tst; then | |
3538 | am__leading_dot=. | |
3539 | else | |
3540 | am__leading_dot=_ | |
3541 | fi | |
3542 | rmdir .tst 2>/dev/null | |
3543 | ||
3544 | DEPDIR="${am__leading_dot}deps" | |
3545 | ||
6bb11ab3 L |
3546 | |
3547 | ||
3548 | ||
3549 | ||
b5689863 MF |
3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
3551 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
3552 | if ${ac_cv_c_bigendian+:} false; then : | |
3553 | $as_echo_n "(cached) " >&6 | |
3554 | else | |
3555 | ac_cv_c_bigendian=unknown | |
3556 | # See if we're dealing with a universal compiler. | |
3557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3558 | /* end confdefs.h. */ | |
3559 | #ifndef __APPLE_CC__ | |
3560 | not a universal capable compiler | |
3561 | #endif | |
3562 | typedef int dummy; | |
6bb11ab3 | 3563 | |
b5689863 MF |
3564 | _ACEOF |
3565 | if ac_fn_c_try_compile "$LINENO"; then : | |
6bb11ab3 | 3566 | |
b5689863 MF |
3567 | # Check for potential -arch flags. It is not universal unless |
3568 | # there are at least two -arch flags with different values. | |
3569 | ac_arch= | |
3570 | ac_prev= | |
3571 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
3572 | if test -n "$ac_prev"; then | |
3573 | case $ac_word in | |
3574 | i?86 | x86_64 | ppc | ppc64) | |
3575 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
3576 | ac_arch=$ac_word | |
3577 | else | |
3578 | ac_cv_c_bigendian=universal | |
3579 | break | |
3580 | fi | |
3581 | ;; | |
3582 | esac | |
3583 | ac_prev= | |
3584 | elif test "x$ac_word" = "x-arch"; then | |
3585 | ac_prev=arch | |
3586 | fi | |
3587 | done | |
3588 | fi | |
3589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3590 | if test $ac_cv_c_bigendian = unknown; then | |
3591 | # See if sys/param.h defines the BYTE_ORDER macro. | |
3592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3593 | /* end confdefs.h. */ | |
3594 | #include <sys/types.h> | |
3595 | #include <sys/param.h> | |
6bb11ab3 | 3596 | |
b5689863 MF |
3597 | int |
3598 | main () | |
3599 | { | |
3600 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
3601 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
3602 | && LITTLE_ENDIAN) | |
3603 | bogus endian macros | |
3604 | #endif | |
6bb11ab3 | 3605 | |
b5689863 MF |
3606 | ; |
3607 | return 0; | |
3608 | } | |
3609 | _ACEOF | |
3610 | if ac_fn_c_try_compile "$LINENO"; then : | |
3611 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
3612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3613 | /* end confdefs.h. */ | |
3614 | #include <sys/types.h> | |
3615 | #include <sys/param.h> | |
6bb11ab3 | 3616 | |
b5689863 MF |
3617 | int |
3618 | main () | |
3619 | { | |
3620 | #if BYTE_ORDER != BIG_ENDIAN | |
3621 | not big endian | |
3622 | #endif | |
6bb11ab3 | 3623 | |
b5689863 MF |
3624 | ; |
3625 | return 0; | |
3626 | } | |
3627 | _ACEOF | |
3628 | if ac_fn_c_try_compile "$LINENO"; then : | |
3629 | ac_cv_c_bigendian=yes | |
6bb11ab3 | 3630 | else |
b5689863 MF |
3631 | ac_cv_c_bigendian=no |
3632 | fi | |
3633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bb11ab3 | 3634 | fi |
b5689863 MF |
3635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3636 | fi | |
3637 | if test $ac_cv_c_bigendian = unknown; then | |
3638 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
3639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3640 | /* end confdefs.h. */ | |
3641 | #include <limits.h> | |
6bb11ab3 | 3642 | |
b5689863 MF |
3643 | int |
3644 | main () | |
6bb11ab3 | 3645 | { |
b5689863 MF |
3646 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
3647 | bogus endian macros | |
3648 | #endif | |
6bb11ab3 | 3649 | |
b5689863 MF |
3650 | ; |
3651 | return 0; | |
3652 | } | |
3653 | _ACEOF | |
3654 | if ac_fn_c_try_compile "$LINENO"; then : | |
3655 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
3656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3657 | /* end confdefs.h. */ | |
3658 | #include <limits.h> | |
6bb11ab3 | 3659 | |
b5689863 MF |
3660 | int |
3661 | main () | |
3662 | { | |
3663 | #ifndef _BIG_ENDIAN | |
3664 | not big endian | |
3665 | #endif | |
6bb11ab3 | 3666 | |
b5689863 MF |
3667 | ; |
3668 | return 0; | |
3669 | } | |
3670 | _ACEOF | |
3671 | if ac_fn_c_try_compile "$LINENO"; then : | |
3672 | ac_cv_c_bigendian=yes | |
6bb11ab3 | 3673 | else |
b5689863 | 3674 | ac_cv_c_bigendian=no |
6bb11ab3 | 3675 | fi |
b5689863 | 3676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6bb11ab3 | 3677 | fi |
b5689863 MF |
3678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3679 | fi | |
3680 | if test $ac_cv_c_bigendian = unknown; then | |
3681 | # Compile a test program. | |
3682 | if test "$cross_compiling" = yes; then : | |
3683 | # Try to guess by grepping values from an object file. | |
3684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3685 | /* end confdefs.h. */ | |
3686 | short int ascii_mm[] = | |
3687 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
3688 | short int ascii_ii[] = | |
3689 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
3690 | int use_ascii (int i) { | |
3691 | return ascii_mm[i] + ascii_ii[i]; | |
3692 | } | |
3693 | short int ebcdic_ii[] = | |
3694 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
3695 | short int ebcdic_mm[] = | |
3696 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
3697 | int use_ebcdic (int i) { | |
3698 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
3699 | } | |
3700 | extern int foo; | |
6bb11ab3 | 3701 | |
b5689863 MF |
3702 | int |
3703 | main () | |
3704 | { | |
3705 | return use_ascii (foo) == use_ebcdic (foo); | |
3706 | ; | |
3707 | return 0; | |
3708 | } | |
3709 | _ACEOF | |
3710 | if ac_fn_c_try_compile "$LINENO"; then : | |
3711 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
3712 | ac_cv_c_bigendian=yes | |
3713 | fi | |
3714 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
3715 | if test "$ac_cv_c_bigendian" = unknown; then | |
3716 | ac_cv_c_bigendian=no | |
3717 | else | |
3718 | # finding both strings is unlikely to happen, but who knows? | |
3719 | ac_cv_c_bigendian=unknown | |
3720 | fi | |
3721 | fi | |
3722 | fi | |
3723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bb11ab3 | 3724 | else |
b5689863 MF |
3725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3726 | /* end confdefs.h. */ | |
3727 | $ac_includes_default | |
3728 | int | |
3729 | main () | |
3730 | { | |
6bb11ab3 | 3731 | |
b5689863 MF |
3732 | /* Are we little or big endian? From Harbison&Steele. */ |
3733 | union | |
3734 | { | |
3735 | long int l; | |
3736 | char c[sizeof (long int)]; | |
3737 | } u; | |
3738 | u.l = 1; | |
3739 | return u.c[sizeof (long int) - 1] == 1; | |
3740 | ||
3741 | ; | |
3742 | return 0; | |
3743 | } | |
3744 | _ACEOF | |
3745 | if ac_fn_c_try_run "$LINENO"; then : | |
3746 | ac_cv_c_bigendian=no | |
6bb11ab3 | 3747 | else |
b5689863 | 3748 | ac_cv_c_bigendian=yes |
6bb11ab3 | 3749 | fi |
b5689863 MF |
3750 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3751 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6bb11ab3 | 3752 | fi |
6bb11ab3 | 3753 | |
b5689863 MF |
3754 | fi |
3755 | fi | |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
3757 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
3758 | case $ac_cv_c_bigendian in #( | |
3759 | yes) | |
3760 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
3761 | ;; #( | |
3762 | no) | |
3763 | ;; #( | |
3764 | universal) | |
6bb11ab3 | 3765 | |
b5689863 | 3766 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
6bb11ab3 | 3767 | |
b5689863 MF |
3768 | ;; #( |
3769 | *) | |
3770 | as_fn_error $? "unknown endianness | |
3771 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
3772 | esac | |
6bb11ab3 L |
3773 | |
3774 | ||
3775 | ||
6bb11ab3 | 3776 | |
b5689863 MF |
3777 | if test "x$cross_compiling" = "xno"; then |
3778 | : "${AR_FOR_BUILD:=\$(AR)}" | |
3779 | : "${CC_FOR_BUILD:=\$(CC)}" | |
3780 | : "${RANLIB_FOR_BUILD:=\$(RANLIB)}" | |
3781 | : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}" | |
3782 | : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}" | |
6bb11ab3 | 3783 | else |
b5689863 MF |
3784 | : "${AR_FOR_BUILD:=ar}" |
3785 | : "${CC_FOR_BUILD:=gcc}" | |
3786 | : "${RANLIB_FOR_BUILD:=ranlib}" | |
3787 | : "${CFLAGS_FOR_BUILD:=-g -O}" | |
3788 | : "${LDLFAGS_FOR_BUILD:=}" | |
6bb11ab3 | 3789 | fi |
6bb11ab3 L |
3790 | |
3791 | ||
3792 | ||
3793 | ||
3794 | ||
3795 | ||
3796 | ||
b5689863 MF |
3797 | if test -n "$ac_tool_prefix"; then |
3798 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
3799 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6bb11ab3 L |
3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3801 | $as_echo_n "checking for $ac_word... " >&6; } | |
b5689863 | 3802 | if ${ac_cv_prog_AR+:} false; then : |
6bb11ab3 L |
3803 | $as_echo_n "(cached) " >&6 |
3804 | else | |
b5689863 MF |
3805 | if test -n "$AR"; then |
3806 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6bb11ab3 L |
3807 | else |
3808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3809 | for as_dir in $PATH | |
3810 | do | |
3811 | IFS=$as_save_IFS | |
3812 | test -z "$as_dir" && as_dir=. | |
3813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b5689863 | 3815 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6bb11ab3 L |
3816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3817 | break 2 | |
3818 | fi | |
3819 | done | |
3820 | done | |
3821 | IFS=$as_save_IFS | |
3822 | ||
3823 | fi | |
3824 | fi | |
b5689863 MF |
3825 | AR=$ac_cv_prog_AR |
3826 | if test -n "$AR"; then | |
3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
3828 | $as_echo "$AR" >&6; } | |
6bb11ab3 L |
3829 | else |
3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3831 | $as_echo "no" >&6; } | |
3832 | fi | |
3833 | ||
3834 | ||
6bb11ab3 | 3835 | fi |
b5689863 MF |
3836 | if test -z "$ac_cv_prog_AR"; then |
3837 | ac_ct_AR=$AR | |
3838 | # Extract the first word of "ar", so it can be a program name with args. | |
3839 | set dummy ar; ac_word=$2 | |
6bb11ab3 L |
3840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3841 | $as_echo_n "checking for $ac_word... " >&6; } | |
b5689863 | 3842 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
6bb11ab3 L |
3843 | $as_echo_n "(cached) " >&6 |
3844 | else | |
b5689863 MF |
3845 | if test -n "$ac_ct_AR"; then |
3846 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6bb11ab3 L |
3847 | else |
3848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3849 | for as_dir in $PATH | |
3850 | do | |
3851 | IFS=$as_save_IFS | |
3852 | test -z "$as_dir" && as_dir=. | |
3853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3854 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b5689863 | 3855 | ac_cv_prog_ac_ct_AR="ar" |
6bb11ab3 L |
3856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3857 | break 2 | |
3858 | fi | |
3859 | done | |
3860 | done | |
3861 | IFS=$as_save_IFS | |
3862 | ||
3863 | fi | |
3864 | fi | |
b5689863 MF |
3865 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
3866 | if test -n "$ac_ct_AR"; then | |
3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
3868 | $as_echo "$ac_ct_AR" >&6; } | |
6bb11ab3 L |
3869 | else |
3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3871 | $as_echo "no" >&6; } | |
3872 | fi | |
3873 | ||
b5689863 MF |
3874 | if test "x$ac_ct_AR" = x; then |
3875 | AR="" | |
6bb11ab3 L |
3876 | else |
3877 | case $cross_compiling:$ac_tool_warned in | |
3878 | yes:) | |
3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3880 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3881 | ac_tool_warned=yes ;; | |
3882 | esac | |
b5689863 | 3883 | AR=$ac_ct_AR |
6bb11ab3 | 3884 | fi |
b5689863 MF |
3885 | else |
3886 | AR="$ac_cv_prog_AR" | |
6bb11ab3 | 3887 | fi |
6bb11ab3 | 3888 | |
b5689863 MF |
3889 | if test -n "$ac_tool_prefix"; then |
3890 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3891 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3893 | $as_echo_n "checking for $ac_word... " >&6; } | |
3894 | if ${ac_cv_prog_RANLIB+:} false; then : | |
6bb11ab3 L |
3895 | $as_echo_n "(cached) " >&6 |
3896 | else | |
b5689863 MF |
3897 | if test -n "$RANLIB"; then |
3898 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6bb11ab3 L |
3899 | else |
3900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3901 | for as_dir in $PATH | |
3902 | do | |
3903 | IFS=$as_save_IFS | |
3904 | test -z "$as_dir" && as_dir=. | |
3905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3906 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b5689863 | 3907 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6bb11ab3 L |
3908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3909 | break 2 | |
3910 | fi | |
3911 | done | |
3912 | done | |
3913 | IFS=$as_save_IFS | |
3914 | ||
3915 | fi | |
3916 | fi | |
b5689863 MF |
3917 | RANLIB=$ac_cv_prog_RANLIB |
3918 | if test -n "$RANLIB"; then | |
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
3920 | $as_echo "$RANLIB" >&6; } | |
6bb11ab3 L |
3921 | else |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3923 | $as_echo "no" >&6; } | |
3924 | fi | |
3925 | ||
3926 | ||
3927 | fi | |
b5689863 MF |
3928 | if test -z "$ac_cv_prog_RANLIB"; then |
3929 | ac_ct_RANLIB=$RANLIB | |
3930 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3931 | set dummy ranlib; ac_word=$2 | |
6bb11ab3 L |
3932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3933 | $as_echo_n "checking for $ac_word... " >&6; } | |
b5689863 | 3934 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
6bb11ab3 L |
3935 | $as_echo_n "(cached) " >&6 |
3936 | else | |
b5689863 MF |
3937 | if test -n "$ac_ct_RANLIB"; then |
3938 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6bb11ab3 L |
3939 | else |
3940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3941 | for as_dir in $PATH | |
3942 | do | |
3943 | IFS=$as_save_IFS | |
3944 | test -z "$as_dir" && as_dir=. | |
3945 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3946 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b5689863 | 3947 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6bb11ab3 L |
3948 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3949 | break 2 | |
3950 | fi | |
3951 | done | |
3952 | done | |
3953 | IFS=$as_save_IFS | |
3954 | ||
3955 | fi | |
3956 | fi | |
b5689863 MF |
3957 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3958 | if test -n "$ac_ct_RANLIB"; then | |
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
3960 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6bb11ab3 L |
3961 | else |
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3963 | $as_echo "no" >&6; } | |
3964 | fi | |
3965 | ||
b5689863 MF |
3966 | if test "x$ac_ct_RANLIB" = x; then |
3967 | RANLIB=":" | |
6bb11ab3 L |
3968 | else |
3969 | case $cross_compiling:$ac_tool_warned in | |
3970 | yes:) | |
3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3972 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3973 | ac_tool_warned=yes ;; | |
3974 | esac | |
b5689863 | 3975 | RANLIB=$ac_ct_RANLIB |
6bb11ab3 L |
3976 | fi |
3977 | else | |
b5689863 | 3978 | RANLIB="$ac_cv_prog_RANLIB" |
6bb11ab3 L |
3979 | fi |
3980 | ||
6bb11ab3 | 3981 | |
b5689863 MF |
3982 | # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using |
3983 | # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands | |
3984 | # is C99. So handle it ourselves. | |
3985 | : | |
3986 | C_DIALECT= | |
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5 | |
3988 | $as_echo_n "checking whether C11 is supported by default... " >&6; } | |
3989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3990 | /* end confdefs.h. */ | |
6bb11ab3 | 3991 | |
b5689863 MF |
3992 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
3993 | # error "C11 support not found" | |
3994 | #endif | |
6bb11ab3 | 3995 | |
b5689863 MF |
3996 | _ACEOF |
3997 | if ac_fn_c_try_compile "$LINENO"; then : | |
3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3999 | $as_echo "yes" >&6; } | |
6bb11ab3 | 4000 | else |
6bb11ab3 | 4001 | |
b5689863 MF |
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4003 | $as_echo "no" >&6; } | |
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5 | |
4005 | $as_echo_n "checking for -std=c11 support... " >&6; } | |
4006 | ac_save_CC="$CC" | |
4007 | CC="$CC -std=c11" | |
4008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4009 | /* end confdefs.h. */ | |
6bb11ab3 | 4010 | |
b5689863 MF |
4011 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
4012 | # error "C11 support not found" | |
4013 | #endif | |
6bb11ab3 | 4014 | |
b5689863 MF |
4015 | _ACEOF |
4016 | if ac_fn_c_try_compile "$LINENO"; then : | |
6bb11ab3 | 4017 | |
b5689863 MF |
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4019 | $as_echo "yes" >&6; } | |
4020 | CC="$ac_save_CC" | |
4021 | C_DIALECT="-std=c11" | |
6bb11ab3 | 4022 | |
b5689863 MF |
4023 | else |
4024 | as_fn_error $? "C11 is required" "$LINENO" 5 | |
6bb11ab3 | 4025 | fi |
b5689863 MF |
4026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4027 | fi | |
4028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bb11ab3 L |
4029 | |
4030 | ||
4031 | ||
b5689863 MF |
4032 | # Dependency checking. |
4033 | ac_config_commands="$ac_config_commands depdir" | |
6bb11ab3 L |
4034 | |
4035 | ||
b5689863 | 4036 | depcc="$CC" am_compiler_list= |
68ed2854 | 4037 | |
b5689863 MF |
4038 | am_depcomp=$ac_aux_dir/depcomp |
4039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4040 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4041 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
6bb11ab3 L |
4042 | $as_echo_n "(cached) " >&6 |
4043 | else | |
b5689863 MF |
4044 | if test -f "$am_depcomp"; then |
4045 | # We make a subdir and do the tests there. Otherwise we can end up | |
4046 | # making bogus files that we don't know about and never remove. For | |
4047 | # instance it was reported that on HP-UX the gcc test will end up | |
4048 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4049 | # in D'. | |
4050 | mkdir conftest.dir | |
4051 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4052 | # using a relative directory. | |
4053 | cp "$am_depcomp" conftest.dir | |
4054 | cd conftest.dir | |
4055 | # We will build objects and dependencies in a subdirectory because | |
4056 | # it helps to detect inapplicable dependency modes. For instance | |
4057 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4058 | # side effect of compilation, but ICC will put the dependencies in | |
4059 | # the current directory while Tru64 will put them in the object | |
4060 | # directory. | |
4061 | mkdir sub | |
6bb11ab3 | 4062 | |
b5689863 MF |
4063 | am_cv_CC_dependencies_compiler_type=none |
4064 | if test "$am_compiler_list" = ""; then | |
4065 | am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
6bb11ab3 | 4066 | fi |
b5689863 MF |
4067 | for depmode in $am_compiler_list; do |
4068 | if test $depmode = none; then break; fi | |
6bb11ab3 | 4069 | |
b5689863 MF |
4070 | $as_echo "$as_me:$LINENO: trying $depmode" >&5 |
4071 | # Setup a source with many dependencies, because some compilers | |
4072 | # like to wrap large dependency lists on column 80 (with \), and | |
4073 | # we should not choose a depcomp mode which is confused by this. | |
4074 | # | |
4075 | # We need to recreate these files for each test, as the compiler may | |
4076 | # overwrite some of them when testing with obscure command lines. | |
4077 | # This happens at least with the AIX C compiler. | |
4078 | : > sub/conftest.c | |
4079 | for i in 1 2 3 4 5 6; do | |
4080 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4081 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4082 | # Solaris 8's {/usr,}/bin/sh. | |
4083 | touch sub/conftst$i.h | |
4084 | done | |
4085 | echo "include sub/conftest.Po" > confmf | |
6bb11ab3 | 4086 | |
b5689863 MF |
4087 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4088 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4089 | # handle `-M -o', and we need to detect this. | |
4090 | depcmd="depmode=$depmode \ | |
4091 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
4092 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4093 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" | |
4094 | echo "| $depcmd" | sed -e 's/ */ /g' >&5 | |
4095 | if env $depcmd > conftest.err 2>&1 && | |
4096 | grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && | |
4097 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && | |
4098 | ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then | |
4099 | # icc doesn't choke on unknown options, it will just issue warnings | |
4100 | # or remarks (even with -Werror). So we grep stderr for any message | |
4101 | # that says an option was ignored or not supported. | |
4102 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4103 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4104 | # The diagnosis changed in icc 8.0: | |
4105 | # icc: Command line remark: option '-MP' not supported | |
4106 | if (grep 'ignoring option' conftest.err || | |
4107 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4108 | am_cv_CC_dependencies_compiler_type=$depmode | |
4109 | $as_echo "$as_me:$LINENO: success" >&5 | |
4110 | break | |
4111 | fi | |
aa09469f | 4112 | fi |
b5689863 MF |
4113 | $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 |
4114 | sed -e 's/^/| /' < conftest.err >&5 | |
6bb11ab3 | 4115 | done |
6bb11ab3 | 4116 | |
b5689863 MF |
4117 | cd .. |
4118 | rm -rf conftest.dir | |
6bb11ab3 | 4119 | else |
b5689863 | 4120 | am_cv_CC_dependencies_compiler_type=none |
6bb11ab3 | 4121 | fi |
6bb11ab3 L |
4122 | |
4123 | fi | |
b5689863 MF |
4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4125 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4126 | if test x${am_cv_CC_dependencies_compiler_type-none} = xnone | |
4127 | then as_fn_error $? "no usable dependency style found" "$LINENO" 5 | |
4128 | else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
6bb11ab3 | 4129 | |
6bb11ab3 L |
4130 | fi |
4131 | ||
6bb11ab3 | 4132 | |
b5689863 MF |
4133 | ALL_LINGUAS= |
4134 | # If we haven't got the data from the intl directory, | |
4135 | # assume NLS is disabled. | |
4136 | USE_NLS=no | |
4137 | LIBINTL= | |
4138 | LIBINTL_DEP= | |
4139 | INCINTL= | |
4140 | XGETTEXT= | |
4141 | GMSGFMT= | |
4142 | POSUB= | |
6bb11ab3 | 4143 | |
b5689863 MF |
4144 | if test -f ../../intl/config.intl; then |
4145 | . ../../intl/config.intl | |
6bb11ab3 | 4146 | fi |
b5689863 MF |
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
4148 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
4149 | if test x"$USE_NLS" != xyes; then | |
6bb11ab3 L |
4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4151 | $as_echo "no" >&6; } | |
b5689863 MF |
4152 | else |
4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4154 | $as_echo "yes" >&6; } | |
6bb11ab3 | 4155 | |
b5689863 | 4156 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
6bb11ab3 | 4157 | |
6bb11ab3 | 4158 | |
b5689863 MF |
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
4160 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
4161 | # Look for .po and .gmo files in the source directory. | |
4162 | CATALOGS= | |
4163 | XLINGUAS= | |
4164 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
4165 | # If there aren't any .gmo files the shell will give us the | |
4166 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
4167 | # weeded out. | |
4168 | case "$cat" in *\**) | |
4169 | continue;; | |
6bb11ab3 | 4170 | esac |
b5689863 MF |
4171 | # The quadruple backslash is collapsed to a double backslash |
4172 | # by the backticks, then collapsed again by the double quotes, | |
4173 | # leaving us with one backslash in the sed expression (right | |
4174 | # before the dot that mustn't act as a wildcard). | |
4175 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
4176 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
4177 | # The user is allowed to set LINGUAS to a list of languages to | |
4178 | # install catalogs for. If it's empty that means "all of them." | |
4179 | if test "x$LINGUAS" = x; then | |
4180 | CATALOGS="$CATALOGS $cat" | |
4181 | XLINGUAS="$XLINGUAS $lang" | |
6bb11ab3 | 4182 | else |
b5689863 MF |
4183 | case "$LINGUAS" in *$lang*) |
4184 | CATALOGS="$CATALOGS $cat" | |
4185 | XLINGUAS="$XLINGUAS $lang" | |
4186 | ;; | |
4187 | esac | |
4188 | fi | |
4189 | done | |
4190 | LINGUAS="$XLINGUAS" | |
4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
4192 | $as_echo "$LINGUAS" >&6; } | |
6bb11ab3 L |
4193 | |
4194 | ||
b5689863 | 4195 | DATADIRNAME=share |
6bb11ab3 | 4196 | |
b5689863 | 4197 | INSTOBJEXT=.mo |
6bb11ab3 | 4198 | |
b5689863 | 4199 | GENCAT=gencat |
6bb11ab3 | 4200 | |
b5689863 | 4201 | CATOBJEXT=.gmo |
5912fadd | 4202 | |
b5689863 | 4203 | fi |
b5bd9624 | 4204 | |
c906108c | 4205 | |
31e6ad7d MF |
4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4207 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4208 | # Check whether --enable-maintainer-mode was given. | |
81ecdfbb | 4209 | if test "${enable_maintainer_mode+set}" = set; then : |
31e6ad7d MF |
4210 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
4211 | else | |
4212 | USE_MAINTAINER_MODE=no | |
c906108c | 4213 | fi |
31e6ad7d MF |
4214 | |
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4216 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4217 | if test $USE_MAINTAINER_MODE = yes; then | |
4218 | MAINTAINER_MODE_TRUE= | |
4219 | MAINTAINER_MODE_FALSE='#' | |
c906108c | 4220 | else |
31e6ad7d MF |
4221 | MAINTAINER_MODE_TRUE='#' |
4222 | MAINTAINER_MODE_FALSE= | |
81ecdfbb | 4223 | fi |
c906108c | 4224 | |
31e6ad7d MF |
4225 | MAINT=$MAINTAINER_MODE_TRUE |
4226 | ||
4227 | ||
c906108c | 4228 | |
81ecdfbb | 4229 | |
347fe5bb MF |
4230 | sim_inline="-DDEFAULT_INLINE=0" |
4231 | # Check whether --enable-sim-inline was given. | |
4232 | if test "${enable_sim_inline+set}" = set; then : | |
4233 | enableval=$enable_sim_inline; sim_inline="" | |
4234 | case "$enableval" in | |
4235 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
4236 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
4237 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
4238 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
4239 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
4240 | new_flag="" | |
4241 | case "$x" in | |
4242 | *_INLINE=*) new_flag="-D$x";; | |
4243 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
4244 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
4245 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
4246 | esac | |
4247 | if test x"$sim_inline" = x""; then | |
4248 | sim_inline="$new_flag" | |
4249 | else | |
4250 | sim_inline="$sim_inline $new_flag" | |
4251 | fi | |
4252 | done;; | |
4253 | esac | |
4254 | if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then | |
4255 | echo "Setting inline flags = $sim_inline" 6>&1 | |
4256 | fi | |
4257 | fi | |
4258 | ||
4259 | ||
4260 | ||
81ecdfbb | 4261 | |
66d055c7 MF |
4262 | hardware="cfi core pal glue " |
4263 | sim_hw_cflags="-DWITH_HW=1" | |
4264 | sim_hw="$hardware" | |
4265 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`" | |
4266 | ||
4267 | # Check whether --enable-sim-hardware was given. | |
4268 | if test "${enable_sim_hardware+set}" = set; then : | |
4269 | enableval=$enable_sim_hardware; | |
4270 | else | |
4271 | enable_sim_hardware="yes" | |
4272 | fi | |
4273 | ||
4274 | case ${enable_sim_hardware} in | |
4275 | yes|no) ;; | |
4276 | ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";; | |
4277 | *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";; | |
4278 | *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';; | |
4279 | esac | |
4280 | ||
4281 | if test "$enable_sim_hardware" = no; then | |
4282 | sim_hw_objs= | |
4283 | sim_hw_cflags="-DWITH_HW=0" | |
4284 | sim_hw= | |
4285 | else | |
4286 | sim_hw_cflags="-DWITH_HW=1" | |
4287 | # remove duplicates | |
4288 | sim_hw="" | |
4289 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS)" | |
4290 | for i in $hardware ; do | |
4291 | case " $sim_hw " in | |
4292 | *" $i "*) ;; | |
4293 | *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";; | |
4294 | esac | |
4295 | done | |
4296 | # mingw does not support sockser | |
4297 | case ${host} in | |
4298 | *mingw*) ;; | |
4299 | *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device | |
4300 | # that you instatiate. Instead, other code will call into it directly. | |
4301 | # At some point, we should convert it over. | |
4302 | sim_hw_objs="$sim_hw_objs dv-sockser.o" | |
bcaa61f7 | 4303 | sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER" |
66d055c7 MF |
4304 | ;; |
4305 | esac | |
4306 | if test x"$silent" != x"yes"; then | |
4307 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
4308 | fi | |
66d055c7 MF |
4309 | fi |
4310 | ||
4311 | ||
b7026657 AC |
4312 | cgen_breaks="" |
4313 | if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then | |
4314 | cgen_breaks="break cgen_rtx_error"; | |
4315 | fi | |
4316 | ||
81ecdfbb | 4317 | ac_config_files="$ac_config_files Makefile.sim:Makefile.in" |
38f48d72 | 4318 | |
81ecdfbb | 4319 | ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in" |
38f48d72 | 4320 | |
81ecdfbb | 4321 | ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in" |
38f48d72 | 4322 | |
81ecdfbb | 4323 | ac_config_commands="$ac_config_commands Makefile" |
38f48d72 | 4324 | |
81ecdfbb | 4325 | ac_config_commands="$ac_config_commands stamp-h" |
38f48d72 | 4326 | |
760b3e8b MF |
4327 | |
4328 | ||
4329 | ||
4330 | ||
4331 | ||
4332 | ||
4333 | ||
4334 | ||
4335 | ||
4336 | ||
b7026657 AC |
4337 | cat >confcache <<\_ACEOF |
4338 | # This file is a shell script that caches the results of configure | |
4339 | # tests run on this system so they can be shared between configure | |
4340 | # scripts and configure runs, see configure's option --config-cache. | |
4341 | # It is not useful on other systems. If it contains results you don't | |
4342 | # want to keep, you may remove or edit it. | |
4343 | # | |
4344 | # config.status only pays attention to the cache file if you give it | |
4345 | # the --recheck option to rerun configure. | |
4346 | # | |
4347 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4348 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4349 | # following values. | |
4350 | ||
4351 | _ACEOF | |
4352 | ||
4353 | # The following way of writing the cache mishandles newlines in values, | |
4354 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 4355 | # So, we kill variables containing newlines. |
b7026657 AC |
4356 | # Ultrix sh set writes to stderr and can't be redirected directly, |
4357 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
4358 | ( |
4359 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
4360 | eval ac_val=\$$ac_var | |
4361 | case $ac_val in #( | |
4362 | *${as_nl}*) | |
4363 | case $ac_var in #( | |
4364 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
4365 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
4366 | esac | |
4367 | case $ac_var in #( | |
4368 | _ | IFS | as_nl) ;; #( | |
4369 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
4370 | *) { eval $ac_var=; unset $ac_var;} ;; | |
4371 | esac ;; | |
4372 | esac | |
4373 | done | |
4374 | ||
b7026657 | 4375 | (set) 2>&1 | |
81ecdfbb RW |
4376 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
4377 | *${as_nl}ac_space=\ *) | |
4378 | # `set' does not quote correctly, so add quotes: double-quote | |
4379 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b7026657 AC |
4380 | sed -n \ |
4381 | "s/'/'\\\\''/g; | |
4382 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 4383 | ;; #( |
b7026657 AC |
4384 | *) |
4385 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 4386 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 4387 | ;; |
81ecdfbb RW |
4388 | esac | |
4389 | sort | |
4390 | ) | | |
b7026657 | 4391 | sed ' |
81ecdfbb | 4392 | /^ac_cv_env_/b end |
b7026657 | 4393 | t clear |
81ecdfbb | 4394 | :clear |
b7026657 AC |
4395 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
4396 | t end | |
81ecdfbb RW |
4397 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4398 | :end' >>confcache | |
4399 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
4400 | if test -w "$cache_file"; then | |
d0ac1c44 | 4401 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
4403 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
4404 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
4405 | cat confcache >"$cache_file" | |
4406 | else | |
4407 | case $cache_file in #( | |
4408 | */* | ?:*) | |
4409 | mv -f confcache "$cache_file"$$ && | |
4410 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
4411 | *) | |
4412 | mv -f confcache "$cache_file" ;; | |
4413 | esac | |
4414 | fi | |
4415 | fi | |
b7026657 | 4416 | else |
81ecdfbb RW |
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
4418 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
b7026657 AC |
4419 | fi |
4420 | fi | |
4421 | rm -f confcache | |
4422 | ||
4423 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4424 | # Let make expand exec_prefix. | |
4425 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4426 | ||
52d37d2c MF |
4427 | # Transform confdefs.h into DEFS. |
4428 | # Protect against shell expansion while executing Makefile rules. | |
4429 | # Protect against Makefile macro expansion. | |
4430 | # | |
4431 | # If the first sed substitution is executed (which looks for macros that | |
4432 | # take arguments), then branch to the quote section. Otherwise, | |
4433 | # look for a macro that doesn't take arguments. | |
4434 | ac_script=' | |
4435 | :mline | |
4436 | /\\$/{ | |
4437 | N | |
4438 | s,\\\n,, | |
4439 | b mline | |
4440 | } | |
4441 | t clear | |
4442 | :clear | |
4443 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
4444 | t quote | |
4445 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
4446 | t quote | |
4447 | b any | |
4448 | :quote | |
4449 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
4450 | s/\[/\\&/g | |
4451 | s/\]/\\&/g | |
4452 | s/\$/$$/g | |
4453 | H | |
4454 | :any | |
4455 | ${ | |
4456 | g | |
4457 | s/^\n// | |
4458 | s/\n/ /g | |
4459 | p | |
4460 | } | |
4461 | ' | |
4462 | DEFS=`sed -n "$ac_script" confdefs.h` | |
4463 | ||
b7026657 AC |
4464 | |
4465 | ac_libobjs= | |
4466 | ac_ltlibobjs= | |
d0ac1c44 | 4467 | U= |
b7026657 AC |
4468 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
4469 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
4470 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
4471 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
4472 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
4473 | # will be set to the directory where LIBOBJS objects are built. | |
4474 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
4475 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b7026657 AC |
4476 | done |
4477 | LIBOBJS=$ac_libobjs | |
4478 | ||
4479 | LTLIBOBJS=$ac_ltlibobjs | |
4480 | ||
4481 | ||
0cb8d851 | 4482 | |
31e6ad7d | 4483 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 4484 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
31e6ad7d MF |
4485 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
4486 | fi | |
b7026657 | 4487 | |
d0ac1c44 | 4488 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 4489 | ac_write_fail=0 |
b7026657 AC |
4490 | ac_clean_files_save=$ac_clean_files |
4491 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
4493 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
4494 | as_write_fail=0 | |
4495 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b7026657 AC |
4496 | #! $SHELL |
4497 | # Generated by $as_me. | |
4498 | # Run this file to recreate the current configuration. | |
4499 | # Compiler output produced by configure, useful for debugging | |
4500 | # configure, is in config.log if it exists. | |
4501 | ||
4502 | debug=false | |
4503 | ac_cs_recheck=false | |
4504 | ac_cs_silent=false | |
b7026657 | 4505 | |
81ecdfbb RW |
4506 | SHELL=\${CONFIG_SHELL-$SHELL} |
4507 | export SHELL | |
4508 | _ASEOF | |
4509 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
4510 | ## -------------------- ## | |
4511 | ## M4sh Initialization. ## | |
4512 | ## -------------------- ## | |
4513 | ||
4514 | # Be more Bourne compatible | |
4515 | DUALCASE=1; export DUALCASE # for MKS sh | |
4516 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
4517 | emulate sh |
4518 | NULLCMD=: | |
81ecdfbb | 4519 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
4520 | # is contrary to our usage. Disable this feature. |
4521 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
4522 | setopt NO_GLOB_SUBST |
4523 | else | |
4524 | case `(set -o) 2>/dev/null` in #( | |
4525 | *posix*) : | |
4526 | set -o posix ;; #( | |
4527 | *) : | |
4528 | ;; | |
4529 | esac | |
b7026657 | 4530 | fi |
b7026657 | 4531 | |
81ecdfbb RW |
4532 | |
4533 | as_nl=' | |
4534 | ' | |
4535 | export as_nl | |
4536 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
4537 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4538 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
4539 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
4540 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
4541 | # but without wasting forks for bash or zsh. | |
4542 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
4543 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4544 | as_echo='print -r --' | |
4545 | as_echo_n='print -rn --' | |
4546 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4547 | as_echo='printf %s\n' | |
4548 | as_echo_n='printf %s' | |
4549 | else | |
4550 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
4551 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
4552 | as_echo_n='/usr/ucb/echo -n' | |
4553 | else | |
4554 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
4555 | as_echo_n_body='eval | |
4556 | arg=$1; | |
4557 | case $arg in #( | |
4558 | *"$as_nl"*) | |
4559 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
4560 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
4561 | esac; | |
4562 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
4563 | ' | |
4564 | export as_echo_n_body | |
4565 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
4566 | fi | |
4567 | export as_echo_body | |
4568 | as_echo='sh -c $as_echo_body as_echo' | |
4569 | fi | |
4570 | ||
4571 | # The user is always right. | |
4572 | if test "${PATH_SEPARATOR+set}" != set; then | |
4573 | PATH_SEPARATOR=: | |
4574 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
4575 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
4576 | PATH_SEPARATOR=';' | |
4577 | } | |
c906108c SS |
4578 | fi |
4579 | ||
4580 | ||
81ecdfbb RW |
4581 | # IFS |
4582 | # We need space, tab and new line, in precisely that order. Quoting is | |
4583 | # there to prevent editors from complaining about space-tab. | |
4584 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
4585 | # splitting by setting IFS to empty value.) | |
4586 | IFS=" "" $as_nl" | |
4587 | ||
4588 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 4589 | as_myself= |
81ecdfbb RW |
4590 | case $0 in #(( |
4591 | *[\\/]* ) as_myself=$0 ;; | |
4592 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4593 | for as_dir in $PATH | |
4594 | do | |
4595 | IFS=$as_save_IFS | |
4596 | test -z "$as_dir" && as_dir=. | |
4597 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
4598 | done | |
4599 | IFS=$as_save_IFS | |
4600 | ||
4601 | ;; | |
4602 | esac | |
4603 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
4604 | # in which case we are not to be found in the path. | |
4605 | if test "x$as_myself" = x; then | |
4606 | as_myself=$0 | |
4607 | fi | |
4608 | if test ! -f "$as_myself"; then | |
4609 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
4610 | exit 1 | |
4611 | fi | |
4612 | ||
4613 | # Unset variables that we do not need and which cause bugs (e.g. in | |
4614 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
4615 | # suppresses any "Segmentation fault" message there. '((' could | |
4616 | # trigger a bug in pdksh 5.2.14. | |
4617 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
4618 | do eval test x\${$as_var+set} = xset \ | |
4619 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
4620 | done | |
b7026657 AC |
4621 | PS1='$ ' |
4622 | PS2='> ' | |
4623 | PS4='+ ' | |
4624 | ||
4625 | # NLS nuisances. | |
81ecdfbb RW |
4626 | LC_ALL=C |
4627 | export LC_ALL | |
4628 | LANGUAGE=C | |
4629 | export LANGUAGE | |
4630 | ||
4631 | # CDPATH. | |
4632 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
4633 | ||
4634 | ||
d0ac1c44 SM |
4635 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
4636 | # ---------------------------------------- | |
81ecdfbb RW |
4637 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
4638 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 4639 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
4640 | as_fn_error () |
4641 | { | |
d0ac1c44 SM |
4642 | as_status=$1; test $as_status -eq 0 && as_status=1 |
4643 | if test "$4"; then | |
4644 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
4645 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b7026657 | 4646 | fi |
d0ac1c44 | 4647 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
4648 | as_fn_exit $as_status |
4649 | } # as_fn_error | |
4650 | ||
4651 | ||
4652 | # as_fn_set_status STATUS | |
4653 | # ----------------------- | |
4654 | # Set $? to STATUS, without forking. | |
4655 | as_fn_set_status () | |
4656 | { | |
4657 | return $1 | |
4658 | } # as_fn_set_status | |
4659 | ||
4660 | # as_fn_exit STATUS | |
4661 | # ----------------- | |
4662 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
4663 | as_fn_exit () | |
4664 | { | |
4665 | set +e | |
4666 | as_fn_set_status $1 | |
4667 | exit $1 | |
4668 | } # as_fn_exit | |
4669 | ||
4670 | # as_fn_unset VAR | |
4671 | # --------------- | |
4672 | # Portably unset VAR. | |
4673 | as_fn_unset () | |
4674 | { | |
4675 | { eval $1=; unset $1;} | |
4676 | } | |
4677 | as_unset=as_fn_unset | |
4678 | # as_fn_append VAR VALUE | |
4679 | # ---------------------- | |
4680 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
4681 | # advantage of any shell optimizations that allow amortized linear growth over | |
4682 | # repeated appends, instead of the typical quadratic growth present in naive | |
4683 | # implementations. | |
4684 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
4685 | eval 'as_fn_append () | |
4686 | { | |
4687 | eval $1+=\$2 | |
4688 | }' | |
4689 | else | |
4690 | as_fn_append () | |
4691 | { | |
4692 | eval $1=\$$1\$2 | |
4693 | } | |
4694 | fi # as_fn_append | |
4695 | ||
4696 | # as_fn_arith ARG... | |
4697 | # ------------------ | |
4698 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
4699 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
4700 | # must be portable across $(()) and expr. | |
4701 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
4702 | eval 'as_fn_arith () | |
4703 | { | |
4704 | as_val=$(( $* )) | |
4705 | }' | |
4706 | else | |
4707 | as_fn_arith () | |
4708 | { | |
4709 | as_val=`expr "$@" || test $? -eq 1` | |
4710 | } | |
4711 | fi # as_fn_arith | |
4712 | ||
c906108c | 4713 | |
81ecdfbb RW |
4714 | if expr a : '\(a\)' >/dev/null 2>&1 && |
4715 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 | 4716 | as_expr=expr |
c906108c | 4717 | else |
b7026657 AC |
4718 | as_expr=false |
4719 | fi | |
c906108c | 4720 | |
81ecdfbb | 4721 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 | 4722 | as_basename=basename |
c906108c | 4723 | else |
b7026657 | 4724 | as_basename=false |
c906108c | 4725 | fi |
b7026657 | 4726 | |
81ecdfbb RW |
4727 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
4728 | as_dirname=dirname | |
4729 | else | |
4730 | as_dirname=false | |
4731 | fi | |
b7026657 | 4732 | |
81ecdfbb | 4733 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
4734 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
4735 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
4736 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
4737 | $as_echo X/"$0" | | |
4738 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
4739 | s//\1/ | |
4740 | q | |
4741 | } | |
4742 | /^X\/\(\/\/\)$/{ | |
4743 | s//\1/ | |
4744 | q | |
4745 | } | |
4746 | /^X\/\(\/\).*/{ | |
4747 | s//\1/ | |
4748 | q | |
4749 | } | |
4750 | s/.*/./; q'` | |
b7026657 | 4751 | |
b7026657 AC |
4752 | # Avoid depending upon Character Ranges. |
4753 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
4754 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
4755 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
4756 | as_cr_digits='0123456789' | |
4757 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
4758 | ||
81ecdfbb RW |
4759 | ECHO_C= ECHO_N= ECHO_T= |
4760 | case `echo -n x` in #((((( | |
4761 | -n*) | |
4762 | case `echo 'xy\c'` in | |
4763 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
4764 | xy) ECHO_C='\c';; | |
4765 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
4766 | ECHO_T=' ';; | |
4767 | esac;; | |
4768 | *) | |
4769 | ECHO_N='-n';; | |
b7026657 | 4770 | esac |
cd0fc7c3 | 4771 | |
81ecdfbb RW |
4772 | rm -f conf$$ conf$$.exe conf$$.file |
4773 | if test -d conf$$.dir; then | |
4774 | rm -f conf$$.dir/conf$$.file | |
c906108c | 4775 | else |
81ecdfbb RW |
4776 | rm -f conf$$.dir |
4777 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 4778 | fi |
81ecdfbb RW |
4779 | if (echo >conf$$.file) 2>/dev/null; then |
4780 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b7026657 | 4781 | as_ln_s='ln -s' |
81ecdfbb RW |
4782 | # ... but there are two gotchas: |
4783 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
4784 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 4785 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 4786 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 4787 | as_ln_s='cp -pR' |
81ecdfbb RW |
4788 | elif ln conf$$.file conf$$ 2>/dev/null; then |
4789 | as_ln_s=ln | |
4790 | else | |
d0ac1c44 | 4791 | as_ln_s='cp -pR' |
cd0fc7c3 | 4792 | fi |
b7026657 | 4793 | else |
d0ac1c44 | 4794 | as_ln_s='cp -pR' |
c906108c | 4795 | fi |
81ecdfbb RW |
4796 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
4797 | rmdir conf$$.dir 2>/dev/null | |
4798 | ||
b7026657 | 4799 | |
81ecdfbb RW |
4800 | # as_fn_mkdir_p |
4801 | # ------------- | |
4802 | # Create "$as_dir" as a directory, including parents if necessary. | |
4803 | as_fn_mkdir_p () | |
4804 | { | |
4805 | ||
4806 | case $as_dir in #( | |
4807 | -*) as_dir=./$as_dir;; | |
4808 | esac | |
4809 | test -d "$as_dir" || eval $as_mkdir_p || { | |
4810 | as_dirs= | |
4811 | while :; do | |
4812 | case $as_dir in #( | |
4813 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
4814 | *) as_qdir=$as_dir;; | |
4815 | esac | |
4816 | as_dirs="'$as_qdir' $as_dirs" | |
4817 | as_dir=`$as_dirname -- "$as_dir" || | |
4818 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4819 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4820 | X"$as_dir" : 'X\(//\)$' \| \ | |
4821 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4822 | $as_echo X"$as_dir" | | |
4823 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4824 | s//\1/ | |
4825 | q | |
4826 | } | |
4827 | /^X\(\/\/\)[^/].*/{ | |
4828 | s//\1/ | |
4829 | q | |
4830 | } | |
4831 | /^X\(\/\/\)$/{ | |
4832 | s//\1/ | |
4833 | q | |
4834 | } | |
4835 | /^X\(\/\).*/{ | |
4836 | s//\1/ | |
4837 | q | |
4838 | } | |
4839 | s/.*/./; q'` | |
4840 | test -d "$as_dir" && break | |
4841 | done | |
4842 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 4843 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
4844 | |
4845 | ||
4846 | } # as_fn_mkdir_p | |
b7026657 | 4847 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 4848 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
4849 | else |
4850 | test -d ./-p && rmdir ./-p | |
4851 | as_mkdir_p=false | |
c906108c | 4852 | fi |
cd0fc7c3 | 4853 | |
d0ac1c44 SM |
4854 | |
4855 | # as_fn_executable_p FILE | |
4856 | # ----------------------- | |
4857 | # Test if FILE is an executable regular file. | |
4858 | as_fn_executable_p () | |
4859 | { | |
4860 | test -f "$1" && test -x "$1" | |
4861 | } # as_fn_executable_p | |
4862 | as_test_x='test -x' | |
4863 | as_executable_p=as_fn_executable_p | |
c906108c | 4864 | |
b7026657 AC |
4865 | # Sed expression to map a string onto a valid CPP name. |
4866 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 4867 | |
b7026657 AC |
4868 | # Sed expression to map a string onto a valid variable name. |
4869 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 4870 | |
c906108c | 4871 | |
b7026657 | 4872 | exec 6>&1 |
81ecdfbb RW |
4873 | ## ----------------------------------- ## |
4874 | ## Main body of $CONFIG_STATUS script. ## | |
4875 | ## ----------------------------------- ## | |
4876 | _ASEOF | |
4877 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
4878 | ||
4879 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4880 | # Save the log message, to keep $0 and so on meaningful, and to | |
b7026657 | 4881 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
4882 | # values after options handling. |
4883 | ac_log=" | |
b7026657 | 4884 | This file was extended by $as_me, which was |
d0ac1c44 | 4885 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
4886 | |
4887 | CONFIG_FILES = $CONFIG_FILES | |
4888 | CONFIG_HEADERS = $CONFIG_HEADERS | |
4889 | CONFIG_LINKS = $CONFIG_LINKS | |
4890 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
4891 | $ $0 $@ | |
4892 | ||
81ecdfbb RW |
4893 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
4894 | " | |
4895 | ||
b7026657 AC |
4896 | _ACEOF |
4897 | ||
81ecdfbb RW |
4898 | case $ac_config_files in *" |
4899 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
4900 | esac | |
b7026657 | 4901 | |
b7026657 | 4902 | |
c906108c | 4903 | |
81ecdfbb RW |
4904 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4905 | # Files that config.status was made for. | |
4906 | config_files="$ac_config_files" | |
81ecdfbb | 4907 | config_commands="$ac_config_commands" |
c906108c | 4908 | |
81ecdfbb | 4909 | _ACEOF |
c906108c | 4910 | |
81ecdfbb | 4911 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 4912 | ac_cs_usage="\ |
81ecdfbb RW |
4913 | \`$as_me' instantiates files and other configuration actions |
4914 | from templates according to the current configuration. Unless the files | |
4915 | and actions are specified as TAGs, all are instantiated by default. | |
c906108c | 4916 | |
81ecdfbb | 4917 | Usage: $0 [OPTION]... [TAG]... |
379832de | 4918 | |
b7026657 | 4919 | -h, --help print this help, then exit |
81ecdfbb | 4920 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 4921 | --config print configuration, then exit |
81ecdfbb RW |
4922 | -q, --quiet, --silent |
4923 | do not print progress messages | |
b7026657 AC |
4924 | -d, --debug don't remove temporary files |
4925 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
4926 | --file=FILE[:TEMPLATE] |
4927 | instantiate the configuration file FILE | |
b7026657 AC |
4928 | |
4929 | Configuration files: | |
4930 | $config_files | |
4931 | ||
b7026657 AC |
4932 | Configuration commands: |
4933 | $config_commands | |
4934 | ||
81ecdfbb | 4935 | Report bugs to the package provider." |
b7026657 | 4936 | |
81ecdfbb RW |
4937 | _ACEOF |
4938 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 4939 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b7026657 AC |
4940 | ac_cs_version="\\ |
4941 | config.status | |
d0ac1c44 SM |
4942 | configured by $0, generated by GNU Autoconf 2.69, |
4943 | with options \\"\$ac_cs_config\\" | |
b7026657 | 4944 | |
d0ac1c44 | 4945 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
4946 | This config.status script is free software; the Free Software Foundation |
4947 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
4948 | |
4949 | ac_pwd='$ac_pwd' | |
4950 | srcdir='$srcdir' | |
4951 | INSTALL='$INSTALL' | |
4952 | test -n "\$AWK" || AWK=awk | |
b7026657 AC |
4953 | _ACEOF |
4954 | ||
81ecdfbb RW |
4955 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4956 | # The default lists apply if the user does not specify any file. | |
b7026657 AC |
4957 | ac_need_defaults=: |
4958 | while test $# != 0 | |
4959 | do | |
4960 | case $1 in | |
d0ac1c44 | 4961 | --*=?*) |
81ecdfbb RW |
4962 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
4963 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b7026657 | 4964 | ac_shift=: |
c906108c | 4965 | ;; |
d0ac1c44 SM |
4966 | --*=) |
4967 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
4968 | ac_optarg= | |
4969 | ac_shift=: | |
4970 | ;; | |
81ecdfbb | 4971 | *) |
b7026657 AC |
4972 | ac_option=$1 |
4973 | ac_optarg=$2 | |
4974 | ac_shift=shift | |
c906108c | 4975 | ;; |
b7026657 | 4976 | esac |
c906108c | 4977 | |
b7026657 AC |
4978 | case $ac_option in |
4979 | # Handling of the options. | |
b7026657 AC |
4980 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
4981 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
4982 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
4983 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
4984 | --config | --confi | --conf | --con | --co | --c ) |
4985 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 4986 | --debug | --debu | --deb | --de | --d | -d ) |
b7026657 AC |
4987 | debug=: ;; |
4988 | --file | --fil | --fi | --f ) | |
4989 | $ac_shift | |
81ecdfbb RW |
4990 | case $ac_optarg in |
4991 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 4992 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
4993 | esac |
4994 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
b7026657 | 4995 | ac_need_defaults=false;; |
52d37d2c | 4996 | --he | --h | --help | --hel | -h ) |
81ecdfbb | 4997 | $as_echo "$ac_cs_usage"; exit ;; |
b7026657 AC |
4998 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
4999 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
5000 | ac_cs_silent=: ;; | |
c906108c | 5001 | |
b7026657 | 5002 | # This is an error. |
d0ac1c44 | 5003 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 5004 | Try \`$0 --help' for more information." ;; |
c906108c | 5005 | |
81ecdfbb RW |
5006 | *) as_fn_append ac_config_targets " $1" |
5007 | ac_need_defaults=false ;; | |
b7026657 AC |
5008 | |
5009 | esac | |
5010 | shift | |
5011 | done | |
5012 | ||
5013 | ac_configure_extra_args= | |
5014 | ||
5015 | if $ac_cs_silent; then | |
5016 | exec 6>/dev/null | |
5017 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c SS |
5018 | fi |
5019 | ||
b7026657 | 5020 | _ACEOF |
81ecdfbb | 5021 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b7026657 | 5022 | if \$ac_cs_recheck; then |
d0ac1c44 | 5023 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
5024 | shift |
5025 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
5026 | CONFIG_SHELL='$SHELL' | |
5027 | export CONFIG_SHELL | |
5028 | exec "\$@" | |
b7026657 | 5029 | fi |
c906108c | 5030 | |
b7026657 | 5031 | _ACEOF |
81ecdfbb RW |
5032 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5033 | exec 5>>config.log | |
5034 | { | |
5035 | echo | |
5036 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
5037 | ## Running $as_me. ## | |
5038 | _ASBOX | |
5039 | $as_echo "$ac_log" | |
5040 | } >&5 | |
c906108c | 5041 | |
81ecdfbb RW |
5042 | _ACEOF |
5043 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
db2e4d67 MF |
5044 | # |
5045 | # INIT-COMMANDS | |
5046 | # | |
5047 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
5048 | ||
81ecdfbb | 5049 | _ACEOF |
c906108c | 5050 | |
81ecdfbb | 5051 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c906108c | 5052 | |
81ecdfbb | 5053 | # Handling of arguments. |
b7026657 | 5054 | for ac_config_target in $ac_config_targets |
c906108c | 5055 | do |
81ecdfbb | 5056 | case $ac_config_target in |
db2e4d67 | 5057 | "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; |
81ecdfbb RW |
5058 | "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; |
5059 | "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; | |
5060 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; | |
5061 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | |
5062 | "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;; | |
5063 | ||
d0ac1c44 | 5064 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c906108c SS |
5065 | esac |
5066 | done | |
5067 | ||
81ecdfbb | 5068 | |
b7026657 AC |
5069 | # If the user did not use the arguments to specify the items to instantiate, |
5070 | # then the envvar interface is used. Set only those that are not. | |
5071 | # We use the long form for the default assignment because of an extremely | |
5072 | # bizarre bug on SunOS 4.1.3. | |
5073 | if $ac_need_defaults; then | |
5074 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
b7026657 AC |
5075 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
5076 | fi | |
5077 | ||
5078 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 5079 | # simply because there is no reason against having it here, and in addition, |
b7026657 | 5080 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
5081 | # Hook for its removal unless debugging. |
5082 | # Note that there is a small window in which the directory will not be cleaned: | |
5083 | # after its creation but before its name has been assigned to `$tmp'. | |
b7026657 AC |
5084 | $debug || |
5085 | { | |
d0ac1c44 | 5086 | tmp= ac_tmp= |
81ecdfbb | 5087 | trap 'exit_status=$? |
d0ac1c44 SM |
5088 | : "${ac_tmp:=$tmp}" |
5089 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
5090 | ' 0 |
5091 | trap 'as_fn_exit 1' 1 2 13 15 | |
b7026657 | 5092 | } |
b7026657 | 5093 | # Create a (secure) tmp directory for tmp files. |
c906108c | 5094 | |
b7026657 | 5095 | { |
81ecdfbb | 5096 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 5097 | test -d "$tmp" |
b7026657 AC |
5098 | } || |
5099 | { | |
81ecdfbb RW |
5100 | tmp=./conf$$-$RANDOM |
5101 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
5102 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
5103 | ac_tmp=$tmp | |
b7026657 | 5104 | |
81ecdfbb RW |
5105 | # Set up the scripts for CONFIG_FILES section. |
5106 | # No need to generate them if there are no CONFIG_FILES. | |
5107 | # This happens for instance with `./config.status config.h'. | |
5108 | if test -n "$CONFIG_FILES"; then | |
b7026657 | 5109 | |
c906108c | 5110 | |
81ecdfbb RW |
5111 | ac_cr=`echo X | tr X '\015'` |
5112 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
5113 | # But we know of no other shell where ac_cr would be empty at this | |
5114 | # point, so we can use a bashism as a fallback. | |
5115 | if test "x$ac_cr" = x; then | |
5116 | eval ac_cr=\$\'\\r\' | |
5117 | fi | |
5118 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
5119 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 5120 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
5121 | else |
5122 | ac_cs_awk_cr=$ac_cr | |
5123 | fi | |
b7026657 | 5124 | |
d0ac1c44 | 5125 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
b7026657 AC |
5126 | _ACEOF |
5127 | ||
81ecdfbb RW |
5128 | |
5129 | { | |
5130 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
5131 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
5132 | echo "_ACEOF" | |
5133 | } >conf$$subs.sh || | |
d0ac1c44 SM |
5134 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5135 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
5136 | ac_delim='%!_!# ' |
5137 | for ac_last_try in false false false false false :; do | |
5138 | . ./conf$$subs.sh || | |
d0ac1c44 | 5139 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
5140 | |
5141 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
5142 | if test $ac_delim_n = $ac_delim_num; then | |
5143 | break | |
5144 | elif $ac_last_try; then | |
d0ac1c44 | 5145 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
5146 | else |
5147 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
c906108c | 5148 | fi |
81ecdfbb RW |
5149 | done |
5150 | rm -f conf$$subs.sh | |
c906108c | 5151 | |
81ecdfbb | 5152 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
d0ac1c44 | 5153 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
b7026657 | 5154 | _ACEOF |
81ecdfbb RW |
5155 | sed -n ' |
5156 | h | |
5157 | s/^/S["/; s/!.*/"]=/ | |
5158 | p | |
5159 | g | |
5160 | s/^[^!]*!// | |
5161 | :repl | |
5162 | t repl | |
5163 | s/'"$ac_delim"'$// | |
5164 | t delim | |
5165 | :nl | |
5166 | h | |
d0ac1c44 | 5167 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
5168 | t more1 |
5169 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
5170 | p | |
5171 | n | |
5172 | b repl | |
5173 | :more1 | |
5174 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
5175 | p | |
5176 | g | |
5177 | s/.\{148\}// | |
5178 | t nl | |
5179 | :delim | |
5180 | h | |
d0ac1c44 | 5181 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
5182 | t more2 |
5183 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
5184 | p | |
5185 | b | |
5186 | :more2 | |
5187 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
5188 | p | |
5189 | g | |
5190 | s/.\{148\}// | |
5191 | t delim | |
5192 | ' <conf$$subs.awk | sed ' | |
5193 | /^[^""]/{ | |
5194 | N | |
5195 | s/\n// | |
5196 | } | |
5197 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
5198 | rm -f conf$$subs.awk | |
5199 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5200 | _ACAWK | |
d0ac1c44 | 5201 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
5202 | for (key in S) S_is_set[key] = 1 |
5203 | FS = "\a" | |
c906108c | 5204 | |
81ecdfbb RW |
5205 | } |
5206 | { | |
5207 | line = $ 0 | |
5208 | nfields = split(line, field, "@") | |
5209 | substed = 0 | |
5210 | len = length(field[1]) | |
5211 | for (i = 2; i < nfields; i++) { | |
5212 | key = field[i] | |
5213 | keylen = length(key) | |
5214 | if (S_is_set[key]) { | |
5215 | value = S[key] | |
5216 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
5217 | len += length(value) + length(field[++i]) | |
5218 | substed = 1 | |
5219 | } else | |
5220 | len += 1 + keylen | |
5221 | } | |
5222 | ||
5223 | print line | |
5224 | } | |
b7026657 | 5225 | |
81ecdfbb RW |
5226 | _ACAWK |
5227 | _ACEOF | |
5228 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5229 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
5230 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
b7026657 | 5231 | else |
81ecdfbb | 5232 | cat |
d0ac1c44 SM |
5233 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
5234 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb | 5235 | _ACEOF |
b7026657 | 5236 | |
d0ac1c44 SM |
5237 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
5238 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
5239 | # trailing colons and then remove the whole line if VPATH becomes empty |
5240 | # (actually we leave an empty line to preserve line numbers). | |
5241 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
5242 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
5243 | h | |
5244 | s/// | |
5245 | s/^/:/ | |
5246 | s/[ ]*$/:/ | |
5247 | s/:\$(srcdir):/:/g | |
5248 | s/:\${srcdir}:/:/g | |
5249 | s/:@srcdir@:/:/g | |
5250 | s/^:*// | |
81ecdfbb | 5251 | s/:*$// |
d0ac1c44 SM |
5252 | x |
5253 | s/\(=[ ]*\).*/\1/ | |
5254 | G | |
5255 | s/\n// | |
81ecdfbb RW |
5256 | s/^[^=]*=[ ]*$// |
5257 | }' | |
5258 | fi | |
b7026657 | 5259 | |
81ecdfbb RW |
5260 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5261 | fi # test -n "$CONFIG_FILES" | |
c906108c | 5262 | |
81ecdfbb | 5263 | |
52d37d2c | 5264 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
81ecdfbb RW |
5265 | shift |
5266 | for ac_tag | |
5267 | do | |
5268 | case $ac_tag in | |
5269 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
5270 | esac | |
5271 | case $ac_mode$ac_tag in | |
5272 | :[FHL]*:*);; | |
d0ac1c44 | 5273 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
5274 | :[FH]-) ac_tag=-:-;; |
5275 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
c906108c | 5276 | esac |
81ecdfbb RW |
5277 | ac_save_IFS=$IFS |
5278 | IFS=: | |
5279 | set x $ac_tag | |
5280 | IFS=$ac_save_IFS | |
5281 | shift | |
5282 | ac_file=$1 | |
5283 | shift | |
c906108c | 5284 | |
81ecdfbb RW |
5285 | case $ac_mode in |
5286 | :L) ac_source=$1;; | |
5287 | :[FH]) | |
5288 | ac_file_inputs= | |
5289 | for ac_f | |
5290 | do | |
5291 | case $ac_f in | |
d0ac1c44 | 5292 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
5293 | *) # Look for the file first in the build tree, then in the source tree |
5294 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
5295 | # because $ac_f cannot contain `:'. | |
5296 | test -f "$ac_f" || | |
5297 | case $ac_f in | |
5298 | [\\/$]*) false;; | |
5299 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
5300 | esac || | |
d0ac1c44 | 5301 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
b7026657 | 5302 | esac |
81ecdfbb RW |
5303 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
5304 | as_fn_append ac_file_inputs " '$ac_f'" | |
5305 | done | |
b7026657 | 5306 | |
81ecdfbb RW |
5307 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
5308 | # use $as_me), people would be surprised to read: | |
5309 | # /* config.h. Generated by config.status. */ | |
5310 | configure_input='Generated from '` | |
5311 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
5312 | `' by configure.' | |
5313 | if test x"$ac_file" != x-; then | |
5314 | configure_input="$ac_file. $configure_input" | |
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
5316 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5317 | fi | |
5318 | # Neutralize special characters interpreted by sed in replacement strings. | |
5319 | case $configure_input in #( | |
5320 | *\&* | *\|* | *\\* ) | |
5321 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
5322 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
5323 | *) ac_sed_conf_input=$configure_input;; | |
5324 | esac | |
b7026657 | 5325 | |
81ecdfbb | 5326 | case $ac_tag in |
d0ac1c44 SM |
5327 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
5328 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
5329 | esac |
5330 | ;; | |
5331 | esac | |
b7026657 | 5332 | |
81ecdfbb | 5333 | ac_dir=`$as_dirname -- "$ac_file" || |
b7026657 AC |
5334 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5335 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
5336 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
5337 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
5338 | $as_echo X"$ac_file" | | |
5339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5340 | s//\1/ | |
5341 | q | |
5342 | } | |
5343 | /^X\(\/\/\)[^/].*/{ | |
5344 | s//\1/ | |
5345 | q | |
5346 | } | |
5347 | /^X\(\/\/\)$/{ | |
5348 | s//\1/ | |
5349 | q | |
5350 | } | |
5351 | /^X\(\/\).*/{ | |
5352 | s//\1/ | |
5353 | q | |
5354 | } | |
5355 | s/.*/./; q'` | |
5356 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
5357 | ac_builddir=. |
5358 | ||
81ecdfbb RW |
5359 | case "$ac_dir" in |
5360 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5361 | *) | |
5362 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
5363 | # A ".." for each directory in $ac_dir_suffix. | |
5364 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
5365 | case $ac_top_builddir_sub in | |
5366 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5367 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
5368 | esac ;; | |
5369 | esac | |
5370 | ac_abs_top_builddir=$ac_pwd | |
5371 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
5372 | # for backward compatibility: | |
5373 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
5374 | |
5375 | case $srcdir in | |
81ecdfbb | 5376 | .) # We are building in place. |
b7026657 | 5377 | ac_srcdir=. |
81ecdfbb RW |
5378 | ac_top_srcdir=$ac_top_builddir_sub |
5379 | ac_abs_top_srcdir=$ac_pwd ;; | |
5380 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 5381 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
5382 | ac_top_srcdir=$srcdir |
5383 | ac_abs_top_srcdir=$srcdir ;; | |
5384 | *) # Relative name. | |
5385 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
5386 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
5387 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 5388 | esac |
81ecdfbb | 5389 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b7026657 | 5390 | |
c906108c | 5391 | |
81ecdfbb RW |
5392 | case $ac_mode in |
5393 | :F) | |
5394 | # | |
5395 | # CONFIG_FILE | |
5396 | # | |
b7026657 | 5397 | |
81ecdfbb RW |
5398 | case $INSTALL in |
5399 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5400 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
c906108c | 5401 | esac |
81ecdfbb | 5402 | _ACEOF |
c906108c | 5403 | |
81ecdfbb RW |
5404 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5405 | # If the template does not know about datarootdir, expand it. | |
5406 | # FIXME: This hack should be removed a few years after 2.60. | |
5407 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
5408 | ac_sed_dataroot=' | |
5409 | /datarootdir/ { | |
5410 | p | |
5411 | q | |
5412 | } | |
5413 | /@datadir@/p | |
5414 | /@docdir@/p | |
5415 | /@infodir@/p | |
5416 | /@localedir@/p | |
5417 | /@mandir@/p' | |
5418 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
5419 | *datarootdir*) ac_datarootdir_seen=yes;; | |
5420 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
5422 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
5423 | _ACEOF | |
5424 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5425 | ac_datarootdir_hack=' | |
5426 | s&@datadir@&$datadir&g | |
5427 | s&@docdir@&$docdir&g | |
5428 | s&@infodir@&$infodir&g | |
5429 | s&@localedir@&$localedir&g | |
5430 | s&@mandir@&$mandir&g | |
5431 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
5432 | esac | |
b7026657 | 5433 | _ACEOF |
b7026657 | 5434 | |
81ecdfbb RW |
5435 | # Neutralize VPATH when `$srcdir' = `.'. |
5436 | # Shell code in configure.ac might set extrasub. | |
5437 | # FIXME: do we really want to maintain this feature? | |
5438 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5439 | ac_sed_extra="$ac_vpsub | |
5440 | $extrasub | |
5441 | _ACEOF | |
5442 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5443 | :t | |
5444 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5445 | s|@configure_input@|$ac_sed_conf_input|;t t | |
5446 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
5447 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
5448 | s&@srcdir@&$ac_srcdir&;t t | |
5449 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
5450 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
5451 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
5452 | s&@builddir@&$ac_builddir&;t t | |
5453 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
5454 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
5455 | s&@INSTALL@&$ac_INSTALL&;t t | |
5456 | $ac_datarootdir_hack | |
5457 | " | |
d0ac1c44 SM |
5458 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
5459 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
5460 | |
5461 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
5462 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
5463 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
5464 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 5466 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 5467 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 5468 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 5469 | |
d0ac1c44 | 5470 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 5471 | case $ac_file in |
d0ac1c44 SM |
5472 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
5473 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 5474 | esac \ |
d0ac1c44 | 5475 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 5476 | ;; |
52d37d2c | 5477 | |
b7026657 | 5478 | |
81ecdfbb RW |
5479 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
5480 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
5481 | ;; | |
5482 | esac | |
b7026657 AC |
5483 | |
5484 | ||
81ecdfbb | 5485 | case $ac_file$ac_mode in |
db2e4d67 | 5486 | "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; |
81ecdfbb | 5487 | "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..." |
38f48d72 AC |
5488 | rm -f Makesim1.tmp Makesim2.tmp Makefile |
5489 | sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp | |
5490 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp | |
5491 | sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ | |
c906108c SS |
5492 | -e '/^## COMMON_POST_/ r Makesim2.tmp' \ |
5493 | <Makefile.sim >Makefile | |
38f48d72 | 5494 | rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp |
b7026657 | 5495 | ;; |
81ecdfbb RW |
5496 | "stamp-h":C) echo > stamp-h ;; |
5497 | ||
b7026657 | 5498 | esac |
81ecdfbb | 5499 | done # for ac_tag |
c906108c | 5500 | |
b7026657 | 5501 | |
81ecdfbb | 5502 | as_fn_exit 0 |
b7026657 | 5503 | _ACEOF |
b7026657 AC |
5504 | ac_clean_files=$ac_clean_files_save |
5505 | ||
81ecdfbb | 5506 | test $ac_write_fail = 0 || |
d0ac1c44 | 5507 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 5508 | |
b7026657 AC |
5509 | |
5510 | # configure is writing to config.log, and then calls config.status. | |
5511 | # config.status does its own redirection, appending to config.log. | |
5512 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
5513 | # by configure, so config.status won't be able to write to it; its | |
5514 | # output is simply discarded. So we exec the FD to /dev/null, | |
5515 | # effectively closing config.log, so it can be properly (re)opened and | |
5516 | # appended to by config.status. When coming back to configure, we | |
5517 | # need to make the FD available again. | |
5518 | if test "$no_create" != yes; then | |
5519 | ac_cs_success=: | |
5520 | ac_config_status_args= | |
5521 | test "$silent" = yes && | |
5522 | ac_config_status_args="$ac_config_status_args --quiet" | |
5523 | exec 5>/dev/null | |
5524 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
5525 | exec 5>>config.log | |
5526 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
5527 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 5528 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
5529 | fi |
5530 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
5532 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b7026657 | 5533 | fi |
c906108c SS |
5534 | |
5535 |