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