Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
6bddc3e8 MF |
3 | # Generated by GNU Autoconf 2.69 for sim 0. |
4 | # | |
5 | # Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. | |
d0ac1c44 SM |
6 | # |
7 | # | |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 9 | # |
c906108c SS |
10 | # |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
b7026657 | 16 | |
81ecdfbb RW |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
20 | emulate sh |
21 | NULLCMD=: | |
81ecdfbb | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
25 | setopt NO_GLOB_SUBST |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
b7026657 | 33 | fi |
b7026657 | 34 | |
81ecdfbb RW |
35 | |
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
b7026657 | 52 | else |
81ecdfbb RW |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
b7026657 AC |
81 | fi |
82 | ||
83 | ||
81ecdfbb RW |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 92 | as_myself= |
81ecdfbb RW |
93 | case $0 in #(( |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
b7026657 AC |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
81ecdfbb RW |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
d0ac1c44 SM |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
d0ac1c44 SM |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
81ecdfbb RW |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
c2783492 MF |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
201 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
202 | if (eval "$as_required") 2>/dev/null; then : |
203 | as_have_required=yes | |
204 | else | |
205 | as_have_required=no | |
206 | fi | |
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
208 | ||
209 | else | |
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
211 | as_found=false | |
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
b7026657 | 213 | do |
81ecdfbb RW |
214 | IFS=$as_save_IFS |
215 | test -z "$as_dir" && as_dir=. | |
216 | as_found=: | |
217 | case $as_dir in #( | |
218 | /*) | |
219 | for as_base in sh bash ksh sh5; do | |
220 | # Try only shells that exist, to save several forks. | |
221 | as_shell=$as_dir/$as_base | |
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | CONFIG_SHELL=$as_shell as_have_required=yes | |
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
226 | break 2 | |
227 | fi | |
228 | fi | |
229 | done;; | |
230 | esac | |
231 | as_found=false | |
232 | done | |
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | |
236 | fi; } | |
237 | IFS=$as_save_IFS | |
238 | ||
239 | ||
240 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
241 | export CONFIG_SHELL |
242 | # We cannot yet assume a decent shell, so we have to provide a | |
243 | # neutralization value for shells without unset; and this also | |
244 | # works around shells that cannot unset nonexistent variables. | |
245 | # Preserve -v and -x to the replacement shell. | |
246 | BASH_ENV=/dev/null | |
247 | ENV=/dev/null | |
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
249 | case $- in # (((( | |
250 | *v*x* | *x*v* ) as_opts=-vx ;; | |
251 | *v* ) as_opts=-v ;; | |
252 | *x* ) as_opts=-x ;; | |
253 | * ) as_opts= ;; | |
254 | esac | |
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
256 | # Admittedly, this is quite paranoid, since all the known shells bail | |
257 | # out after a failed `exec'. | |
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
259 | exit 255 | |
81ecdfbb RW |
260 | fi |
261 | ||
262 | if test x$as_have_required = xno; then : | |
263 | $as_echo "$0: This script requires a shell more modern than all" | |
264 | $as_echo "$0: the shells that I found on your system." | |
265 | if test x${ZSH_VERSION+set} = xset ; then | |
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
b7026657 | 268 | else |
6bddc3e8 MF |
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
270 | $0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim | |
271 | $0: about your system, including any error possibly output | |
272 | $0: before this message. Then install a modern shell, or | |
273 | $0: manually run the script under such a shell if you do | |
274 | $0: have one." | |
b7026657 | 275 | fi |
81ecdfbb RW |
276 | exit 1 |
277 | fi | |
278 | fi | |
279 | fi | |
280 | SHELL=${CONFIG_SHELL-/bin/sh} | |
281 | export SHELL | |
282 | # Unset more variables known to interfere with behavior of common tools. | |
283 | CLICOLOR_FORCE= GREP_OPTIONS= | |
284 | unset CLICOLOR_FORCE GREP_OPTIONS | |
285 | ||
286 | ## --------------------- ## | |
287 | ## M4sh Shell Functions. ## | |
288 | ## --------------------- ## | |
289 | # as_fn_unset VAR | |
290 | # --------------- | |
291 | # Portably unset VAR. | |
292 | as_fn_unset () | |
293 | { | |
294 | { eval $1=; unset $1;} | |
295 | } | |
296 | as_unset=as_fn_unset | |
297 | ||
298 | # as_fn_set_status STATUS | |
299 | # ----------------------- | |
300 | # Set $? to STATUS, without forking. | |
301 | as_fn_set_status () | |
302 | { | |
303 | return $1 | |
304 | } # as_fn_set_status | |
305 | ||
306 | # as_fn_exit STATUS | |
307 | # ----------------- | |
308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
309 | as_fn_exit () | |
310 | { | |
311 | set +e | |
312 | as_fn_set_status $1 | |
313 | exit $1 | |
314 | } # as_fn_exit | |
315 | ||
316 | # as_fn_mkdir_p | |
317 | # ------------- | |
318 | # Create "$as_dir" as a directory, including parents if necessary. | |
319 | as_fn_mkdir_p () | |
320 | { | |
321 | ||
322 | case $as_dir in #( | |
323 | -*) as_dir=./$as_dir;; | |
324 | esac | |
325 | test -d "$as_dir" || eval $as_mkdir_p || { | |
326 | as_dirs= | |
327 | while :; do | |
328 | case $as_dir in #( | |
329 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
330 | *) as_qdir=$as_dir;; | |
331 | esac | |
332 | as_dirs="'$as_qdir' $as_dirs" | |
333 | as_dir=`$as_dirname -- "$as_dir" || | |
334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
335 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
336 | X"$as_dir" : 'X\(//\)$' \| \ | |
337 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
338 | $as_echo X"$as_dir" | | |
339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)[^/].*/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)$/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\).*/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | s/.*/./; q'` | |
356 | test -d "$as_dir" && break | |
357 | done | |
358 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 359 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
360 | |
361 | ||
362 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
363 | |
364 | # as_fn_executable_p FILE | |
365 | # ----------------------- | |
366 | # Test if FILE is an executable regular file. | |
367 | as_fn_executable_p () | |
368 | { | |
369 | test -f "$1" && test -x "$1" | |
370 | } # as_fn_executable_p | |
81ecdfbb RW |
371 | # as_fn_append VAR VALUE |
372 | # ---------------------- | |
373 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
374 | # advantage of any shell optimizations that allow amortized linear growth over | |
375 | # repeated appends, instead of the typical quadratic growth present in naive | |
376 | # implementations. | |
377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
378 | eval 'as_fn_append () | |
379 | { | |
380 | eval $1+=\$2 | |
381 | }' | |
382 | else | |
383 | as_fn_append () | |
384 | { | |
385 | eval $1=\$$1\$2 | |
386 | } | |
387 | fi # as_fn_append | |
388 | ||
389 | # as_fn_arith ARG... | |
390 | # ------------------ | |
391 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
393 | # must be portable across $(()) and expr. | |
394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
395 | eval 'as_fn_arith () | |
396 | { | |
397 | as_val=$(( $* )) | |
398 | }' | |
399 | else | |
400 | as_fn_arith () | |
401 | { | |
402 | as_val=`expr "$@" || test $? -eq 1` | |
403 | } | |
404 | fi # as_fn_arith | |
405 | ||
406 | ||
d0ac1c44 SM |
407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
408 | # ---------------------------------------- | |
81ecdfbb RW |
409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 411 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
412 | as_fn_error () |
413 | { | |
d0ac1c44 SM |
414 | as_status=$1; test $as_status -eq 0 && as_status=1 |
415 | if test "$4"; then | |
416 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
417 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 418 | fi |
d0ac1c44 | 419 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
420 | as_fn_exit $as_status |
421 | } # as_fn_error | |
b7026657 | 422 | |
81ecdfbb RW |
423 | if expr a : '\(a\)' >/dev/null 2>&1 && |
424 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
425 | as_expr=expr |
426 | else | |
427 | as_expr=false | |
428 | fi | |
429 | ||
81ecdfbb | 430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
431 | as_basename=basename |
432 | else | |
433 | as_basename=false | |
434 | fi | |
435 | ||
81ecdfbb RW |
436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
437 | as_dirname=dirname | |
438 | else | |
439 | as_dirname=false | |
440 | fi | |
b7026657 | 441 | |
81ecdfbb | 442 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
444 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
445 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
446 | $as_echo X/"$0" | | |
447 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\/\)$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\).*/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | s/.*/./; q'` | |
b7026657 | 460 | |
fdd6fa61 AG |
461 | # Avoid depending upon Character Ranges. |
462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
465 | as_cr_digits='0123456789' | |
466 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
df1756f4 | 467 | |
b7026657 | 468 | |
81ecdfbb RW |
469 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
470 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
471 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
472 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
473 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
474 | sed -n ' | |
475 | p | |
476 | /[$]LINENO/= | |
477 | ' <$as_myself | | |
b7026657 | 478 | sed ' |
81ecdfbb RW |
479 | s/[$]LINENO.*/&-/ |
480 | t lineno | |
481 | b | |
482 | :lineno | |
b7026657 | 483 | N |
81ecdfbb RW |
484 | :loop |
485 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b7026657 | 486 | t loop |
81ecdfbb | 487 | s/-\n.*// |
b7026657 | 488 | ' >$as_me.lineno && |
81ecdfbb RW |
489 | chmod +x "$as_me.lineno" || |
490 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b7026657 | 491 | |
d0ac1c44 SM |
492 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
493 | # already done that, so ensure we don't try to do so again and fall | |
494 | # in an infinite loop. This has already happened in practice. | |
495 | _as_can_reexec=no; export _as_can_reexec | |
b7026657 AC |
496 | # Don't try to exec as it changes $[0], causing all sort of problems |
497 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
498 | # original and so on. Autoconf is especially sensitive to this). |
499 | . "./$as_me.lineno" | |
b7026657 AC |
500 | # Exit status is that of the last command. |
501 | exit | |
502 | } | |
503 | ||
81ecdfbb RW |
504 | ECHO_C= ECHO_N= ECHO_T= |
505 | case `echo -n x` in #((((( | |
506 | -n*) | |
507 | case `echo 'xy\c'` in | |
508 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
509 | xy) ECHO_C='\c';; | |
510 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
511 | ECHO_T=' ';; | |
512 | esac;; | |
513 | *) | |
514 | ECHO_N='-n';; | |
b7026657 AC |
515 | esac |
516 | ||
81ecdfbb RW |
517 | rm -f conf$$ conf$$.exe conf$$.file |
518 | if test -d conf$$.dir; then | |
519 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 520 | else |
81ecdfbb RW |
521 | rm -f conf$$.dir |
522 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 523 | fi |
81ecdfbb RW |
524 | if (echo >conf$$.file) 2>/dev/null; then |
525 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fdd6fa61 | 526 | as_ln_s='ln -s' |
81ecdfbb RW |
527 | # ... but there are two gotchas: |
528 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
529 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 530 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 531 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 532 | as_ln_s='cp -pR' |
81ecdfbb RW |
533 | elif ln conf$$.file conf$$ 2>/dev/null; then |
534 | as_ln_s=ln | |
535 | else | |
d0ac1c44 | 536 | as_ln_s='cp -pR' |
fdd6fa61 | 537 | fi |
b7026657 | 538 | else |
d0ac1c44 | 539 | as_ln_s='cp -pR' |
b7026657 | 540 | fi |
81ecdfbb RW |
541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
542 | rmdir conf$$.dir 2>/dev/null | |
b7026657 AC |
543 | |
544 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 545 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
546 | else |
547 | test -d ./-p && rmdir ./-p | |
548 | as_mkdir_p=false | |
549 | fi | |
c906108c | 550 | |
d0ac1c44 SM |
551 | as_test_x='test -x' |
552 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
553 | |
554 | # Sed expression to map a string onto a valid CPP name. | |
555 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
556 | ||
557 | # Sed expression to map a string onto a valid variable name. | |
558 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
559 | ||
560 | ||
d0ac1c44 SM |
561 | test -n "$DJDIR" || exec 7<&0 </dev/null |
562 | exec 6>&1 | |
b7026657 AC |
563 | |
564 | # Name of the host. | |
d0ac1c44 | 565 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b7026657 AC |
566 | # so uname gets run too. |
567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
568 | ||
b7026657 AC |
569 | # |
570 | # Initializations. | |
571 | # | |
c906108c | 572 | ac_default_prefix=/usr/local |
81ecdfbb | 573 | ac_clean_files= |
b7026657 | 574 | ac_config_libobj_dir=. |
81ecdfbb | 575 | LIBOBJS= |
b7026657 AC |
576 | cross_compiling=no |
577 | subdirs= | |
578 | MFLAGS= | |
579 | MAKEFLAGS= | |
fdd6fa61 | 580 | |
b7026657 | 581 | # Identity of this package. |
6bddc3e8 MF |
582 | PACKAGE_NAME='sim' |
583 | PACKAGE_TARNAME='sim' | |
584 | PACKAGE_VERSION='0' | |
585 | PACKAGE_STRING='sim 0' | |
586 | PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim' | |
587 | PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/' | |
588 | ||
c2783492 MF |
589 | # Factoring default headers for most tests. |
590 | ac_includes_default="\ | |
591 | #include <stdio.h> | |
592 | #ifdef HAVE_SYS_TYPES_H | |
593 | # include <sys/types.h> | |
594 | #endif | |
595 | #ifdef HAVE_SYS_STAT_H | |
596 | # include <sys/stat.h> | |
597 | #endif | |
598 | #ifdef STDC_HEADERS | |
599 | # include <stdlib.h> | |
600 | # include <stddef.h> | |
601 | #else | |
602 | # ifdef HAVE_STDLIB_H | |
603 | # include <stdlib.h> | |
604 | # endif | |
605 | #endif | |
606 | #ifdef HAVE_STRING_H | |
607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
608 | # include <memory.h> | |
609 | # endif | |
610 | # include <string.h> | |
611 | #endif | |
612 | #ifdef HAVE_STRINGS_H | |
613 | # include <strings.h> | |
614 | #endif | |
615 | #ifdef HAVE_INTTYPES_H | |
616 | # include <inttypes.h> | |
617 | #endif | |
618 | #ifdef HAVE_STDINT_H | |
619 | # include <stdint.h> | |
620 | #endif | |
621 | #ifdef HAVE_UNISTD_H | |
622 | # include <unistd.h> | |
623 | #endif" | |
624 | ||
b15c5d7a MF |
625 | ac_header_list= |
626 | ac_func_list= | |
81ecdfbb | 627 | enable_option_checking=no |
6bddc3e8 MF |
628 | ac_subst_vars='am__EXEEXT_FALSE |
629 | am__EXEEXT_TRUE | |
630 | LTLIBOBJS | |
81ecdfbb | 631 | LIBOBJS |
b6b1c790 MF |
632 | SIM_ENABLE_IGEN_FALSE |
633 | SIM_ENABLE_IGEN_TRUE | |
81ecdfbb | 634 | subdirs |
a0e674c1 | 635 | SIM_PRIMARY_TARGET |
c2783492 MF |
636 | AM_BACKSLASH |
637 | AM_DEFAULT_VERBOSITY | |
638 | AM_DEFAULT_V | |
639 | AM_V | |
6bddc3e8 MF |
640 | am__fastdepCC_FALSE |
641 | am__fastdepCC_TRUE | |
642 | CCDEPMODE | |
643 | am__nodep | |
644 | AMDEPBACKSLASH | |
645 | AMDEP_FALSE | |
646 | AMDEP_TRUE | |
647 | am__quote | |
648 | am__include | |
649 | DEPDIR | |
6bddc3e8 MF |
650 | am__untar |
651 | am__tar | |
652 | AMTAR | |
653 | am__leading_dot | |
654 | SET_MAKE | |
655 | AWK | |
656 | mkdir_p | |
657 | MKDIR_P | |
658 | INSTALL_STRIP_PROGRAM | |
659 | STRIP | |
660 | install_sh | |
661 | MAKEINFO | |
662 | AUTOHEADER | |
663 | AUTOMAKE | |
664 | AUTOCONF | |
665 | ACLOCAL | |
666 | VERSION | |
667 | PACKAGE | |
668 | CYGPATH_W | |
669 | am__isrc | |
8c379db2 TT |
670 | MAINT |
671 | MAINTAINER_MODE_FALSE | |
672 | MAINTAINER_MODE_TRUE | |
c2783492 MF |
673 | C_DIALECT |
674 | RANLIB | |
675 | AR | |
676 | LDFLAGS_FOR_BUILD | |
677 | CFLAGS_FOR_BUILD | |
aa0fca16 | 678 | RANLIB_FOR_BUILD |
c2783492 | 679 | CC_FOR_BUILD |
aa0fca16 | 680 | AR_FOR_BUILD |
c2783492 MF |
681 | INSTALL_DATA |
682 | INSTALL_SCRIPT | |
683 | INSTALL_PROGRAM | |
684 | EGREP | |
685 | GREP | |
686 | CPP | |
687 | OBJEXT | |
688 | EXEEXT | |
689 | ac_ct_CC | |
690 | CPPFLAGS | |
691 | LDFLAGS | |
692 | CFLAGS | |
693 | CC | |
81ecdfbb RW |
694 | target_os |
695 | target_vendor | |
696 | target_cpu | |
697 | target | |
698 | host_os | |
699 | host_vendor | |
700 | host_cpu | |
701 | host | |
702 | build_os | |
703 | build_vendor | |
704 | build_cpu | |
705 | build | |
81ecdfbb RW |
706 | target_alias |
707 | host_alias | |
708 | build_alias | |
709 | LIBS | |
710 | ECHO_T | |
711 | ECHO_N | |
712 | ECHO_C | |
713 | DEFS | |
714 | mandir | |
715 | localedir | |
716 | libdir | |
717 | psdir | |
718 | pdfdir | |
719 | dvidir | |
720 | htmldir | |
721 | infodir | |
722 | docdir | |
723 | oldincludedir | |
724 | includedir | |
725 | localstatedir | |
726 | sharedstatedir | |
727 | sysconfdir | |
728 | datadir | |
729 | datarootdir | |
730 | libexecdir | |
731 | sbindir | |
732 | bindir | |
733 | program_transform_name | |
734 | prefix | |
735 | exec_prefix | |
736 | PACKAGE_URL | |
737 | PACKAGE_BUGREPORT | |
738 | PACKAGE_STRING | |
739 | PACKAGE_VERSION | |
740 | PACKAGE_TARNAME | |
741 | PACKAGE_NAME | |
742 | PATH_SEPARATOR | |
743 | SHELL' | |
b7026657 | 744 | ac_subst_files='' |
81ecdfbb RW |
745 | ac_user_opts=' |
746 | enable_option_checking | |
8c379db2 | 747 | enable_maintainer_mode |
6bddc3e8 | 748 | enable_dependency_tracking |
c2783492 | 749 | enable_silent_rules |
81ecdfbb | 750 | enable_sim |
26da232c | 751 | enable_example_sims |
a0e674c1 | 752 | enable_targets |
dba333c1 | 753 | enable_sim_assert |
81ecdfbb RW |
754 | ' |
755 | ac_precious_vars='build_alias | |
756 | host_alias | |
757 | target_alias | |
758 | CC | |
759 | CFLAGS | |
760 | LDFLAGS | |
761 | LIBS | |
5e25901f MF |
762 | CPPFLAGS |
763 | CPP' | |
2e8cf49e NC |
764 | ac_subdirs_all='aarch64 |
765 | arm | |
81ecdfbb | 766 | avr |
ef016f83 | 767 | bfin |
b26e2ae7 | 768 | bpf |
81ecdfbb RW |
769 | cr16 |
770 | cris | |
771 | d10v | |
772 | frv | |
773 | h8300 | |
774 | iq2000 | |
775 | lm32 | |
776 | m32c | |
777 | m32r | |
778 | m68hc11 | |
779 | mcore | |
bd30e45a | 780 | microblaze |
81ecdfbb RW |
781 | mips |
782 | mn10300 | |
783 | moxie | |
3346cfda | 784 | msp430 |
37f980dc | 785 | or1k |
ddd44b70 | 786 | pru |
b9249c46 | 787 | riscv |
87326c78 | 788 | rl78 |
4f8d4a38 | 789 | rx |
81ecdfbb RW |
790 | sh |
791 | erc32 | |
792 | ppc | |
f46e4eb7 | 793 | ft32 |
26da232c MF |
794 | v850 |
795 | example-synacor' | |
c906108c SS |
796 | |
797 | # Initialize some variables set by options. | |
b7026657 AC |
798 | ac_init_help= |
799 | ac_init_version=false | |
81ecdfbb RW |
800 | ac_unrecognized_opts= |
801 | ac_unrecognized_sep= | |
c906108c SS |
802 | # The variables have the same names as the options, with |
803 | # dashes changed to underlines. | |
b7026657 | 804 | cache_file=/dev/null |
c906108c | 805 | exec_prefix=NONE |
c906108c | 806 | no_create= |
c906108c SS |
807 | no_recursion= |
808 | prefix=NONE | |
809 | program_prefix=NONE | |
810 | program_suffix=NONE | |
811 | program_transform_name=s,x,x, | |
812 | silent= | |
813 | site= | |
814 | srcdir= | |
c906108c SS |
815 | verbose= |
816 | x_includes=NONE | |
817 | x_libraries=NONE | |
b7026657 AC |
818 | |
819 | # Installation directory options. | |
820 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
821 | # and all the variables that are supposed to be based on exec_prefix | |
822 | # by default will actually change. | |
823 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 824 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
825 | bindir='${exec_prefix}/bin' |
826 | sbindir='${exec_prefix}/sbin' | |
827 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
828 | datarootdir='${prefix}/share' |
829 | datadir='${datarootdir}' | |
c906108c SS |
830 | sysconfdir='${prefix}/etc' |
831 | sharedstatedir='${prefix}/com' | |
832 | localstatedir='${prefix}/var' | |
c906108c SS |
833 | includedir='${prefix}/include' |
834 | oldincludedir='/usr/include' | |
6bddc3e8 | 835 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
836 | infodir='${datarootdir}/info' |
837 | htmldir='${docdir}' | |
838 | dvidir='${docdir}' | |
839 | pdfdir='${docdir}' | |
840 | psdir='${docdir}' | |
841 | libdir='${exec_prefix}/lib' | |
842 | localedir='${datarootdir}/locale' | |
843 | mandir='${datarootdir}/man' | |
c906108c | 844 | |
c906108c | 845 | ac_prev= |
81ecdfbb | 846 | ac_dashdash= |
c906108c SS |
847 | for ac_option |
848 | do | |
c906108c SS |
849 | # If the previous option needs an argument, assign it. |
850 | if test -n "$ac_prev"; then | |
81ecdfbb | 851 | eval $ac_prev=\$ac_option |
c906108c SS |
852 | ac_prev= |
853 | continue | |
854 | fi | |
855 | ||
81ecdfbb | 856 | case $ac_option in |
d0ac1c44 SM |
857 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
858 | *=) ac_optarg= ;; | |
859 | *) ac_optarg=yes ;; | |
81ecdfbb | 860 | esac |
c906108c SS |
861 | |
862 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
863 | ||
81ecdfbb RW |
864 | case $ac_dashdash$ac_option in |
865 | --) | |
866 | ac_dashdash=yes ;; | |
c906108c SS |
867 | |
868 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
869 | ac_prev=bindir ;; | |
870 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 871 | bindir=$ac_optarg ;; |
c906108c SS |
872 | |
873 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 874 | ac_prev=build_alias ;; |
c906108c | 875 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 876 | build_alias=$ac_optarg ;; |
c906108c SS |
877 | |
878 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
879 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
880 | ac_prev=cache_file ;; | |
881 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
882 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
883 | cache_file=$ac_optarg ;; |
884 | ||
885 | --config-cache | -C) | |
886 | cache_file=config.cache ;; | |
c906108c | 887 | |
81ecdfbb | 888 | -datadir | --datadir | --datadi | --datad) |
c906108c | 889 | ac_prev=datadir ;; |
81ecdfbb | 890 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b7026657 | 891 | datadir=$ac_optarg ;; |
c906108c | 892 | |
81ecdfbb RW |
893 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
894 | | --dataroo | --dataro | --datar) | |
895 | ac_prev=datarootdir ;; | |
896 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
897 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
898 | datarootdir=$ac_optarg ;; | |
899 | ||
c906108c | 900 | -disable-* | --disable-*) |
81ecdfbb | 901 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 902 | # Reject names that are not valid shell variable names. |
81ecdfbb | 903 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 904 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
905 | ac_useropt_orig=$ac_useropt |
906 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
907 | case $ac_user_opts in | |
908 | *" | |
909 | "enable_$ac_useropt" | |
910 | "*) ;; | |
911 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
912 | ac_unrecognized_sep=', ';; | |
913 | esac | |
914 | eval enable_$ac_useropt=no ;; | |
915 | ||
916 | -docdir | --docdir | --docdi | --doc | --do) | |
917 | ac_prev=docdir ;; | |
918 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
919 | docdir=$ac_optarg ;; | |
920 | ||
921 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
922 | ac_prev=dvidir ;; | |
923 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
924 | dvidir=$ac_optarg ;; | |
c906108c SS |
925 | |
926 | -enable-* | --enable-*) | |
81ecdfbb | 927 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 928 | # Reject names that are not valid shell variable names. |
81ecdfbb | 929 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 930 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
931 | ac_useropt_orig=$ac_useropt |
932 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
933 | case $ac_user_opts in | |
934 | *" | |
935 | "enable_$ac_useropt" | |
936 | "*) ;; | |
937 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
938 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 939 | esac |
81ecdfbb | 940 | eval enable_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
941 | |
942 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
943 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
944 | | --exec | --exe | --ex) | |
945 | ac_prev=exec_prefix ;; | |
946 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
947 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
948 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 949 | exec_prefix=$ac_optarg ;; |
c906108c SS |
950 | |
951 | -gas | --gas | --ga | --g) | |
952 | # Obsolete; use --with-gas. | |
953 | with_gas=yes ;; | |
954 | ||
b7026657 AC |
955 | -help | --help | --hel | --he | -h) |
956 | ac_init_help=long ;; | |
957 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
958 | ac_init_help=recursive ;; | |
959 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
960 | ac_init_help=short ;; | |
c906108c SS |
961 | |
962 | -host | --host | --hos | --ho) | |
b7026657 | 963 | ac_prev=host_alias ;; |
c906108c | 964 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 965 | host_alias=$ac_optarg ;; |
c906108c | 966 | |
81ecdfbb RW |
967 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
968 | ac_prev=htmldir ;; | |
969 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
970 | | --ht=*) | |
971 | htmldir=$ac_optarg ;; | |
972 | ||
c906108c SS |
973 | -includedir | --includedir | --includedi | --included | --include \ |
974 | | --includ | --inclu | --incl | --inc) | |
975 | ac_prev=includedir ;; | |
976 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
977 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 978 | includedir=$ac_optarg ;; |
c906108c SS |
979 | |
980 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
981 | ac_prev=infodir ;; | |
982 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 983 | infodir=$ac_optarg ;; |
c906108c SS |
984 | |
985 | -libdir | --libdir | --libdi | --libd) | |
986 | ac_prev=libdir ;; | |
987 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 988 | libdir=$ac_optarg ;; |
c906108c SS |
989 | |
990 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
991 | | --libexe | --libex | --libe) | |
992 | ac_prev=libexecdir ;; | |
993 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
994 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 995 | libexecdir=$ac_optarg ;; |
c906108c | 996 | |
81ecdfbb RW |
997 | -localedir | --localedir | --localedi | --localed | --locale) |
998 | ac_prev=localedir ;; | |
999 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1000 | localedir=$ac_optarg ;; | |
1001 | ||
c906108c | 1002 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1003 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
1004 | ac_prev=localstatedir ;; |
1005 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1006 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b7026657 | 1007 | localstatedir=$ac_optarg ;; |
c906108c SS |
1008 | |
1009 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1010 | ac_prev=mandir ;; | |
1011 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 1012 | mandir=$ac_optarg ;; |
c906108c SS |
1013 | |
1014 | -nfp | --nfp | --nf) | |
1015 | # Obsolete; use --without-fp. | |
1016 | with_fp=no ;; | |
1017 | ||
1018 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 1019 | | --no-cr | --no-c | -n) |
c906108c SS |
1020 | no_create=yes ;; |
1021 | ||
1022 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1023 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1024 | no_recursion=yes ;; | |
1025 | ||
1026 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1027 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1028 | | --oldin | --oldi | --old | --ol | --o) | |
1029 | ac_prev=oldincludedir ;; | |
1030 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1031 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1032 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 1033 | oldincludedir=$ac_optarg ;; |
c906108c SS |
1034 | |
1035 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1036 | ac_prev=prefix ;; | |
1037 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 1038 | prefix=$ac_optarg ;; |
c906108c SS |
1039 | |
1040 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1041 | | --program-pre | --program-pr | --program-p) | |
1042 | ac_prev=program_prefix ;; | |
1043 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1044 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 1045 | program_prefix=$ac_optarg ;; |
c906108c SS |
1046 | |
1047 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1048 | | --program-suf | --program-su | --program-s) | |
1049 | ac_prev=program_suffix ;; | |
1050 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1051 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 1052 | program_suffix=$ac_optarg ;; |
c906108c SS |
1053 | |
1054 | -program-transform-name | --program-transform-name \ | |
1055 | | --program-transform-nam | --program-transform-na \ | |
1056 | | --program-transform-n | --program-transform- \ | |
1057 | | --program-transform | --program-transfor \ | |
1058 | | --program-transfo | --program-transf \ | |
1059 | | --program-trans | --program-tran \ | |
1060 | | --progr-tra | --program-tr | --program-t) | |
1061 | ac_prev=program_transform_name ;; | |
1062 | -program-transform-name=* | --program-transform-name=* \ | |
1063 | | --program-transform-nam=* | --program-transform-na=* \ | |
1064 | | --program-transform-n=* | --program-transform-=* \ | |
1065 | | --program-transform=* | --program-transfor=* \ | |
1066 | | --program-transfo=* | --program-transf=* \ | |
1067 | | --program-trans=* | --program-tran=* \ | |
1068 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 1069 | program_transform_name=$ac_optarg ;; |
c906108c | 1070 | |
81ecdfbb RW |
1071 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1072 | ac_prev=pdfdir ;; | |
1073 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1074 | pdfdir=$ac_optarg ;; | |
1075 | ||
1076 | -psdir | --psdir | --psdi | --psd | --ps) | |
1077 | ac_prev=psdir ;; | |
1078 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1079 | psdir=$ac_optarg ;; | |
1080 | ||
c906108c SS |
1081 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1082 | | -silent | --silent | --silen | --sile | --sil) | |
1083 | silent=yes ;; | |
1084 | ||
1085 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1086 | ac_prev=sbindir ;; | |
1087 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1088 | | --sbi=* | --sb=*) | |
b7026657 | 1089 | sbindir=$ac_optarg ;; |
c906108c SS |
1090 | |
1091 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1092 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1093 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1094 | | --sha | --sh) | |
1095 | ac_prev=sharedstatedir ;; | |
1096 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1097 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1098 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1099 | | --sha=* | --sh=*) | |
b7026657 | 1100 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
1101 | |
1102 | -site | --site | --sit) | |
1103 | ac_prev=site ;; | |
1104 | -site=* | --site=* | --sit=*) | |
b7026657 | 1105 | site=$ac_optarg ;; |
0fda6bd2 | 1106 | |
c906108c SS |
1107 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1108 | ac_prev=srcdir ;; | |
1109 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 1110 | srcdir=$ac_optarg ;; |
c906108c SS |
1111 | |
1112 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1113 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1114 | ac_prev=sysconfdir ;; | |
1115 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1116 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 1117 | sysconfdir=$ac_optarg ;; |
c906108c SS |
1118 | |
1119 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 1120 | ac_prev=target_alias ;; |
c906108c | 1121 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 1122 | target_alias=$ac_optarg ;; |
c906108c SS |
1123 | |
1124 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1125 | verbose=yes ;; | |
1126 | ||
b7026657 AC |
1127 | -version | --version | --versio | --versi | --vers | -V) |
1128 | ac_init_version=: ;; | |
c906108c SS |
1129 | |
1130 | -with-* | --with-*) | |
81ecdfbb | 1131 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1132 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1133 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1134 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1135 | ac_useropt_orig=$ac_useropt |
1136 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1137 | case $ac_user_opts in | |
1138 | *" | |
1139 | "with_$ac_useropt" | |
1140 | "*) ;; | |
1141 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1142 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 1143 | esac |
81ecdfbb | 1144 | eval with_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1145 | |
1146 | -without-* | --without-*) | |
81ecdfbb | 1147 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1148 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1149 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1150 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1151 | ac_useropt_orig=$ac_useropt |
1152 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1153 | case $ac_user_opts in | |
1154 | *" | |
1155 | "with_$ac_useropt" | |
1156 | "*) ;; | |
1157 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1158 | ac_unrecognized_sep=', ';; | |
1159 | esac | |
1160 | eval with_$ac_useropt=no ;; | |
c906108c SS |
1161 | |
1162 | --x) | |
1163 | # Obsolete; use --with-x. | |
1164 | with_x=yes ;; | |
1165 | ||
1166 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1167 | | --x-incl | --x-inc | --x-in | --x-i) | |
1168 | ac_prev=x_includes ;; | |
1169 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1170 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 1171 | x_includes=$ac_optarg ;; |
c906108c SS |
1172 | |
1173 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1174 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1175 | ac_prev=x_libraries ;; | |
1176 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1177 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 1178 | x_libraries=$ac_optarg ;; |
c906108c | 1179 | |
d0ac1c44 SM |
1180 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1181 | Try \`$0 --help' for more information" | |
c906108c SS |
1182 | ;; |
1183 | ||
b7026657 AC |
1184 | *=*) |
1185 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1186 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1187 | case $ac_envvar in #( |
1188 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1189 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1190 | esac |
1191 | eval $ac_envvar=\$ac_optarg | |
b7026657 AC |
1192 | export $ac_envvar ;; |
1193 | ||
c906108c | 1194 | *) |
b7026657 | 1195 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1196 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b7026657 | 1197 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1198 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1199 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c906108c SS |
1200 | ;; |
1201 | ||
1202 | esac | |
1203 | done | |
1204 | ||
1205 | if test -n "$ac_prev"; then | |
b7026657 | 1206 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1207 | as_fn_error $? "missing argument to $ac_option" |
c906108c | 1208 | fi |
c906108c | 1209 | |
81ecdfbb RW |
1210 | if test -n "$ac_unrecognized_opts"; then |
1211 | case $enable_option_checking in | |
1212 | no) ;; | |
d0ac1c44 | 1213 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1214 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
fdd6fa61 | 1215 | esac |
81ecdfbb | 1216 | fi |
fdd6fa61 | 1217 | |
81ecdfbb RW |
1218 | # Check all directory arguments for consistency. |
1219 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1220 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1221 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1222 | libdir localedir mandir | |
c906108c | 1223 | do |
81ecdfbb RW |
1224 | eval ac_val=\$$ac_var |
1225 | # Remove trailing slashes. | |
1226 | case $ac_val in | |
1227 | */ ) | |
1228 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1229 | eval $ac_var=\$ac_val;; | |
1230 | esac | |
1231 | # Be sure to have absolute directory names. | |
b7026657 | 1232 | case $ac_val in |
81ecdfbb RW |
1233 | [\\/$]* | ?:[\\/]* ) continue;; |
1234 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
c906108c | 1235 | esac |
d0ac1c44 | 1236 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c906108c SS |
1237 | done |
1238 | ||
b7026657 AC |
1239 | # There might be people who depend on the old broken behavior: `$host' |
1240 | # used to hold the argument of --host etc. | |
1241 | # FIXME: To remove some day. | |
1242 | build=$build_alias | |
1243 | host=$host_alias | |
1244 | target=$target_alias | |
1245 | ||
1246 | # FIXME: To remove some day. | |
1247 | if test "x$host_alias" != x; then | |
1248 | if test "x$build_alias" = x; then | |
1249 | cross_compiling=maybe | |
b7026657 AC |
1250 | elif test "x$build_alias" != "x$host_alias"; then |
1251 | cross_compiling=yes | |
1252 | fi | |
1253 | fi | |
c906108c | 1254 | |
b7026657 AC |
1255 | ac_tool_prefix= |
1256 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1257 | ||
1258 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1259 | |
c906108c | 1260 | |
81ecdfbb RW |
1261 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1262 | ac_ls_di=`ls -di .` && | |
1263 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1264 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1265 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1266 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1267 | |
1268 | ||
c906108c SS |
1269 | # Find the source files, if location was not specified. |
1270 | if test -z "$srcdir"; then | |
1271 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1272 | # Try the directory containing this script, then the parent directory. |
1273 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1274 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1275 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1276 | X"$as_myself" : 'X\(//\)$' \| \ | |
1277 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1278 | $as_echo X"$as_myself" | | |
1279 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1280 | s//\1/ | |
1281 | q | |
1282 | } | |
1283 | /^X\(\/\/\)[^/].*/{ | |
1284 | s//\1/ | |
1285 | q | |
1286 | } | |
1287 | /^X\(\/\/\)$/{ | |
1288 | s//\1/ | |
1289 | q | |
1290 | } | |
1291 | /^X\(\/\).*/{ | |
1292 | s//\1/ | |
1293 | q | |
1294 | } | |
1295 | s/.*/./; q'` | |
c906108c | 1296 | srcdir=$ac_confdir |
81ecdfbb | 1297 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1298 | srcdir=.. |
1299 | fi | |
1300 | else | |
1301 | ac_srcdir_defaulted=no | |
1302 | fi | |
81ecdfbb RW |
1303 | if test ! -r "$srcdir/$ac_unique_file"; then |
1304 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1305 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1306 | fi |
1307 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1308 | ac_abs_confdir=`( | |
d0ac1c44 | 1309 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1310 | pwd)` |
1311 | # When building in place, set srcdir=. | |
1312 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1313 | srcdir=. | |
1314 | fi | |
1315 | # Remove unnecessary trailing slashes from srcdir. | |
1316 | # Double slashes in file names in object file debugging info | |
1317 | # mess up M-x gdb in Emacs. | |
1318 | case $srcdir in | |
1319 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1320 | esac | |
1321 | for ac_var in $ac_precious_vars; do | |
1322 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1323 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1324 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1325 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1326 | done | |
df1756f4 TG |
1327 | |
1328 | # | |
b7026657 AC |
1329 | # Report the --help message. |
1330 | # | |
1331 | if test "$ac_init_help" = "long"; then | |
1332 | # Omit some internal or obsolete options to make the list less imposing. | |
1333 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1334 | cat <<_ACEOF | |
6bddc3e8 | 1335 | \`configure' configures sim 0 to adapt to many kinds of systems. |
b7026657 AC |
1336 | |
1337 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1338 | ||
1339 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1340 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1341 | ||
1342 | Defaults for the options are specified in brackets. | |
1343 | ||
1344 | Configuration: | |
1345 | -h, --help display this help and exit | |
1346 | --help=short display options specific to this package | |
1347 | --help=recursive display the short help of all the included packages | |
1348 | -V, --version display version information and exit | |
d0ac1c44 | 1349 | -q, --quiet, --silent do not print \`checking ...' messages |
b7026657 AC |
1350 | --cache-file=FILE cache test results in FILE [disabled] |
1351 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1352 | -n, --no-create do not create output files | |
1353 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1354 | ||
b7026657 AC |
1355 | Installation directories: |
1356 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1357 | [$ac_default_prefix] |
b7026657 | 1358 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1359 | [PREFIX] |
b7026657 AC |
1360 | |
1361 | By default, \`make install' will install all the files in | |
1362 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1363 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1364 | for instance \`--prefix=\$HOME'. | |
1365 | ||
1366 | For better control, use the options below. | |
1367 | ||
1368 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1369 | --bindir=DIR user executables [EPREFIX/bin] |
1370 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1371 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1372 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1373 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1374 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1375 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1376 | --includedir=DIR C header files [PREFIX/include] | |
1377 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1378 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1379 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1380 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1381 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1382 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
6bddc3e8 | 1383 | --docdir=DIR documentation root [DATAROOTDIR/doc/sim] |
81ecdfbb RW |
1384 | --htmldir=DIR html documentation [DOCDIR] |
1385 | --dvidir=DIR dvi documentation [DOCDIR] | |
1386 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1387 | --psdir=DIR ps documentation [DOCDIR] | |
b7026657 AC |
1388 | _ACEOF |
1389 | ||
1390 | cat <<\_ACEOF | |
1391 | ||
1392 | Program names: | |
1393 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1394 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1395 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1396 | ||
1397 | System types: | |
1398 | --build=BUILD configure for building on BUILD [guessed] | |
1399 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1400 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1401 | _ACEOF | |
1402 | fi | |
1403 | ||
1404 | if test -n "$ac_init_help"; then | |
6bddc3e8 MF |
1405 | case $ac_init_help in |
1406 | short | recursive ) echo "Configuration of sim 0:";; | |
1407 | esac | |
b7026657 AC |
1408 | cat <<\_ACEOF |
1409 | ||
1410 | Optional Features: | |
81ecdfbb | 1411 | --disable-option-checking ignore unrecognized --enable/--with options |
b7026657 AC |
1412 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1413 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
8c379db2 TT |
1414 | --enable-maintainer-mode |
1415 | enable make rules and dependencies not useful (and | |
1416 | sometimes confusing) to the casual installer | |
6bddc3e8 MF |
1417 | --enable-dependency-tracking |
1418 | do not reject slow dependency extractors | |
1419 | --disable-dependency-tracking | |
1420 | speeds up one-time build | |
c2783492 MF |
1421 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1422 | --disable-silent-rules verbose build output (undo: "make V=0") | |
8d0978fb | 1423 | --enable-sim Enable the GNU simulator |
26da232c | 1424 | --enable-example-sims enable example GNU simulators |
a0e674c1 | 1425 | --enable-targets alternative target configurations |
dba333c1 | 1426 | --enable-sim-assert Specify whether to perform random assertions |
b7026657 AC |
1427 | |
1428 | Some influential environment variables: | |
1429 | CC C compiler command | |
1430 | CFLAGS C compiler flags | |
1431 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1432 | nonstandard directory <lib dir> | |
81ecdfbb | 1433 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1434 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1435 | you have headers in a nonstandard directory <include dir> |
5e25901f | 1436 | CPP C preprocessor |
b7026657 AC |
1437 | |
1438 | Use these variables to override the choices made by `configure' or to help | |
1439 | it to find libraries and programs with nonstandard names/locations. | |
1440 | ||
6bddc3e8 MF |
1441 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. |
1442 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>. | |
b7026657 | 1443 | _ACEOF |
81ecdfbb | 1444 | ac_status=$? |
b7026657 AC |
1445 | fi |
1446 | ||
1447 | if test "$ac_init_help" = "recursive"; then | |
1448 | # If there are subdirs, report their specific --help. | |
b7026657 | 1449 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1450 | test -d "$ac_dir" || |
1451 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1452 | continue | |
b7026657 AC |
1453 | ac_builddir=. |
1454 | ||
81ecdfbb RW |
1455 | case "$ac_dir" in |
1456 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1457 | *) | |
1458 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1459 | # A ".." for each directory in $ac_dir_suffix. | |
1460 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1461 | case $ac_top_builddir_sub in | |
1462 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1463 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1464 | esac ;; | |
1465 | esac | |
1466 | ac_abs_top_builddir=$ac_pwd | |
1467 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1468 | # for backward compatibility: | |
1469 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
1470 | |
1471 | case $srcdir in | |
81ecdfbb | 1472 | .) # We are building in place. |
b7026657 | 1473 | ac_srcdir=. |
81ecdfbb RW |
1474 | ac_top_srcdir=$ac_top_builddir_sub |
1475 | ac_abs_top_srcdir=$ac_pwd ;; | |
1476 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 1477 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1478 | ac_top_srcdir=$srcdir |
1479 | ac_abs_top_srcdir=$srcdir ;; | |
1480 | *) # Relative name. | |
1481 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1482 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1483 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fdd6fa61 | 1484 | esac |
81ecdfbb | 1485 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fdd6fa61 | 1486 | |
81ecdfbb RW |
1487 | cd "$ac_dir" || { ac_status=$?; continue; } |
1488 | # Check for guested configure. | |
1489 | if test -f "$ac_srcdir/configure.gnu"; then | |
1490 | echo && | |
1491 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1492 | elif test -f "$ac_srcdir/configure"; then | |
1493 | echo && | |
1494 | $SHELL "$ac_srcdir/configure" --help=recursive | |
0fda6bd2 | 1495 | else |
81ecdfbb RW |
1496 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1497 | fi || ac_status=$? | |
1498 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b7026657 AC |
1499 | done |
1500 | fi | |
1501 | ||
81ecdfbb | 1502 | test -n "$ac_init_help" && exit $ac_status |
b7026657 AC |
1503 | if $ac_init_version; then |
1504 | cat <<\_ACEOF | |
6bddc3e8 | 1505 | sim configure 0 |
d0ac1c44 | 1506 | generated by GNU Autoconf 2.69 |
b7026657 | 1507 | |
d0ac1c44 | 1508 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
1509 | This configure script is free software; the Free Software Foundation |
1510 | gives unlimited permission to copy, distribute and modify it. | |
1511 | _ACEOF | |
81ecdfbb | 1512 | exit |
b7026657 | 1513 | fi |
81ecdfbb RW |
1514 | |
1515 | ## ------------------------ ## | |
1516 | ## Autoconf initialization. ## | |
1517 | ## ------------------------ ## | |
1518 | ||
1519 | # ac_fn_c_try_compile LINENO | |
1520 | # -------------------------- | |
1521 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1522 | ac_fn_c_try_compile () | |
1523 | { | |
1524 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1525 | rm -f conftest.$ac_objext | |
1526 | if { { ac_try="$ac_compile" | |
1527 | case "(($ac_try" in | |
1528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1529 | *) ac_try_echo=$ac_try;; | |
1530 | esac | |
1531 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1532 | $as_echo "$ac_try_echo"; } >&5 | |
1533 | (eval "$ac_compile") 2>conftest.err | |
1534 | ac_status=$? | |
1535 | if test -s conftest.err; then | |
1536 | grep -v '^ *+' conftest.err >conftest.er1 | |
1537 | cat conftest.er1 >&5 | |
1538 | mv -f conftest.er1 conftest.err | |
1539 | fi | |
1540 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1541 | test $ac_status = 0; } && { | |
1542 | test -z "$ac_c_werror_flag" || | |
1543 | test ! -s conftest.err | |
1544 | } && test -s conftest.$ac_objext; then : | |
1545 | ac_retval=0 | |
1546 | else | |
1547 | $as_echo "$as_me: failed program was:" >&5 | |
1548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1549 | ||
1550 | ac_retval=1 | |
1551 | fi | |
d0ac1c44 SM |
1552 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1553 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1554 | |
1555 | } # ac_fn_c_try_compile | |
5e25901f MF |
1556 | |
1557 | # ac_fn_c_try_cpp LINENO | |
1558 | # ---------------------- | |
1559 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1560 | ac_fn_c_try_cpp () | |
1561 | { | |
1562 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1563 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1564 | case "(($ac_try" in | |
1565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1566 | *) ac_try_echo=$ac_try;; | |
1567 | esac | |
1568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1569 | $as_echo "$ac_try_echo"; } >&5 | |
1570 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1571 | ac_status=$? | |
1572 | if test -s conftest.err; then | |
1573 | grep -v '^ *+' conftest.err >conftest.er1 | |
1574 | cat conftest.er1 >&5 | |
1575 | mv -f conftest.er1 conftest.err | |
1576 | fi | |
1577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1578 | test $ac_status = 0; } > conftest.i && { | |
1579 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1580 | test ! -s conftest.err | |
1581 | }; then : | |
1582 | ac_retval=0 | |
1583 | else | |
1584 | $as_echo "$as_me: failed program was:" >&5 | |
1585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1586 | ||
1587 | ac_retval=1 | |
1588 | fi | |
1589 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1590 | as_fn_set_status $ac_retval | |
1591 | ||
1592 | } # ac_fn_c_try_cpp | |
c2783492 MF |
1593 | |
1594 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1595 | # ------------------------------------------------------- | |
1596 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1597 | # the include files in INCLUDES and setting the cache variable VAR | |
1598 | # accordingly. | |
1599 | ac_fn_c_check_header_mongrel () | |
1600 | { | |
1601 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1602 | if eval \${$3+:} false; then : | |
1603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1604 | $as_echo_n "checking for $2... " >&6; } | |
1605 | if eval \${$3+:} false; then : | |
1606 | $as_echo_n "(cached) " >&6 | |
1607 | fi | |
1608 | eval ac_res=\$$3 | |
1609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1610 | $as_echo "$ac_res" >&6; } | |
1611 | else | |
1612 | # Is the header compilable? | |
1613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1614 | $as_echo_n "checking $2 usability... " >&6; } | |
1615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1616 | /* end confdefs.h. */ | |
1617 | $4 | |
1618 | #include <$2> | |
1619 | _ACEOF | |
1620 | if ac_fn_c_try_compile "$LINENO"; then : | |
1621 | ac_header_compiler=yes | |
1622 | else | |
1623 | ac_header_compiler=no | |
1624 | fi | |
1625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1627 | $as_echo "$ac_header_compiler" >&6; } | |
1628 | ||
1629 | # Is the header present? | |
1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1631 | $as_echo_n "checking $2 presence... " >&6; } | |
1632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1633 | /* end confdefs.h. */ | |
1634 | #include <$2> | |
1635 | _ACEOF | |
1636 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1637 | ac_header_preproc=yes | |
1638 | else | |
1639 | ac_header_preproc=no | |
1640 | fi | |
1641 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1643 | $as_echo "$ac_header_preproc" >&6; } | |
1644 | ||
1645 | # So? What about this header? | |
1646 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1647 | yes:no: ) | |
1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1649 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1651 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1652 | ;; | |
1653 | no:yes:* ) | |
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1655 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1656 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1657 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1659 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1661 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1662 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1663 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1664 | ( $as_echo "## -------------------------------------------------------------------------------------- ## | |
1665 | ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ## | |
1666 | ## -------------------------------------------------------------------------------------- ##" | |
1667 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1668 | ;; | |
1669 | esac | |
1670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1671 | $as_echo_n "checking for $2... " >&6; } | |
1672 | if eval \${$3+:} false; then : | |
1673 | $as_echo_n "(cached) " >&6 | |
1674 | else | |
1675 | eval "$3=\$ac_header_compiler" | |
1676 | fi | |
1677 | eval ac_res=\$$3 | |
1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1679 | $as_echo "$ac_res" >&6; } | |
1680 | fi | |
1681 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1682 | ||
1683 | } # ac_fn_c_check_header_mongrel | |
1684 | ||
1685 | # ac_fn_c_try_run LINENO | |
1686 | # ---------------------- | |
1687 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1688 | # that executables *can* be run. | |
1689 | ac_fn_c_try_run () | |
1690 | { | |
1691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1692 | if { { ac_try="$ac_link" | |
1693 | case "(($ac_try" in | |
1694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1695 | *) ac_try_echo=$ac_try;; | |
1696 | esac | |
1697 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1698 | $as_echo "$ac_try_echo"; } >&5 | |
1699 | (eval "$ac_link") 2>&5 | |
1700 | ac_status=$? | |
1701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1702 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1703 | { { case "(($ac_try" in | |
1704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1705 | *) ac_try_echo=$ac_try;; | |
1706 | esac | |
1707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1708 | $as_echo "$ac_try_echo"; } >&5 | |
1709 | (eval "$ac_try") 2>&5 | |
1710 | ac_status=$? | |
1711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1712 | test $ac_status = 0; }; }; then : | |
1713 | ac_retval=0 | |
1714 | else | |
1715 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1716 | $as_echo "$as_me: failed program was:" >&5 | |
1717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1718 | ||
1719 | ac_retval=$ac_status | |
1720 | fi | |
1721 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1722 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1723 | as_fn_set_status $ac_retval | |
1724 | ||
1725 | } # ac_fn_c_try_run | |
1726 | ||
1727 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1728 | # ------------------------------------------------------- | |
1729 | # Tests whether HEADER exists and can be compiled using the include files in | |
1730 | # INCLUDES, setting the cache variable VAR accordingly. | |
1731 | ac_fn_c_check_header_compile () | |
1732 | { | |
1733 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1735 | $as_echo_n "checking for $2... " >&6; } | |
1736 | if eval \${$3+:} false; then : | |
1737 | $as_echo_n "(cached) " >&6 | |
1738 | else | |
1739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1740 | /* end confdefs.h. */ | |
1741 | $4 | |
1742 | #include <$2> | |
1743 | _ACEOF | |
1744 | if ac_fn_c_try_compile "$LINENO"; then : | |
1745 | eval "$3=yes" | |
1746 | else | |
1747 | eval "$3=no" | |
1748 | fi | |
1749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1750 | fi | |
1751 | eval ac_res=\$$3 | |
1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1753 | $as_echo "$ac_res" >&6; } | |
1754 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1755 | ||
1756 | } # ac_fn_c_check_header_compile | |
b15c5d7a MF |
1757 | |
1758 | # ac_fn_c_try_link LINENO | |
1759 | # ----------------------- | |
1760 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1761 | ac_fn_c_try_link () | |
1762 | { | |
1763 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1764 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1765 | if { { ac_try="$ac_link" | |
1766 | case "(($ac_try" in | |
1767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1768 | *) ac_try_echo=$ac_try;; | |
1769 | esac | |
1770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1771 | $as_echo "$ac_try_echo"; } >&5 | |
1772 | (eval "$ac_link") 2>conftest.err | |
1773 | ac_status=$? | |
1774 | if test -s conftest.err; then | |
1775 | grep -v '^ *+' conftest.err >conftest.er1 | |
1776 | cat conftest.er1 >&5 | |
1777 | mv -f conftest.er1 conftest.err | |
1778 | fi | |
1779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1780 | test $ac_status = 0; } && { | |
1781 | test -z "$ac_c_werror_flag" || | |
1782 | test ! -s conftest.err | |
1783 | } && test -s conftest$ac_exeext && { | |
1784 | test "$cross_compiling" = yes || | |
1785 | test -x conftest$ac_exeext | |
1786 | }; then : | |
1787 | ac_retval=0 | |
1788 | else | |
1789 | $as_echo "$as_me: failed program was:" >&5 | |
1790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1791 | ||
1792 | ac_retval=1 | |
1793 | fi | |
1794 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1795 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1796 | # interfere with the next link command; also delete a directory that is | |
1797 | # left behind by Apple's compiler. We do this before executing the actions. | |
1798 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1799 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1800 | as_fn_set_status $ac_retval | |
1801 | ||
1802 | } # ac_fn_c_try_link | |
1803 | ||
1804 | # ac_fn_c_check_func LINENO FUNC VAR | |
1805 | # ---------------------------------- | |
1806 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1807 | ac_fn_c_check_func () | |
1808 | { | |
1809 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1811 | $as_echo_n "checking for $2... " >&6; } | |
1812 | if eval \${$3+:} false; then : | |
1813 | $as_echo_n "(cached) " >&6 | |
1814 | else | |
1815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1816 | /* end confdefs.h. */ | |
1817 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1818 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1819 | #define $2 innocuous_$2 | |
1820 | ||
1821 | /* System header to define __stub macros and hopefully few prototypes, | |
1822 | which can conflict with char $2 (); below. | |
1823 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1824 | <limits.h> exists even on freestanding compilers. */ | |
1825 | ||
1826 | #ifdef __STDC__ | |
1827 | # include <limits.h> | |
1828 | #else | |
1829 | # include <assert.h> | |
1830 | #endif | |
1831 | ||
1832 | #undef $2 | |
1833 | ||
1834 | /* Override any GCC internal prototype to avoid an error. | |
1835 | Use char because int might match the return type of a GCC | |
1836 | builtin and then its argument prototype would still apply. */ | |
1837 | #ifdef __cplusplus | |
1838 | extern "C" | |
1839 | #endif | |
1840 | char $2 (); | |
1841 | /* The GNU C library defines this for functions which it implements | |
1842 | to always fail with ENOSYS. Some functions are actually named | |
1843 | something starting with __ and the normal name is an alias. */ | |
1844 | #if defined __stub_$2 || defined __stub___$2 | |
1845 | choke me | |
1846 | #endif | |
1847 | ||
1848 | int | |
1849 | main () | |
1850 | { | |
1851 | return $2 (); | |
1852 | ; | |
1853 | return 0; | |
1854 | } | |
1855 | _ACEOF | |
1856 | if ac_fn_c_try_link "$LINENO"; then : | |
1857 | eval "$3=yes" | |
1858 | else | |
1859 | eval "$3=no" | |
1860 | fi | |
1861 | rm -f core conftest.err conftest.$ac_objext \ | |
1862 | conftest$ac_exeext conftest.$ac_ext | |
1863 | fi | |
1864 | eval ac_res=\$$3 | |
1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1866 | $as_echo "$ac_res" >&6; } | |
1867 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1868 | ||
1869 | } # ac_fn_c_check_func | |
1870 | ||
1871 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
1872 | # ---------------------------------------------------- | |
1873 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1874 | # INCLUDES, setting cache variable VAR accordingly. | |
1875 | ac_fn_c_check_member () | |
1876 | { | |
1877 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1879 | $as_echo_n "checking for $2.$3... " >&6; } | |
1880 | if eval \${$4+:} false; then : | |
1881 | $as_echo_n "(cached) " >&6 | |
1882 | else | |
1883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1884 | /* end confdefs.h. */ | |
1885 | $5 | |
1886 | int | |
1887 | main () | |
1888 | { | |
1889 | static $2 ac_aggr; | |
1890 | if (ac_aggr.$3) | |
1891 | return 0; | |
1892 | ; | |
1893 | return 0; | |
1894 | } | |
1895 | _ACEOF | |
1896 | if ac_fn_c_try_compile "$LINENO"; then : | |
1897 | eval "$4=yes" | |
1898 | else | |
1899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1900 | /* end confdefs.h. */ | |
1901 | $5 | |
1902 | int | |
1903 | main () | |
1904 | { | |
1905 | static $2 ac_aggr; | |
1906 | if (sizeof ac_aggr.$3) | |
1907 | return 0; | |
1908 | ; | |
1909 | return 0; | |
1910 | } | |
1911 | _ACEOF | |
1912 | if ac_fn_c_try_compile "$LINENO"; then : | |
1913 | eval "$4=yes" | |
1914 | else | |
1915 | eval "$4=no" | |
1916 | fi | |
1917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1918 | fi | |
1919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1920 | fi | |
1921 | eval ac_res=\$$4 | |
1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1923 | $as_echo "$ac_res" >&6; } | |
1924 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1925 | ||
1926 | } # ac_fn_c_check_member | |
1927 | ||
1928 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1929 | # ------------------------------------------- | |
1930 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1931 | # variable VAR accordingly. | |
1932 | ac_fn_c_check_type () | |
1933 | { | |
1934 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1936 | $as_echo_n "checking for $2... " >&6; } | |
1937 | if eval \${$3+:} false; then : | |
1938 | $as_echo_n "(cached) " >&6 | |
1939 | else | |
1940 | eval "$3=no" | |
1941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1942 | /* end confdefs.h. */ | |
1943 | $4 | |
1944 | int | |
1945 | main () | |
1946 | { | |
1947 | if (sizeof ($2)) | |
1948 | return 0; | |
1949 | ; | |
1950 | return 0; | |
1951 | } | |
1952 | _ACEOF | |
1953 | if ac_fn_c_try_compile "$LINENO"; then : | |
1954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1955 | /* end confdefs.h. */ | |
1956 | $4 | |
1957 | int | |
1958 | main () | |
1959 | { | |
1960 | if (sizeof (($2))) | |
1961 | return 0; | |
1962 | ; | |
1963 | return 0; | |
1964 | } | |
1965 | _ACEOF | |
1966 | if ac_fn_c_try_compile "$LINENO"; then : | |
1967 | ||
1968 | else | |
1969 | eval "$3=yes" | |
1970 | fi | |
1971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1972 | fi | |
1973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1974 | fi | |
1975 | eval ac_res=\$$3 | |
1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1977 | $as_echo "$ac_res" >&6; } | |
1978 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1979 | ||
1980 | } # ac_fn_c_check_type | |
81ecdfbb | 1981 | cat >config.log <<_ACEOF |
b7026657 AC |
1982 | This file contains any messages produced by compilers while |
1983 | running configure, to aid debugging if configure makes a mistake. | |
1984 | ||
6bddc3e8 | 1985 | It was created by sim $as_me 0, which was |
d0ac1c44 | 1986 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
1987 | |
1988 | $ $0 $@ | |
1989 | ||
1990 | _ACEOF | |
81ecdfbb | 1991 | exec 5>>config.log |
b7026657 AC |
1992 | { |
1993 | cat <<_ASUNAME | |
1994 | ## --------- ## | |
1995 | ## Platform. ## | |
1996 | ## --------- ## | |
1997 | ||
1998 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1999 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2000 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2001 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2002 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2003 | ||
2004 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2005 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2006 | ||
2007 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2008 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2009 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2010 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b7026657 AC |
2011 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2012 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2013 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2014 | ||
2015 | _ASUNAME | |
2016 | ||
2017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2018 | for as_dir in $PATH | |
2019 | do | |
2020 | IFS=$as_save_IFS | |
2021 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2022 | $as_echo "PATH: $as_dir" |
2023 | done | |
2024 | IFS=$as_save_IFS | |
b7026657 AC |
2025 | |
2026 | } >&5 | |
2027 | ||
2028 | cat >&5 <<_ACEOF | |
2029 | ||
2030 | ||
2031 | ## ----------- ## | |
2032 | ## Core tests. ## | |
2033 | ## ----------- ## | |
2034 | ||
2035 | _ACEOF | |
2036 | ||
2037 | ||
2038 | # Keep a trace of the command line. | |
2039 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2040 | # Strip out --silent because we don't want to record it for future runs. | |
2041 | # Also quote any args containing shell meta-characters. | |
2042 | # Make two passes to allow for proper duplicate-argument suppression. | |
2043 | ac_configure_args= | |
2044 | ac_configure_args0= | |
2045 | ac_configure_args1= | |
b7026657 AC |
2046 | ac_must_keep_next=false |
2047 | for ac_pass in 1 2 | |
2048 | do | |
2049 | for ac_arg | |
2050 | do | |
2051 | case $ac_arg in | |
2052 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2053 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2054 | | -silent | --silent | --silen | --sile | --sil) | |
2055 | continue ;; | |
81ecdfbb RW |
2056 | *\'*) |
2057 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b7026657 AC |
2058 | esac |
2059 | case $ac_pass in | |
81ecdfbb | 2060 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b7026657 | 2061 | 2) |
81ecdfbb | 2062 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b7026657 AC |
2063 | if test $ac_must_keep_next = true; then |
2064 | ac_must_keep_next=false # Got value, back to normal. | |
2065 | else | |
2066 | case $ac_arg in | |
2067 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2068 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2069 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2070 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2071 | case "$ac_configure_args0 " in | |
2072 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2073 | esac | |
2074 | ;; | |
2075 | -* ) ac_must_keep_next=true ;; | |
2076 | esac | |
2077 | fi | |
81ecdfbb | 2078 | as_fn_append ac_configure_args " '$ac_arg'" |
b7026657 AC |
2079 | ;; |
2080 | esac | |
2081 | done | |
2082 | done | |
81ecdfbb RW |
2083 | { ac_configure_args0=; unset ac_configure_args0;} |
2084 | { ac_configure_args1=; unset ac_configure_args1;} | |
b7026657 AC |
2085 | |
2086 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2087 | # config.log. We remove comments because anyway the quotes in there | |
2088 | # would cause problems or look ugly. | |
81ecdfbb RW |
2089 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2090 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b7026657 AC |
2091 | trap 'exit_status=$? |
2092 | # Save into config.log some information that might help in debugging. | |
2093 | { | |
2094 | echo | |
2095 | ||
d0ac1c44 | 2096 | $as_echo "## ---------------- ## |
b7026657 | 2097 | ## Cache variables. ## |
d0ac1c44 | 2098 | ## ---------------- ##" |
b7026657 AC |
2099 | echo |
2100 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2101 | ( |
2102 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2103 | eval ac_val=\$$ac_var | |
2104 | case $ac_val in #( | |
2105 | *${as_nl}*) | |
2106 | case $ac_var in #( | |
2107 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2108 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2109 | esac | |
2110 | case $ac_var in #( | |
2111 | _ | IFS | as_nl) ;; #( | |
2112 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2113 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2114 | esac ;; | |
2115 | esac | |
2116 | done | |
b7026657 | 2117 | (set) 2>&1 | |
81ecdfbb RW |
2118 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2119 | *${as_nl}ac_space=\ *) | |
b7026657 | 2120 | sed -n \ |
81ecdfbb RW |
2121 | "s/'\''/'\''\\\\'\'''\''/g; |
2122 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2123 | ;; #( | |
b7026657 | 2124 | *) |
81ecdfbb | 2125 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 2126 | ;; |
81ecdfbb RW |
2127 | esac | |
2128 | sort | |
2129 | ) | |
b7026657 AC |
2130 | echo |
2131 | ||
d0ac1c44 | 2132 | $as_echo "## ----------------- ## |
b7026657 | 2133 | ## Output variables. ## |
d0ac1c44 | 2134 | ## ----------------- ##" |
b7026657 AC |
2135 | echo |
2136 | for ac_var in $ac_subst_vars | |
2137 | do | |
81ecdfbb RW |
2138 | eval ac_val=\$$ac_var |
2139 | case $ac_val in | |
2140 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2141 | esac | |
2142 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2143 | done | sort |
2144 | echo | |
2145 | ||
2146 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2147 | $as_echo "## ------------------- ## |
81ecdfbb | 2148 | ## File substitutions. ## |
d0ac1c44 | 2149 | ## ------------------- ##" |
b7026657 AC |
2150 | echo |
2151 | for ac_var in $ac_subst_files | |
2152 | do | |
81ecdfbb RW |
2153 | eval ac_val=\$$ac_var |
2154 | case $ac_val in | |
2155 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2156 | esac | |
2157 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2158 | done | sort |
2159 | echo | |
2160 | fi | |
2161 | ||
2162 | if test -s confdefs.h; then | |
d0ac1c44 | 2163 | $as_echo "## ----------- ## |
b7026657 | 2164 | ## confdefs.h. ## |
d0ac1c44 | 2165 | ## ----------- ##" |
b7026657 | 2166 | echo |
81ecdfbb | 2167 | cat confdefs.h |
b7026657 | 2168 | echo |
0fda6bd2 | 2169 | fi |
b7026657 | 2170 | test "$ac_signal" != 0 && |
81ecdfbb RW |
2171 | $as_echo "$as_me: caught signal $ac_signal" |
2172 | $as_echo "$as_me: exit $exit_status" | |
b7026657 | 2173 | } >&5 |
81ecdfbb RW |
2174 | rm -f core *.core core.conftest.* && |
2175 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b7026657 | 2176 | exit $exit_status |
81ecdfbb | 2177 | ' 0 |
b7026657 | 2178 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2179 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b7026657 AC |
2180 | done |
2181 | ac_signal=0 | |
2182 | ||
2183 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2184 | rm -f -r conftest* confdefs.h |
2185 | ||
2186 | $as_echo "/* confdefs.h */" > confdefs.h | |
b7026657 AC |
2187 | |
2188 | # Predefined preprocessor variables. | |
2189 | ||
2190 | cat >>confdefs.h <<_ACEOF | |
2191 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2192 | _ACEOF | |
2193 | ||
b7026657 AC |
2194 | cat >>confdefs.h <<_ACEOF |
2195 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2196 | _ACEOF | |
2197 | ||
b7026657 AC |
2198 | cat >>confdefs.h <<_ACEOF |
2199 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2200 | _ACEOF | |
2201 | ||
b7026657 AC |
2202 | cat >>confdefs.h <<_ACEOF |
2203 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2204 | _ACEOF | |
2205 | ||
b7026657 AC |
2206 | cat >>confdefs.h <<_ACEOF |
2207 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2208 | _ACEOF | |
2209 | ||
81ecdfbb RW |
2210 | cat >>confdefs.h <<_ACEOF |
2211 | #define PACKAGE_URL "$PACKAGE_URL" | |
2212 | _ACEOF | |
2213 | ||
b7026657 AC |
2214 | |
2215 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2216 | # Prefer an explicitly selected file to automatically selected ones. |
2217 | ac_site_file1=NONE | |
2218 | ac_site_file2=NONE | |
2219 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2220 | # We do not want a PATH search for config.site. |
2221 | case $CONFIG_SITE in #(( | |
2222 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2223 | */*) ac_site_file1=$CONFIG_SITE;; | |
2224 | *) ac_site_file1=./$CONFIG_SITE;; | |
2225 | esac | |
81ecdfbb RW |
2226 | elif test "x$prefix" != xNONE; then |
2227 | ac_site_file1=$prefix/share/config.site | |
2228 | ac_site_file2=$prefix/etc/config.site | |
2229 | else | |
2230 | ac_site_file1=$ac_default_prefix/share/config.site | |
2231 | ac_site_file2=$ac_default_prefix/etc/config.site | |
c906108c | 2232 | fi |
81ecdfbb RW |
2233 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2234 | do | |
2235 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2236 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2238 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b7026657 | 2239 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2240 | . "$ac_site_file" \ |
2241 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2242 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2243 | as_fn_error $? "failed to load site script $ac_site_file | |
2244 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c SS |
2245 | fi |
2246 | done | |
2247 | ||
2248 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2249 | # Some versions of bash will fail to source /dev/null (special files |
2250 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2251 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2253 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b7026657 | 2254 | case $cache_file in |
81ecdfbb RW |
2255 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2256 | *) . "./$cache_file";; | |
b7026657 AC |
2257 | esac |
2258 | fi | |
c906108c | 2259 | else |
81ecdfbb RW |
2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2261 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b7026657 | 2262 | >$cache_file |
c906108c SS |
2263 | fi |
2264 | ||
b15c5d7a MF |
2265 | as_fn_append ac_header_list " dlfcn.h" |
2266 | as_fn_append ac_header_list " fcntl.h" | |
2267 | as_fn_append ac_header_list " fpu_control.h" | |
2268 | as_fn_append ac_header_list " termios.h" | |
2269 | as_fn_append ac_header_list " unistd.h" | |
2270 | as_fn_append ac_header_list " utime.h" | |
2271 | as_fn_append ac_header_list " linux/if_tun.h" | |
2272 | as_fn_append ac_header_list " linux/mii.h" | |
2273 | as_fn_append ac_header_list " linux/types.h" | |
2274 | as_fn_append ac_header_list " net/if.h" | |
2275 | as_fn_append ac_header_list " netinet/in.h" | |
2276 | as_fn_append ac_header_list " netinet/tcp.h" | |
2277 | as_fn_append ac_header_list " sys/ioctl.h" | |
2278 | as_fn_append ac_header_list " sys/mman.h" | |
2279 | as_fn_append ac_header_list " sys/param.h" | |
2280 | as_fn_append ac_header_list " sys/resource.h" | |
2281 | as_fn_append ac_header_list " sys/select.h" | |
2282 | as_fn_append ac_header_list " sys/socket.h" | |
2283 | as_fn_append ac_header_list " sys/stat.h" | |
2284 | as_fn_append ac_func_list " __setfpucw" | |
2285 | as_fn_append ac_func_list " aint" | |
2286 | as_fn_append ac_func_list " anint" | |
2287 | as_fn_append ac_func_list " chmod" | |
2288 | as_fn_append ac_func_list " execv" | |
2289 | as_fn_append ac_func_list " execve" | |
2290 | as_fn_append ac_func_list " fork" | |
2291 | as_fn_append ac_func_list " ftruncate" | |
2292 | as_fn_append ac_func_list " geteuid" | |
2293 | as_fn_append ac_func_list " getegid" | |
2294 | as_fn_append ac_func_list " getgid" | |
2295 | as_fn_append ac_func_list " getrusage" | |
2296 | as_fn_append ac_func_list " getuid" | |
2297 | as_fn_append ac_func_list " kill" | |
2298 | as_fn_append ac_func_list " lstat" | |
2299 | as_fn_append ac_func_list " mmap" | |
2300 | as_fn_append ac_func_list " munmap" | |
2301 | as_fn_append ac_func_list " posix_fallocate" | |
2302 | as_fn_append ac_func_list " pread" | |
2303 | as_fn_append ac_func_list " setuid" | |
2304 | as_fn_append ac_func_list " setgid" | |
2305 | as_fn_append ac_func_list " sigaction" | |
2306 | as_fn_append ac_func_list " sqrt" | |
2307 | as_fn_append ac_func_list " strsignal" | |
2308 | as_fn_append ac_func_list " time" | |
2309 | as_fn_append ac_func_list " truncate" | |
2310 | as_fn_append ac_func_list " utime" | |
b7026657 AC |
2311 | # Check that the precious variables saved in the cache have kept the same |
2312 | # value. | |
2313 | ac_cache_corrupted=false | |
81ecdfbb | 2314 | for ac_var in $ac_precious_vars; do |
b7026657 AC |
2315 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2316 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2317 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2318 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b7026657 AC |
2319 | case $ac_old_set,$ac_new_set in |
2320 | set,) | |
81ecdfbb RW |
2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2322 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b7026657 AC |
2323 | ac_cache_corrupted=: ;; |
2324 | ,set) | |
81ecdfbb RW |
2325 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2326 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b7026657 AC |
2327 | ac_cache_corrupted=: ;; |
2328 | ,);; | |
2329 | *) | |
2330 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2331 | # differences in whitespace do not lead to failure. |
2332 | ac_old_val_w=`echo x $ac_old_val` | |
2333 | ac_new_val_w=`echo x $ac_new_val` | |
2334 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2336 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2337 | ac_cache_corrupted=: | |
2338 | else | |
2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2340 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2341 | eval $ac_var=\$ac_old_val | |
2342 | fi | |
2343 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2344 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2346 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b7026657 AC |
2347 | fi;; |
2348 | esac | |
2349 | # Pass precious variables to config.status. | |
2350 | if test "$ac_new_set" = set; then | |
2351 | case $ac_new_val in | |
81ecdfbb | 2352 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b7026657 AC |
2353 | *) ac_arg=$ac_var=$ac_new_val ;; |
2354 | esac | |
2355 | case " $ac_configure_args " in | |
2356 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2357 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b7026657 | 2358 | esac |
c906108c | 2359 | fi |
b7026657 AC |
2360 | done |
2361 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2363 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2364 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2365 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2366 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c906108c | 2367 | fi |
81ecdfbb RW |
2368 | ## -------------------- ## |
2369 | ## Main body of script. ## | |
2370 | ## -------------------- ## | |
c906108c | 2371 | |
fdd6fa61 AG |
2372 | ac_ext=c |
2373 | ac_cpp='$CPP $CPPFLAGS' | |
2374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2377 | ||
c906108c SS |
2378 | |
2379 | ||
8c379db2 TT |
2380 | |
2381 | ||
2382 | ||
b15c5d7a MF |
2383 | ac_config_headers="$ac_config_headers config.h" |
2384 | ||
2385 | ||
6bddc3e8 MF |
2386 | ac_aux_dir= |
2387 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2388 | if test -f "$ac_dir/install-sh"; then | |
2389 | ac_aux_dir=$ac_dir | |
2390 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2391 | break | |
2392 | elif test -f "$ac_dir/install.sh"; then | |
2393 | ac_aux_dir=$ac_dir | |
2394 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2395 | break | |
2396 | elif test -f "$ac_dir/shtool"; then | |
2397 | ac_aux_dir=$ac_dir | |
2398 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2399 | break | |
b7026657 AC |
2400 | fi |
2401 | done | |
6bddc3e8 MF |
2402 | if test -z "$ac_aux_dir"; then |
2403 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
c906108c SS |
2404 | fi |
2405 | ||
6bddc3e8 MF |
2406 | # These three variables are undocumented and unsupported, |
2407 | # and are intended to be withdrawn in a future Autoconf release. | |
2408 | # They can cause serious problems if a builder's source tree is in a directory | |
2409 | # whose full name contains unusual characters. | |
2410 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2411 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2412 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
81ecdfbb | 2413 | |
6bddc3e8 MF |
2414 | |
2415 | # Make sure we can run config.sub. | |
2416 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2417 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2418 | ||
2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2420 | $as_echo_n "checking build system type... " >&6; } | |
2421 | if ${ac_cv_build+:} false; then : | |
81ecdfbb | 2422 | $as_echo_n "(cached) " >&6 |
c906108c | 2423 | else |
6bddc3e8 MF |
2424 | ac_build_alias=$build_alias |
2425 | test "x$ac_build_alias" = x && | |
2426 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2427 | test "x$ac_build_alias" = x && | |
2428 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2429 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2430 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
b7026657 AC |
2431 | |
2432 | fi | |
6bddc3e8 MF |
2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2434 | $as_echo "$ac_cv_build" >&6; } | |
2435 | case $ac_cv_build in | |
2436 | *-*-*) ;; | |
2437 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
81ecdfbb | 2438 | esac |
6bddc3e8 MF |
2439 | build=$ac_cv_build |
2440 | ac_save_IFS=$IFS; IFS='-' | |
2441 | set x $ac_cv_build | |
2442 | shift | |
2443 | build_cpu=$1 | |
2444 | build_vendor=$2 | |
2445 | shift; shift | |
2446 | # Remember, the first character of IFS is used to create $*, | |
2447 | # except with old shells: | |
2448 | build_os=$* | |
2449 | IFS=$ac_save_IFS | |
2450 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
b7026657 | 2451 | |
6bddc3e8 MF |
2452 | |
2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2454 | $as_echo_n "checking host system type... " >&6; } | |
2455 | if ${ac_cv_host+:} false; then : | |
81ecdfbb | 2456 | $as_echo_n "(cached) " >&6 |
b7026657 | 2457 | else |
6bddc3e8 MF |
2458 | if test "x$host_alias" = x; then |
2459 | ac_cv_host=$ac_cv_build | |
b7026657 | 2460 | else |
6bddc3e8 MF |
2461 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2462 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
b7026657 | 2463 | fi |
6bddc3e8 | 2464 | |
fdd6fa61 | 2465 | fi |
6bddc3e8 MF |
2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2467 | $as_echo "$ac_cv_host" >&6; } | |
2468 | case $ac_cv_host in | |
2469 | *-*-*) ;; | |
2470 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2471 | esac | |
2472 | host=$ac_cv_host | |
2473 | ac_save_IFS=$IFS; IFS='-' | |
2474 | set x $ac_cv_host | |
2475 | shift | |
2476 | host_cpu=$1 | |
2477 | host_vendor=$2 | |
2478 | shift; shift | |
2479 | # Remember, the first character of IFS is used to create $*, | |
2480 | # except with old shells: | |
2481 | host_os=$* | |
2482 | IFS=$ac_save_IFS | |
2483 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
fdd6fa61 | 2484 | |
fdd6fa61 | 2485 | |
6bddc3e8 MF |
2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2487 | $as_echo_n "checking target system type... " >&6; } | |
2488 | if ${ac_cv_target+:} false; then : | |
81ecdfbb | 2489 | $as_echo_n "(cached) " >&6 |
b7026657 | 2490 | else |
6bddc3e8 MF |
2491 | if test "x$target_alias" = x; then |
2492 | ac_cv_target=$ac_cv_host | |
c906108c | 2493 | else |
6bddc3e8 MF |
2494 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2495 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2496 | fi | |
2497 | ||
2498 | fi | |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2500 | $as_echo "$ac_cv_target" >&6; } | |
2501 | case $ac_cv_target in | |
2502 | *-*-*) ;; | |
2503 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2504 | esac | |
2505 | target=$ac_cv_target | |
2506 | ac_save_IFS=$IFS; IFS='-' | |
2507 | set x $ac_cv_target | |
2508 | shift | |
2509 | target_cpu=$1 | |
2510 | target_vendor=$2 | |
2511 | shift; shift | |
2512 | # Remember, the first character of IFS is used to create $*, | |
2513 | # except with old shells: | |
2514 | target_os=$* | |
2515 | IFS=$ac_save_IFS | |
2516 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2517 | ||
2518 | ||
2519 | # The aliases save the names the user supplied, while $host etc. | |
2520 | # will get canonicalized. | |
2521 | test -n "$target_alias" && | |
2522 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2523 | NONENONEs,x,x, && | |
2524 | program_prefix=${target_alias}- | |
c2783492 MF |
2525 | # Expand $ac_aux_dir to an absolute path. |
2526 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
6bddc3e8 | 2527 | |
c2783492 MF |
2528 | ac_ext=c |
2529 | ac_cpp='$CPP $CPPFLAGS' | |
2530 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2531 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2532 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2533 | if test -n "$ac_tool_prefix"; then | |
2534 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2535 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2537 | $as_echo_n "checking for $ac_word... " >&6; } | |
2538 | if ${ac_cv_prog_CC+:} false; then : | |
2539 | $as_echo_n "(cached) " >&6 | |
8c379db2 | 2540 | else |
c2783492 MF |
2541 | if test -n "$CC"; then |
2542 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2543 | else | |
2544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2545 | for as_dir in $PATH | |
2546 | do | |
2547 | IFS=$as_save_IFS | |
2548 | test -z "$as_dir" && as_dir=. | |
2549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2550 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2551 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2553 | break 2 | |
2554 | fi | |
2555 | done | |
2556 | done | |
2557 | IFS=$as_save_IFS | |
8c379db2 | 2558 | |
c2783492 MF |
2559 | fi |
2560 | fi | |
2561 | CC=$ac_cv_prog_CC | |
2562 | if test -n "$CC"; then | |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2564 | $as_echo "$CC" >&6; } | |
8c379db2 | 2565 | else |
c2783492 MF |
2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2567 | $as_echo "no" >&6; } | |
8c379db2 TT |
2568 | fi |
2569 | ||
6bddc3e8 | 2570 | |
c2783492 MF |
2571 | fi |
2572 | if test -z "$ac_cv_prog_CC"; then | |
2573 | ac_ct_CC=$CC | |
2574 | # Extract the first word of "gcc", so it can be a program name with args. | |
2575 | set dummy gcc; ac_word=$2 | |
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2577 | $as_echo_n "checking for $ac_word... " >&6; } | |
2578 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
6bddc3e8 MF |
2579 | $as_echo_n "(cached) " >&6 |
2580 | else | |
c2783492 MF |
2581 | if test -n "$ac_ct_CC"; then |
2582 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2583 | else | |
2584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6bddc3e8 MF |
2585 | for as_dir in $PATH |
2586 | do | |
2587 | IFS=$as_save_IFS | |
2588 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
2589 | for ac_exec_ext in '' $ac_executable_extensions; do |
2590 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2591 | ac_cv_prog_ac_ct_CC="gcc" | |
2592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2593 | break 2 | |
2594 | fi | |
2595 | done | |
6bddc3e8 MF |
2596 | done |
2597 | IFS=$as_save_IFS | |
2598 | ||
6bddc3e8 | 2599 | fi |
6bddc3e8 | 2600 | fi |
c2783492 MF |
2601 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2602 | if test -n "$ac_ct_CC"; then | |
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2604 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 | 2605 | else |
c2783492 MF |
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2607 | $as_echo "no" >&6; } | |
6bddc3e8 MF |
2608 | fi |
2609 | ||
c2783492 MF |
2610 | if test "x$ac_ct_CC" = x; then |
2611 | CC="" | |
2612 | else | |
2613 | case $cross_compiling:$ac_tool_warned in | |
2614 | yes:) | |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2616 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2617 | ac_tool_warned=yes ;; | |
2618 | esac | |
2619 | CC=$ac_ct_CC | |
2620 | fi | |
6bddc3e8 | 2621 | else |
c2783492 | 2622 | CC="$ac_cv_prog_CC" |
6bddc3e8 MF |
2623 | fi |
2624 | ||
c2783492 MF |
2625 | if test -z "$CC"; then |
2626 | if test -n "$ac_tool_prefix"; then | |
2627 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2628 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
6bddc3e8 MF |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2630 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 2631 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
2632 | $as_echo_n "(cached) " >&6 |
2633 | else | |
c2783492 MF |
2634 | if test -n "$CC"; then |
2635 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 MF |
2636 | else |
2637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2638 | for as_dir in $PATH | |
2639 | do | |
2640 | IFS=$as_save_IFS | |
2641 | test -z "$as_dir" && as_dir=. | |
2642 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 2644 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
6bddc3e8 MF |
2645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2646 | break 2 | |
2647 | fi | |
2648 | done | |
2649 | done | |
2650 | IFS=$as_save_IFS | |
2651 | ||
2652 | fi | |
2653 | fi | |
c2783492 MF |
2654 | CC=$ac_cv_prog_CC |
2655 | if test -n "$CC"; then | |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2657 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
2658 | else |
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2660 | $as_echo "no" >&6; } | |
2661 | fi | |
2662 | ||
2663 | ||
c2783492 | 2664 | fi |
6bddc3e8 | 2665 | fi |
c2783492 MF |
2666 | if test -z "$CC"; then |
2667 | # Extract the first word of "cc", so it can be a program name with args. | |
2668 | set dummy cc; ac_word=$2 | |
6bddc3e8 MF |
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2670 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 2671 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
2672 | $as_echo_n "(cached) " >&6 |
2673 | else | |
c2783492 MF |
2674 | if test -n "$CC"; then |
2675 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 | 2676 | else |
c2783492 | 2677 | ac_prog_rejected=no |
6bddc3e8 MF |
2678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2679 | for as_dir in $PATH | |
2680 | do | |
2681 | IFS=$as_save_IFS | |
2682 | test -z "$as_dir" && as_dir=. | |
2683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2684 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 MF |
2685 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2686 | ac_prog_rejected=yes | |
2687 | continue | |
2688 | fi | |
2689 | ac_cv_prog_CC="cc" | |
6bddc3e8 MF |
2690 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2691 | break 2 | |
2692 | fi | |
2693 | done | |
2694 | done | |
2695 | IFS=$as_save_IFS | |
2696 | ||
c2783492 MF |
2697 | if test $ac_prog_rejected = yes; then |
2698 | # We found a bogon in the path, so make sure we never use it. | |
2699 | set dummy $ac_cv_prog_CC | |
2700 | shift | |
2701 | if test $# != 0; then | |
2702 | # We chose a different compiler from the bogus one. | |
2703 | # However, it has the same basename, so the bogon will be chosen | |
2704 | # first if we set CC to just the basename; use the full file name. | |
2705 | shift | |
2706 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2707 | fi | |
6bddc3e8 MF |
2708 | fi |
2709 | fi | |
c2783492 MF |
2710 | fi |
2711 | CC=$ac_cv_prog_CC | |
2712 | if test -n "$CC"; then | |
2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2714 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
2715 | else |
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2717 | $as_echo "no" >&6; } | |
2718 | fi | |
2719 | ||
6bddc3e8 MF |
2720 | |
2721 | fi | |
c2783492 MF |
2722 | if test -z "$CC"; then |
2723 | if test -n "$ac_tool_prefix"; then | |
2724 | for ac_prog in cl.exe | |
2725 | do | |
2726 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2727 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2729 | $as_echo_n "checking for $ac_word... " >&6; } | |
2730 | if ${ac_cv_prog_CC+:} false; then : | |
6bddc3e8 MF |
2731 | $as_echo_n "(cached) " >&6 |
2732 | else | |
c2783492 MF |
2733 | if test -n "$CC"; then |
2734 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2735 | else | |
2736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2737 | for as_dir in $PATH | |
6bddc3e8 MF |
2738 | do |
2739 | IFS=$as_save_IFS | |
2740 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
2741 | for ac_exec_ext in '' $ac_executable_extensions; do |
2742 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2743 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2745 | break 2 | |
2746 | fi | |
2747 | done | |
6bddc3e8 MF |
2748 | done |
2749 | IFS=$as_save_IFS | |
2750 | ||
2751 | fi | |
6bddc3e8 | 2752 | fi |
c2783492 MF |
2753 | CC=$ac_cv_prog_CC |
2754 | if test -n "$CC"; then | |
2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2756 | $as_echo "$CC" >&6; } | |
2757 | else | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2759 | $as_echo "no" >&6; } | |
2760 | fi | |
6bddc3e8 | 2761 | |
c2783492 MF |
2762 | |
2763 | test -n "$CC" && break | |
2764 | done | |
2765 | fi | |
2766 | if test -z "$CC"; then | |
2767 | ac_ct_CC=$CC | |
2768 | for ac_prog in cl.exe | |
6bddc3e8 MF |
2769 | do |
2770 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2771 | set dummy $ac_prog; ac_word=$2 | |
2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2773 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 2774 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bddc3e8 MF |
2775 | $as_echo_n "(cached) " >&6 |
2776 | else | |
c2783492 MF |
2777 | if test -n "$ac_ct_CC"; then |
2778 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6bddc3e8 MF |
2779 | else |
2780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2781 | for as_dir in $PATH | |
2782 | do | |
2783 | IFS=$as_save_IFS | |
2784 | test -z "$as_dir" && as_dir=. | |
2785 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2786 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 2787 | ac_cv_prog_ac_ct_CC="$ac_prog" |
6bddc3e8 MF |
2788 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2789 | break 2 | |
2790 | fi | |
2791 | done | |
2792 | done | |
2793 | IFS=$as_save_IFS | |
2794 | ||
2795 | fi | |
2796 | fi | |
c2783492 MF |
2797 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2798 | if test -n "$ac_ct_CC"; then | |
2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2800 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 MF |
2801 | else |
2802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2803 | $as_echo "no" >&6; } | |
2804 | fi | |
2805 | ||
2806 | ||
c2783492 | 2807 | test -n "$ac_ct_CC" && break |
6bddc3e8 MF |
2808 | done |
2809 | ||
c2783492 MF |
2810 | if test "x$ac_ct_CC" = x; then |
2811 | CC="" | |
2812 | else | |
2813 | case $cross_compiling:$ac_tool_warned in | |
2814 | yes:) | |
2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2816 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2817 | ac_tool_warned=yes ;; | |
6bddc3e8 | 2818 | esac |
c2783492 | 2819 | CC=$ac_ct_CC |
6bddc3e8 MF |
2820 | fi |
2821 | fi | |
2822 | ||
6bddc3e8 MF |
2823 | fi |
2824 | ||
2825 | ||
c2783492 MF |
2826 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2827 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2828 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2829 | See \`config.log' for more details" "$LINENO" 5; } | |
6bddc3e8 | 2830 | |
c2783492 MF |
2831 | # Provide some information about the compiler. |
2832 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2833 | set X $ac_compile | |
2834 | ac_compiler=$2 | |
2835 | for ac_option in --version -v -V -qversion; do | |
2836 | { { ac_try="$ac_compiler $ac_option >&5" | |
2837 | case "(($ac_try" in | |
2838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2839 | *) ac_try_echo=$ac_try;; | |
2840 | esac | |
2841 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2842 | $as_echo "$ac_try_echo"; } >&5 | |
2843 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2844 | ac_status=$? | |
2845 | if test -s conftest.err; then | |
2846 | sed '10a\ | |
2847 | ... rest of stderr output deleted ... | |
2848 | 10q' conftest.err >conftest.er1 | |
2849 | cat conftest.er1 >&5 | |
2850 | fi | |
2851 | rm -f conftest.er1 conftest.err | |
2852 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2853 | test $ac_status = 0; } | |
2854 | done | |
6bddc3e8 | 2855 | |
c2783492 MF |
2856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2857 | /* end confdefs.h. */ | |
6bddc3e8 | 2858 | |
c2783492 MF |
2859 | int |
2860 | main () | |
2861 | { | |
6bddc3e8 | 2862 | |
c2783492 MF |
2863 | ; |
2864 | return 0; | |
2865 | } | |
6bddc3e8 | 2866 | _ACEOF |
c2783492 MF |
2867 | ac_clean_files_save=$ac_clean_files |
2868 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2869 | # Try to create an executable without -o first, disregard a.out. | |
2870 | # It will help us diagnose broken compilers, and finding out an intuition | |
2871 | # of exeext. | |
2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2873 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2874 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
6bddc3e8 | 2875 | |
c2783492 MF |
2876 | # The possible output files: |
2877 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
6bddc3e8 | 2878 | |
c2783492 MF |
2879 | ac_rmfiles= |
2880 | for ac_file in $ac_files | |
2881 | do | |
2882 | case $ac_file in | |
2883 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2884 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2885 | esac | |
2886 | done | |
2887 | rm -f $ac_rmfiles | |
81ecdfbb RW |
2888 | |
2889 | if { { ac_try="$ac_link_default" | |
2890 | case "(($ac_try" in | |
2891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2892 | *) ac_try_echo=$ac_try;; | |
2893 | esac | |
2894 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2895 | $as_echo "$ac_try_echo"; } >&5 | |
2896 | (eval "$ac_link_default") 2>&5 | |
b7026657 | 2897 | ac_status=$? |
81ecdfbb RW |
2898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2899 | test $ac_status = 0; }; then : | |
2900 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2901 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2902 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2903 | # so that the user can short-circuit this test for compilers unknown to | |
2904 | # Autoconf. | |
2905 | for ac_file in $ac_files '' | |
b7026657 AC |
2906 | do |
2907 | test -f "$ac_file" || continue | |
2908 | case $ac_file in | |
81ecdfbb | 2909 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b7026657 AC |
2910 | ;; |
2911 | [ab].out ) | |
2912 | # We found the default executable, but exeext='' is most | |
2913 | # certainly right. | |
2914 | break;; | |
2915 | *.* ) | |
81ecdfbb RW |
2916 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2917 | then :; else | |
2918 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2919 | fi | |
2920 | # We set ac_cv_exeext here because the later test for it is not | |
2921 | # safe: cross compilers may not add the suffix if given an `-o' | |
2922 | # argument, so we may need to know it at that point already. | |
2923 | # Even if this section looks crufty: it has the advantage of | |
2924 | # actually working. | |
b7026657 AC |
2925 | break;; |
2926 | * ) | |
2927 | break;; | |
2928 | esac | |
2929 | done | |
81ecdfbb RW |
2930 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2931 | ||
b7026657 | 2932 | else |
81ecdfbb RW |
2933 | ac_file='' |
2934 | fi | |
81ecdfbb | 2935 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2937 | $as_echo "no" >&6; } | |
2938 | $as_echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
2939 | sed 's/^/| /' conftest.$ac_ext >&5 |
2940 | ||
81ecdfbb RW |
2941 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2942 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2943 | as_fn_error 77 "C compiler cannot create executables |
2944 | See \`config.log' for more details" "$LINENO" 5; } | |
2945 | else | |
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2947 | $as_echo "yes" >&6; } | |
b7026657 | 2948 | fi |
d0ac1c44 SM |
2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2950 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2952 | $as_echo "$ac_file" >&6; } | |
b7026657 | 2953 | ac_exeext=$ac_cv_exeext |
b7026657 | 2954 | |
d0ac1c44 | 2955 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b7026657 | 2956 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2958 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2959 | if { { ac_try="$ac_link" | |
2960 | case "(($ac_try" in | |
2961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2962 | *) ac_try_echo=$ac_try;; | |
2963 | esac | |
2964 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2965 | $as_echo "$ac_try_echo"; } >&5 | |
2966 | (eval "$ac_link") 2>&5 | |
b7026657 | 2967 | ac_status=$? |
81ecdfbb RW |
2968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2969 | test $ac_status = 0; }; then : | |
b7026657 AC |
2970 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2971 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2972 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2973 | # `rm'. | |
2974 | for ac_file in conftest.exe conftest conftest.*; do | |
2975 | test -f "$ac_file" || continue | |
2976 | case $ac_file in | |
81ecdfbb | 2977 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b7026657 | 2978 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b7026657 AC |
2979 | break;; |
2980 | * ) break;; | |
2981 | esac | |
2982 | done | |
c906108c | 2983 | else |
81ecdfbb RW |
2984 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2985 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2986 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2987 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 2988 | fi |
d0ac1c44 | 2989 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2991 | $as_echo "$ac_cv_exeext" >&6; } | |
b7026657 AC |
2992 | |
2993 | rm -f conftest.$ac_ext | |
2994 | EXEEXT=$ac_cv_exeext | |
2995 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
2996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2997 | /* end confdefs.h. */ | |
2998 | #include <stdio.h> | |
2999 | int | |
3000 | main () | |
3001 | { | |
3002 | FILE *f = fopen ("conftest.out", "w"); | |
3003 | return ferror (f) || fclose (f) != 0; | |
3004 | ||
3005 | ; | |
3006 | return 0; | |
3007 | } | |
3008 | _ACEOF | |
3009 | ac_clean_files="$ac_clean_files conftest.out" | |
3010 | # Check that the compiler produces executables we can run. If not, either | |
3011 | # the compiler is broken, or we cross compile. | |
3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3013 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3014 | if test "$cross_compiling" != yes; then | |
3015 | { { ac_try="$ac_link" | |
3016 | case "(($ac_try" in | |
3017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3018 | *) ac_try_echo=$ac_try;; | |
3019 | esac | |
3020 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3021 | $as_echo "$ac_try_echo"; } >&5 | |
3022 | (eval "$ac_link") 2>&5 | |
3023 | ac_status=$? | |
3024 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3025 | test $ac_status = 0; } | |
3026 | if { ac_try='./conftest$ac_cv_exeext' | |
3027 | { { case "(($ac_try" in | |
3028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3029 | *) ac_try_echo=$ac_try;; | |
3030 | esac | |
3031 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3032 | $as_echo "$ac_try_echo"; } >&5 | |
3033 | (eval "$ac_try") 2>&5 | |
3034 | ac_status=$? | |
3035 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3036 | test $ac_status = 0; }; }; then | |
3037 | cross_compiling=no | |
3038 | else | |
3039 | if test "$cross_compiling" = maybe; then | |
3040 | cross_compiling=yes | |
3041 | else | |
3042 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3043 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3044 | as_fn_error $? "cannot run C compiled programs. | |
3045 | If you meant to cross compile, use \`--host'. | |
3046 | See \`config.log' for more details" "$LINENO" 5; } | |
3047 | fi | |
3048 | fi | |
3049 | fi | |
3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3051 | $as_echo "$cross_compiling" >&6; } | |
3052 | ||
3053 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3054 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
3055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3056 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 3057 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 3058 | $as_echo_n "(cached) " >&6 |
b7026657 | 3059 | else |
81ecdfbb | 3060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3061 | /* end confdefs.h. */ |
3062 | ||
3063 | int | |
3064 | main () | |
3065 | { | |
3066 | ||
3067 | ; | |
3068 | return 0; | |
3069 | } | |
3070 | _ACEOF | |
3071 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3072 | if { { ac_try="$ac_compile" |
3073 | case "(($ac_try" in | |
3074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3075 | *) ac_try_echo=$ac_try;; | |
3076 | esac | |
3077 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3078 | $as_echo "$ac_try_echo"; } >&5 | |
3079 | (eval "$ac_compile") 2>&5 | |
b7026657 | 3080 | ac_status=$? |
81ecdfbb RW |
3081 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3082 | test $ac_status = 0; }; then : | |
3083 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3084 | test -f "$ac_file" || continue; | |
b7026657 | 3085 | case $ac_file in |
81ecdfbb | 3086 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b7026657 AC |
3087 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3088 | break;; | |
3089 | esac | |
3090 | done | |
3091 | else | |
81ecdfbb | 3092 | $as_echo "$as_me: failed program was:" >&5 |
b7026657 AC |
3093 | sed 's/^/| /' conftest.$ac_ext >&5 |
3094 | ||
81ecdfbb RW |
3095 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3096 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3097 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3098 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3099 | fi |
b7026657 AC |
3100 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3101 | fi | |
81ecdfbb RW |
3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3103 | $as_echo "$ac_cv_objext" >&6; } | |
b7026657 AC |
3104 | OBJEXT=$ac_cv_objext |
3105 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3107 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3108 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3109 | $as_echo_n "(cached) " >&6 |
b7026657 | 3110 | else |
81ecdfbb | 3111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3112 | /* end confdefs.h. */ |
3113 | ||
3114 | int | |
3115 | main () | |
3116 | { | |
3117 | #ifndef __GNUC__ | |
3118 | choke me | |
3119 | #endif | |
c906108c | 3120 | |
b7026657 AC |
3121 | ; |
3122 | return 0; | |
3123 | } | |
3124 | _ACEOF | |
81ecdfbb | 3125 | if ac_fn_c_try_compile "$LINENO"; then : |
b7026657 | 3126 | ac_compiler_gnu=yes |
c906108c | 3127 | else |
81ecdfbb | 3128 | ac_compiler_gnu=no |
c906108c | 3129 | fi |
81ecdfbb | 3130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 3131 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
c906108c | 3132 | |
b7026657 | 3133 | fi |
81ecdfbb RW |
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3135 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3136 | if test $ac_compiler_gnu = yes; then | |
3137 | GCC=yes | |
3138 | else | |
3139 | GCC= | |
3140 | fi | |
b7026657 AC |
3141 | ac_test_CFLAGS=${CFLAGS+set} |
3142 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3144 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3145 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb | 3146 | $as_echo_n "(cached) " >&6 |
c906108c | 3147 | else |
81ecdfbb RW |
3148 | ac_save_c_werror_flag=$ac_c_werror_flag |
3149 | ac_c_werror_flag=yes | |
3150 | ac_cv_prog_cc_g=no | |
3151 | CFLAGS="-g" | |
3152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 AC |
3153 | /* end confdefs.h. */ |
3154 | ||
3155 | int | |
3156 | main () | |
3157 | { | |
3158 | ||
3159 | ; | |
3160 | return 0; | |
3161 | } | |
3162 | _ACEOF | |
81ecdfbb | 3163 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
3164 | ac_cv_prog_cc_g=yes |
3165 | else | |
81ecdfbb RW |
3166 | CFLAGS="" |
3167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3168 | /* end confdefs.h. */ | |
3169 | ||
3170 | int | |
3171 | main () | |
3172 | { | |
3173 | ||
3174 | ; | |
3175 | return 0; | |
3176 | } | |
3177 | _ACEOF | |
3178 | if ac_fn_c_try_compile "$LINENO"; then : | |
3179 | ||
3180 | else | |
3181 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3182 | CFLAGS="-g" | |
3183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3184 | /* end confdefs.h. */ | |
3185 | ||
3186 | int | |
3187 | main () | |
3188 | { | |
c906108c | 3189 | |
81ecdfbb RW |
3190 | ; |
3191 | return 0; | |
3192 | } | |
3193 | _ACEOF | |
3194 | if ac_fn_c_try_compile "$LINENO"; then : | |
3195 | ac_cv_prog_cc_g=yes | |
3196 | fi | |
3197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3198 | fi |
81ecdfbb | 3199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 3200 | fi |
81ecdfbb RW |
3201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3202 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3203 | fi | |
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3205 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
c906108c | 3206 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 3207 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
3208 | elif test $ac_cv_prog_cc_g = yes; then |
3209 | if test "$GCC" = yes; then | |
3210 | CFLAGS="-g -O2" | |
3211 | else | |
3212 | CFLAGS="-g" | |
3213 | fi | |
3214 | else | |
3215 | if test "$GCC" = yes; then | |
3216 | CFLAGS="-O2" | |
3217 | else | |
3218 | CFLAGS= | |
3219 | fi | |
3220 | fi | |
81ecdfbb RW |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3222 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3223 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3224 | $as_echo_n "(cached) " >&6 |
b7026657 | 3225 | else |
81ecdfbb | 3226 | ac_cv_prog_cc_c89=no |
b7026657 | 3227 | ac_save_CC=$CC |
81ecdfbb | 3228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3229 | /* end confdefs.h. */ |
3230 | #include <stdarg.h> | |
3231 | #include <stdio.h> | |
d0ac1c44 | 3232 | struct stat; |
b7026657 AC |
3233 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3234 | struct buf { int x; }; | |
3235 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3236 | static char *e (p, i) | |
3237 | char **p; | |
3238 | int i; | |
3239 | { | |
3240 | return p[i]; | |
3241 | } | |
3242 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3243 | { | |
3244 | char *s; | |
3245 | va_list v; | |
3246 | va_start (v,p); | |
3247 | s = g (p, va_arg (v,int)); | |
3248 | va_end (v); | |
3249 | return s; | |
3250 | } | |
3251 | ||
3252 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3253 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3254 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3255 | as 'x'. The following induces an error, until -std is added to get |
b7026657 AC |
3256 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3257 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3258 | that's true only with -std. */ |
b7026657 AC |
3259 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3260 | ||
81ecdfbb RW |
3261 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3262 | inside strings and character constants. */ | |
3263 | #define FOO(x) 'x' | |
3264 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3265 | ||
b7026657 AC |
3266 | int test (int i, double x); |
3267 | struct s1 {int (*f) (int a);}; | |
3268 | struct s2 {int (*f) (double a);}; | |
3269 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3270 | int argc; | |
3271 | char **argv; | |
3272 | int | |
3273 | main () | |
3274 | { | |
3275 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3276 | ; | |
3277 | return 0; | |
3278 | } | |
3279 | _ACEOF | |
81ecdfbb RW |
3280 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3281 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b7026657 AC |
3282 | do |
3283 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3284 | if ac_fn_c_try_compile "$LINENO"; then : |
3285 | ac_cv_prog_cc_c89=$ac_arg | |
b7026657 | 3286 | fi |
81ecdfbb RW |
3287 | rm -f core conftest.err conftest.$ac_objext |
3288 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b7026657 | 3289 | done |
81ecdfbb | 3290 | rm -f conftest.$ac_ext |
b7026657 AC |
3291 | CC=$ac_save_CC |
3292 | ||
3293 | fi | |
81ecdfbb RW |
3294 | # AC_CACHE_VAL |
3295 | case "x$ac_cv_prog_cc_c89" in | |
3296 | x) | |
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3298 | $as_echo "none needed" >&6; } ;; | |
3299 | xno) | |
3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3301 | $as_echo "unsupported" >&6; } ;; | |
b7026657 | 3302 | *) |
81ecdfbb RW |
3303 | CC="$CC $ac_cv_prog_cc_c89" |
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3305 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b7026657 | 3306 | esac |
81ecdfbb | 3307 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b7026657 | 3308 | |
fdd6fa61 AG |
3309 | fi |
3310 | ||
fdd6fa61 AG |
3311 | ac_ext=c |
3312 | ac_cpp='$CPP $CPPFLAGS' | |
3313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3316 | ||
c2783492 MF |
3317 | ac_ext=c |
3318 | ac_cpp='$CPP $CPPFLAGS' | |
3319 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3320 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3321 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3323 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3324 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3325 | $as_echo_n "(cached) " >&6 | |
3326 | else | |
3327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3328 | /* end confdefs.h. */ | |
3329 | ||
3330 | int | |
3331 | main () | |
3332 | { | |
3333 | ||
3334 | ; | |
3335 | return 0; | |
3336 | } | |
3337 | _ACEOF | |
3338 | # Make sure it works both with $CC and with simple cc. | |
3339 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3340 | # compilers refuse to overwrite an existing .o file with -o, | |
3341 | # though they will create one. | |
3342 | am_cv_prog_cc_c_o=yes | |
3343 | for am_i in 1 2; do | |
3344 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3345 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3346 | ac_status=$? | |
3347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3348 | (exit $ac_status); } \ | |
3349 | && test -f conftest2.$ac_objext; then | |
3350 | : OK | |
3351 | else | |
3352 | am_cv_prog_cc_c_o=no | |
3353 | break | |
3354 | fi | |
3355 | done | |
3356 | rm -f core conftest* | |
3357 | unset am_i | |
3358 | fi | |
3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3360 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3361 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3362 | # Losing compiler, so override with the script. | |
3363 | # FIXME: It is wrong to rewrite CC. | |
3364 | # But if we don't then we get into trouble of one sort or another. | |
3365 | # A longer-term fix would be to have automake use am__CC in this case, | |
3366 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3367 | CC="$am_aux_dir/compile $CC" | |
3368 | fi | |
3369 | ac_ext=c | |
3370 | ac_cpp='$CPP $CPPFLAGS' | |
3371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3374 | ||
3375 | ||
3376 | ||
3377 | ac_ext=c | |
3378 | ac_cpp='$CPP $CPPFLAGS' | |
3379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3383 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3384 | # On Suns, sometimes $CPP names a directory. | |
3385 | if test -n "$CPP" && test -d "$CPP"; then | |
3386 | CPP= | |
3387 | fi | |
3388 | if test -z "$CPP"; then | |
3389 | if ${ac_cv_prog_CPP+:} false; then : | |
3390 | $as_echo_n "(cached) " >&6 | |
3391 | else | |
3392 | # Double quotes because CPP needs to be expanded | |
3393 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3394 | do | |
3395 | ac_preproc_ok=false | |
3396 | for ac_c_preproc_warn_flag in '' yes | |
3397 | do | |
3398 | # Use a header file that comes with gcc, so configuring glibc | |
3399 | # with a fresh cross-compiler works. | |
3400 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3401 | # <limits.h> exists even on freestanding compilers. | |
3402 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3403 | # not just through cpp. "Syntax error" is here to catch this case. | |
3404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3405 | /* end confdefs.h. */ | |
3406 | #ifdef __STDC__ | |
3407 | # include <limits.h> | |
3408 | #else | |
3409 | # include <assert.h> | |
3410 | #endif | |
3411 | Syntax error | |
3412 | _ACEOF | |
3413 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3414 | ||
3415 | else | |
3416 | # Broken: fails on valid input. | |
3417 | continue | |
3418 | fi | |
3419 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3420 | ||
3421 | # OK, works on sane cases. Now check whether nonexistent headers | |
3422 | # can be detected and how. | |
3423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3424 | /* end confdefs.h. */ | |
3425 | #include <ac_nonexistent.h> | |
3426 | _ACEOF | |
3427 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3428 | # Broken: success on invalid input. | |
3429 | continue | |
3430 | else | |
3431 | # Passes both tests. | |
3432 | ac_preproc_ok=: | |
3433 | break | |
3434 | fi | |
3435 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3436 | ||
3437 | done | |
3438 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3439 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3440 | if $ac_preproc_ok; then : | |
3441 | break | |
3442 | fi | |
3443 | ||
3444 | done | |
3445 | ac_cv_prog_CPP=$CPP | |
3446 | ||
3447 | fi | |
3448 | CPP=$ac_cv_prog_CPP | |
3449 | else | |
3450 | ac_cv_prog_CPP=$CPP | |
3451 | fi | |
3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3453 | $as_echo "$CPP" >&6; } | |
3454 | ac_preproc_ok=false | |
3455 | for ac_c_preproc_warn_flag in '' yes | |
3456 | do | |
3457 | # Use a header file that comes with gcc, so configuring glibc | |
3458 | # with a fresh cross-compiler works. | |
3459 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3460 | # <limits.h> exists even on freestanding compilers. | |
3461 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3462 | # not just through cpp. "Syntax error" is here to catch this case. | |
3463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3464 | /* end confdefs.h. */ | |
3465 | #ifdef __STDC__ | |
3466 | # include <limits.h> | |
3467 | #else | |
3468 | # include <assert.h> | |
3469 | #endif | |
3470 | Syntax error | |
3471 | _ACEOF | |
3472 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3473 | ||
3474 | else | |
3475 | # Broken: fails on valid input. | |
3476 | continue | |
3477 | fi | |
3478 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3479 | ||
3480 | # OK, works on sane cases. Now check whether nonexistent headers | |
3481 | # can be detected and how. | |
3482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3483 | /* end confdefs.h. */ | |
3484 | #include <ac_nonexistent.h> | |
3485 | _ACEOF | |
3486 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3487 | # Broken: success on invalid input. | |
3488 | continue | |
3489 | else | |
3490 | # Passes both tests. | |
3491 | ac_preproc_ok=: | |
3492 | break | |
3493 | fi | |
3494 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3495 | ||
3496 | done | |
3497 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3498 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3499 | if $ac_preproc_ok; then : | |
3500 | ||
3501 | else | |
3502 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3503 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3504 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3505 | See \`config.log' for more details" "$LINENO" 5; } | |
3506 | fi | |
3507 | ||
3508 | ac_ext=c | |
3509 | ac_cpp='$CPP $CPPFLAGS' | |
3510 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3511 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3512 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3513 | ||
3514 | ||
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3516 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3517 | if ${ac_cv_path_GREP+:} false; then : | |
3518 | $as_echo_n "(cached) " >&6 | |
3519 | else | |
3520 | if test -z "$GREP"; then | |
3521 | ac_path_GREP_found=false | |
3522 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3524 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3525 | do | |
3526 | IFS=$as_save_IFS | |
3527 | test -z "$as_dir" && as_dir=. | |
3528 | for ac_prog in grep ggrep; do | |
3529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3530 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3531 | as_fn_executable_p "$ac_path_GREP" || continue | |
3532 | # Check for GNU ac_path_GREP and select it if it is found. | |
3533 | # Check for GNU $ac_path_GREP | |
3534 | case `"$ac_path_GREP" --version 2>&1` in | |
3535 | *GNU*) | |
3536 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3537 | *) | |
3538 | ac_count=0 | |
3539 | $as_echo_n 0123456789 >"conftest.in" | |
3540 | while : | |
3541 | do | |
3542 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3543 | mv "conftest.tmp" "conftest.in" | |
3544 | cp "conftest.in" "conftest.nl" | |
3545 | $as_echo 'GREP' >> "conftest.nl" | |
3546 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3547 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3548 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3549 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3550 | # Best one so far, save it but keep looking for a better one | |
3551 | ac_cv_path_GREP="$ac_path_GREP" | |
3552 | ac_path_GREP_max=$ac_count | |
3553 | fi | |
3554 | # 10*(2^10) chars as input seems more than enough | |
3555 | test $ac_count -gt 10 && break | |
3556 | done | |
3557 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3558 | esac | |
3559 | ||
3560 | $ac_path_GREP_found && break 3 | |
3561 | done | |
3562 | done | |
3563 | done | |
3564 | IFS=$as_save_IFS | |
3565 | if test -z "$ac_cv_path_GREP"; then | |
3566 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3567 | fi | |
3568 | else | |
3569 | ac_cv_path_GREP=$GREP | |
3570 | fi | |
3571 | ||
3572 | fi | |
3573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3574 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3575 | GREP="$ac_cv_path_GREP" | |
3576 | ||
3577 | ||
3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3579 | $as_echo_n "checking for egrep... " >&6; } | |
3580 | if ${ac_cv_path_EGREP+:} false; then : | |
3581 | $as_echo_n "(cached) " >&6 | |
3582 | else | |
3583 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3584 | then ac_cv_path_EGREP="$GREP -E" | |
3585 | else | |
3586 | if test -z "$EGREP"; then | |
3587 | ac_path_EGREP_found=false | |
3588 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3590 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3591 | do | |
3592 | IFS=$as_save_IFS | |
3593 | test -z "$as_dir" && as_dir=. | |
3594 | for ac_prog in egrep; do | |
3595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3596 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3597 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3598 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3599 | # Check for GNU $ac_path_EGREP | |
3600 | case `"$ac_path_EGREP" --version 2>&1` in | |
3601 | *GNU*) | |
3602 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3603 | *) | |
3604 | ac_count=0 | |
3605 | $as_echo_n 0123456789 >"conftest.in" | |
3606 | while : | |
3607 | do | |
3608 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3609 | mv "conftest.tmp" "conftest.in" | |
3610 | cp "conftest.in" "conftest.nl" | |
3611 | $as_echo 'EGREP' >> "conftest.nl" | |
3612 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3613 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3614 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3615 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3616 | # Best one so far, save it but keep looking for a better one | |
3617 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3618 | ac_path_EGREP_max=$ac_count | |
3619 | fi | |
3620 | # 10*(2^10) chars as input seems more than enough | |
3621 | test $ac_count -gt 10 && break | |
3622 | done | |
3623 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3624 | esac | |
3625 | ||
3626 | $ac_path_EGREP_found && break 3 | |
3627 | done | |
3628 | done | |
3629 | done | |
3630 | IFS=$as_save_IFS | |
3631 | if test -z "$ac_cv_path_EGREP"; then | |
3632 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3633 | fi | |
3634 | else | |
3635 | ac_cv_path_EGREP=$EGREP | |
3636 | fi | |
3637 | ||
3638 | fi | |
3639 | fi | |
3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3641 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3642 | EGREP="$ac_cv_path_EGREP" | |
3643 | ||
3644 | ||
3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3646 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3647 | if ${ac_cv_header_stdc+:} false; then : | |
6bddc3e8 MF |
3648 | $as_echo_n "(cached) " >&6 |
3649 | else | |
3650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3651 | /* end confdefs.h. */ | |
c2783492 MF |
3652 | #include <stdlib.h> |
3653 | #include <stdarg.h> | |
3654 | #include <string.h> | |
3655 | #include <float.h> | |
6bddc3e8 MF |
3656 | |
3657 | int | |
3658 | main () | |
3659 | { | |
3660 | ||
3661 | ; | |
3662 | return 0; | |
3663 | } | |
3664 | _ACEOF | |
c2783492 MF |
3665 | if ac_fn_c_try_compile "$LINENO"; then : |
3666 | ac_cv_header_stdc=yes | |
3667 | else | |
3668 | ac_cv_header_stdc=no | |
fdd6fa61 | 3669 | fi |
c2783492 | 3670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
81ecdfbb | 3671 | |
c2783492 MF |
3672 | if test $ac_cv_header_stdc = yes; then |
3673 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3675 | /* end confdefs.h. */ | |
3676 | #include <string.h> | |
6bddc3e8 | 3677 | |
c2783492 MF |
3678 | _ACEOF |
3679 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3680 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6bddc3e8 | 3681 | |
c2783492 MF |
3682 | else |
3683 | ac_cv_header_stdc=no | |
3684 | fi | |
3685 | rm -f conftest* | |
6bddc3e8 | 3686 | |
6bddc3e8 | 3687 | fi |
81ecdfbb | 3688 | |
c2783492 MF |
3689 | if test $ac_cv_header_stdc = yes; then |
3690 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3692 | /* end confdefs.h. */ | |
3693 | #include <stdlib.h> | |
fdd6fa61 | 3694 | |
c2783492 MF |
3695 | _ACEOF |
3696 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3697 | $EGREP "free" >/dev/null 2>&1; then : | |
6bddc3e8 | 3698 | |
c2783492 MF |
3699 | else |
3700 | ac_cv_header_stdc=no | |
6bddc3e8 | 3701 | fi |
c2783492 | 3702 | rm -f conftest* |
6bddc3e8 | 3703 | |
6bddc3e8 | 3704 | fi |
c2783492 MF |
3705 | |
3706 | if test $ac_cv_header_stdc = yes; then | |
3707 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3708 | if test "$cross_compiling" = yes; then : | |
3709 | : | |
6bddc3e8 | 3710 | else |
c2783492 MF |
3711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3712 | /* end confdefs.h. */ | |
3713 | #include <ctype.h> | |
3714 | #include <stdlib.h> | |
3715 | #if ((' ' & 0x0FF) == 0x020) | |
3716 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3717 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3718 | #else | |
3719 | # define ISLOWER(c) \ | |
3720 | (('a' <= (c) && (c) <= 'i') \ | |
3721 | || ('j' <= (c) && (c) <= 'r') \ | |
3722 | || ('s' <= (c) && (c) <= 'z')) | |
3723 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3724 | #endif | |
3725 | ||
3726 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3727 | int | |
3728 | main () | |
3729 | { | |
3730 | int i; | |
3731 | for (i = 0; i < 256; i++) | |
3732 | if (XOR (islower (i), ISLOWER (i)) | |
3733 | || toupper (i) != TOUPPER (i)) | |
3734 | return 2; | |
3735 | return 0; | |
3736 | } | |
3737 | _ACEOF | |
3738 | if ac_fn_c_try_run "$LINENO"; then : | |
3739 | ||
3740 | else | |
3741 | ac_cv_header_stdc=no | |
3742 | fi | |
3743 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3744 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6bddc3e8 MF |
3745 | fi |
3746 | ||
c2783492 MF |
3747 | fi |
3748 | fi | |
3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3750 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3751 | if test $ac_cv_header_stdc = yes; then | |
6bddc3e8 | 3752 | |
c2783492 | 3753 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
6bddc3e8 | 3754 | |
c2783492 | 3755 | fi |
6bddc3e8 | 3756 | |
c2783492 MF |
3757 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3758 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3759 | inttypes.h stdint.h unistd.h | |
3760 | do : | |
3761 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3762 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3763 | " | |
3764 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3765 | cat >>confdefs.h <<_ACEOF | |
3766 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3767 | _ACEOF | |
3768 | ||
3769 | fi | |
3770 | ||
3771 | done | |
3772 | ||
3773 | ||
3774 | ||
3775 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3776 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
3777 | MINIX=yes | |
fdd6fa61 | 3778 | else |
c2783492 MF |
3779 | MINIX= |
3780 | fi | |
3781 | ||
3782 | ||
3783 | if test "$MINIX" = yes; then | |
3784 | ||
3785 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3786 | ||
3787 | ||
3788 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3789 | ||
3790 | ||
3791 | $as_echo "#define _MINIX 1" >>confdefs.h | |
6bddc3e8 | 3792 | |
6bddc3e8 | 3793 | fi |
6bddc3e8 | 3794 | |
6bddc3e8 | 3795 | |
c2783492 MF |
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3797 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3798 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
3799 | $as_echo_n "(cached) " >&6 | |
3800 | else | |
3801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3802 | /* end confdefs.h. */ | |
c906108c | 3803 | |
c2783492 MF |
3804 | # define __EXTENSIONS__ 1 |
3805 | $ac_includes_default | |
3806 | int | |
3807 | main () | |
3808 | { | |
3809 | ||
3810 | ; | |
3811 | return 0; | |
3812 | } | |
3813 | _ACEOF | |
3814 | if ac_fn_c_try_compile "$LINENO"; then : | |
3815 | ac_cv_safe_to_define___extensions__=yes | |
6bddc3e8 | 3816 | else |
c2783492 MF |
3817 | ac_cv_safe_to_define___extensions__=no |
3818 | fi | |
3819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3820 | fi |
c2783492 MF |
3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3822 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3823 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3824 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
6bddc3e8 | 3825 | |
c2783492 | 3826 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
c906108c | 3827 | |
c2783492 | 3828 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
c906108c | 3829 | |
c2783492 | 3830 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
c906108c | 3831 | |
c2783492 | 3832 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
c906108c | 3833 | |
c2783492 MF |
3834 | |
3835 | test "$program_prefix" != NONE && | |
3836 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3837 | # Use a double $ so make ignores it. | |
3838 | test "$program_suffix" != NONE && | |
3839 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3840 | # Double any \ or $. | |
3841 | # By default was `s,x,x', remove it if useless. | |
3842 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3843 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
3844 | ||
3845 | # Find a good install program. We prefer a C program (faster), | |
3846 | # so one script is as good as another. But avoid the broken or | |
3847 | # incompatible versions: | |
3848 | # SysV /etc/install, /usr/sbin/install | |
3849 | # SunOS /usr/etc/install | |
3850 | # IRIX /sbin/install | |
3851 | # AIX /bin/install | |
3852 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3853 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3854 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3855 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3856 | # OS/2's system install, which has a completely different semantic | |
3857 | # ./install, which can be erroneously created by make from ./install.sh. | |
3858 | # Reject install programs that cannot install multiple files. | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3860 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3861 | if test -z "$INSTALL"; then | |
3862 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 3863 | $as_echo_n "(cached) " >&6 |
c906108c | 3864 | else |
c2783492 | 3865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
b7026657 AC |
3866 | for as_dir in $PATH |
3867 | do | |
3868 | IFS=$as_save_IFS | |
3869 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
3870 | # Account for people who put trailing slashes in PATH elements. |
3871 | case $as_dir/ in #(( | |
3872 | ./ | .// | /[cC]/* | \ | |
3873 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3874 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3875 | /usr/ucb/* ) ;; | |
3876 | *) | |
3877 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3878 | # Don't use installbsd from OSF since it installs stuff as root | |
3879 | # by default. | |
3880 | for ac_prog in ginstall scoinst install; do | |
3881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3882 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3883 | if test $ac_prog = install && | |
3884 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3885 | # AIX install. It has an incompatible calling convention. | |
3886 | : | |
3887 | elif test $ac_prog = install && | |
3888 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3889 | # program-specific install script used by HP pwplus--don't use. | |
3890 | : | |
3891 | else | |
3892 | rm -rf conftest.one conftest.two conftest.dir | |
3893 | echo one > conftest.one | |
3894 | echo two > conftest.two | |
3895 | mkdir conftest.dir | |
3896 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3897 | test -s conftest.one && test -s conftest.two && | |
3898 | test -s conftest.dir/conftest.one && | |
3899 | test -s conftest.dir/conftest.two | |
3900 | then | |
3901 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3902 | break 3 | |
3903 | fi | |
3904 | fi | |
3905 | fi | |
3906 | done | |
3907 | done | |
3908 | ;; | |
3909 | esac | |
3910 | ||
81ecdfbb RW |
3911 | done |
3912 | IFS=$as_save_IFS | |
b7026657 | 3913 | |
c2783492 MF |
3914 | rm -rf conftest.one conftest.two conftest.dir |
3915 | ||
c906108c | 3916 | fi |
c2783492 MF |
3917 | if test "${ac_cv_path_install+set}" = set; then |
3918 | INSTALL=$ac_cv_path_install | |
3919 | else | |
3920 | # As a last resort, use the slow shell script. Don't cache a | |
3921 | # value for INSTALL within a source directory, because that will | |
3922 | # break other packages using the cache if that directory is | |
3923 | # removed, or if the value is a relative name. | |
3924 | INSTALL=$ac_install_sh | |
3925 | fi | |
c906108c | 3926 | fi |
c2783492 MF |
3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3928 | $as_echo "$INSTALL" >&6; } | |
b7026657 | 3929 | |
c2783492 MF |
3930 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3931 | # It thinks the first close brace ends the variable substitution. | |
3932 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
81ecdfbb | 3933 | |
c2783492 MF |
3934 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3935 | ||
3936 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3937 | ||
3938 | ||
3939 | ||
3940 | ||
3941 | ||
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
3943 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
3944 | if ${ac_cv_c_bigendian+:} false; then : | |
81ecdfbb | 3945 | $as_echo_n "(cached) " >&6 |
b7026657 | 3946 | else |
c2783492 MF |
3947 | ac_cv_c_bigendian=unknown |
3948 | # See if we're dealing with a universal compiler. | |
3949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3950 | /* end confdefs.h. */ | |
3951 | #ifndef __APPLE_CC__ | |
3952 | not a universal capable compiler | |
3953 | #endif | |
3954 | typedef int dummy; | |
c906108c | 3955 | |
c2783492 MF |
3956 | _ACEOF |
3957 | if ac_fn_c_try_compile "$LINENO"; then : | |
3958 | ||
3959 | # Check for potential -arch flags. It is not universal unless | |
3960 | # there are at least two -arch flags with different values. | |
3961 | ac_arch= | |
3962 | ac_prev= | |
3963 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
3964 | if test -n "$ac_prev"; then | |
3965 | case $ac_word in | |
3966 | i?86 | x86_64 | ppc | ppc64) | |
3967 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
3968 | ac_arch=$ac_word | |
3969 | else | |
3970 | ac_cv_c_bigendian=universal | |
3971 | break | |
3972 | fi | |
3973 | ;; | |
3974 | esac | |
3975 | ac_prev= | |
3976 | elif test "x$ac_word" = "x-arch"; then | |
3977 | ac_prev=arch | |
3978 | fi | |
3979 | done | |
b7026657 | 3980 | fi |
c2783492 MF |
3981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3982 | if test $ac_cv_c_bigendian = unknown; then | |
3983 | # See if sys/param.h defines the BYTE_ORDER macro. | |
3984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3985 | /* end confdefs.h. */ | |
3986 | #include <sys/types.h> | |
3987 | #include <sys/param.h> | |
c906108c | 3988 | |
c2783492 MF |
3989 | int |
3990 | main () | |
3991 | { | |
3992 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
3993 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
3994 | && LITTLE_ENDIAN) | |
3995 | bogus endian macros | |
3996 | #endif | |
3997 | ||
3998 | ; | |
3999 | return 0; | |
4000 | } | |
4001 | _ACEOF | |
4002 | if ac_fn_c_try_compile "$LINENO"; then : | |
4003 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4005 | /* end confdefs.h. */ | |
4006 | #include <sys/types.h> | |
4007 | #include <sys/param.h> | |
4008 | ||
4009 | int | |
4010 | main () | |
4011 | { | |
4012 | #if BYTE_ORDER != BIG_ENDIAN | |
4013 | not big endian | |
4014 | #endif | |
4015 | ||
4016 | ; | |
4017 | return 0; | |
4018 | } | |
4019 | _ACEOF | |
4020 | if ac_fn_c_try_compile "$LINENO"; then : | |
4021 | ac_cv_c_bigendian=yes | |
b7026657 | 4022 | else |
c2783492 MF |
4023 | ac_cv_c_bigendian=no |
4024 | fi | |
4025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 4026 | fi |
c2783492 MF |
4027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4028 | fi | |
4029 | if test $ac_cv_c_bigendian = unknown; then | |
4030 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
4031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4032 | /* end confdefs.h. */ | |
4033 | #include <limits.h> | |
c906108c | 4034 | |
c2783492 MF |
4035 | int |
4036 | main () | |
4037 | { | |
4038 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
4039 | bogus endian macros | |
4040 | #endif | |
4041 | ||
4042 | ; | |
4043 | return 0; | |
4044 | } | |
4045 | _ACEOF | |
4046 | if ac_fn_c_try_compile "$LINENO"; then : | |
4047 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
4048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4049 | /* end confdefs.h. */ | |
4050 | #include <limits.h> | |
4051 | ||
4052 | int | |
4053 | main () | |
4054 | { | |
4055 | #ifndef _BIG_ENDIAN | |
4056 | not big endian | |
4057 | #endif | |
b7026657 | 4058 | |
c2783492 MF |
4059 | ; |
4060 | return 0; | |
4061 | } | |
4062 | _ACEOF | |
4063 | if ac_fn_c_try_compile "$LINENO"; then : | |
4064 | ac_cv_c_bigendian=yes | |
c906108c | 4065 | else |
c2783492 | 4066 | ac_cv_c_bigendian=no |
c906108c | 4067 | fi |
c2783492 MF |
4068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4069 | fi | |
4070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4071 | fi | |
4072 | if test $ac_cv_c_bigendian = unknown; then | |
4073 | # Compile a test program. | |
4074 | if test "$cross_compiling" = yes; then : | |
4075 | # Try to guess by grepping values from an object file. | |
4076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4077 | /* end confdefs.h. */ | |
4078 | short int ascii_mm[] = | |
4079 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
4080 | short int ascii_ii[] = | |
4081 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
4082 | int use_ascii (int i) { | |
4083 | return ascii_mm[i] + ascii_ii[i]; | |
4084 | } | |
4085 | short int ebcdic_ii[] = | |
4086 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
4087 | short int ebcdic_mm[] = | |
4088 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
4089 | int use_ebcdic (int i) { | |
4090 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
4091 | } | |
4092 | extern int foo; | |
c906108c | 4093 | |
c2783492 MF |
4094 | int |
4095 | main () | |
4096 | { | |
4097 | return use_ascii (foo) == use_ebcdic (foo); | |
4098 | ; | |
4099 | return 0; | |
4100 | } | |
4101 | _ACEOF | |
4102 | if ac_fn_c_try_compile "$LINENO"; then : | |
4103 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
4104 | ac_cv_c_bigendian=yes | |
4105 | fi | |
4106 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4107 | if test "$ac_cv_c_bigendian" = unknown; then | |
4108 | ac_cv_c_bigendian=no | |
4109 | else | |
4110 | # finding both strings is unlikely to happen, but who knows? | |
4111 | ac_cv_c_bigendian=unknown | |
4112 | fi | |
4113 | fi | |
b7026657 | 4114 | fi |
c2783492 | 4115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 4116 | else |
c2783492 MF |
4117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4118 | /* end confdefs.h. */ | |
4119 | $ac_includes_default | |
4120 | int | |
4121 | main () | |
4122 | { | |
4123 | ||
4124 | /* Are we little or big endian? From Harbison&Steele. */ | |
4125 | union | |
4126 | { | |
4127 | long int l; | |
4128 | char c[sizeof (long int)]; | |
4129 | } u; | |
4130 | u.l = 1; | |
4131 | return u.c[sizeof (long int) - 1] == 1; | |
b7026657 | 4132 | |
c2783492 MF |
4133 | ; |
4134 | return 0; | |
4135 | } | |
4136 | _ACEOF | |
4137 | if ac_fn_c_try_run "$LINENO"; then : | |
4138 | ac_cv_c_bigendian=no | |
4139 | else | |
4140 | ac_cv_c_bigendian=yes | |
c906108c | 4141 | fi |
c2783492 MF |
4142 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4143 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c906108c | 4144 | fi |
c2783492 MF |
4145 | |
4146 | fi | |
c906108c | 4147 | fi |
c2783492 MF |
4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
4149 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
4150 | case $ac_cv_c_bigendian in #( | |
4151 | yes) | |
4152 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
4153 | ;; #( | |
4154 | no) | |
4155 | ;; #( | |
4156 | universal) | |
c906108c | 4157 | |
c2783492 MF |
4158 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
4159 | ||
4160 | ;; #( | |
4161 | *) | |
4162 | as_fn_error $? "unknown endianness | |
4163 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
4164 | esac | |
4165 | ||
4166 | ||
4167 | ||
4168 | ||
4169 | if test "x$cross_compiling" = "xno"; then | |
aa0fca16 | 4170 | : "${AR_FOR_BUILD:=\$(AR)}" |
c2783492 | 4171 | : "${CC_FOR_BUILD:=\$(CC)}" |
aa0fca16 | 4172 | : "${RANLIB_FOR_BUILD:=\$(RANLIB)}" |
c2783492 MF |
4173 | : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}" |
4174 | : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}" | |
c906108c | 4175 | else |
aa0fca16 | 4176 | : "${AR_FOR_BUILD:=ar}" |
c2783492 | 4177 | : "${CC_FOR_BUILD:=gcc}" |
aa0fca16 | 4178 | : "${RANLIB_FOR_BUILD:=ranlib}" |
c2783492 MF |
4179 | : "${CFLAGS_FOR_BUILD:=-g -O}" |
4180 | : "${LDLFAGS_FOR_BUILD:=}" | |
c906108c SS |
4181 | fi |
4182 | ||
4183 | ||
c906108c | 4184 | |
c2783492 MF |
4185 | |
4186 | ||
aa0fca16 MF |
4187 | |
4188 | ||
b7026657 | 4189 | if test -n "$ac_tool_prefix"; then |
c2783492 MF |
4190 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
4191 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4193 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 4194 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 4195 | $as_echo_n "(cached) " >&6 |
c906108c | 4196 | else |
c2783492 MF |
4197 | if test -n "$AR"; then |
4198 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
c906108c | 4199 | else |
b7026657 AC |
4200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4201 | for as_dir in $PATH | |
4202 | do | |
4203 | IFS=$as_save_IFS | |
4204 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4205 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4206 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 4207 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 4208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4209 | break 2 |
4210 | fi | |
4211 | done | |
81ecdfbb RW |
4212 | done |
4213 | IFS=$as_save_IFS | |
b7026657 AC |
4214 | |
4215 | fi | |
4216 | fi | |
c2783492 MF |
4217 | AR=$ac_cv_prog_AR |
4218 | if test -n "$AR"; then | |
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4220 | $as_echo "$AR" >&6; } | |
b7026657 | 4221 | else |
81ecdfbb RW |
4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4223 | $as_echo "no" >&6; } | |
b7026657 AC |
4224 | fi |
4225 | ||
81ecdfbb | 4226 | |
b7026657 | 4227 | fi |
c2783492 MF |
4228 | if test -z "$ac_cv_prog_AR"; then |
4229 | ac_ct_AR=$AR | |
4230 | # Extract the first word of "ar", so it can be a program name with args. | |
4231 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4233 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 4234 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 4235 | $as_echo_n "(cached) " >&6 |
b7026657 | 4236 | else |
c2783492 MF |
4237 | if test -n "$ac_ct_AR"; then |
4238 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b7026657 AC |
4239 | else |
4240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4241 | for as_dir in $PATH | |
4242 | do | |
4243 | IFS=$as_save_IFS | |
4244 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4245 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 4247 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 4248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4249 | break 2 |
4250 | fi | |
4251 | done | |
81ecdfbb RW |
4252 | done |
4253 | IFS=$as_save_IFS | |
b7026657 AC |
4254 | |
4255 | fi | |
4256 | fi | |
c2783492 MF |
4257 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
4258 | if test -n "$ac_ct_AR"; then | |
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4260 | $as_echo "$ac_ct_AR" >&6; } | |
b7026657 | 4261 | else |
81ecdfbb RW |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4263 | $as_echo "no" >&6; } | |
c906108c | 4264 | fi |
b7026657 | 4265 | |
c2783492 MF |
4266 | if test "x$ac_ct_AR" = x; then |
4267 | AR="" | |
81ecdfbb RW |
4268 | else |
4269 | case $cross_compiling:$ac_tool_warned in | |
4270 | yes:) | |
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4272 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4273 | ac_tool_warned=yes ;; | |
4274 | esac | |
c2783492 | 4275 | AR=$ac_ct_AR |
c906108c | 4276 | fi |
c906108c | 4277 | else |
c2783492 | 4278 | AR="$ac_cv_prog_AR" |
c906108c SS |
4279 | fi |
4280 | ||
c2783492 MF |
4281 | if test -n "$ac_tool_prefix"; then |
4282 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4283 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4285 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 4286 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 4287 | $as_echo_n "(cached) " >&6 |
c906108c | 4288 | else |
c2783492 MF |
4289 | if test -n "$RANLIB"; then |
4290 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c906108c | 4291 | else |
b7026657 AC |
4292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4293 | for as_dir in $PATH | |
4294 | do | |
4295 | IFS=$as_save_IFS | |
4296 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4297 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4298 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 4299 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 4300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4301 | break 2 |
4302 | fi | |
4303 | done | |
81ecdfbb RW |
4304 | done |
4305 | IFS=$as_save_IFS | |
b7026657 | 4306 | |
c906108c SS |
4307 | fi |
4308 | fi | |
c2783492 MF |
4309 | RANLIB=$ac_cv_prog_RANLIB |
4310 | if test -n "$RANLIB"; then | |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4312 | $as_echo "$RANLIB" >&6; } | |
c906108c | 4313 | else |
81ecdfbb RW |
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4315 | $as_echo "no" >&6; } | |
c906108c SS |
4316 | fi |
4317 | ||
81ecdfbb | 4318 | |
b7026657 | 4319 | fi |
c2783492 MF |
4320 | if test -z "$ac_cv_prog_RANLIB"; then |
4321 | ac_ct_RANLIB=$RANLIB | |
4322 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4323 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4325 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 4326 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 4327 | $as_echo_n "(cached) " >&6 |
c906108c | 4328 | else |
c2783492 MF |
4329 | if test -n "$ac_ct_RANLIB"; then |
4330 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
b7026657 AC |
4331 | else |
4332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4333 | for as_dir in $PATH | |
4334 | do | |
4335 | IFS=$as_save_IFS | |
4336 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4337 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4338 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 4339 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 4340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4341 | break 2 |
4342 | fi | |
4343 | done | |
81ecdfbb RW |
4344 | done |
4345 | IFS=$as_save_IFS | |
b7026657 | 4346 | |
c906108c | 4347 | fi |
b7026657 | 4348 | fi |
c2783492 MF |
4349 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4350 | if test -n "$ac_ct_RANLIB"; then | |
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4352 | $as_echo "$ac_ct_RANLIB" >&6; } | |
c906108c | 4353 | else |
81ecdfbb RW |
4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4355 | $as_echo "no" >&6; } | |
c906108c | 4356 | fi |
b7026657 | 4357 | |
c2783492 MF |
4358 | if test "x$ac_ct_RANLIB" = x; then |
4359 | RANLIB=":" | |
81ecdfbb RW |
4360 | else |
4361 | case $cross_compiling:$ac_tool_warned in | |
4362 | yes:) | |
4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4364 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4365 | ac_tool_warned=yes ;; | |
4366 | esac | |
c2783492 | 4367 | RANLIB=$ac_ct_RANLIB |
81ecdfbb | 4368 | fi |
c2783492 MF |
4369 | else |
4370 | RANLIB="$ac_cv_prog_RANLIB" | |
4371 | fi | |
4372 | ||
4373 | ||
4374 | # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using | |
4375 | # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands | |
4376 | # is C99. So handle it ourselves. | |
4377 | : | |
4378 | C_DIALECT= | |
4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5 | |
4380 | $as_echo_n "checking whether C11 is supported by default... " >&6; } | |
4381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4382 | /* end confdefs.h. */ | |
4383 | ||
4384 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
4385 | # error "C11 support not found" | |
4386 | #endif | |
4387 | ||
4388 | _ACEOF | |
4389 | if ac_fn_c_try_compile "$LINENO"; then : | |
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4391 | $as_echo "yes" >&6; } | |
4392 | else | |
4393 | ||
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4395 | $as_echo "no" >&6; } | |
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5 | |
4397 | $as_echo_n "checking for -std=c11 support... " >&6; } | |
4398 | ac_save_CC="$CC" | |
4399 | CC="$CC -std=c11" | |
4400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4401 | /* end confdefs.h. */ | |
4402 | ||
4403 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
4404 | # error "C11 support not found" | |
4405 | #endif | |
4406 | ||
4407 | _ACEOF | |
4408 | if ac_fn_c_try_compile "$LINENO"; then : | |
4409 | ||
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4411 | $as_echo "yes" >&6; } | |
4412 | CC="$ac_save_CC" | |
4413 | C_DIALECT="-std=c11" | |
4414 | ||
4415 | else | |
4416 | as_fn_error $? "C11 is required" "$LINENO" 5 | |
4417 | fi | |
4418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4419 | fi | |
4420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4421 | ||
4422 | ||
4423 | ||
4424 | ||
c906108c | 4425 | |
b15c5d7a MF |
4426 | for ac_header in $ac_header_list |
4427 | do : | |
4428 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4429 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4430 | " | |
4431 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4432 | cat >>confdefs.h <<_ACEOF | |
4433 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4434 | _ACEOF | |
4435 | ||
b7026657 AC |
4436 | fi |
4437 | ||
b15c5d7a | 4438 | done |
b7026657 | 4439 | |
b7026657 | 4440 | |
c2783492 | 4441 | |
c2783492 | 4442 | |
c2783492 | 4443 | |
c2783492 | 4444 | |
c2783492 | 4445 | |
b15c5d7a MF |
4446 | |
4447 | ||
4448 | ||
4449 | ||
4450 | ||
4451 | ||
4452 | ||
4453 | ||
4454 | ||
4455 | ||
4456 | ||
4457 | ||
4458 | ||
4459 | ||
4460 | ||
4461 | ||
4462 | ||
4463 | ||
4464 | ||
4465 | ||
4466 | ||
4467 | ||
4468 | ||
4469 | ||
4470 | ||
4471 | ||
4472 | ||
4473 | ||
4474 | ||
4475 | ||
4476 | ||
4477 | ||
4478 | ||
4479 | ||
4480 | ||
4481 | for ac_func in $ac_func_list | |
4482 | do : | |
4483 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4484 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4485 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
4486 | cat >>confdefs.h <<_ACEOF | |
4487 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4488 | _ACEOF | |
4489 | ||
4490 | fi | |
4491 | done | |
4492 | ||
4493 | ||
4494 | ||
4495 | ||
4496 | ||
4497 | ||
4498 | ||
4499 | ||
4500 | ||
4501 | ||
4502 | ||
4503 | ||
4504 | ||
4505 | ||
4506 | ||
4507 | ||
4508 | ||
4509 | ||
4510 | ||
4511 | ||
4512 | ||
4513 | ||
4514 | ||
4515 | ||
4516 | ||
4517 | ||
4518 | ||
4519 | ||
4520 | ||
4521 | ||
4522 | ||
4523 | ||
4524 | ||
4525 | ||
4526 | ||
4527 | ||
4528 | ||
4529 | ||
4530 | ||
4531 | ||
4532 | ||
4533 | ||
4534 | ||
4535 | ||
4536 | ||
4537 | ||
4538 | ||
4539 | ||
4540 | ||
4541 | ||
4542 | ||
4543 | ||
4544 | ||
4545 | ||
4546 | ||
4547 | ||
4548 | ||
4549 | ||
4550 | ||
4551 | ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H | |
4552 | #include <sys/types.h> | |
4553 | #endif | |
4554 | #ifdef HAVE_SYS_STAT_H | |
4555 | #include <sys/stat.h> | |
4556 | #endif | |
4557 | " | |
4558 | if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then : | |
4559 | ||
4560 | cat >>confdefs.h <<_ACEOF | |
4561 | #define HAVE_STRUCT_STAT_ST_DEV 1 | |
4562 | _ACEOF | |
4563 | ||
4564 | ||
4565 | fi | |
4566 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H | |
4567 | #include <sys/types.h> | |
4568 | #endif | |
4569 | #ifdef HAVE_SYS_STAT_H | |
4570 | #include <sys/stat.h> | |
4571 | #endif | |
4572 | " | |
4573 | if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then : | |
4574 | ||
4575 | cat >>confdefs.h <<_ACEOF | |
4576 | #define HAVE_STRUCT_STAT_ST_INO 1 | |
4577 | _ACEOF | |
4578 | ||
4579 | ||
4580 | fi | |
4581 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H | |
4582 | #include <sys/types.h> | |
4583 | #endif | |
4584 | #ifdef HAVE_SYS_STAT_H | |
4585 | #include <sys/stat.h> | |
4586 | #endif | |
4587 | " | |
4588 | if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then : | |
4589 | ||
4590 | cat >>confdefs.h <<_ACEOF | |
4591 | #define HAVE_STRUCT_STAT_ST_MODE 1 | |
4592 | _ACEOF | |
4593 | ||
4594 | ||
4595 | fi | |
4596 | ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H | |
4597 | #include <sys/types.h> | |
4598 | #endif | |
4599 | #ifdef HAVE_SYS_STAT_H | |
4600 | #include <sys/stat.h> | |
4601 | #endif | |
4602 | " | |
4603 | if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then : | |
4604 | ||
4605 | cat >>confdefs.h <<_ACEOF | |
4606 | #define HAVE_STRUCT_STAT_ST_NLINK 1 | |
4607 | _ACEOF | |
4608 | ||
4609 | ||
4610 | fi | |
4611 | ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H | |
4612 | #include <sys/types.h> | |
4613 | #endif | |
4614 | #ifdef HAVE_SYS_STAT_H | |
4615 | #include <sys/stat.h> | |
4616 | #endif | |
4617 | " | |
4618 | if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then : | |
4619 | ||
4620 | cat >>confdefs.h <<_ACEOF | |
4621 | #define HAVE_STRUCT_STAT_ST_UID 1 | |
4622 | _ACEOF | |
4623 | ||
4624 | ||
4625 | fi | |
4626 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H | |
4627 | #include <sys/types.h> | |
4628 | #endif | |
4629 | #ifdef HAVE_SYS_STAT_H | |
4630 | #include <sys/stat.h> | |
4631 | #endif | |
4632 | " | |
4633 | if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then : | |
4634 | ||
4635 | cat >>confdefs.h <<_ACEOF | |
4636 | #define HAVE_STRUCT_STAT_ST_GID 1 | |
4637 | _ACEOF | |
4638 | ||
4639 | ||
4640 | fi | |
4641 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H | |
4642 | #include <sys/types.h> | |
4643 | #endif | |
4644 | #ifdef HAVE_SYS_STAT_H | |
4645 | #include <sys/stat.h> | |
4646 | #endif | |
4647 | " | |
4648 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | |
4649 | ||
4650 | cat >>confdefs.h <<_ACEOF | |
4651 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
4652 | _ACEOF | |
4653 | ||
4654 | ||
4655 | fi | |
4656 | ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H | |
4657 | #include <sys/types.h> | |
4658 | #endif | |
4659 | #ifdef HAVE_SYS_STAT_H | |
4660 | #include <sys/stat.h> | |
4661 | #endif | |
4662 | " | |
4663 | if test "x$ac_cv_member_struct_stat_st_size" = xyes; then : | |
4664 | ||
4665 | cat >>confdefs.h <<_ACEOF | |
4666 | #define HAVE_STRUCT_STAT_ST_SIZE 1 | |
4667 | _ACEOF | |
4668 | ||
4669 | ||
4670 | fi | |
4671 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H | |
4672 | #include <sys/types.h> | |
4673 | #endif | |
4674 | #ifdef HAVE_SYS_STAT_H | |
4675 | #include <sys/stat.h> | |
4676 | #endif | |
4677 | " | |
4678 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | |
4679 | ||
4680 | cat >>confdefs.h <<_ACEOF | |
4681 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
4682 | _ACEOF | |
4683 | ||
4684 | ||
4685 | fi | |
4686 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H | |
4687 | #include <sys/types.h> | |
4688 | #endif | |
4689 | #ifdef HAVE_SYS_STAT_H | |
4690 | #include <sys/stat.h> | |
4691 | #endif | |
4692 | " | |
4693 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
4694 | ||
4695 | cat >>confdefs.h <<_ACEOF | |
4696 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
4697 | _ACEOF | |
4698 | ||
4699 | ||
4700 | fi | |
4701 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H | |
4702 | #include <sys/types.h> | |
4703 | #endif | |
4704 | #ifdef HAVE_SYS_STAT_H | |
4705 | #include <sys/stat.h> | |
4706 | #endif | |
4707 | " | |
4708 | if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then : | |
4709 | ||
4710 | cat >>confdefs.h <<_ACEOF | |
4711 | #define HAVE_STRUCT_STAT_ST_ATIME 1 | |
4712 | _ACEOF | |
4713 | ||
4714 | ||
4715 | fi | |
4716 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H | |
4717 | #include <sys/types.h> | |
4718 | #endif | |
4719 | #ifdef HAVE_SYS_STAT_H | |
4720 | #include <sys/stat.h> | |
4721 | #endif | |
4722 | " | |
4723 | if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : | |
4724 | ||
4725 | cat >>confdefs.h <<_ACEOF | |
4726 | #define HAVE_STRUCT_STAT_ST_MTIME 1 | |
4727 | _ACEOF | |
4728 | ||
4729 | ||
4730 | fi | |
4731 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H | |
4732 | #include <sys/types.h> | |
4733 | #endif | |
4734 | #ifdef HAVE_SYS_STAT_H | |
4735 | #include <sys/stat.h> | |
4736 | #endif | |
4737 | " | |
4738 | if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then : | |
4739 | ||
4740 | cat >>confdefs.h <<_ACEOF | |
4741 | #define HAVE_STRUCT_STAT_ST_CTIME 1 | |
4742 | _ACEOF | |
4743 | ||
4744 | ||
4745 | fi | |
4746 | ||
4747 | ||
4748 | ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default" | |
4749 | if test "x$ac_cv_type___int128" = xyes; then : | |
4750 | ||
4751 | cat >>confdefs.h <<_ACEOF | |
4752 | #define HAVE___INT128 1 | |
4753 | _ACEOF | |
4754 | ||
4755 | ||
4756 | fi | |
4757 | ||
4758 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
4759 | #include <sys/socket.h> | |
4760 | ||
4761 | " | |
4762 | if test "x$ac_cv_type_socklen_t" = xyes; then : | |
4763 | ||
4764 | cat >>confdefs.h <<_ACEOF | |
4765 | #define HAVE_SOCKLEN_T 1 | |
4766 | _ACEOF | |
4767 | ||
4768 | ||
4769 | fi | |
4770 | ||
4771 | ||
4772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
4773 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
4774 | if ${ac_cv_type_signal+:} false; then : | |
4775 | $as_echo_n "(cached) " >&6 | |
4776 | else | |
4777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4778 | /* end confdefs.h. */ | |
4779 | #include <sys/types.h> | |
4780 | #include <signal.h> | |
4781 | ||
4782 | int | |
4783 | main () | |
4784 | { | |
4785 | return *(signal (0, 0)) (0) == 1; | |
4786 | ; | |
4787 | return 0; | |
4788 | } | |
4789 | _ACEOF | |
4790 | if ac_fn_c_try_compile "$LINENO"; then : | |
4791 | ac_cv_type_signal=int | |
4792 | else | |
4793 | ac_cv_type_signal=void | |
4794 | fi | |
4795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4796 | fi | |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | |
4798 | $as_echo "$ac_cv_type_signal" >&6; } | |
4799 | ||
4800 | cat >>confdefs.h <<_ACEOF | |
4801 | #define RETSIGTYPE $ac_cv_type_signal | |
4802 | _ACEOF | |
4803 | ||
4804 | ||
4805 | ||
4806 | ||
4807 | ||
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
4809 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4810 | # Check whether --enable-maintainer-mode was given. | |
4811 | if test "${enable_maintainer_mode+set}" = set; then : | |
4812 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4813 | else | |
4814 | USE_MAINTAINER_MODE=no | |
4815 | fi | |
4816 | ||
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4818 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4819 | if test $USE_MAINTAINER_MODE = yes; then | |
4820 | MAINTAINER_MODE_TRUE= | |
4821 | MAINTAINER_MODE_FALSE='#' | |
4822 | else | |
4823 | MAINTAINER_MODE_TRUE='#' | |
4824 | MAINTAINER_MODE_FALSE= | |
4825 | fi | |
4826 | ||
4827 | MAINT=$MAINTAINER_MODE_TRUE | |
4828 | ||
4829 | ||
4830 | am__api_version='1.15' | |
4831 | ||
4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
4833 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4834 | # Reject unsafe characters in $srcdir or the absolute working directory | |
4835 | # name. Accept space and tab only in the latter. | |
4836 | am_lf=' | |
4837 | ' | |
4838 | case `pwd` in | |
4839 | *[\\\"\#\$\&\'\`$am_lf]*) | |
4840 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
4841 | esac | |
4842 | case $srcdir in | |
4843 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
4844 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
4845 | esac | |
4846 | ||
4847 | # Do 'set' in a subshell so we don't clobber the current shell's | |
4848 | # arguments. Must try -L first in case configure is actually a | |
4849 | # symlink; some systems play weird games with the mod time of symlinks | |
4850 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4851 | # directory). | |
4852 | if ( | |
4853 | am_has_slept=no | |
4854 | for am_try in 1 2; do | |
4855 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
4856 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4857 | if test "$*" = "X"; then | |
4858 | # -L didn't work. | |
4859 | set X `ls -t "$srcdir/configure" conftest.file` | |
4860 | fi | |
4861 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4862 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
4863 | ||
4864 | # If neither matched, then we have a broken ls. This can happen | |
4865 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4866 | # broken ls alias from the environment. This has actually | |
4867 | # happened. Such a system could not be considered "sane". | |
4868 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4869 | alias in your environment" "$LINENO" 5 | |
4870 | fi | |
4871 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
4872 | break | |
4873 | fi | |
4874 | # Just in case. | |
4875 | sleep 1 | |
4876 | am_has_slept=yes | |
4877 | done | |
4878 | test "$2" = conftest.file | |
4879 | ) | |
4880 | then | |
4881 | # Ok. | |
4882 | : | |
4883 | else | |
4884 | as_fn_error $? "newly created file is older than distributed files! | |
4885 | Check your system clock" "$LINENO" 5 | |
4886 | fi | |
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4888 | $as_echo "yes" >&6; } | |
4889 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
4890 | # generated files are strictly newer. | |
4891 | am_sleep_pid= | |
4892 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
4893 | ( sleep 1 ) & | |
4894 | am_sleep_pid=$! | |
4895 | fi | |
4896 | ||
4897 | rm -f conftest.file | |
4898 | ||
4899 | if test x"${MISSING+set}" != xset; then | |
4900 | case $am_aux_dir in | |
4901 | *\ * | *\ *) | |
4902 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4903 | *) | |
4904 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4905 | esac | |
4906 | fi | |
4907 | # Use eval to expand $SHELL | |
4908 | if eval "$MISSING --is-lightweight"; then | |
4909 | am_missing_run="$MISSING " | |
c2783492 MF |
4910 | else |
4911 | am_missing_run= | |
4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
4913 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
4914 | fi | |
4915 | ||
4916 | if test x"${install_sh+set}" != xset; then | |
4917 | case $am_aux_dir in | |
4918 | *\ * | *\ *) | |
4919 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4920 | *) | |
4921 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4922 | esac | |
4923 | fi | |
4924 | ||
4925 | # Installed binaries are usually stripped using 'strip' when the user | |
4926 | # run "make install-strip". However 'strip' might not be the right | |
4927 | # tool to use in cross-compilation environments, therefore Automake | |
4928 | # will honor the 'STRIP' environment variable to overrule this program. | |
4929 | if test "$cross_compiling" != no; then | |
4930 | if test -n "$ac_tool_prefix"; then | |
4931 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4932 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4934 | $as_echo_n "checking for $ac_word... " >&6; } | |
4935 | if ${ac_cv_prog_STRIP+:} false; then : | |
4936 | $as_echo_n "(cached) " >&6 | |
4937 | else | |
4938 | if test -n "$STRIP"; then | |
4939 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4940 | else | |
4941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4942 | for as_dir in $PATH | |
4943 | do | |
4944 | IFS=$as_save_IFS | |
4945 | test -z "$as_dir" && as_dir=. | |
4946 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4947 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4948 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4950 | break 2 | |
81ecdfbb | 4951 | fi |
81ecdfbb | 4952 | done |
c2783492 MF |
4953 | done |
4954 | IFS=$as_save_IFS | |
b7026657 | 4955 | |
c906108c | 4956 | fi |
b7026657 | 4957 | fi |
c2783492 MF |
4958 | STRIP=$ac_cv_prog_STRIP |
4959 | if test -n "$STRIP"; then | |
4960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4961 | $as_echo "$STRIP" >&6; } | |
81ecdfbb | 4962 | else |
c2783492 MF |
4963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4964 | $as_echo "no" >&6; } | |
81ecdfbb | 4965 | fi |
b7026657 | 4966 | |
b7026657 | 4967 | |
c2783492 MF |
4968 | fi |
4969 | if test -z "$ac_cv_prog_STRIP"; then | |
4970 | ac_ct_STRIP=$STRIP | |
4971 | # Extract the first word of "strip", so it can be a program name with args. | |
4972 | set dummy strip; ac_word=$2 | |
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4974 | $as_echo_n "checking for $ac_word... " >&6; } | |
4975 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
4976 | $as_echo_n "(cached) " >&6 | |
c906108c | 4977 | else |
c2783492 MF |
4978 | if test -n "$ac_ct_STRIP"; then |
4979 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
81ecdfbb | 4980 | else |
c2783492 MF |
4981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4982 | for as_dir in $PATH | |
4983 | do | |
4984 | IFS=$as_save_IFS | |
4985 | test -z "$as_dir" && as_dir=. | |
4986 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4987 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4988 | ac_cv_prog_ac_ct_STRIP="strip" | |
4989 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4990 | break 2 | |
4991 | fi | |
4992 | done | |
4993 | done | |
4994 | IFS=$as_save_IFS | |
81ecdfbb | 4995 | |
81ecdfbb | 4996 | fi |
df1756f4 | 4997 | fi |
c2783492 MF |
4998 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
4999 | if test -n "$ac_ct_STRIP"; then | |
5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
5001 | $as_echo "$ac_ct_STRIP" >&6; } | |
5002 | else | |
5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5004 | $as_echo "no" >&6; } | |
b7026657 | 5005 | fi |
c2783492 MF |
5006 | |
5007 | if test "x$ac_ct_STRIP" = x; then | |
5008 | STRIP=":" | |
c906108c | 5009 | else |
c2783492 MF |
5010 | case $cross_compiling:$ac_tool_warned in |
5011 | yes:) | |
5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5013 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5014 | ac_tool_warned=yes ;; | |
5015 | esac | |
5016 | STRIP=$ac_ct_STRIP | |
c906108c SS |
5017 | fi |
5018 | else | |
c2783492 | 5019 | STRIP="$ac_cv_prog_STRIP" |
c906108c | 5020 | fi |
81ecdfbb | 5021 | |
b7026657 | 5022 | fi |
c2783492 | 5023 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
b7026657 | 5024 | |
c2783492 MF |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
5026 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5027 | if test -z "$MKDIR_P"; then | |
5028 | if ${ac_cv_path_mkdir+:} false; then : | |
5029 | $as_echo_n "(cached) " >&6 | |
5030 | else | |
5031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5032 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
5033 | do | |
5034 | IFS=$as_save_IFS | |
5035 | test -z "$as_dir" && as_dir=. | |
5036 | for ac_prog in mkdir gmkdir; do | |
5037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5038 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
5039 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
5040 | 'mkdir (GNU coreutils) '* | \ | |
5041 | 'mkdir (coreutils) '* | \ | |
5042 | 'mkdir (fileutils) '4.1*) | |
5043 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
5044 | break 3;; | |
5045 | esac | |
5046 | done | |
5047 | done | |
5048 | done | |
5049 | IFS=$as_save_IFS | |
b7026657 | 5050 | |
fdd6fa61 AG |
5051 | fi |
5052 | ||
c2783492 MF |
5053 | test -d ./--version && rmdir ./--version |
5054 | if test "${ac_cv_path_mkdir+set}" = set; then | |
5055 | MKDIR_P="$ac_cv_path_mkdir -p" | |
5056 | else | |
5057 | # As a last resort, use the slow shell script. Don't cache a | |
5058 | # value for MKDIR_P within a source directory, because that will | |
5059 | # break other packages using the cache if that directory is | |
5060 | # removed, or if the value is a relative name. | |
5061 | MKDIR_P="$ac_install_sh -d" | |
5062 | fi | |
5063 | fi | |
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
5065 | $as_echo "$MKDIR_P" >&6; } | |
c906108c | 5066 | |
c2783492 MF |
5067 | for ac_prog in gawk mawk nawk awk |
5068 | do | |
5069 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5070 | set dummy $ac_prog; ac_word=$2 | |
5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5072 | $as_echo_n "checking for $ac_word... " >&6; } | |
5073 | if ${ac_cv_prog_AWK+:} false; then : | |
6bddc3e8 MF |
5074 | $as_echo_n "(cached) " >&6 |
5075 | else | |
c2783492 MF |
5076 | if test -n "$AWK"; then |
5077 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
5078 | else | |
5079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5080 | for as_dir in $PATH | |
5081 | do | |
5082 | IFS=$as_save_IFS | |
5083 | test -z "$as_dir" && as_dir=. | |
5084 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5086 | ac_cv_prog_AWK="$ac_prog" | |
5087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5088 | break 2 | |
5089 | fi | |
5090 | done | |
6bddc3e8 | 5091 | done |
c2783492 MF |
5092 | IFS=$as_save_IFS |
5093 | ||
6bddc3e8 | 5094 | fi |
6bddc3e8 | 5095 | fi |
c2783492 MF |
5096 | AWK=$ac_cv_prog_AWK |
5097 | if test -n "$AWK"; then | |
5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
5099 | $as_echo "$AWK" >&6; } | |
5100 | else | |
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5102 | $as_echo "no" >&6; } | |
5103 | fi | |
6bddc3e8 MF |
5104 | |
5105 | ||
c2783492 MF |
5106 | test -n "$AWK" && break |
5107 | done | |
6bddc3e8 | 5108 | |
c2783492 MF |
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5110 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5111 | set x ${MAKE-make} | |
5112 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5113 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
6bddc3e8 MF |
5114 | $as_echo_n "(cached) " >&6 |
5115 | else | |
c2783492 MF |
5116 | cat >conftest.make <<\_ACEOF |
5117 | SHELL = /bin/sh | |
5118 | all: | |
5119 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5120 | _ACEOF | |
5121 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
5122 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5123 | *@@@%%%=?*=@@@%%%*) | |
5124 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5125 | *) | |
5126 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5127 | esac | |
5128 | rm -f conftest.make | |
5129 | fi | |
5130 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5132 | $as_echo "yes" >&6; } | |
5133 | SET_MAKE= | |
5134 | else | |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5136 | $as_echo "no" >&6; } | |
5137 | SET_MAKE="MAKE=${MAKE-make}" | |
5138 | fi | |
6bddc3e8 | 5139 | |
c2783492 MF |
5140 | rm -rf .tst 2>/dev/null |
5141 | mkdir .tst 2>/dev/null | |
5142 | if test -d .tst; then | |
5143 | am__leading_dot=. | |
5144 | else | |
5145 | am__leading_dot=_ | |
5146 | fi | |
5147 | rmdir .tst 2>/dev/null | |
6bddc3e8 | 5148 | |
c2783492 | 5149 | DEPDIR="${am__leading_dot}deps" |
6bddc3e8 | 5150 | |
c2783492 | 5151 | ac_config_commands="$ac_config_commands depfiles" |
6bddc3e8 | 5152 | |
c2783492 MF |
5153 | |
5154 | am_make=${MAKE-make} | |
5155 | cat > confinc << 'END' | |
5156 | am__doit: | |
5157 | @echo this is the am__doit target | |
5158 | .PHONY: am__doit | |
5159 | END | |
5160 | # If we don't find an include directive, just comment out the code. | |
5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
5162 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
5163 | am__include="#" | |
5164 | am__quote= | |
5165 | _am_result=none | |
5166 | # First try GNU make style include. | |
5167 | echo "include confinc" > confmf | |
5168 | # Ignore all kinds of additional output from 'make'. | |
5169 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
5170 | *the\ am__doit\ target*) | |
5171 | am__include=include | |
5172 | am__quote= | |
5173 | _am_result=GNU | |
5174 | ;; | |
5175 | esac | |
5176 | # Now try BSD make style include. | |
5177 | if test "$am__include" = "#"; then | |
5178 | echo '.include "confinc"' > confmf | |
5179 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
5180 | *the\ am__doit\ target*) | |
5181 | am__include=.include | |
5182 | am__quote="\"" | |
5183 | _am_result=BSD | |
5184 | ;; | |
5185 | esac | |
6bddc3e8 MF |
5186 | fi |
5187 | ||
c2783492 MF |
5188 | |
5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
5190 | $as_echo "$_am_result" >&6; } | |
5191 | rm -f confinc confmf | |
5192 | ||
5193 | # Check whether --enable-dependency-tracking was given. | |
5194 | if test "${enable_dependency_tracking+set}" = set; then : | |
5195 | enableval=$enable_dependency_tracking; | |
6bddc3e8 | 5196 | fi |
6bddc3e8 | 5197 | |
c2783492 MF |
5198 | if test "x$enable_dependency_tracking" != xno; then |
5199 | am_depcomp="$ac_aux_dir/depcomp" | |
5200 | AMDEPBACKSLASH='\' | |
5201 | am__nodep='_no' | |
5202 | fi | |
5203 | if test "x$enable_dependency_tracking" != xno; then | |
5204 | AMDEP_TRUE= | |
5205 | AMDEP_FALSE='#' | |
6bddc3e8 | 5206 | else |
c2783492 MF |
5207 | AMDEP_TRUE='#' |
5208 | AMDEP_FALSE= | |
6bddc3e8 MF |
5209 | fi |
5210 | ||
5211 | ||
c2783492 MF |
5212 | # Check whether --enable-silent-rules was given. |
5213 | if test "${enable_silent_rules+set}" = set; then : | |
5214 | enableval=$enable_silent_rules; | |
5e25901f | 5215 | fi |
c2783492 MF |
5216 | |
5217 | case $enable_silent_rules in # ((( | |
5218 | yes) AM_DEFAULT_VERBOSITY=0;; | |
5219 | no) AM_DEFAULT_VERBOSITY=1;; | |
5220 | *) AM_DEFAULT_VERBOSITY=1;; | |
5221 | esac | |
5222 | am_make=${MAKE-make} | |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
5224 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
5225 | if ${am_cv_make_support_nested_variables+:} false; then : | |
5e25901f MF |
5226 | $as_echo_n "(cached) " >&6 |
5227 | else | |
c2783492 MF |
5228 | if $as_echo 'TRUE=$(BAR$(V)) |
5229 | BAR0=false | |
5230 | BAR1=true | |
5231 | V=1 | |
5232 | am__doit: | |
5233 | @$(TRUE) | |
5234 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
5235 | am_cv_make_support_nested_variables=yes | |
5e25901f | 5236 | else |
c2783492 | 5237 | am_cv_make_support_nested_variables=no |
5e25901f | 5238 | fi |
c2783492 MF |
5239 | fi |
5240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
5241 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
5242 | if test $am_cv_make_support_nested_variables = yes; then | |
5243 | AM_V='$(V)' | |
5244 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
5e25901f | 5245 | else |
c2783492 MF |
5246 | AM_V=$AM_DEFAULT_VERBOSITY |
5247 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
5e25901f | 5248 | fi |
c2783492 | 5249 | AM_BACKSLASH='\' |
5e25901f | 5250 | |
c2783492 MF |
5251 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
5252 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
5253 | # is not polluted with repeated "-I." | |
5254 | am__isrc=' -I$(srcdir)' | |
5255 | # test to see if srcdir already configured | |
5256 | if test -f $srcdir/config.status; then | |
5257 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
5258 | fi | |
5e25901f MF |
5259 | fi |
5260 | ||
c2783492 MF |
5261 | # test whether we have cygpath |
5262 | if test -z "$CYGPATH_W"; then | |
5263 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
5264 | CYGPATH_W='cygpath -w' | |
5265 | else | |
5266 | CYGPATH_W=echo | |
5267 | fi | |
5e25901f | 5268 | fi |
c2783492 MF |
5269 | |
5270 | ||
5271 | # Define the identity of the package. | |
5272 | PACKAGE='sim' | |
5273 | VERSION='0' | |
5274 | ||
5275 | ||
5276 | cat >>confdefs.h <<_ACEOF | |
5277 | #define PACKAGE "$PACKAGE" | |
5e25901f | 5278 | _ACEOF |
5e25901f | 5279 | |
5e25901f | 5280 | |
c2783492 MF |
5281 | cat >>confdefs.h <<_ACEOF |
5282 | #define VERSION "$VERSION" | |
5e25901f | 5283 | _ACEOF |
5e25901f | 5284 | |
c2783492 | 5285 | # Some tools Automake needs. |
5e25901f | 5286 | |
c2783492 MF |
5287 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
5288 | ||
5289 | ||
5290 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
5291 | ||
5292 | ||
5293 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
5294 | ||
5295 | ||
5296 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
5297 | ||
5298 | ||
5299 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
5300 | ||
5301 | # For better backward compatibility. To be removed once Automake 1.9.x | |
5302 | # dies out for good. For more background, see: | |
5303 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
5304 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
5305 | mkdir_p='$(MKDIR_P)' | |
5306 | ||
5307 | # We need awk for the "check" target (and possibly the TAP driver). The | |
5308 | # system "awk" is bad on some platforms. | |
5309 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
5310 | # in the wild :-( We should find a proper way to deprecate it ... | |
5311 | AMTAR='$${TAR-tar}' | |
5312 | ||
5313 | ||
5314 | # We'll loop over all known methods to create a tar archive until one works. | |
5315 | _am_tools='gnutar pax cpio none' | |
5316 | ||
5317 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
5e25901f | 5318 | |
5e25901f | 5319 | |
c906108c | 5320 | |
c906108c | 5321 | |
c2783492 MF |
5322 | |
5323 | depcc="$CC" am_compiler_list= | |
5324 | ||
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5326 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5327 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
81ecdfbb | 5328 | $as_echo_n "(cached) " >&6 |
c906108c | 5329 | else |
c2783492 MF |
5330 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5331 | # We make a subdir and do the tests there. Otherwise we can end up | |
5332 | # making bogus files that we don't know about and never remove. For | |
5333 | # instance it was reported that on HP-UX the gcc test will end up | |
5334 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
5335 | # in D". | |
5336 | rm -rf conftest.dir | |
5337 | mkdir conftest.dir | |
5338 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5339 | # using a relative directory. | |
5340 | cp "$am_depcomp" conftest.dir | |
5341 | cd conftest.dir | |
5342 | # We will build objects and dependencies in a subdirectory because | |
5343 | # it helps to detect inapplicable dependency modes. For instance | |
5344 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5345 | # side effect of compilation, but ICC will put the dependencies in | |
5346 | # the current directory while Tru64 will put them in the object | |
5347 | # directory. | |
5348 | mkdir sub | |
5349 | ||
5350 | am_cv_CC_dependencies_compiler_type=none | |
5351 | if test "$am_compiler_list" = ""; then | |
5352 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
b7026657 | 5353 | fi |
c2783492 MF |
5354 | am__universal=false |
5355 | case " $depcc " in #( | |
5356 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5357 | esac | |
5358 | ||
5359 | for depmode in $am_compiler_list; do | |
5360 | # Setup a source with many dependencies, because some compilers | |
5361 | # like to wrap large dependency lists on column 80 (with \), and | |
5362 | # we should not choose a depcomp mode which is confused by this. | |
5363 | # | |
5364 | # We need to recreate these files for each test, as the compiler may | |
5365 | # overwrite some of them when testing with obscure command lines. | |
5366 | # This happens at least with the AIX C compiler. | |
5367 | : > sub/conftest.c | |
5368 | for i in 1 2 3 4 5 6; do | |
5369 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5370 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
5371 | # Solaris 10 /bin/sh. | |
5372 | echo '/* dummy */' > sub/conftst$i.h | |
5373 | done | |
5374 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5375 | ||
5376 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
5377 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5378 | # handle '-M -o', and we need to detect this. Also, some Intel | |
5379 | # versions had trouble with output in subdirs. | |
5380 | am__obj=sub/conftest.${OBJEXT-o} | |
5381 | am__minus_obj="-o $am__obj" | |
5382 | case $depmode in | |
5383 | gcc) | |
5384 | # This depmode causes a compiler race in universal mode. | |
5385 | test "$am__universal" = false || continue | |
5386 | ;; | |
5387 | nosideeffect) | |
5388 | # After this tag, mechanisms are not by side-effect, so they'll | |
5389 | # only be used when explicitly requested. | |
5390 | if test "x$enable_dependency_tracking" = xyes; then | |
5391 | continue | |
5392 | else | |
5393 | break | |
5394 | fi | |
5395 | ;; | |
5396 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
5397 | # This compiler won't grok '-c -o', but also, the minuso test has | |
5398 | # not run yet. These depmodes are late enough in the game, and | |
5399 | # so weak that their functioning should not be impacted. | |
5400 | am__obj=conftest.${OBJEXT-o} | |
5401 | am__minus_obj= | |
5402 | ;; | |
5403 | none) break ;; | |
5404 | esac | |
5405 | if depmode=$depmode \ | |
5406 | source=sub/conftest.c object=$am__obj \ | |
5407 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5408 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5409 | >/dev/null 2>conftest.err && | |
5410 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5411 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5412 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5413 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5414 | # icc doesn't choke on unknown options, it will just issue warnings | |
5415 | # or remarks (even with -Werror). So we grep stderr for any message | |
5416 | # that says an option was ignored or not supported. | |
5417 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5418 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5419 | # The diagnosis changed in icc 8.0: | |
5420 | # icc: Command line remark: option '-MP' not supported | |
5421 | if (grep 'ignoring option' conftest.err || | |
5422 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5423 | am_cv_CC_dependencies_compiler_type=$depmode | |
5424 | break | |
5425 | fi | |
5426 | fi | |
81ecdfbb | 5427 | done |
b7026657 | 5428 | |
c2783492 MF |
5429 | cd .. |
5430 | rm -rf conftest.dir | |
b7026657 | 5431 | else |
c2783492 | 5432 | am_cv_CC_dependencies_compiler_type=none |
b7026657 AC |
5433 | fi |
5434 | ||
5435 | fi | |
c2783492 MF |
5436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
5437 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5438 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
b7026657 | 5439 | |
c2783492 MF |
5440 | if |
5441 | test "x$enable_dependency_tracking" != xno \ | |
5442 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5443 | am__fastdepCC_TRUE= | |
5444 | am__fastdepCC_FALSE='#' | |
c906108c | 5445 | else |
c2783492 MF |
5446 | am__fastdepCC_TRUE='#' |
5447 | am__fastdepCC_FALSE= | |
b7026657 AC |
5448 | fi |
5449 | ||
c906108c SS |
5450 | |
5451 | ||
c2783492 MF |
5452 | # POSIX will say in a future version that running "rm -f" with no argument |
5453 | # is OK; and we want to be able to make that assumption in our Makefile | |
5454 | # recipes. So use an aggressive probe to check that the usage we want is | |
5455 | # actually supported "in the wild" to an acceptable degree. | |
5456 | # See automake bug#10828. | |
5457 | # To make any issue more visible, cause the running configure to be aborted | |
5458 | # by default if the 'rm' program in use doesn't match our expectations; the | |
5459 | # user can still override this though. | |
5460 | if rm -f && rm -fr && rm -rf; then : OK; else | |
5461 | cat >&2 <<'END' | |
5462 | Oops! | |
5463 | ||
5464 | Your 'rm' program seems unable to run without file operands specified | |
5465 | on the command line, even when the '-f' option is present. This is contrary | |
5466 | to the behaviour of most rm programs out there, and not conforming with | |
5467 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
5468 | ||
5469 | Please tell bug-automake@gnu.org about your system, including the value | |
5470 | of your $PATH and any error possibly output before this message. This | |
5471 | can help us improve future automake versions. | |
5472 | ||
5473 | END | |
5474 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
5475 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
5476 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
5477 | echo >&2 | |
5c887dd5 | 5478 | else |
c2783492 MF |
5479 | cat >&2 <<'END' |
5480 | Aborting the configuration process, to ensure you take notice of the issue. | |
5481 | ||
5482 | You can download and install GNU coreutils to get an 'rm' implementation | |
5483 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
5484 | ||
5485 | If you want to complete the configuration process using your problematic | |
5486 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
5487 | to "yes", and re-run configure. | |
5488 | ||
5489 | END | |
5490 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
5c887dd5 | 5491 | fi |
c906108c SS |
5492 | fi |
5493 | ||
5494 | ||
5495 | # If a cpu ever has more than one simulator to choose from, use | |
5496 | # --enable-sim=... to choose. | |
81ecdfbb RW |
5497 | # Check whether --enable-sim was given. |
5498 | if test "${enable_sim+set}" = set; then : | |
5499 | enableval=$enable_sim; case "${enableval}" in | |
c906108c | 5500 | yes | no) ;; |
d0ac1c44 | 5501 | *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;; |
c906108c | 5502 | esac |
81ecdfbb RW |
5503 | fi |
5504 | ||
c906108c | 5505 | |
26da232c MF |
5506 | # Check whether --enable-example-sims was given. |
5507 | if test "${enable_example_sims+set}" = set; then : | |
5508 | enableval=$enable_example_sims; | |
5509 | fi | |
5510 | ||
5511 | ||
a0e674c1 MF |
5512 | # Check whether --enable-targets was given. |
5513 | if test "${enable_targets+set}" = set; then : | |
5514 | enableval=$enable_targets; case "${enableval}" in | |
5515 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
5516 | ;; | |
5517 | no) enable_targets= ;; | |
5518 | *) enable_targets=$enableval ;; | |
5519 | esac | |
5520 | fi | |
5521 | ||
5522 | ||
5523 | SIM_PRIMARY_TARGET= | |
5524 | ||
5525 | ||
5526 | ||
5527 | ||
119da465 | 5528 | if test "${enable_sim}" != no; then |
3e8bb3e9 | 5529 | sim_igen=no |
a0e674c1 MF |
5530 | for targ in `echo $target $enable_targets | sed 's/,/ /g'` |
5531 | do | |
5532 | ||
5533 | case "${targ}" in | |
5534 | all|aarch64*-*-*) | |
5535 | if test "${targ}" = "${target}"; then | |
5536 | SIM_PRIMARY_TARGET=aarch64 | |
5537 | fi | |
2e8cf49e NC |
5538 | |
5539 | ||
5540 | subdirs="$subdirs aarch64" | |
fdd6fa61 | 5541 | |
a0e674c1 | 5542 | |
3e8bb3e9 | 5543 | ;; |
a0e674c1 MF |
5544 | esac |
5545 | ||
5546 | ||
5547 | case "${targ}" in | |
5548 | all|arm*-*-*) | |
5549 | if test "${targ}" = "${target}"; then | |
5550 | SIM_PRIMARY_TARGET=arm | |
5551 | fi | |
3e8bb3e9 | 5552 | subdirs="$subdirs arm" |
fdd6fa61 | 5553 | |
a0e674c1 | 5554 | |
3e8bb3e9 | 5555 | ;; |
a0e674c1 MF |
5556 | esac |
5557 | ||
5558 | ||
5559 | case "${targ}" in | |
5560 | all|avr*-*-*) | |
5561 | if test "${targ}" = "${target}"; then | |
5562 | SIM_PRIMARY_TARGET=avr | |
5563 | fi | |
3e8bb3e9 | 5564 | subdirs="$subdirs avr" |
0cd79707 | 5565 | |
a0e674c1 | 5566 | |
3e8bb3e9 | 5567 | ;; |
a0e674c1 MF |
5568 | esac |
5569 | ||
5570 | ||
5571 | case "${targ}" in | |
5572 | all|bfin-*-*) | |
5573 | if test "${targ}" = "${target}"; then | |
5574 | SIM_PRIMARY_TARGET=bfin | |
5575 | fi | |
3e8bb3e9 | 5576 | subdirs="$subdirs bfin" |
ddd44b70 | 5577 | |
a0e674c1 | 5578 | |
3e8bb3e9 | 5579 | ;; |
a0e674c1 MF |
5580 | esac |
5581 | ||
5582 | ||
5583 | case "${targ}" in | |
5584 | all|bpf-*-*) | |
5585 | if test "${targ}" = "${target}"; then | |
5586 | SIM_PRIMARY_TARGET=bpf | |
5587 | fi | |
3e8bb3e9 | 5588 | subdirs="$subdirs bpf" |
ddd44b70 | 5589 | |
a0e674c1 | 5590 | |
3e8bb3e9 | 5591 | ;; |
a0e674c1 MF |
5592 | esac |
5593 | ||
5594 | ||
5595 | case "${targ}" in | |
5596 | all|cr16*-*-*) | |
5597 | if test "${targ}" = "${target}"; then | |
5598 | SIM_PRIMARY_TARGET=cr16 | |
5599 | fi | |
3e8bb3e9 | 5600 | subdirs="$subdirs cr16" |
ddd44b70 | 5601 | |
a0e674c1 | 5602 | |
3e8bb3e9 | 5603 | ;; |
a0e674c1 MF |
5604 | esac |
5605 | ||
5606 | ||
5607 | case "${targ}" in | |
5608 | all|cris-*-* | crisv32-*-*) | |
5609 | if test "${targ}" = "${target}"; then | |
5610 | SIM_PRIMARY_TARGET=cris | |
5611 | fi | |
3e8bb3e9 | 5612 | subdirs="$subdirs cris" |
b9249c46 | 5613 | |
a0e674c1 | 5614 | |
3e8bb3e9 | 5615 | ;; |
a0e674c1 MF |
5616 | esac |
5617 | ||
5618 | ||
5619 | case "${targ}" in | |
5620 | all|d10v-*-*) | |
5621 | if test "${targ}" = "${target}"; then | |
5622 | SIM_PRIMARY_TARGET=d10v | |
5623 | fi | |
3e8bb3e9 | 5624 | subdirs="$subdirs d10v" |
b9249c46 | 5625 | |
a0e674c1 | 5626 | |
3e8bb3e9 | 5627 | ;; |
a0e674c1 MF |
5628 | esac |
5629 | ||
5630 | ||
5631 | case "${targ}" in | |
5632 | all|frv-*-*) | |
5633 | if test "${targ}" = "${target}"; then | |
5634 | SIM_PRIMARY_TARGET=frv | |
5635 | fi | |
3e8bb3e9 | 5636 | subdirs="$subdirs frv" |
b9249c46 | 5637 | |
a0e674c1 | 5638 | |
3e8bb3e9 | 5639 | ;; |
a0e674c1 MF |
5640 | esac |
5641 | ||
5642 | ||
5643 | case "${targ}" in | |
5644 | all|h8300*-*-*) | |
5645 | if test "${targ}" = "${target}"; then | |
5646 | SIM_PRIMARY_TARGET=h8300 | |
5647 | fi | |
3e8bb3e9 | 5648 | subdirs="$subdirs h8300" |
119da465 | 5649 | |
a0e674c1 | 5650 | |
3e8bb3e9 | 5651 | ;; |
a0e674c1 MF |
5652 | esac |
5653 | ||
5654 | ||
5655 | case "${targ}" in | |
5656 | all|iq2000-*-*) | |
5657 | if test "${targ}" = "${target}"; then | |
5658 | SIM_PRIMARY_TARGET=iq2000 | |
5659 | fi | |
3e8bb3e9 | 5660 | subdirs="$subdirs iq2000" |
119da465 | 5661 | |
a0e674c1 | 5662 | |
3e8bb3e9 | 5663 | ;; |
a0e674c1 MF |
5664 | esac |
5665 | ||
5666 | ||
5667 | case "${targ}" in | |
5668 | all|lm32-*-*) | |
5669 | if test "${targ}" = "${target}"; then | |
5670 | SIM_PRIMARY_TARGET=lm32 | |
5671 | fi | |
3e8bb3e9 | 5672 | subdirs="$subdirs lm32" |
119da465 | 5673 | |
a0e674c1 | 5674 | |
3e8bb3e9 | 5675 | ;; |
a0e674c1 MF |
5676 | esac |
5677 | ||
5678 | ||
5679 | case "${targ}" in | |
5680 | all|m32c-*-*) | |
5681 | if test "${targ}" = "${target}"; then | |
5682 | SIM_PRIMARY_TARGET=m32c | |
5683 | fi | |
3e8bb3e9 | 5684 | subdirs="$subdirs m32c" |
87326c78 | 5685 | |
a0e674c1 | 5686 | |
3e8bb3e9 | 5687 | ;; |
a0e674c1 MF |
5688 | esac |
5689 | ||
5690 | ||
5691 | case "${targ}" in | |
5692 | all|m32r-*-*) | |
5693 | if test "${targ}" = "${target}"; then | |
5694 | SIM_PRIMARY_TARGET=m32r | |
5695 | fi | |
3e8bb3e9 | 5696 | subdirs="$subdirs m32r" |
87326c78 | 5697 | |
a0e674c1 | 5698 | |
3e8bb3e9 | 5699 | ;; |
a0e674c1 MF |
5700 | esac |
5701 | ||
5702 | ||
5703 | case "${targ}" in | |
5704 | all|m68hc11-*-*|m6811-*-*) | |
5705 | if test "${targ}" = "${target}"; then | |
5706 | SIM_PRIMARY_TARGET=m68hc11 | |
5707 | fi | |
3e8bb3e9 | 5708 | subdirs="$subdirs m68hc11" |
87326c78 | 5709 | |
a0e674c1 | 5710 | |
3e8bb3e9 | 5711 | ;; |
a0e674c1 MF |
5712 | esac |
5713 | ||
5714 | ||
5715 | case "${targ}" in | |
5716 | all|mcore-*-*) | |
5717 | if test "${targ}" = "${target}"; then | |
5718 | SIM_PRIMARY_TARGET=mcore | |
5719 | fi | |
3e8bb3e9 | 5720 | subdirs="$subdirs mcore" |
119da465 | 5721 | |
a0e674c1 | 5722 | |
3e8bb3e9 | 5723 | ;; |
a0e674c1 MF |
5724 | esac |
5725 | ||
5726 | ||
5727 | case "${targ}" in | |
5728 | all|microblaze-*-*) | |
5729 | if test "${targ}" = "${target}"; then | |
5730 | SIM_PRIMARY_TARGET=microblaze | |
5731 | fi | |
3e8bb3e9 | 5732 | subdirs="$subdirs microblaze" |
119da465 | 5733 | |
a0e674c1 | 5734 | |
3e8bb3e9 | 5735 | ;; |
a0e674c1 MF |
5736 | esac |
5737 | ||
5738 | ||
5739 | case "${targ}" in | |
5740 | all|mips*-*-*) | |
5741 | if test "${targ}" = "${target}"; then | |
5742 | SIM_PRIMARY_TARGET=mips | |
5743 | fi | |
3e8bb3e9 | 5744 | subdirs="$subdirs mips" |
119da465 | 5745 | |
3e8bb3e9 MF |
5746 | sim_igen=yes |
5747 | ;; | |
a0e674c1 MF |
5748 | esac |
5749 | ||
5750 | ||
5751 | case "${targ}" in | |
5752 | all|mn10300*-*-*) | |
5753 | if test "${targ}" = "${target}"; then | |
5754 | SIM_PRIMARY_TARGET=mn10300 | |
5755 | fi | |
3e8bb3e9 | 5756 | subdirs="$subdirs mn10300" |
119da465 | 5757 | |
3e8bb3e9 MF |
5758 | sim_igen=yes |
5759 | ;; | |
a0e674c1 MF |
5760 | esac |
5761 | ||
5762 | ||
5763 | case "${targ}" in | |
5764 | all|moxie-*-*) | |
5765 | if test "${targ}" = "${target}"; then | |
5766 | SIM_PRIMARY_TARGET=moxie | |
5767 | fi | |
3e8bb3e9 | 5768 | subdirs="$subdirs moxie" |
119da465 | 5769 | |
a0e674c1 | 5770 | |
3e8bb3e9 | 5771 | ;; |
a0e674c1 MF |
5772 | esac |
5773 | ||
5774 | ||
5775 | case "${targ}" in | |
5776 | all|msp430*-*-*) | |
5777 | if test "${targ}" = "${target}"; then | |
5778 | SIM_PRIMARY_TARGET=msp430 | |
5779 | fi | |
3e8bb3e9 | 5780 | subdirs="$subdirs msp430" |
119da465 | 5781 | |
a0e674c1 | 5782 | |
3e8bb3e9 | 5783 | ;; |
a0e674c1 MF |
5784 | esac |
5785 | ||
5786 | ||
5787 | case "${targ}" in | |
5788 | all|or1k-*-* | or1knd-*-*) | |
5789 | if test "${targ}" = "${target}"; then | |
5790 | SIM_PRIMARY_TARGET=or1k | |
5791 | fi | |
3e8bb3e9 | 5792 | subdirs="$subdirs or1k" |
119da465 | 5793 | |
a0e674c1 | 5794 | |
3e8bb3e9 | 5795 | ;; |
a0e674c1 MF |
5796 | esac |
5797 | ||
5798 | ||
5799 | case "${targ}" in | |
5800 | all|pru*-*-*) | |
5801 | if test "${targ}" = "${target}"; then | |
5802 | SIM_PRIMARY_TARGET=pru | |
5803 | fi | |
3e8bb3e9 | 5804 | subdirs="$subdirs pru" |
119da465 | 5805 | |
a0e674c1 | 5806 | |
3e8bb3e9 | 5807 | ;; |
a0e674c1 MF |
5808 | esac |
5809 | ||
5810 | ||
5811 | case "${targ}" in | |
5812 | all|riscv*-*-*) | |
5813 | if test "${targ}" = "${target}"; then | |
5814 | SIM_PRIMARY_TARGET=riscv | |
5815 | fi | |
3e8bb3e9 | 5816 | subdirs="$subdirs riscv" |
119da465 | 5817 | |
a0e674c1 | 5818 | |
3e8bb3e9 | 5819 | ;; |
a0e674c1 MF |
5820 | esac |
5821 | ||
5822 | ||
5823 | case "${targ}" in | |
5824 | all|rl78-*-*) | |
5825 | if test "${targ}" = "${target}"; then | |
5826 | SIM_PRIMARY_TARGET=rl78 | |
5827 | fi | |
3e8bb3e9 | 5828 | subdirs="$subdirs rl78" |
f46e4eb7 | 5829 | |
a0e674c1 | 5830 | |
3e8bb3e9 | 5831 | ;; |
a0e674c1 MF |
5832 | esac |
5833 | ||
5834 | ||
5835 | case "${targ}" in | |
5836 | all|rx-*-*) | |
5837 | if test "${targ}" = "${target}"; then | |
5838 | SIM_PRIMARY_TARGET=rx | |
5839 | fi | |
3e8bb3e9 | 5840 | subdirs="$subdirs rx" |
f46e4eb7 | 5841 | |
a0e674c1 | 5842 | |
3e8bb3e9 | 5843 | ;; |
a0e674c1 MF |
5844 | esac |
5845 | ||
5846 | ||
5847 | case "${targ}" in | |
5848 | all|sh*-*-*) | |
5849 | if test "${targ}" = "${target}"; then | |
5850 | SIM_PRIMARY_TARGET=sh | |
5851 | fi | |
3e8bb3e9 | 5852 | subdirs="$subdirs sh" |
f46e4eb7 | 5853 | |
a0e674c1 | 5854 | |
3e8bb3e9 | 5855 | ;; |
a0e674c1 MF |
5856 | esac |
5857 | ||
5858 | ||
5859 | case "${targ}" in | |
5860 | all|sparc-*-rtems*|sparc-*-elf*) | |
5861 | if test "${targ}" = "${target}"; then | |
5862 | SIM_PRIMARY_TARGET=erc32 | |
5863 | fi | |
3e8bb3e9 | 5864 | subdirs="$subdirs erc32" |
119da465 | 5865 | |
a0e674c1 | 5866 | |
3e8bb3e9 | 5867 | ;; |
a0e674c1 MF |
5868 | esac |
5869 | ||
5870 | ||
5871 | case "${targ}" in | |
5872 | all|powerpc*-*-*) | |
5873 | if test "${targ}" = "${target}"; then | |
5874 | SIM_PRIMARY_TARGET=ppc | |
5875 | fi | |
3e8bb3e9 | 5876 | subdirs="$subdirs ppc" |
119da465 | 5877 | |
a0e674c1 | 5878 | |
3e8bb3e9 | 5879 | ;; |
a0e674c1 MF |
5880 | esac |
5881 | ||
5882 | ||
5883 | case "${targ}" in | |
5884 | all|ft32-*-*) | |
5885 | if test "${targ}" = "${target}"; then | |
5886 | SIM_PRIMARY_TARGET=ft32 | |
5887 | fi | |
3e8bb3e9 | 5888 | subdirs="$subdirs ft32" |
119da465 | 5889 | |
a0e674c1 | 5890 | |
3e8bb3e9 | 5891 | ;; |
a0e674c1 MF |
5892 | esac |
5893 | ||
5894 | ||
5895 | case "${targ}" in | |
5896 | all|v850*-*-*) | |
5897 | if test "${targ}" = "${target}"; then | |
5898 | SIM_PRIMARY_TARGET=v850 | |
5899 | fi | |
3e8bb3e9 | 5900 | subdirs="$subdirs v850" |
119da465 | 5901 | |
3e8bb3e9 MF |
5902 | sim_igen=yes |
5903 | ;; | |
5904 | esac | |
a0e674c1 MF |
5905 | |
5906 | done | |
26da232c MF |
5907 | |
5908 | if test "x${enable_example_sims}" = xyes; then | |
5909 | subdirs="$subdirs example-synacor" | |
5910 | ||
5911 | fi | |
b6b1c790 MF |
5912 | fi |
5913 | if test "$sim_igen" = "yes"; then | |
5914 | SIM_ENABLE_IGEN_TRUE= | |
5915 | SIM_ENABLE_IGEN_FALSE='#' | |
5916 | else | |
5917 | SIM_ENABLE_IGEN_TRUE='#' | |
5918 | SIM_ENABLE_IGEN_FALSE= | |
c906108c SS |
5919 | fi |
5920 | ||
b6b1c790 | 5921 | |
dba333c1 MF |
5922 | |
5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5 | |
5924 | $as_echo_n "checking whether to enable sim asserts... " >&6; } | |
5925 | sim_assert="1" | |
5926 | # Check whether --enable-sim-assert was given. | |
5927 | if test "${enable_sim_assert+set}" = set; then : | |
5928 | enableval=$enable_sim_assert; case "${enableval}" in | |
5929 | yes) sim_assert="1";; | |
5930 | no) sim_assert="0";; | |
5931 | *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;; | |
5932 | esac | |
5933 | fi | |
5934 | ||
5935 | cat >>confdefs.h <<_ACEOF | |
5936 | #define WITH_ASSERT $sim_assert | |
5937 | _ACEOF | |
5938 | ||
5939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5 | |
5940 | $as_echo "$sim_assert" >&6; } | |
5941 | ||
5942 | ||
6c57b87f | 5943 | ac_config_files="$ac_config_files Makefile" |
81ecdfbb | 5944 | |
b7026657 | 5945 | cat >confcache <<\_ACEOF |
c906108c SS |
5946 | # This file is a shell script that caches the results of configure |
5947 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
5948 | # scripts and configure runs, see configure's option --config-cache. |
5949 | # It is not useful on other systems. If it contains results you don't | |
5950 | # want to keep, you may remove or edit it. | |
c906108c | 5951 | # |
b7026657 AC |
5952 | # config.status only pays attention to the cache file if you give it |
5953 | # the --recheck option to rerun configure. | |
c906108c | 5954 | # |
b7026657 AC |
5955 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
5956 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
5957 | # following values. | |
5958 | ||
5959 | _ACEOF | |
5960 | ||
c906108c SS |
5961 | # The following way of writing the cache mishandles newlines in values, |
5962 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 5963 | # So, we kill variables containing newlines. |
c906108c SS |
5964 | # Ultrix sh set writes to stderr and can't be redirected directly, |
5965 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
5966 | ( |
5967 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
5968 | eval ac_val=\$$ac_var | |
5969 | case $ac_val in #( | |
5970 | *${as_nl}*) | |
5971 | case $ac_var in #( | |
5972 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
5973 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
5974 | esac | |
5975 | case $ac_var in #( | |
5976 | _ | IFS | as_nl) ;; #( | |
5977 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
5978 | *) { eval $ac_var=; unset $ac_var;} ;; | |
5979 | esac ;; | |
5980 | esac | |
5981 | done | |
5982 | ||
b7026657 | 5983 | (set) 2>&1 | |
81ecdfbb RW |
5984 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
5985 | *${as_nl}ac_space=\ *) | |
5986 | # `set' does not quote correctly, so add quotes: double-quote | |
5987 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b7026657 AC |
5988 | sed -n \ |
5989 | "s/'/'\\\\''/g; | |
5990 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 5991 | ;; #( |
b7026657 AC |
5992 | *) |
5993 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 5994 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 5995 | ;; |
81ecdfbb RW |
5996 | esac | |
5997 | sort | |
5998 | ) | | |
b7026657 | 5999 | sed ' |
81ecdfbb | 6000 | /^ac_cv_env_/b end |
b7026657 | 6001 | t clear |
81ecdfbb | 6002 | :clear |
b7026657 AC |
6003 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6004 | t end | |
81ecdfbb RW |
6005 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6006 | :end' >>confcache | |
6007 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6008 | if test -w "$cache_file"; then | |
d0ac1c44 | 6009 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
6011 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
6012 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
6013 | cat confcache >"$cache_file" | |
6014 | else | |
6015 | case $cache_file in #( | |
6016 | */* | ?:*) | |
6017 | mv -f confcache "$cache_file"$$ && | |
6018 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
6019 | *) | |
6020 | mv -f confcache "$cache_file" ;; | |
6021 | esac | |
6022 | fi | |
6023 | fi | |
c906108c | 6024 | else |
81ecdfbb RW |
6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
6026 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
c906108c SS |
6027 | fi |
6028 | fi | |
6029 | rm -f confcache | |
6030 | ||
c906108c SS |
6031 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6032 | # Let make expand exec_prefix. | |
6033 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6034 | ||
b15c5d7a | 6035 | DEFS=-DHAVE_CONFIG_H |
b7026657 AC |
6036 | |
6037 | ac_libobjs= | |
6038 | ac_ltlibobjs= | |
d0ac1c44 | 6039 | U= |
b7026657 AC |
6040 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
6041 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
6042 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6043 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
6044 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6045 | # will be set to the directory where LIBOBJS objects are built. | |
6046 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6047 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b7026657 AC |
6048 | done |
6049 | LIBOBJS=$ac_libobjs | |
c906108c | 6050 | |
b7026657 AC |
6051 | LTLIBOBJS=$ac_ltlibobjs |
6052 | ||
6053 | ||
c2783492 | 6054 | |
8c379db2 TT |
6055 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
6056 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
6057 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6058 | fi | |
6bddc3e8 MF |
6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
6060 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
6061 | if test -n "$am_sleep_pid"; then | |
6062 | # Hide warnings about reused PIDs. | |
6063 | wait $am_sleep_pid 2>/dev/null | |
6064 | fi | |
6065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
6066 | $as_echo "done" >&6; } | |
6bddc3e8 MF |
6067 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
6068 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
6069 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6070 | fi | |
6071 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
6072 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
6073 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6074 | fi | |
c2783492 MF |
6075 | if test -n "$EXEEXT"; then |
6076 | am__EXEEXT_TRUE= | |
6077 | am__EXEEXT_FALSE='#' | |
6078 | else | |
6079 | am__EXEEXT_TRUE='#' | |
6080 | am__EXEEXT_FALSE= | |
6bddc3e8 | 6081 | fi |
b7026657 | 6082 | |
b6b1c790 MF |
6083 | if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then |
6084 | as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined. | |
6085 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6086 | fi | |
c2783492 | 6087 | |
d0ac1c44 | 6088 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 6089 | ac_write_fail=0 |
b7026657 AC |
6090 | ac_clean_files_save=$ac_clean_files |
6091 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
6093 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6094 | as_write_fail=0 | |
6095 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b7026657 AC |
6096 | #! $SHELL |
6097 | # Generated by $as_me. | |
c906108c | 6098 | # Run this file to recreate the current configuration. |
c906108c | 6099 | # Compiler output produced by configure, useful for debugging |
b7026657 AC |
6100 | # configure, is in config.log if it exists. |
6101 | ||
6102 | debug=false | |
6103 | ac_cs_recheck=false | |
6104 | ac_cs_silent=false | |
b7026657 | 6105 | |
81ecdfbb RW |
6106 | SHELL=\${CONFIG_SHELL-$SHELL} |
6107 | export SHELL | |
6108 | _ASEOF | |
6109 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
6110 | ## -------------------- ## | |
6111 | ## M4sh Initialization. ## | |
6112 | ## -------------------- ## | |
6113 | ||
6114 | # Be more Bourne compatible | |
6115 | DUALCASE=1; export DUALCASE # for MKS sh | |
6116 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
6117 | emulate sh |
6118 | NULLCMD=: | |
81ecdfbb | 6119 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
6120 | # is contrary to our usage. Disable this feature. |
6121 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
6122 | setopt NO_GLOB_SUBST |
6123 | else | |
6124 | case `(set -o) 2>/dev/null` in #( | |
6125 | *posix*) : | |
6126 | set -o posix ;; #( | |
6127 | *) : | |
6128 | ;; | |
6129 | esac | |
b7026657 | 6130 | fi |
c906108c | 6131 | |
81ecdfbb RW |
6132 | |
6133 | as_nl=' | |
6134 | ' | |
6135 | export as_nl | |
6136 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6137 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6138 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6139 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6140 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
6141 | # but without wasting forks for bash or zsh. | |
6142 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
6143 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6144 | as_echo='print -r --' | |
6145 | as_echo_n='print -rn --' | |
6146 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6147 | as_echo='printf %s\n' | |
6148 | as_echo_n='printf %s' | |
b7026657 | 6149 | else |
81ecdfbb RW |
6150 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
6151 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6152 | as_echo_n='/usr/ucb/echo -n' | |
6153 | else | |
6154 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
6155 | as_echo_n_body='eval | |
6156 | arg=$1; | |
6157 | case $arg in #( | |
6158 | *"$as_nl"*) | |
6159 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
6160 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
6161 | esac; | |
6162 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
6163 | ' | |
6164 | export as_echo_n_body | |
6165 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
6166 | fi | |
6167 | export as_echo_body | |
6168 | as_echo='sh -c $as_echo_body as_echo' | |
6169 | fi | |
6170 | ||
6171 | # The user is always right. | |
6172 | if test "${PATH_SEPARATOR+set}" != set; then | |
6173 | PATH_SEPARATOR=: | |
6174 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
6175 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
6176 | PATH_SEPARATOR=';' | |
6177 | } | |
b7026657 AC |
6178 | fi |
6179 | ||
6180 | ||
81ecdfbb RW |
6181 | # IFS |
6182 | # We need space, tab and new line, in precisely that order. Quoting is | |
6183 | # there to prevent editors from complaining about space-tab. | |
6184 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6185 | # splitting by setting IFS to empty value.) | |
6186 | IFS=" "" $as_nl" | |
6187 | ||
6188 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 6189 | as_myself= |
81ecdfbb RW |
6190 | case $0 in #(( |
6191 | *[\\/]* ) as_myself=$0 ;; | |
6192 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6193 | for as_dir in $PATH | |
6194 | do | |
6195 | IFS=$as_save_IFS | |
6196 | test -z "$as_dir" && as_dir=. | |
6197 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6198 | done | |
6199 | IFS=$as_save_IFS | |
6200 | ||
6201 | ;; | |
6202 | esac | |
6203 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6204 | # in which case we are not to be found in the path. | |
6205 | if test "x$as_myself" = x; then | |
6206 | as_myself=$0 | |
6207 | fi | |
6208 | if test ! -f "$as_myself"; then | |
6209 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6210 | exit 1 | |
6211 | fi | |
6212 | ||
6213 | # Unset variables that we do not need and which cause bugs (e.g. in | |
6214 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
6215 | # suppresses any "Segmentation fault" message there. '((' could | |
6216 | # trigger a bug in pdksh 5.2.14. | |
6217 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
6218 | do eval test x\${$as_var+set} = xset \ | |
6219 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
6220 | done | |
b7026657 AC |
6221 | PS1='$ ' |
6222 | PS2='> ' | |
6223 | PS4='+ ' | |
6224 | ||
6225 | # NLS nuisances. | |
81ecdfbb RW |
6226 | LC_ALL=C |
6227 | export LC_ALL | |
6228 | LANGUAGE=C | |
6229 | export LANGUAGE | |
6230 | ||
6231 | # CDPATH. | |
6232 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
6233 | ||
6234 | ||
d0ac1c44 SM |
6235 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
6236 | # ---------------------------------------- | |
81ecdfbb RW |
6237 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
6238 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 6239 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
6240 | as_fn_error () |
6241 | { | |
d0ac1c44 SM |
6242 | as_status=$1; test $as_status -eq 0 && as_status=1 |
6243 | if test "$4"; then | |
6244 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6245 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b7026657 | 6246 | fi |
d0ac1c44 | 6247 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
6248 | as_fn_exit $as_status |
6249 | } # as_fn_error | |
c906108c | 6250 | |
81ecdfbb RW |
6251 | |
6252 | # as_fn_set_status STATUS | |
6253 | # ----------------------- | |
6254 | # Set $? to STATUS, without forking. | |
6255 | as_fn_set_status () | |
6256 | { | |
6257 | return $1 | |
6258 | } # as_fn_set_status | |
6259 | ||
6260 | # as_fn_exit STATUS | |
6261 | # ----------------- | |
6262 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
6263 | as_fn_exit () | |
6264 | { | |
6265 | set +e | |
6266 | as_fn_set_status $1 | |
6267 | exit $1 | |
6268 | } # as_fn_exit | |
6269 | ||
6270 | # as_fn_unset VAR | |
6271 | # --------------- | |
6272 | # Portably unset VAR. | |
6273 | as_fn_unset () | |
6274 | { | |
6275 | { eval $1=; unset $1;} | |
6276 | } | |
6277 | as_unset=as_fn_unset | |
6278 | # as_fn_append VAR VALUE | |
6279 | # ---------------------- | |
6280 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
6281 | # advantage of any shell optimizations that allow amortized linear growth over | |
6282 | # repeated appends, instead of the typical quadratic growth present in naive | |
6283 | # implementations. | |
6284 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
6285 | eval 'as_fn_append () | |
6286 | { | |
6287 | eval $1+=\$2 | |
6288 | }' | |
6289 | else | |
6290 | as_fn_append () | |
6291 | { | |
6292 | eval $1=\$$1\$2 | |
6293 | } | |
6294 | fi # as_fn_append | |
6295 | ||
6296 | # as_fn_arith ARG... | |
6297 | # ------------------ | |
6298 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
6299 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
6300 | # must be portable across $(()) and expr. | |
6301 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
6302 | eval 'as_fn_arith () | |
6303 | { | |
6304 | as_val=$(( $* )) | |
6305 | }' | |
6306 | else | |
6307 | as_fn_arith () | |
6308 | { | |
6309 | as_val=`expr "$@" || test $? -eq 1` | |
6310 | } | |
6311 | fi # as_fn_arith | |
6312 | ||
6313 | ||
6314 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
6315 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
6316 | as_expr=expr |
6317 | else | |
6318 | as_expr=false | |
6319 | fi | |
c906108c | 6320 | |
81ecdfbb | 6321 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
6322 | as_basename=basename |
6323 | else | |
6324 | as_basename=false | |
6325 | fi | |
c906108c | 6326 | |
81ecdfbb RW |
6327 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
6328 | as_dirname=dirname | |
6329 | else | |
6330 | as_dirname=false | |
6331 | fi | |
c906108c | 6332 | |
81ecdfbb | 6333 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
6334 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6335 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
6336 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
6337 | $as_echo X/"$0" | | |
6338 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
6339 | s//\1/ | |
6340 | q | |
6341 | } | |
6342 | /^X\/\(\/\/\)$/{ | |
6343 | s//\1/ | |
6344 | q | |
6345 | } | |
6346 | /^X\/\(\/\).*/{ | |
6347 | s//\1/ | |
6348 | q | |
6349 | } | |
6350 | s/.*/./; q'` | |
b7026657 | 6351 | |
fdd6fa61 AG |
6352 | # Avoid depending upon Character Ranges. |
6353 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6354 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6355 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6356 | as_cr_digits='0123456789' | |
6357 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6358 | ||
81ecdfbb RW |
6359 | ECHO_C= ECHO_N= ECHO_T= |
6360 | case `echo -n x` in #((((( | |
6361 | -n*) | |
6362 | case `echo 'xy\c'` in | |
6363 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6364 | xy) ECHO_C='\c';; | |
6365 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
6366 | ECHO_T=' ';; | |
6367 | esac;; | |
6368 | *) | |
6369 | ECHO_N='-n';; | |
b7026657 AC |
6370 | esac |
6371 | ||
81ecdfbb RW |
6372 | rm -f conf$$ conf$$.exe conf$$.file |
6373 | if test -d conf$$.dir; then | |
6374 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 6375 | else |
81ecdfbb RW |
6376 | rm -f conf$$.dir |
6377 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 6378 | fi |
81ecdfbb RW |
6379 | if (echo >conf$$.file) 2>/dev/null; then |
6380 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fdd6fa61 | 6381 | as_ln_s='ln -s' |
81ecdfbb RW |
6382 | # ... but there are two gotchas: |
6383 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6384 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 6385 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 6386 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 6387 | as_ln_s='cp -pR' |
81ecdfbb RW |
6388 | elif ln conf$$.file conf$$ 2>/dev/null; then |
6389 | as_ln_s=ln | |
6390 | else | |
d0ac1c44 | 6391 | as_ln_s='cp -pR' |
fdd6fa61 | 6392 | fi |
b7026657 | 6393 | else |
d0ac1c44 | 6394 | as_ln_s='cp -pR' |
b7026657 | 6395 | fi |
81ecdfbb RW |
6396 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6397 | rmdir conf$$.dir 2>/dev/null | |
6398 | ||
6399 | ||
6400 | # as_fn_mkdir_p | |
6401 | # ------------- | |
6402 | # Create "$as_dir" as a directory, including parents if necessary. | |
6403 | as_fn_mkdir_p () | |
6404 | { | |
b7026657 | 6405 | |
81ecdfbb RW |
6406 | case $as_dir in #( |
6407 | -*) as_dir=./$as_dir;; | |
6408 | esac | |
6409 | test -d "$as_dir" || eval $as_mkdir_p || { | |
6410 | as_dirs= | |
6411 | while :; do | |
6412 | case $as_dir in #( | |
6413 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6414 | *) as_qdir=$as_dir;; | |
6415 | esac | |
6416 | as_dirs="'$as_qdir' $as_dirs" | |
6417 | as_dir=`$as_dirname -- "$as_dir" || | |
6418 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6419 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6420 | X"$as_dir" : 'X\(//\)$' \| \ | |
6421 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6422 | $as_echo X"$as_dir" | | |
6423 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6424 | s//\1/ | |
6425 | q | |
6426 | } | |
6427 | /^X\(\/\/\)[^/].*/{ | |
6428 | s//\1/ | |
6429 | q | |
6430 | } | |
6431 | /^X\(\/\/\)$/{ | |
6432 | s//\1/ | |
6433 | q | |
6434 | } | |
6435 | /^X\(\/\).*/{ | |
6436 | s//\1/ | |
6437 | q | |
6438 | } | |
6439 | s/.*/./; q'` | |
6440 | test -d "$as_dir" && break | |
6441 | done | |
6442 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 6443 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
6444 | |
6445 | ||
6446 | } # as_fn_mkdir_p | |
b7026657 | 6447 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 6448 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
6449 | else |
6450 | test -d ./-p && rmdir ./-p | |
6451 | as_mkdir_p=false | |
6452 | fi | |
6453 | ||
d0ac1c44 SM |
6454 | |
6455 | # as_fn_executable_p FILE | |
6456 | # ----------------------- | |
6457 | # Test if FILE is an executable regular file. | |
6458 | as_fn_executable_p () | |
6459 | { | |
6460 | test -f "$1" && test -x "$1" | |
6461 | } # as_fn_executable_p | |
6462 | as_test_x='test -x' | |
6463 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
6464 | |
6465 | # Sed expression to map a string onto a valid CPP name. | |
6466 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
6467 | ||
6468 | # Sed expression to map a string onto a valid variable name. | |
6469 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6470 | ||
6471 | ||
b7026657 | 6472 | exec 6>&1 |
81ecdfbb RW |
6473 | ## ----------------------------------- ## |
6474 | ## Main body of $CONFIG_STATUS script. ## | |
6475 | ## ----------------------------------- ## | |
6476 | _ASEOF | |
6477 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
6478 | ||
6479 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6480 | # Save the log message, to keep $0 and so on meaningful, and to | |
b7026657 | 6481 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
6482 | # values after options handling. |
6483 | ac_log=" | |
6bddc3e8 | 6484 | This file was extended by sim $as_me 0, which was |
d0ac1c44 | 6485 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
6486 | |
6487 | CONFIG_FILES = $CONFIG_FILES | |
6488 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6489 | CONFIG_LINKS = $CONFIG_LINKS | |
6490 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6491 | $ $0 $@ | |
6492 | ||
81ecdfbb RW |
6493 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
6494 | " | |
6495 | ||
b7026657 AC |
6496 | _ACEOF |
6497 | ||
81ecdfbb RW |
6498 | case $ac_config_files in *" |
6499 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
6500 | esac | |
b7026657 | 6501 | |
b15c5d7a MF |
6502 | case $ac_config_headers in *" |
6503 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
6504 | esac | |
fdd6fa61 | 6505 | |
fdd6fa61 | 6506 | |
81ecdfbb RW |
6507 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6508 | # Files that config.status was made for. | |
6509 | config_files="$ac_config_files" | |
b15c5d7a | 6510 | config_headers="$ac_config_headers" |
6bddc3e8 | 6511 | config_commands="$ac_config_commands" |
b7026657 | 6512 | |
81ecdfbb | 6513 | _ACEOF |
fdd6fa61 | 6514 | |
81ecdfbb | 6515 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 6516 | ac_cs_usage="\ |
81ecdfbb RW |
6517 | \`$as_me' instantiates files and other configuration actions |
6518 | from templates according to the current configuration. Unless the files | |
6519 | and actions are specified as TAGs, all are instantiated by default. | |
b7026657 | 6520 | |
81ecdfbb | 6521 | Usage: $0 [OPTION]... [TAG]... |
b7026657 AC |
6522 | |
6523 | -h, --help print this help, then exit | |
81ecdfbb | 6524 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 6525 | --config print configuration, then exit |
81ecdfbb RW |
6526 | -q, --quiet, --silent |
6527 | do not print progress messages | |
b7026657 AC |
6528 | -d, --debug don't remove temporary files |
6529 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
6530 | --file=FILE[:TEMPLATE] |
6531 | instantiate the configuration file FILE | |
b15c5d7a MF |
6532 | --header=FILE[:TEMPLATE] |
6533 | instantiate the configuration header FILE | |
b7026657 AC |
6534 | |
6535 | Configuration files: | |
6536 | $config_files | |
6537 | ||
b15c5d7a MF |
6538 | Configuration headers: |
6539 | $config_headers | |
6540 | ||
6bddc3e8 MF |
6541 | Configuration commands: |
6542 | $config_commands | |
6543 | ||
6544 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. | |
6545 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>." | |
fdd6fa61 | 6546 | |
81ecdfbb RW |
6547 | _ACEOF |
6548 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 6549 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b7026657 | 6550 | ac_cs_version="\\ |
6bddc3e8 | 6551 | sim config.status 0 |
d0ac1c44 SM |
6552 | configured by $0, generated by GNU Autoconf 2.69, |
6553 | with options \\"\$ac_cs_config\\" | |
b7026657 | 6554 | |
d0ac1c44 | 6555 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
6556 | This config.status script is free software; the Free Software Foundation |
6557 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
6558 | |
6559 | ac_pwd='$ac_pwd' | |
6560 | srcdir='$srcdir' | |
6561 | INSTALL='$INSTALL' | |
6bddc3e8 MF |
6562 | MKDIR_P='$MKDIR_P' |
6563 | AWK='$AWK' | |
81ecdfbb | 6564 | test -n "\$AWK" || AWK=awk |
b7026657 AC |
6565 | _ACEOF |
6566 | ||
81ecdfbb RW |
6567 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6568 | # The default lists apply if the user does not specify any file. | |
b7026657 AC |
6569 | ac_need_defaults=: |
6570 | while test $# != 0 | |
6571 | do | |
6572 | case $1 in | |
d0ac1c44 | 6573 | --*=?*) |
81ecdfbb RW |
6574 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
6575 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b7026657 AC |
6576 | ac_shift=: |
6577 | ;; | |
d0ac1c44 SM |
6578 | --*=) |
6579 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
6580 | ac_optarg= | |
6581 | ac_shift=: | |
6582 | ;; | |
81ecdfbb | 6583 | *) |
b7026657 AC |
6584 | ac_option=$1 |
6585 | ac_optarg=$2 | |
6586 | ac_shift=shift | |
6587 | ;; | |
b7026657 AC |
6588 | esac |
6589 | ||
6590 | case $ac_option in | |
6591 | # Handling of the options. | |
b7026657 AC |
6592 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6593 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
6594 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6595 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
6596 | --config | --confi | --conf | --con | --co | --c ) |
6597 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 6598 | --debug | --debu | --deb | --de | --d | -d ) |
b7026657 AC |
6599 | debug=: ;; |
6600 | --file | --fil | --fi | --f ) | |
6601 | $ac_shift | |
81ecdfbb RW |
6602 | case $ac_optarg in |
6603 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 6604 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
6605 | esac |
6606 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
fdd6fa61 | 6607 | ac_need_defaults=false;; |
b15c5d7a MF |
6608 | --header | --heade | --head | --hea ) |
6609 | $ac_shift | |
6610 | case $ac_optarg in | |
6611 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6612 | esac | |
6613 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
6614 | ac_need_defaults=false;; | |
6615 | --he | --h) | |
6616 | # Conflict between --help and --header | |
6617 | as_fn_error $? "ambiguous option: \`$1' | |
6618 | Try \`$0 --help' for more information.";; | |
6619 | --help | --hel | -h ) | |
81ecdfbb | 6620 | $as_echo "$ac_cs_usage"; exit ;; |
b7026657 AC |
6621 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6622 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6623 | ac_cs_silent=: ;; | |
6624 | ||
6625 | # This is an error. | |
d0ac1c44 | 6626 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 6627 | Try \`$0 --help' for more information." ;; |
b7026657 | 6628 | |
81ecdfbb RW |
6629 | *) as_fn_append ac_config_targets " $1" |
6630 | ac_need_defaults=false ;; | |
b7026657 AC |
6631 | |
6632 | esac | |
6633 | shift | |
c906108c | 6634 | done |
b7026657 AC |
6635 | |
6636 | ac_configure_extra_args= | |
6637 | ||
6638 | if $ac_cs_silent; then | |
6639 | exec 6>/dev/null | |
6640 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c | 6641 | fi |
c906108c | 6642 | |
b7026657 | 6643 | _ACEOF |
81ecdfbb | 6644 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b7026657 | 6645 | if \$ac_cs_recheck; then |
d0ac1c44 | 6646 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
6647 | shift |
6648 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
6649 | CONFIG_SHELL='$SHELL' | |
6650 | export CONFIG_SHELL | |
6651 | exec "\$@" | |
b7026657 | 6652 | fi |
c906108c | 6653 | |
b7026657 | 6654 | _ACEOF |
81ecdfbb RW |
6655 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6656 | exec 5>>config.log | |
6657 | { | |
6658 | echo | |
6659 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6660 | ## Running $as_me. ## | |
6661 | _ASBOX | |
6662 | $as_echo "$ac_log" | |
6663 | } >&5 | |
b7026657 | 6664 | |
81ecdfbb RW |
6665 | _ACEOF |
6666 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6bddc3e8 MF |
6667 | # |
6668 | # INIT-COMMANDS | |
6669 | # | |
6670 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
6671 | ||
81ecdfbb | 6672 | _ACEOF |
b7026657 | 6673 | |
81ecdfbb | 6674 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
df1756f4 | 6675 | |
81ecdfbb | 6676 | # Handling of arguments. |
b7026657 AC |
6677 | for ac_config_target in $ac_config_targets |
6678 | do | |
81ecdfbb | 6679 | case $ac_config_target in |
b15c5d7a | 6680 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
6bddc3e8 | 6681 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
81ecdfbb RW |
6682 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
6683 | ||
d0ac1c44 | 6684 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c906108c | 6685 | esac |
b7026657 | 6686 | done |
c906108c | 6687 | |
81ecdfbb | 6688 | |
b7026657 AC |
6689 | # If the user did not use the arguments to specify the items to instantiate, |
6690 | # then the envvar interface is used. Set only those that are not. | |
6691 | # We use the long form for the default assignment because of an extremely | |
6692 | # bizarre bug on SunOS 4.1.3. | |
6693 | if $ac_need_defaults; then | |
6694 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
b15c5d7a | 6695 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
6bddc3e8 | 6696 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
b7026657 | 6697 | fi |
c906108c | 6698 | |
b7026657 | 6699 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 6700 | # simply because there is no reason against having it here, and in addition, |
b7026657 | 6701 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
6702 | # Hook for its removal unless debugging. |
6703 | # Note that there is a small window in which the directory will not be cleaned: | |
6704 | # after its creation but before its name has been assigned to `$tmp'. | |
b7026657 AC |
6705 | $debug || |
6706 | { | |
d0ac1c44 | 6707 | tmp= ac_tmp= |
81ecdfbb | 6708 | trap 'exit_status=$? |
d0ac1c44 SM |
6709 | : "${ac_tmp:=$tmp}" |
6710 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
6711 | ' 0 |
6712 | trap 'as_fn_exit 1' 1 2 13 15 | |
b7026657 | 6713 | } |
b7026657 AC |
6714 | # Create a (secure) tmp directory for tmp files. |
6715 | ||
6716 | { | |
81ecdfbb | 6717 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 6718 | test -d "$tmp" |
b7026657 AC |
6719 | } || |
6720 | { | |
81ecdfbb RW |
6721 | tmp=./conf$$-$RANDOM |
6722 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
6723 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
6724 | ac_tmp=$tmp | |
81ecdfbb RW |
6725 | |
6726 | # Set up the scripts for CONFIG_FILES section. | |
6727 | # No need to generate them if there are no CONFIG_FILES. | |
6728 | # This happens for instance with `./config.status config.h'. | |
6729 | if test -n "$CONFIG_FILES"; then | |
6730 | ||
6731 | ||
6732 | ac_cr=`echo X | tr X '\015'` | |
6733 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
6734 | # But we know of no other shell where ac_cr would be empty at this | |
6735 | # point, so we can use a bashism as a fallback. | |
6736 | if test "x$ac_cr" = x; then | |
6737 | eval ac_cr=\$\'\\r\' | |
6738 | fi | |
6739 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
6740 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 6741 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
6742 | else |
6743 | ac_cs_awk_cr=$ac_cr | |
6744 | fi | |
6745 | ||
d0ac1c44 | 6746 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
6747 | _ACEOF |
6748 | ||
6749 | ||
6750 | { | |
6751 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
6752 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
6753 | echo "_ACEOF" | |
6754 | } >conf$$subs.sh || | |
d0ac1c44 SM |
6755 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
6756 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
6757 | ac_delim='%!_!# ' |
6758 | for ac_last_try in false false false false false :; do | |
6759 | . ./conf$$subs.sh || | |
d0ac1c44 | 6760 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
6761 | |
6762 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
6763 | if test $ac_delim_n = $ac_delim_num; then | |
6764 | break | |
6765 | elif $ac_last_try; then | |
d0ac1c44 | 6766 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
6767 | else |
6768 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
6769 | fi | |
6770 | done | |
6771 | rm -f conf$$subs.sh | |
6772 | ||
6773 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 6774 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
6775 | _ACEOF |
6776 | sed -n ' | |
6777 | h | |
6778 | s/^/S["/; s/!.*/"]=/ | |
6779 | p | |
6780 | g | |
6781 | s/^[^!]*!// | |
6782 | :repl | |
6783 | t repl | |
6784 | s/'"$ac_delim"'$// | |
6785 | t delim | |
6786 | :nl | |
6787 | h | |
d0ac1c44 | 6788 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
6789 | t more1 |
6790 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
6791 | p | |
6792 | n | |
6793 | b repl | |
6794 | :more1 | |
6795 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
6796 | p | |
6797 | g | |
6798 | s/.\{148\}// | |
6799 | t nl | |
6800 | :delim | |
6801 | h | |
d0ac1c44 | 6802 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
6803 | t more2 |
6804 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
6805 | p | |
6806 | b | |
6807 | :more2 | |
6808 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
6809 | p | |
6810 | g | |
6811 | s/.\{148\}// | |
6812 | t delim | |
6813 | ' <conf$$subs.awk | sed ' | |
6814 | /^[^""]/{ | |
6815 | N | |
6816 | s/\n// | |
6817 | } | |
6818 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
6819 | rm -f conf$$subs.awk | |
6820 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6821 | _ACAWK | |
d0ac1c44 | 6822 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
6823 | for (key in S) S_is_set[key] = 1 |
6824 | FS = "\a" | |
6825 | ||
6826 | } | |
b7026657 | 6827 | { |
81ecdfbb RW |
6828 | line = $ 0 |
6829 | nfields = split(line, field, "@") | |
6830 | substed = 0 | |
6831 | len = length(field[1]) | |
6832 | for (i = 2; i < nfields; i++) { | |
6833 | key = field[i] | |
6834 | keylen = length(key) | |
6835 | if (S_is_set[key]) { | |
6836 | value = S[key] | |
6837 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
6838 | len += length(value) + length(field[++i]) | |
6839 | substed = 1 | |
6840 | } else | |
6841 | len += 1 + keylen | |
6842 | } | |
6843 | ||
6844 | print line | |
b7026657 AC |
6845 | } |
6846 | ||
81ecdfbb RW |
6847 | _ACAWK |
6848 | _ACEOF | |
6849 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6850 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
6851 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
6852 | else | |
6853 | cat | |
d0ac1c44 SM |
6854 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
6855 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
fdd6fa61 AG |
6856 | _ACEOF |
6857 | ||
d0ac1c44 SM |
6858 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
6859 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
6860 | # trailing colons and then remove the whole line if VPATH becomes empty |
6861 | # (actually we leave an empty line to preserve line numbers). | |
6862 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
6863 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
6864 | h | |
6865 | s/// | |
6866 | s/^/:/ | |
6867 | s/[ ]*$/:/ | |
6868 | s/:\$(srcdir):/:/g | |
6869 | s/:\${srcdir}:/:/g | |
6870 | s/:@srcdir@:/:/g | |
6871 | s/^:*// | |
81ecdfbb | 6872 | s/:*$// |
d0ac1c44 SM |
6873 | x |
6874 | s/\(=[ ]*\).*/\1/ | |
6875 | G | |
6876 | s/\n// | |
81ecdfbb RW |
6877 | s/^[^=]*=[ ]*$// |
6878 | }' | |
6879 | fi | |
fdd6fa61 | 6880 | |
81ecdfbb RW |
6881 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6882 | fi # test -n "$CONFIG_FILES" | |
b7026657 | 6883 | |
b15c5d7a MF |
6884 | # Set up the scripts for CONFIG_HEADERS section. |
6885 | # No need to generate them if there are no CONFIG_HEADERS. | |
6886 | # This happens for instance with `./config.status Makefile'. | |
6887 | if test -n "$CONFIG_HEADERS"; then | |
6888 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
6889 | BEGIN { | |
6890 | _ACEOF | |
6891 | ||
6892 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
6893 | # here-document in config.status, that substitutes the proper values into | |
6894 | # config.h.in to produce config.h. | |
6895 | ||
6896 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
6897 | # handling of long lines. | |
6898 | ac_delim='%!_!# ' | |
6899 | for ac_last_try in false false :; do | |
6900 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
6901 | if test -z "$ac_tt"; then | |
6902 | break | |
6903 | elif $ac_last_try; then | |
6904 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
6905 | else | |
6906 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
6907 | fi | |
6908 | done | |
6909 | ||
6910 | # For the awk script, D is an array of macro values keyed by name, | |
6911 | # likewise P contains macro parameters if any. Preserve backslash | |
6912 | # newline sequences. | |
6913 | ||
6914 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
6915 | sed -n ' | |
6916 | s/.\{148\}/&'"$ac_delim"'/g | |
6917 | t rset | |
6918 | :rset | |
6919 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
6920 | t def | |
6921 | d | |
6922 | :def | |
6923 | s/\\$// | |
6924 | t bsnl | |
6925 | s/["\\]/\\&/g | |
6926 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
6927 | D["\1"]=" \3"/p | |
6928 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
6929 | d | |
6930 | :bsnl | |
6931 | s/["\\]/\\&/g | |
6932 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
6933 | D["\1"]=" \3\\\\\\n"\\/p | |
6934 | t cont | |
6935 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
6936 | t cont | |
6937 | d | |
6938 | :cont | |
6939 | n | |
6940 | s/.\{148\}/&'"$ac_delim"'/g | |
6941 | t clear | |
6942 | :clear | |
6943 | s/\\$// | |
6944 | t bsnlc | |
6945 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
6946 | d | |
6947 | :bsnlc | |
6948 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
6949 | b cont | |
6950 | ' <confdefs.h | sed ' | |
6951 | s/'"$ac_delim"'/"\\\ | |
6952 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
6953 | ||
6954 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6955 | for (key in D) D_is_set[key] = 1 | |
6956 | FS = "\a" | |
6957 | } | |
6958 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
6959 | line = \$ 0 | |
6960 | split(line, arg, " ") | |
6961 | if (arg[1] == "#") { | |
6962 | defundef = arg[2] | |
6963 | mac1 = arg[3] | |
6964 | } else { | |
6965 | defundef = substr(arg[1], 2) | |
6966 | mac1 = arg[2] | |
6967 | } | |
6968 | split(mac1, mac2, "(") #) | |
6969 | macro = mac2[1] | |
6970 | prefix = substr(line, 1, index(line, defundef) - 1) | |
6971 | if (D_is_set[macro]) { | |
6972 | # Preserve the white space surrounding the "#". | |
6973 | print prefix "define", macro P[macro] D[macro] | |
6974 | next | |
6975 | } else { | |
6976 | # Replace #undef with comments. This is necessary, for example, | |
6977 | # in the case of _POSIX_SOURCE, which is predefined and required | |
6978 | # on some systems where configure will not decide to define it. | |
6979 | if (defundef == "undef") { | |
6980 | print "/*", prefix defundef, macro, "*/" | |
6981 | next | |
6982 | } | |
6983 | } | |
6984 | } | |
6985 | { print } | |
6986 | _ACAWK | |
6987 | _ACEOF | |
6988 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6989 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
6990 | fi # test -n "$CONFIG_HEADERS" | |
b7026657 | 6991 | |
b15c5d7a MF |
6992 | |
6993 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
81ecdfbb RW |
6994 | shift |
6995 | for ac_tag | |
6996 | do | |
6997 | case $ac_tag in | |
6998 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
6999 | esac | |
7000 | case $ac_mode$ac_tag in | |
7001 | :[FHL]*:*);; | |
d0ac1c44 | 7002 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
7003 | :[FH]-) ac_tag=-:-;; |
7004 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
7005 | esac | |
7006 | ac_save_IFS=$IFS | |
7007 | IFS=: | |
7008 | set x $ac_tag | |
7009 | IFS=$ac_save_IFS | |
7010 | shift | |
7011 | ac_file=$1 | |
7012 | shift | |
b7026657 | 7013 | |
81ecdfbb RW |
7014 | case $ac_mode in |
7015 | :L) ac_source=$1;; | |
7016 | :[FH]) | |
7017 | ac_file_inputs= | |
7018 | for ac_f | |
7019 | do | |
7020 | case $ac_f in | |
d0ac1c44 | 7021 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
7022 | *) # Look for the file first in the build tree, then in the source tree |
7023 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7024 | # because $ac_f cannot contain `:'. | |
7025 | test -f "$ac_f" || | |
7026 | case $ac_f in | |
7027 | [\\/$]*) false;; | |
7028 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7029 | esac || | |
d0ac1c44 | 7030 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
7031 | esac |
7032 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
7033 | as_fn_append ac_file_inputs " '$ac_f'" | |
7034 | done | |
7035 | ||
7036 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7037 | # use $as_me), people would be surprised to read: | |
7038 | # /* config.h. Generated by config.status. */ | |
7039 | configure_input='Generated from '` | |
7040 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7041 | `' by configure.' | |
7042 | if test x"$ac_file" != x-; then | |
7043 | configure_input="$ac_file. $configure_input" | |
7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
7045 | $as_echo "$as_me: creating $ac_file" >&6;} | |
fdd6fa61 | 7046 | fi |
81ecdfbb RW |
7047 | # Neutralize special characters interpreted by sed in replacement strings. |
7048 | case $configure_input in #( | |
7049 | *\&* | *\|* | *\\* ) | |
7050 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
7051 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7052 | *) ac_sed_conf_input=$configure_input;; | |
7053 | esac | |
df1756f4 | 7054 | |
81ecdfbb | 7055 | case $ac_tag in |
d0ac1c44 SM |
7056 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
7057 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
7058 | esac |
7059 | ;; | |
df1756f4 TG |
7060 | esac |
7061 | ||
81ecdfbb | 7062 | ac_dir=`$as_dirname -- "$ac_file" || |
b7026657 AC |
7063 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7064 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7065 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7066 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7067 | $as_echo X"$ac_file" | | |
7068 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7069 | s//\1/ | |
7070 | q | |
7071 | } | |
7072 | /^X\(\/\/\)[^/].*/{ | |
7073 | s//\1/ | |
7074 | q | |
7075 | } | |
7076 | /^X\(\/\/\)$/{ | |
7077 | s//\1/ | |
7078 | q | |
7079 | } | |
7080 | /^X\(\/\).*/{ | |
7081 | s//\1/ | |
7082 | q | |
7083 | } | |
7084 | s/.*/./; q'` | |
7085 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
7086 | ac_builddir=. |
7087 | ||
81ecdfbb RW |
7088 | case "$ac_dir" in |
7089 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7090 | *) | |
7091 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
7092 | # A ".." for each directory in $ac_dir_suffix. | |
7093 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
7094 | case $ac_top_builddir_sub in | |
7095 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7096 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7097 | esac ;; | |
7098 | esac | |
7099 | ac_abs_top_builddir=$ac_pwd | |
7100 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7101 | # for backward compatibility: | |
7102 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
7103 | |
7104 | case $srcdir in | |
81ecdfbb | 7105 | .) # We are building in place. |
b7026657 | 7106 | ac_srcdir=. |
81ecdfbb RW |
7107 | ac_top_srcdir=$ac_top_builddir_sub |
7108 | ac_abs_top_srcdir=$ac_pwd ;; | |
7109 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 7110 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
7111 | ac_top_srcdir=$srcdir |
7112 | ac_abs_top_srcdir=$srcdir ;; | |
7113 | *) # Relative name. | |
7114 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7115 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7116 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 7117 | esac |
81ecdfbb | 7118 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b7026657 | 7119 | |
b7026657 | 7120 | |
81ecdfbb RW |
7121 | case $ac_mode in |
7122 | :F) | |
7123 | # | |
7124 | # CONFIG_FILE | |
7125 | # | |
c906108c | 7126 | |
b7026657 AC |
7127 | case $INSTALL in |
7128 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 7129 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
c906108c | 7130 | esac |
6bddc3e8 MF |
7131 | ac_MKDIR_P=$MKDIR_P |
7132 | case $MKDIR_P in | |
7133 | [\\/$]* | ?:[\\/]* ) ;; | |
7134 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
7135 | esac | |
81ecdfbb | 7136 | _ACEOF |
c906108c | 7137 | |
81ecdfbb RW |
7138 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7139 | # If the template does not know about datarootdir, expand it. | |
7140 | # FIXME: This hack should be removed a few years after 2.60. | |
7141 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7142 | ac_sed_dataroot=' | |
7143 | /datarootdir/ { | |
7144 | p | |
7145 | q | |
7146 | } | |
7147 | /@datadir@/p | |
7148 | /@docdir@/p | |
7149 | /@infodir@/p | |
7150 | /@localedir@/p | |
7151 | /@mandir@/p' | |
7152 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7153 | *datarootdir*) ac_datarootdir_seen=yes;; | |
7154 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7156 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7157 | _ACEOF | |
7158 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7159 | ac_datarootdir_hack=' | |
7160 | s&@datadir@&$datadir&g | |
7161 | s&@docdir@&$docdir&g | |
7162 | s&@infodir@&$infodir&g | |
7163 | s&@localedir@&$localedir&g | |
7164 | s&@mandir@&$mandir&g | |
7165 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7166 | esac | |
b7026657 | 7167 | _ACEOF |
81ecdfbb RW |
7168 | |
7169 | # Neutralize VPATH when `$srcdir' = `.'. | |
7170 | # Shell code in configure.ac might set extrasub. | |
7171 | # FIXME: do we really want to maintain this feature? | |
7172 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7173 | ac_sed_extra="$ac_vpsub | |
b7026657 AC |
7174 | $extrasub |
7175 | _ACEOF | |
81ecdfbb | 7176 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 AC |
7177 | :t |
7178 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
7179 | s|@configure_input@|$ac_sed_conf_input|;t t |
7180 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
7181 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
7182 | s&@srcdir@&$ac_srcdir&;t t | |
7183 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7184 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7185 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7186 | s&@builddir@&$ac_builddir&;t t | |
7187 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7188 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7189 | s&@INSTALL@&$ac_INSTALL&;t t | |
6bddc3e8 | 7190 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
81ecdfbb RW |
7191 | $ac_datarootdir_hack |
7192 | " | |
d0ac1c44 SM |
7193 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
7194 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
7195 | |
7196 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
7197 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
7198 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
7199 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 7201 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 7202 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 7203 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 7204 | |
d0ac1c44 | 7205 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 7206 | case $ac_file in |
d0ac1c44 SM |
7207 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
7208 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 7209 | esac \ |
d0ac1c44 | 7210 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 7211 | ;; |
b15c5d7a MF |
7212 | :H) |
7213 | # | |
7214 | # CONFIG_HEADER | |
7215 | # | |
7216 | if test x"$ac_file" != x-; then | |
7217 | { | |
7218 | $as_echo "/* $configure_input */" \ | |
7219 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
7220 | } >"$ac_tmp/config.h" \ | |
7221 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7222 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7223 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
7224 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
7225 | else | |
7226 | rm -f "$ac_file" | |
7227 | mv "$ac_tmp/config.h" "$ac_file" \ | |
7228 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7229 | fi | |
7230 | else | |
7231 | $as_echo "/* $configure_input */" \ | |
7232 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
7233 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
7234 | fi | |
7235 | # Compute "$ac_file"'s index in $config_headers. | |
7236 | _am_arg="$ac_file" | |
7237 | _am_stamp_count=1 | |
7238 | for _am_header in $config_headers :; do | |
7239 | case $_am_header in | |
7240 | $_am_arg | $_am_arg:* ) | |
7241 | break ;; | |
7242 | * ) | |
7243 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
7244 | esac | |
7245 | done | |
7246 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
7247 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7248 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
7249 | X"$_am_arg" : 'X\(//\)$' \| \ | |
7250 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
7251 | $as_echo X"$_am_arg" | | |
7252 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7253 | s//\1/ | |
7254 | q | |
7255 | } | |
7256 | /^X\(\/\/\)[^/].*/{ | |
7257 | s//\1/ | |
7258 | q | |
7259 | } | |
7260 | /^X\(\/\/\)$/{ | |
7261 | s//\1/ | |
7262 | q | |
7263 | } | |
7264 | /^X\(\/\).*/{ | |
7265 | s//\1/ | |
7266 | q | |
7267 | } | |
7268 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
7269 | ;; | |
df1756f4 | 7270 | |
6bddc3e8 MF |
7271 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
7272 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
7273 | ;; | |
7274 | esac | |
7275 | ||
c906108c | 7276 | |
6bddc3e8 MF |
7277 | case $ac_file$ac_mode in |
7278 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
7279 | # Older Autoconf quotes --file arguments for eval, but not when files | |
7280 | # are listed without --file. Let's play safe and only enable the eval | |
7281 | # if we detect the quoting. | |
7282 | case $CONFIG_FILES in | |
7283 | *\'*) eval set x "$CONFIG_FILES" ;; | |
7284 | *) set x $CONFIG_FILES ;; | |
81ecdfbb | 7285 | esac |
6bddc3e8 MF |
7286 | shift |
7287 | for mf | |
7288 | do | |
7289 | # Strip MF so we end up with the name of the file. | |
7290 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
7291 | # Check whether this is an Automake generated Makefile or not. | |
7292 | # We used to match only the files named 'Makefile.in', but | |
7293 | # some people rename them; so instead we look at the file content. | |
7294 | # Grep'ing the first line is not enough: some people post-process | |
7295 | # each Makefile.in and add a new line on top of each file to say so. | |
7296 | # Grep'ing the whole file is not good either: AIX grep has a line | |
7297 | # limit of 2048, but all sed's we know have understand at least 4000. | |
7298 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
7299 | dirpart=`$as_dirname -- "$mf" || | |
7300 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7301 | X"$mf" : 'X\(//\)[^/]' \| \ | |
7302 | X"$mf" : 'X\(//\)$' \| \ | |
7303 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
7304 | $as_echo X"$mf" | | |
7305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7306 | s//\1/ | |
7307 | q | |
7308 | } | |
7309 | /^X\(\/\/\)[^/].*/{ | |
7310 | s//\1/ | |
7311 | q | |
7312 | } | |
7313 | /^X\(\/\/\)$/{ | |
7314 | s//\1/ | |
7315 | q | |
7316 | } | |
7317 | /^X\(\/\).*/{ | |
7318 | s//\1/ | |
7319 | q | |
7320 | } | |
7321 | s/.*/./; q'` | |
7322 | else | |
7323 | continue | |
7324 | fi | |
7325 | # Extract the definition of DEPDIR, am__include, and am__quote | |
7326 | # from the Makefile without running 'make'. | |
7327 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
7328 | test -z "$DEPDIR" && continue | |
7329 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
7330 | test -z "$am__include" && continue | |
7331 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
7332 | # Find all dependency output files, they are included files with | |
7333 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
7334 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
7335 | # expansion. | |
7336 | for file in `sed -n " | |
7337 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
7338 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
7339 | # Make sure the directory exists. | |
7340 | test -f "$dirpart/$file" && continue | |
7341 | fdir=`$as_dirname -- "$file" || | |
7342 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7343 | X"$file" : 'X\(//\)[^/]' \| \ | |
7344 | X"$file" : 'X\(//\)$' \| \ | |
7345 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
7346 | $as_echo X"$file" | | |
7347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7348 | s//\1/ | |
7349 | q | |
7350 | } | |
7351 | /^X\(\/\/\)[^/].*/{ | |
7352 | s//\1/ | |
7353 | q | |
7354 | } | |
7355 | /^X\(\/\/\)$/{ | |
7356 | s//\1/ | |
7357 | q | |
7358 | } | |
7359 | /^X\(\/\).*/{ | |
7360 | s//\1/ | |
7361 | q | |
7362 | } | |
7363 | s/.*/./; q'` | |
7364 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
7365 | # echo "creating $dirpart/$file" | |
7366 | echo '# dummy' > "$dirpart/$file" | |
7367 | done | |
7368 | done | |
7369 | } | |
7370 | ;; | |
81ecdfbb | 7371 | |
6bddc3e8 | 7372 | esac |
81ecdfbb RW |
7373 | done # for ac_tag |
7374 | ||
7375 | ||
7376 | as_fn_exit 0 | |
b7026657 | 7377 | _ACEOF |
b7026657 AC |
7378 | ac_clean_files=$ac_clean_files_save |
7379 | ||
81ecdfbb | 7380 | test $ac_write_fail = 0 || |
d0ac1c44 | 7381 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 7382 | |
b7026657 AC |
7383 | |
7384 | # configure is writing to config.log, and then calls config.status. | |
7385 | # config.status does its own redirection, appending to config.log. | |
7386 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7387 | # by configure, so config.status won't be able to write to it; its | |
7388 | # output is simply discarded. So we exec the FD to /dev/null, | |
7389 | # effectively closing config.log, so it can be properly (re)opened and | |
7390 | # appended to by config.status. When coming back to configure, we | |
7391 | # need to make the FD available again. | |
7392 | if test "$no_create" != yes; then | |
7393 | ac_cs_success=: | |
7394 | ac_config_status_args= | |
7395 | test "$silent" = yes && | |
7396 | ac_config_status_args="$ac_config_status_args --quiet" | |
7397 | exec 5>/dev/null | |
7398 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7399 | exec 5>>config.log | |
7400 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7401 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 7402 | $ac_cs_success || as_fn_exit 1 |
b7026657 | 7403 | fi |
c906108c | 7404 | |
b7026657 | 7405 | # |
81ecdfbb | 7406 | # CONFIG_SUBDIRS section. |
b7026657 | 7407 | # |
c906108c SS |
7408 | if test "$no_recursion" != yes; then |
7409 | ||
81ecdfbb RW |
7410 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
7411 | # so they do not pile up. | |
c906108c SS |
7412 | ac_sub_configure_args= |
7413 | ac_prev= | |
d6416cdc RW |
7414 | eval "set x $ac_configure_args" |
7415 | shift | |
7416 | for ac_arg | |
7417 | do | |
c906108c SS |
7418 | if test -n "$ac_prev"; then |
7419 | ac_prev= | |
7420 | continue | |
7421 | fi | |
b7026657 | 7422 | case $ac_arg in |
c906108c SS |
7423 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
7424 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
7425 | ac_prev=cache_file ;; | |
7426 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
b7026657 AC |
7427 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
7428 | | --c=*) | |
7429 | ;; | |
7430 | --config-cache | -C) | |
c906108c SS |
7431 | ;; |
7432 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
7433 | ac_prev=srcdir ;; | |
7434 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
7435 | ;; | |
b7026657 AC |
7436 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
7437 | ac_prev=prefix ;; | |
7438 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
7439 | ;; | |
81ecdfbb RW |
7440 | --disable-option-checking) |
7441 | ;; | |
d6416cdc RW |
7442 | *) |
7443 | case $ac_arg in | |
81ecdfbb | 7444 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d6416cdc | 7445 | esac |
81ecdfbb | 7446 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
c906108c SS |
7447 | esac |
7448 | done | |
7449 | ||
b7026657 AC |
7450 | # Always prepend --prefix to ensure using the same prefix |
7451 | # in subdir configurations. | |
d6416cdc RW |
7452 | ac_arg="--prefix=$prefix" |
7453 | case $ac_arg in | |
81ecdfbb | 7454 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d6416cdc | 7455 | esac |
81ecdfbb RW |
7456 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
7457 | ||
7458 | # Pass --silent | |
7459 | if test "$silent" = yes; then | |
7460 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
7461 | fi | |
7462 | ||
7463 | # Always prepend --disable-option-checking to silence warnings, since | |
7464 | # different subdirs can have different --enable and --with options. | |
7465 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
b7026657 AC |
7466 | |
7467 | ac_popdir=`pwd` | |
7468 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
c906108c SS |
7469 | |
7470 | # Do not complain, so a configure script can configure whichever | |
7471 | # parts of a large source tree are present. | |
d6416cdc | 7472 | test -d "$srcdir/$ac_dir" || continue |
fdd6fa61 | 7473 | |
81ecdfbb RW |
7474 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
7475 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
7476 | $as_echo "$ac_msg" >&6 | |
7477 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
7478 | ac_builddir=. |
7479 | ||
81ecdfbb RW |
7480 | case "$ac_dir" in |
7481 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7482 | *) | |
7483 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
7484 | # A ".." for each directory in $ac_dir_suffix. | |
7485 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
7486 | case $ac_top_builddir_sub in | |
7487 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7488 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7489 | esac ;; | |
7490 | esac | |
7491 | ac_abs_top_builddir=$ac_pwd | |
7492 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7493 | # for backward compatibility: | |
7494 | ac_top_builddir=$ac_top_build_prefix | |
c906108c | 7495 | |
b7026657 | 7496 | case $srcdir in |
81ecdfbb | 7497 | .) # We are building in place. |
b7026657 | 7498 | ac_srcdir=. |
81ecdfbb RW |
7499 | ac_top_srcdir=$ac_top_builddir_sub |
7500 | ac_abs_top_srcdir=$ac_pwd ;; | |
7501 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 7502 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
7503 | ac_top_srcdir=$srcdir |
7504 | ac_abs_top_srcdir=$srcdir ;; | |
7505 | *) # Relative name. | |
7506 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7507 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7508 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 7509 | esac |
81ecdfbb | 7510 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
c906108c | 7511 | |
c906108c | 7512 | |
d6416cdc | 7513 | cd "$ac_dir" |
c906108c SS |
7514 | |
7515 | # Check for guested configure; otherwise get Cygnus style configure. | |
d6416cdc RW |
7516 | if test -f "$ac_srcdir/configure.gnu"; then |
7517 | ac_sub_configure=$ac_srcdir/configure.gnu | |
7518 | elif test -f "$ac_srcdir/configure"; then | |
7519 | ac_sub_configure=$ac_srcdir/configure | |
7520 | elif test -f "$ac_srcdir/configure.in"; then | |
7521 | # This should be Cygnus configure. | |
7522 | ac_sub_configure=$ac_aux_dir/configure | |
c906108c | 7523 | else |
81ecdfbb RW |
7524 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
7525 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
7526 | ac_sub_configure= |
7527 | fi | |
7528 | ||
7529 | # The recursion is here. | |
7530 | if test -n "$ac_sub_configure"; then | |
c906108c | 7531 | # Make the cache file name correct relative to the subdirectory. |
b7026657 AC |
7532 | case $cache_file in |
7533 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
81ecdfbb RW |
7534 | *) # Relative name. |
7535 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
c906108c | 7536 | esac |
c906108c | 7537 | |
81ecdfbb RW |
7538 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
7539 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 7540 | # The eval makes quoting arguments work. |
d6416cdc RW |
7541 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
7542 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
d0ac1c44 | 7543 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
c906108c SS |
7544 | fi |
7545 | ||
d6416cdc | 7546 | cd "$ac_popdir" |
c906108c SS |
7547 | done |
7548 | fi | |
81ecdfbb RW |
7549 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
7550 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7551 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
7552 | fi | |
c906108c | 7553 |