]>
Commit | Line | Data |
---|---|---|
4f4e53dd PB |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 | 3 | # Generated by GNU Autoconf 2.69 for cpplib . |
4f4e53dd PB |
4 | # |
5 | # Report bugs to <gcc-bugs@gcc.gnu.org>. | |
6 | # | |
22e05272 JM |
7 | # |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
5213506e | 10 | # |
4f4e53dd PB |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
4f4e53dd | 16 | |
5213506e 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 : | |
4f4e53dd PB |
20 | emulate sh |
21 | NULLCMD=: | |
5213506e | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4f4e53dd PB |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
5213506e 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 | |
4f4e53dd | 33 | fi |
4f4e53dd | 34 | |
5213506e 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' | |
52 | else | |
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 | } | |
4f4e53dd PB |
81 | fi |
82 | ||
83 | ||
5213506e 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. | |
22e05272 | 92 | as_myself= |
5213506e 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 | |
4f4e53dd PB |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
5213506e 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 | ||
22e05272 JM |
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;} | |
5213506e 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 | |
22e05272 JM |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
5213506e 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'\" && | |
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" | |
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 | |
4f4e53dd | 213 | do |
5213506e 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 : | |
22e05272 JM |
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 | |
5213506e 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." | |
4f4e53dd | 268 | else |
5213506e RW |
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
270 | $0: gcc-bugs@gcc.gnu.org about your system, including any | |
271 | $0: error possibly output before this message. Then install | |
272 | $0: a modern shell, or manually run the script under such a | |
273 | $0: shell if you do have one." | |
4f4e53dd | 274 | fi |
5213506e RW |
275 | exit 1 |
276 | fi | |
277 | fi | |
278 | fi | |
279 | SHELL=${CONFIG_SHELL-/bin/sh} | |
280 | export SHELL | |
281 | # Unset more variables known to interfere with behavior of common tools. | |
282 | CLICOLOR_FORCE= GREP_OPTIONS= | |
283 | unset CLICOLOR_FORCE GREP_OPTIONS | |
284 | ||
285 | ## --------------------- ## | |
286 | ## M4sh Shell Functions. ## | |
287 | ## --------------------- ## | |
288 | # as_fn_unset VAR | |
289 | # --------------- | |
290 | # Portably unset VAR. | |
291 | as_fn_unset () | |
292 | { | |
293 | { eval $1=; unset $1;} | |
294 | } | |
295 | as_unset=as_fn_unset | |
296 | ||
297 | # as_fn_set_status STATUS | |
298 | # ----------------------- | |
299 | # Set $? to STATUS, without forking. | |
300 | as_fn_set_status () | |
301 | { | |
302 | return $1 | |
303 | } # as_fn_set_status | |
304 | ||
305 | # as_fn_exit STATUS | |
306 | # ----------------- | |
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
308 | as_fn_exit () | |
309 | { | |
310 | set +e | |
311 | as_fn_set_status $1 | |
312 | exit $1 | |
313 | } # as_fn_exit | |
314 | ||
315 | # as_fn_mkdir_p | |
316 | # ------------- | |
317 | # Create "$as_dir" as a directory, including parents if necessary. | |
318 | as_fn_mkdir_p () | |
319 | { | |
4f4e53dd | 320 | |
5213506e RW |
321 | case $as_dir in #( |
322 | -*) as_dir=./$as_dir;; | |
323 | esac | |
324 | test -d "$as_dir" || eval $as_mkdir_p || { | |
325 | as_dirs= | |
326 | while :; do | |
327 | case $as_dir in #( | |
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
329 | *) as_qdir=$as_dir;; | |
330 | esac | |
331 | as_dirs="'$as_qdir' $as_dirs" | |
332 | as_dir=`$as_dirname -- "$as_dir" || | |
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
335 | X"$as_dir" : 'X\(//\)$' \| \ | |
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
337 | $as_echo X"$as_dir" | | |
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
339 | s//\1/ | |
340 | q | |
341 | } | |
342 | /^X\(\/\/\)[^/].*/{ | |
343 | s//\1/ | |
344 | q | |
345 | } | |
346 | /^X\(\/\/\)$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\).*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | s/.*/./; q'` | |
355 | test -d "$as_dir" && break | |
356 | done | |
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
359 | |
360 | ||
361 | } # as_fn_mkdir_p | |
22e05272 JM |
362 | |
363 | # as_fn_executable_p FILE | |
364 | # ----------------------- | |
365 | # Test if FILE is an executable regular file. | |
366 | as_fn_executable_p () | |
367 | { | |
368 | test -f "$1" && test -x "$1" | |
369 | } # as_fn_executable_p | |
5213506e RW |
370 | # as_fn_append VAR VALUE |
371 | # ---------------------- | |
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
373 | # advantage of any shell optimizations that allow amortized linear growth over | |
374 | # repeated appends, instead of the typical quadratic growth present in naive | |
375 | # implementations. | |
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
377 | eval 'as_fn_append () | |
378 | { | |
379 | eval $1+=\$2 | |
380 | }' | |
381 | else | |
382 | as_fn_append () | |
383 | { | |
384 | eval $1=\$$1\$2 | |
385 | } | |
386 | fi # as_fn_append | |
387 | ||
388 | # as_fn_arith ARG... | |
389 | # ------------------ | |
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
392 | # must be portable across $(()) and expr. | |
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
394 | eval 'as_fn_arith () | |
395 | { | |
396 | as_val=$(( $* )) | |
397 | }' | |
398 | else | |
399 | as_fn_arith () | |
400 | { | |
401 | as_val=`expr "$@" || test $? -eq 1` | |
402 | } | |
403 | fi # as_fn_arith | |
404 | ||
405 | ||
22e05272 JM |
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
407 | # ---------------------------------------- | |
5213506e RW |
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 410 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
411 | as_fn_error () |
412 | { | |
22e05272 JM |
413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
414 | if test "$4"; then | |
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 417 | fi |
22e05272 | 418 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
419 | as_fn_exit $as_status |
420 | } # as_fn_error | |
421 | ||
422 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4f4e53dd PB |
424 | as_expr=expr |
425 | else | |
426 | as_expr=false | |
427 | fi | |
428 | ||
5213506e | 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4f4e53dd PB |
430 | as_basename=basename |
431 | else | |
432 | as_basename=false | |
433 | fi | |
434 | ||
5213506e RW |
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
436 | as_dirname=dirname | |
437 | else | |
438 | as_dirname=false | |
439 | fi | |
4f4e53dd | 440 | |
5213506e | 441 | as_me=`$as_basename -- "$0" || |
4f4e53dd PB |
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
443 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
445 | $as_echo X/"$0" | | |
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
447 | s//\1/ | |
448 | q | |
449 | } | |
450 | /^X\/\(\/\/\)$/{ | |
451 | s//\1/ | |
452 | q | |
453 | } | |
454 | /^X\/\(\/\).*/{ | |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | s/.*/./; q'` | |
4f4e53dd | 459 | |
4f4e53dd PB |
460 | # Avoid depending upon Character Ranges. |
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
464 | as_cr_digits='0123456789' | |
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
466 | ||
4f4e53dd | 467 | |
5213506e RW |
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
473 | sed -n ' | |
474 | p | |
475 | /[$]LINENO/= | |
476 | ' <$as_myself | | |
4f4e53dd | 477 | sed ' |
5213506e RW |
478 | s/[$]LINENO.*/&-/ |
479 | t lineno | |
480 | b | |
481 | :lineno | |
4f4e53dd | 482 | N |
5213506e RW |
483 | :loop |
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
4f4e53dd | 485 | t loop |
5213506e | 486 | s/-\n.*// |
4f4e53dd | 487 | ' >$as_me.lineno && |
5213506e RW |
488 | chmod +x "$as_me.lineno" || |
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
4f4e53dd | 490 | |
22e05272 JM |
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
492 | # already done that, so ensure we don't try to do so again and fall | |
493 | # in an infinite loop. This has already happened in practice. | |
494 | _as_can_reexec=no; export _as_can_reexec | |
4f4e53dd PB |
495 | # Don't try to exec as it changes $[0], causing all sort of problems |
496 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
497 | # original and so on. Autoconf is especially sensitive to this). |
498 | . "./$as_me.lineno" | |
4f4e53dd PB |
499 | # Exit status is that of the last command. |
500 | exit | |
501 | } | |
502 | ||
5213506e RW |
503 | ECHO_C= ECHO_N= ECHO_T= |
504 | case `echo -n x` in #((((( | |
505 | -n*) | |
506 | case `echo 'xy\c'` in | |
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
508 | xy) ECHO_C='\c';; | |
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
510 | ECHO_T=' ';; | |
511 | esac;; | |
512 | *) | |
513 | ECHO_N='-n';; | |
4f4e53dd PB |
514 | esac |
515 | ||
5213506e RW |
516 | rm -f conf$$ conf$$.exe conf$$.file |
517 | if test -d conf$$.dir; then | |
518 | rm -f conf$$.dir/conf$$.file | |
4f4e53dd | 519 | else |
5213506e RW |
520 | rm -f conf$$.dir |
521 | mkdir conf$$.dir 2>/dev/null | |
4f4e53dd | 522 | fi |
5213506e RW |
523 | if (echo >conf$$.file) 2>/dev/null; then |
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4f4e53dd | 525 | as_ln_s='ln -s' |
5213506e RW |
526 | # ... but there are two gotchas: |
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 529 | # In both cases, we have to default to `cp -pR'. |
5213506e | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 531 | as_ln_s='cp -pR' |
5213506e RW |
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
533 | as_ln_s=ln | |
534 | else | |
22e05272 | 535 | as_ln_s='cp -pR' |
4f4e53dd | 536 | fi |
4f4e53dd | 537 | else |
22e05272 | 538 | as_ln_s='cp -pR' |
4f4e53dd | 539 | fi |
5213506e RW |
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
541 | rmdir conf$$.dir 2>/dev/null | |
4f4e53dd PB |
542 | |
543 | if mkdir -p . 2>/dev/null; then | |
5213506e | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
4f4e53dd PB |
545 | else |
546 | test -d ./-p && rmdir ./-p | |
547 | as_mkdir_p=false | |
548 | fi | |
549 | ||
22e05272 JM |
550 | as_test_x='test -x' |
551 | as_executable_p=as_fn_executable_p | |
4f4e53dd PB |
552 | |
553 | # Sed expression to map a string onto a valid CPP name. | |
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | # Sed expression to map a string onto a valid variable name. | |
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
558 | ||
559 | ||
22e05272 JM |
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
561 | exec 6>&1 | |
4f4e53dd PB |
562 | |
563 | # Name of the host. | |
22e05272 | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
4f4e53dd PB |
565 | # so uname gets run too. |
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
567 | ||
4f4e53dd PB |
568 | # |
569 | # Initializations. | |
570 | # | |
571 | ac_default_prefix=/usr/local | |
5213506e | 572 | ac_clean_files= |
4f4e53dd | 573 | ac_config_libobj_dir=. |
5213506e | 574 | LIBOBJS= |
4f4e53dd PB |
575 | cross_compiling=no |
576 | subdirs= | |
577 | MFLAGS= | |
578 | MAKEFLAGS= | |
4f4e53dd PB |
579 | |
580 | # Identity of this package. | |
581 | PACKAGE_NAME='cpplib' | |
582 | PACKAGE_TARNAME='cpplib' | |
583 | PACKAGE_VERSION=' ' | |
584 | PACKAGE_STRING='cpplib ' | |
585 | PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org' | |
5213506e | 586 | PACKAGE_URL='' |
4f4e53dd PB |
587 | |
588 | ac_unique_file="ucnid.h" | |
589 | # Factoring default headers for most tests. | |
590 | ac_includes_default="\ | |
591 | #include <stdio.h> | |
5213506e | 592 | #ifdef HAVE_SYS_TYPES_H |
4f4e53dd PB |
593 | # include <sys/types.h> |
594 | #endif | |
5213506e | 595 | #ifdef HAVE_SYS_STAT_H |
4f4e53dd PB |
596 | # include <sys/stat.h> |
597 | #endif | |
5213506e | 598 | #ifdef STDC_HEADERS |
4f4e53dd PB |
599 | # include <stdlib.h> |
600 | # include <stddef.h> | |
601 | #else | |
5213506e | 602 | # ifdef HAVE_STDLIB_H |
4f4e53dd PB |
603 | # include <stdlib.h> |
604 | # endif | |
605 | #endif | |
5213506e RW |
606 | #ifdef HAVE_STRING_H |
607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
4f4e53dd PB |
608 | # include <memory.h> |
609 | # endif | |
610 | # include <string.h> | |
611 | #endif | |
5213506e | 612 | #ifdef HAVE_STRINGS_H |
4f4e53dd PB |
613 | # include <strings.h> |
614 | #endif | |
5213506e | 615 | #ifdef HAVE_INTTYPES_H |
4f4e53dd | 616 | # include <inttypes.h> |
4f4e53dd | 617 | #endif |
5213506e RW |
618 | #ifdef HAVE_STDINT_H |
619 | # include <stdint.h> | |
620 | #endif | |
621 | #ifdef HAVE_UNISTD_H | |
4f4e53dd PB |
622 | # include <unistd.h> |
623 | #endif" | |
624 | ||
5213506e | 625 | ac_subst_vars='LTLIBOBJS |
459260ec | 626 | PICFLAG |
5213506e RW |
627 | MAINT |
628 | USED_CATALOGS | |
629 | PACKAGE | |
630 | LTLIBICONV | |
631 | LIBICONV | |
632 | CATOBJEXT | |
633 | GENCAT | |
634 | INSTOBJEXT | |
635 | DATADIRNAME | |
636 | CATALOGS | |
637 | POSUB | |
638 | GMSGFMT | |
639 | XGETTEXT | |
640 | INCINTL | |
641 | LIBINTL_DEP | |
642 | LIBINTL | |
643 | USE_NLS | |
644 | ALLOCA | |
645 | LIBOBJS | |
5213506e | 646 | CXXDEPMODE |
5213506e RW |
647 | DEPDIR |
648 | am__leading_dot | |
649 | WERROR | |
e9411247 | 650 | noexception_flags |
5213506e RW |
651 | WARN_PEDANTIC |
652 | c_warn | |
653 | warn | |
654 | AUTOHEADER | |
655 | AUTOCONF | |
656 | ACLOCAL | |
0e1a989c ILT |
657 | EGREP |
658 | GREP | |
659 | CPP | |
5213506e RW |
660 | RANLIB |
661 | ac_ct_CXX | |
662 | CXXFLAGS | |
663 | CXX | |
664 | OBJEXT | |
665 | EXEEXT | |
666 | ac_ct_CC | |
667 | CPPFLAGS | |
668 | LDFLAGS | |
669 | CFLAGS | |
670 | CC | |
671 | INSTALL_DATA | |
672 | INSTALL_SCRIPT | |
673 | INSTALL_PROGRAM | |
674 | SET_MAKE | |
675 | target_os | |
676 | target_vendor | |
677 | target_cpu | |
678 | target | |
679 | host_os | |
680 | host_vendor | |
681 | host_cpu | |
682 | host | |
683 | build_os | |
684 | build_vendor | |
685 | build_cpu | |
686 | build | |
687 | target_alias | |
688 | host_alias | |
689 | build_alias | |
690 | LIBS | |
691 | ECHO_T | |
692 | ECHO_N | |
693 | ECHO_C | |
694 | DEFS | |
695 | mandir | |
696 | localedir | |
697 | libdir | |
698 | psdir | |
699 | pdfdir | |
700 | dvidir | |
701 | htmldir | |
702 | infodir | |
703 | docdir | |
704 | oldincludedir | |
705 | includedir | |
706 | localstatedir | |
707 | sharedstatedir | |
708 | sysconfdir | |
709 | datadir | |
710 | datarootdir | |
711 | libexecdir | |
712 | sbindir | |
713 | bindir | |
714 | program_transform_name | |
715 | prefix | |
716 | exec_prefix | |
717 | PACKAGE_URL | |
718 | PACKAGE_BUGREPORT | |
719 | PACKAGE_STRING | |
720 | PACKAGE_VERSION | |
721 | PACKAGE_TARNAME | |
722 | PACKAGE_NAME | |
723 | PATH_SEPARATOR | |
724 | SHELL' | |
4f4e53dd | 725 | ac_subst_files='' |
5213506e RW |
726 | ac_user_opts=' |
727 | enable_option_checking | |
480767a9 | 728 | enable_largefile |
5213506e RW |
729 | enable_werror_always |
730 | with_gnu_ld | |
731 | enable_rpath | |
732 | with_libiconv_prefix | |
e7c26e04 | 733 | with_libiconv_type |
5213506e RW |
734 | enable_maintainer_mode |
735 | enable_checking | |
5dc99c46 | 736 | enable_canonical_system_headers |
459260ec | 737 | enable_host_shared |
ceb17928 | 738 | enable_valgrind_annotations |
5213506e RW |
739 | ' |
740 | ac_precious_vars='build_alias | |
741 | host_alias | |
742 | target_alias | |
743 | CC | |
744 | CFLAGS | |
745 | LDFLAGS | |
746 | LIBS | |
747 | CPPFLAGS | |
748 | CXX | |
749 | CXXFLAGS | |
750 | CCC | |
0e1a989c | 751 | CPP' |
5213506e | 752 | |
4f4e53dd PB |
753 | |
754 | # Initialize some variables set by options. | |
755 | ac_init_help= | |
756 | ac_init_version=false | |
5213506e RW |
757 | ac_unrecognized_opts= |
758 | ac_unrecognized_sep= | |
4f4e53dd PB |
759 | # The variables have the same names as the options, with |
760 | # dashes changed to underlines. | |
761 | cache_file=/dev/null | |
762 | exec_prefix=NONE | |
763 | no_create= | |
764 | no_recursion= | |
765 | prefix=NONE | |
766 | program_prefix=NONE | |
767 | program_suffix=NONE | |
768 | program_transform_name=s,x,x, | |
769 | silent= | |
770 | site= | |
771 | srcdir= | |
772 | verbose= | |
773 | x_includes=NONE | |
774 | x_libraries=NONE | |
775 | ||
776 | # Installation directory options. | |
777 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
778 | # and all the variables that are supposed to be based on exec_prefix | |
779 | # by default will actually change. | |
780 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 781 | # (The list follows the same order as the GNU Coding Standards.) |
4f4e53dd PB |
782 | bindir='${exec_prefix}/bin' |
783 | sbindir='${exec_prefix}/sbin' | |
784 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
785 | datarootdir='${prefix}/share' |
786 | datadir='${datarootdir}' | |
4f4e53dd PB |
787 | sysconfdir='${prefix}/etc' |
788 | sharedstatedir='${prefix}/com' | |
789 | localstatedir='${prefix}/var' | |
4f4e53dd PB |
790 | includedir='${prefix}/include' |
791 | oldincludedir='/usr/include' | |
5213506e RW |
792 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
793 | infodir='${datarootdir}/info' | |
794 | htmldir='${docdir}' | |
795 | dvidir='${docdir}' | |
796 | pdfdir='${docdir}' | |
797 | psdir='${docdir}' | |
798 | libdir='${exec_prefix}/lib' | |
799 | localedir='${datarootdir}/locale' | |
800 | mandir='${datarootdir}/man' | |
4f4e53dd PB |
801 | |
802 | ac_prev= | |
5213506e | 803 | ac_dashdash= |
4f4e53dd PB |
804 | for ac_option |
805 | do | |
806 | # If the previous option needs an argument, assign it. | |
807 | if test -n "$ac_prev"; then | |
5213506e | 808 | eval $ac_prev=\$ac_option |
4f4e53dd PB |
809 | ac_prev= |
810 | continue | |
811 | fi | |
812 | ||
5213506e | 813 | case $ac_option in |
22e05272 JM |
814 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
815 | *=) ac_optarg= ;; | |
816 | *) ac_optarg=yes ;; | |
5213506e | 817 | esac |
4f4e53dd PB |
818 | |
819 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
820 | ||
5213506e RW |
821 | case $ac_dashdash$ac_option in |
822 | --) | |
823 | ac_dashdash=yes ;; | |
4f4e53dd PB |
824 | |
825 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
826 | ac_prev=bindir ;; | |
827 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
828 | bindir=$ac_optarg ;; | |
829 | ||
830 | -build | --build | --buil | --bui | --bu) | |
831 | ac_prev=build_alias ;; | |
832 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
833 | build_alias=$ac_optarg ;; | |
834 | ||
835 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
836 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
837 | ac_prev=cache_file ;; | |
838 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
839 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
840 | cache_file=$ac_optarg ;; | |
841 | ||
842 | --config-cache | -C) | |
843 | cache_file=config.cache ;; | |
844 | ||
5213506e | 845 | -datadir | --datadir | --datadi | --datad) |
4f4e53dd | 846 | ac_prev=datadir ;; |
5213506e | 847 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
4f4e53dd PB |
848 | datadir=$ac_optarg ;; |
849 | ||
5213506e RW |
850 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
851 | | --dataroo | --dataro | --datar) | |
852 | ac_prev=datarootdir ;; | |
853 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
854 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
855 | datarootdir=$ac_optarg ;; | |
856 | ||
4f4e53dd | 857 | -disable-* | --disable-*) |
5213506e | 858 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
4f4e53dd | 859 | # Reject names that are not valid shell variable names. |
5213506e | 860 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 861 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
862 | ac_useropt_orig=$ac_useropt |
863 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
864 | case $ac_user_opts in | |
865 | *" | |
866 | "enable_$ac_useropt" | |
867 | "*) ;; | |
868 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
869 | ac_unrecognized_sep=', ';; | |
870 | esac | |
871 | eval enable_$ac_useropt=no ;; | |
872 | ||
873 | -docdir | --docdir | --docdi | --doc | --do) | |
874 | ac_prev=docdir ;; | |
875 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
876 | docdir=$ac_optarg ;; | |
877 | ||
878 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
879 | ac_prev=dvidir ;; | |
880 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
881 | dvidir=$ac_optarg ;; | |
4f4e53dd PB |
882 | |
883 | -enable-* | --enable-*) | |
5213506e | 884 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
4f4e53dd | 885 | # Reject names that are not valid shell variable names. |
5213506e | 886 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 887 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
888 | ac_useropt_orig=$ac_useropt |
889 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
890 | case $ac_user_opts in | |
891 | *" | |
892 | "enable_$ac_useropt" | |
893 | "*) ;; | |
894 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
895 | ac_unrecognized_sep=', ';; | |
4f4e53dd | 896 | esac |
5213506e | 897 | eval enable_$ac_useropt=\$ac_optarg ;; |
4f4e53dd PB |
898 | |
899 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
900 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
901 | | --exec | --exe | --ex) | |
902 | ac_prev=exec_prefix ;; | |
903 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
904 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
905 | | --exec=* | --exe=* | --ex=*) | |
906 | exec_prefix=$ac_optarg ;; | |
907 | ||
908 | -gas | --gas | --ga | --g) | |
909 | # Obsolete; use --with-gas. | |
910 | with_gas=yes ;; | |
911 | ||
912 | -help | --help | --hel | --he | -h) | |
913 | ac_init_help=long ;; | |
914 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
915 | ac_init_help=recursive ;; | |
916 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
917 | ac_init_help=short ;; | |
918 | ||
919 | -host | --host | --hos | --ho) | |
920 | ac_prev=host_alias ;; | |
921 | -host=* | --host=* | --hos=* | --ho=*) | |
922 | host_alias=$ac_optarg ;; | |
923 | ||
5213506e RW |
924 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
925 | ac_prev=htmldir ;; | |
926 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
927 | | --ht=*) | |
928 | htmldir=$ac_optarg ;; | |
929 | ||
4f4e53dd PB |
930 | -includedir | --includedir | --includedi | --included | --include \ |
931 | | --includ | --inclu | --incl | --inc) | |
932 | ac_prev=includedir ;; | |
933 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
934 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
935 | includedir=$ac_optarg ;; | |
936 | ||
937 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
938 | ac_prev=infodir ;; | |
939 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
940 | infodir=$ac_optarg ;; | |
941 | ||
942 | -libdir | --libdir | --libdi | --libd) | |
943 | ac_prev=libdir ;; | |
944 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
945 | libdir=$ac_optarg ;; | |
946 | ||
947 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
948 | | --libexe | --libex | --libe) | |
949 | ac_prev=libexecdir ;; | |
950 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
951 | | --libexe=* | --libex=* | --libe=*) | |
952 | libexecdir=$ac_optarg ;; | |
953 | ||
5213506e RW |
954 | -localedir | --localedir | --localedi | --localed | --locale) |
955 | ac_prev=localedir ;; | |
956 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
957 | localedir=$ac_optarg ;; | |
958 | ||
4f4e53dd | 959 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 960 | | --localstate | --localstat | --localsta | --localst | --locals) |
4f4e53dd PB |
961 | ac_prev=localstatedir ;; |
962 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 963 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
4f4e53dd PB |
964 | localstatedir=$ac_optarg ;; |
965 | ||
966 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
967 | ac_prev=mandir ;; | |
968 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
969 | mandir=$ac_optarg ;; | |
970 | ||
971 | -nfp | --nfp | --nf) | |
972 | # Obsolete; use --without-fp. | |
973 | with_fp=no ;; | |
974 | ||
975 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
976 | | --no-cr | --no-c | -n) | |
977 | no_create=yes ;; | |
978 | ||
979 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
980 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
981 | no_recursion=yes ;; | |
982 | ||
983 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
984 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
985 | | --oldin | --oldi | --old | --ol | --o) | |
986 | ac_prev=oldincludedir ;; | |
987 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
988 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
989 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
990 | oldincludedir=$ac_optarg ;; | |
991 | ||
992 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
993 | ac_prev=prefix ;; | |
994 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
995 | prefix=$ac_optarg ;; | |
996 | ||
997 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
998 | | --program-pre | --program-pr | --program-p) | |
999 | ac_prev=program_prefix ;; | |
1000 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1001 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1002 | program_prefix=$ac_optarg ;; | |
1003 | ||
1004 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1005 | | --program-suf | --program-su | --program-s) | |
1006 | ac_prev=program_suffix ;; | |
1007 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1008 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1009 | program_suffix=$ac_optarg ;; | |
1010 | ||
1011 | -program-transform-name | --program-transform-name \ | |
1012 | | --program-transform-nam | --program-transform-na \ | |
1013 | | --program-transform-n | --program-transform- \ | |
1014 | | --program-transform | --program-transfor \ | |
1015 | | --program-transfo | --program-transf \ | |
1016 | | --program-trans | --program-tran \ | |
1017 | | --progr-tra | --program-tr | --program-t) | |
1018 | ac_prev=program_transform_name ;; | |
1019 | -program-transform-name=* | --program-transform-name=* \ | |
1020 | | --program-transform-nam=* | --program-transform-na=* \ | |
1021 | | --program-transform-n=* | --program-transform-=* \ | |
1022 | | --program-transform=* | --program-transfor=* \ | |
1023 | | --program-transfo=* | --program-transf=* \ | |
1024 | | --program-trans=* | --program-tran=* \ | |
1025 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1026 | program_transform_name=$ac_optarg ;; | |
1027 | ||
5213506e RW |
1028 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1029 | ac_prev=pdfdir ;; | |
1030 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1031 | pdfdir=$ac_optarg ;; | |
1032 | ||
1033 | -psdir | --psdir | --psdi | --psd | --ps) | |
1034 | ac_prev=psdir ;; | |
1035 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1036 | psdir=$ac_optarg ;; | |
1037 | ||
4f4e53dd PB |
1038 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1039 | | -silent | --silent | --silen | --sile | --sil) | |
1040 | silent=yes ;; | |
1041 | ||
1042 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1043 | ac_prev=sbindir ;; | |
1044 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1045 | | --sbi=* | --sb=*) | |
1046 | sbindir=$ac_optarg ;; | |
1047 | ||
1048 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1049 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1050 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1051 | | --sha | --sh) | |
1052 | ac_prev=sharedstatedir ;; | |
1053 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1054 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1055 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1056 | | --sha=* | --sh=*) | |
1057 | sharedstatedir=$ac_optarg ;; | |
1058 | ||
1059 | -site | --site | --sit) | |
1060 | ac_prev=site ;; | |
1061 | -site=* | --site=* | --sit=*) | |
1062 | site=$ac_optarg ;; | |
1063 | ||
1064 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1065 | ac_prev=srcdir ;; | |
1066 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1067 | srcdir=$ac_optarg ;; | |
1068 | ||
1069 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1070 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1071 | ac_prev=sysconfdir ;; | |
1072 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1073 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1074 | sysconfdir=$ac_optarg ;; | |
1075 | ||
1076 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1077 | ac_prev=target_alias ;; | |
1078 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1079 | target_alias=$ac_optarg ;; | |
1080 | ||
1081 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1082 | verbose=yes ;; | |
1083 | ||
1084 | -version | --version | --versio | --versi | --vers | -V) | |
1085 | ac_init_version=: ;; | |
1086 | ||
1087 | -with-* | --with-*) | |
5213506e | 1088 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
4f4e53dd | 1089 | # Reject names that are not valid shell variable names. |
5213506e | 1090 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1091 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1092 | ac_useropt_orig=$ac_useropt |
1093 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1094 | case $ac_user_opts in | |
1095 | *" | |
1096 | "with_$ac_useropt" | |
1097 | "*) ;; | |
1098 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1099 | ac_unrecognized_sep=', ';; | |
4f4e53dd | 1100 | esac |
5213506e | 1101 | eval with_$ac_useropt=\$ac_optarg ;; |
4f4e53dd PB |
1102 | |
1103 | -without-* | --without-*) | |
5213506e | 1104 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
4f4e53dd | 1105 | # Reject names that are not valid shell variable names. |
5213506e | 1106 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1107 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1108 | ac_useropt_orig=$ac_useropt |
1109 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1110 | case $ac_user_opts in | |
1111 | *" | |
1112 | "with_$ac_useropt" | |
1113 | "*) ;; | |
1114 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1115 | ac_unrecognized_sep=', ';; | |
1116 | esac | |
1117 | eval with_$ac_useropt=no ;; | |
4f4e53dd PB |
1118 | |
1119 | --x) | |
1120 | # Obsolete; use --with-x. | |
1121 | with_x=yes ;; | |
1122 | ||
1123 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1124 | | --x-incl | --x-inc | --x-in | --x-i) | |
1125 | ac_prev=x_includes ;; | |
1126 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1127 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1128 | x_includes=$ac_optarg ;; | |
1129 | ||
1130 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1131 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1132 | ac_prev=x_libraries ;; | |
1133 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1134 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1135 | x_libraries=$ac_optarg ;; | |
1136 | ||
22e05272 JM |
1137 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1138 | Try \`$0 --help' for more information" | |
4f4e53dd PB |
1139 | ;; |
1140 | ||
1141 | *=*) | |
1142 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1143 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1144 | case $ac_envvar in #( |
1145 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1146 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1147 | esac |
1148 | eval $ac_envvar=\$ac_optarg | |
4f4e53dd PB |
1149 | export $ac_envvar ;; |
1150 | ||
1151 | *) | |
1152 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1153 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
4f4e53dd | 1154 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1155 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1156 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
4f4e53dd PB |
1157 | ;; |
1158 | ||
1159 | esac | |
1160 | done | |
1161 | ||
1162 | if test -n "$ac_prev"; then | |
1163 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1164 | as_fn_error $? "missing argument to $ac_option" |
4f4e53dd PB |
1165 | fi |
1166 | ||
5213506e RW |
1167 | if test -n "$ac_unrecognized_opts"; then |
1168 | case $enable_option_checking in | |
1169 | no) ;; | |
22e05272 | 1170 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1171 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
4f4e53dd | 1172 | esac |
5213506e | 1173 | fi |
4f4e53dd | 1174 | |
5213506e RW |
1175 | # Check all directory arguments for consistency. |
1176 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1177 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1178 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1179 | libdir localedir mandir | |
4f4e53dd | 1180 | do |
5213506e RW |
1181 | eval ac_val=\$$ac_var |
1182 | # Remove trailing slashes. | |
1183 | case $ac_val in | |
1184 | */ ) | |
1185 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1186 | eval $ac_var=\$ac_val;; | |
1187 | esac | |
1188 | # Be sure to have absolute directory names. | |
4f4e53dd | 1189 | case $ac_val in |
5213506e RW |
1190 | [\\/$]* | ?:[\\/]* ) continue;; |
1191 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
4f4e53dd | 1192 | esac |
22e05272 | 1193 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
4f4e53dd PB |
1194 | done |
1195 | ||
1196 | # There might be people who depend on the old broken behavior: `$host' | |
1197 | # used to hold the argument of --host etc. | |
1198 | # FIXME: To remove some day. | |
1199 | build=$build_alias | |
1200 | host=$host_alias | |
1201 | target=$target_alias | |
1202 | ||
1203 | # FIXME: To remove some day. | |
1204 | if test "x$host_alias" != x; then | |
1205 | if test "x$build_alias" = x; then | |
1206 | cross_compiling=maybe | |
4f4e53dd PB |
1207 | elif test "x$build_alias" != "x$host_alias"; then |
1208 | cross_compiling=yes | |
1209 | fi | |
1210 | fi | |
1211 | ||
1212 | ac_tool_prefix= | |
1213 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1214 | ||
1215 | test "$silent" = yes && exec 6>/dev/null | |
1216 | ||
1217 | ||
5213506e RW |
1218 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1219 | ac_ls_di=`ls -di .` && | |
1220 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1221 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1222 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1223 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1224 | |
1225 | ||
4f4e53dd PB |
1226 | # Find the source files, if location was not specified. |
1227 | if test -z "$srcdir"; then | |
1228 | ac_srcdir_defaulted=yes | |
5213506e RW |
1229 | # Try the directory containing this script, then the parent directory. |
1230 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1231 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1232 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1233 | X"$as_myself" : 'X\(//\)$' \| \ | |
1234 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1235 | $as_echo X"$as_myself" | | |
1236 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1237 | s//\1/ | |
1238 | q | |
1239 | } | |
1240 | /^X\(\/\/\)[^/].*/{ | |
1241 | s//\1/ | |
1242 | q | |
1243 | } | |
1244 | /^X\(\/\/\)$/{ | |
1245 | s//\1/ | |
1246 | q | |
1247 | } | |
1248 | /^X\(\/\).*/{ | |
1249 | s//\1/ | |
1250 | q | |
1251 | } | |
1252 | s/.*/./; q'` | |
4f4e53dd | 1253 | srcdir=$ac_confdir |
5213506e | 1254 | if test ! -r "$srcdir/$ac_unique_file"; then |
4f4e53dd PB |
1255 | srcdir=.. |
1256 | fi | |
1257 | else | |
1258 | ac_srcdir_defaulted=no | |
1259 | fi | |
5213506e RW |
1260 | if test ! -r "$srcdir/$ac_unique_file"; then |
1261 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1262 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1263 | fi |
1264 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1265 | ac_abs_confdir=`( | |
22e05272 | 1266 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1267 | pwd)` |
1268 | # When building in place, set srcdir=. | |
1269 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1270 | srcdir=. | |
1271 | fi | |
1272 | # Remove unnecessary trailing slashes from srcdir. | |
1273 | # Double slashes in file names in object file debugging info | |
1274 | # mess up M-x gdb in Emacs. | |
1275 | case $srcdir in | |
1276 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1277 | esac | |
1278 | for ac_var in $ac_precious_vars; do | |
1279 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1280 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1281 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1282 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1283 | done | |
4f4e53dd PB |
1284 | |
1285 | # | |
1286 | # Report the --help message. | |
1287 | # | |
1288 | if test "$ac_init_help" = "long"; then | |
1289 | # Omit some internal or obsolete options to make the list less imposing. | |
1290 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1291 | cat <<_ACEOF | |
1292 | \`configure' configures cpplib to adapt to many kinds of systems. | |
1293 | ||
1294 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1295 | ||
1296 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1297 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1298 | ||
1299 | Defaults for the options are specified in brackets. | |
1300 | ||
1301 | Configuration: | |
1302 | -h, --help display this help and exit | |
1303 | --help=short display options specific to this package | |
1304 | --help=recursive display the short help of all the included packages | |
1305 | -V, --version display version information and exit | |
22e05272 | 1306 | -q, --quiet, --silent do not print \`checking ...' messages |
4f4e53dd PB |
1307 | --cache-file=FILE cache test results in FILE [disabled] |
1308 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1309 | -n, --no-create do not create output files | |
1310 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1311 | ||
4f4e53dd PB |
1312 | Installation directories: |
1313 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1314 | [$ac_default_prefix] |
4f4e53dd | 1315 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1316 | [PREFIX] |
4f4e53dd PB |
1317 | |
1318 | By default, \`make install' will install all the files in | |
1319 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1320 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1321 | for instance \`--prefix=\$HOME'. | |
1322 | ||
1323 | For better control, use the options below. | |
1324 | ||
1325 | Fine tuning of the installation directories: | |
5213506e RW |
1326 | --bindir=DIR user executables [EPREFIX/bin] |
1327 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1328 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1329 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1330 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1331 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1332 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1333 | --includedir=DIR C header files [PREFIX/include] | |
1334 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1335 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1336 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1337 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1338 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1339 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1340 | --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib] | |
1341 | --htmldir=DIR html documentation [DOCDIR] | |
1342 | --dvidir=DIR dvi documentation [DOCDIR] | |
1343 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1344 | --psdir=DIR ps documentation [DOCDIR] | |
4f4e53dd PB |
1345 | _ACEOF |
1346 | ||
1347 | cat <<\_ACEOF | |
1348 | ||
4f4e53dd PB |
1349 | System types: |
1350 | --build=BUILD configure for building on BUILD [guessed] | |
1351 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1352 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1353 | _ACEOF | |
1354 | fi | |
1355 | ||
1356 | if test -n "$ac_init_help"; then | |
1357 | case $ac_init_help in | |
1358 | short | recursive ) echo "Configuration of cpplib :";; | |
1359 | esac | |
1360 | cat <<\_ACEOF | |
1361 | ||
1362 | Optional Features: | |
5213506e | 1363 | --disable-option-checking ignore unrecognized --enable/--with options |
4f4e53dd PB |
1364 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1365 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
480767a9 | 1366 | --disable-largefile omit support for large files |
018a4785 | 1367 | --enable-werror-always enable -Werror despite compiler version |
4f4e53dd | 1368 | --disable-rpath do not hardcode runtime library paths |
078e3ffe | 1369 | --enable-maintainer-mode enable rules only needed by maintainers |
1a80db97 JJ |
1370 | --enable-checking[=LIST] |
1371 | enable expensive run-time checks. With LIST, enable | |
1372 | only specific categories of checks. Categories are: | |
1373 | yes,no,all,none,release. Flags are: misc,valgrind or | |
1374 | other strings | |
5dc99c46 SB |
1375 | --enable-canonical-system-headers |
1376 | enable or disable system headers canonicalization | |
459260ec | 1377 | --enable-host-shared build host code as shared libraries |
ceb17928 ML |
1378 | --enable-valgrind-annotations |
1379 | enable valgrind runtime interaction | |
4f4e53dd PB |
1380 | |
1381 | Optional Packages: | |
1382 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1383 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1384 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
1385 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1386 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
e7c26e04 | 1387 | --with-libiconv-type=TYPE type of library to search for (auto/static/shared) |
4f4e53dd PB |
1388 | |
1389 | Some influential environment variables: | |
1390 | CC C compiler command | |
1391 | CFLAGS C compiler flags | |
1392 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1393 | nonstandard directory <lib dir> | |
5213506e | 1394 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1395 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1396 | you have headers in a nonstandard directory <include dir> |
f1bf410c JQ |
1397 | CXX C++ compiler command |
1398 | CXXFLAGS C++ compiler flags | |
4f4e53dd PB |
1399 | CPP C preprocessor |
1400 | ||
1401 | Use these variables to override the choices made by `configure' or to help | |
1402 | it to find libraries and programs with nonstandard names/locations. | |
1403 | ||
1404 | Report bugs to <gcc-bugs@gcc.gnu.org>. | |
1405 | _ACEOF | |
5213506e | 1406 | ac_status=$? |
4f4e53dd PB |
1407 | fi |
1408 | ||
1409 | if test "$ac_init_help" = "recursive"; then | |
1410 | # If there are subdirs, report their specific --help. | |
4f4e53dd | 1411 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1412 | test -d "$ac_dir" || |
1413 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1414 | continue | |
4f4e53dd PB |
1415 | ac_builddir=. |
1416 | ||
5213506e RW |
1417 | case "$ac_dir" in |
1418 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1419 | *) | |
1420 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1421 | # A ".." for each directory in $ac_dir_suffix. | |
1422 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1423 | case $ac_top_builddir_sub in | |
1424 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1425 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1426 | esac ;; | |
1427 | esac | |
1428 | ac_abs_top_builddir=$ac_pwd | |
1429 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1430 | # for backward compatibility: | |
1431 | ac_top_builddir=$ac_top_build_prefix | |
4f4e53dd PB |
1432 | |
1433 | case $srcdir in | |
5213506e | 1434 | .) # We are building in place. |
4f4e53dd | 1435 | ac_srcdir=. |
5213506e RW |
1436 | ac_top_srcdir=$ac_top_builddir_sub |
1437 | ac_abs_top_srcdir=$ac_pwd ;; | |
1438 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4f4e53dd | 1439 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1440 | ac_top_srcdir=$srcdir |
1441 | ac_abs_top_srcdir=$srcdir ;; | |
1442 | *) # Relative name. | |
1443 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1444 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1445 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4f4e53dd | 1446 | esac |
5213506e RW |
1447 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1448 | ||
1449 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1450 | # Check for guested configure. | |
1451 | if test -f "$ac_srcdir/configure.gnu"; then | |
1452 | echo && | |
1453 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1454 | elif test -f "$ac_srcdir/configure"; then | |
1455 | echo && | |
1456 | $SHELL "$ac_srcdir/configure" --help=recursive | |
4f4e53dd | 1457 | else |
5213506e RW |
1458 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1459 | fi || ac_status=$? | |
1460 | cd "$ac_pwd" || { ac_status=$?; break; } | |
4f4e53dd PB |
1461 | done |
1462 | fi | |
1463 | ||
5213506e | 1464 | test -n "$ac_init_help" && exit $ac_status |
4f4e53dd PB |
1465 | if $ac_init_version; then |
1466 | cat <<\_ACEOF | |
1467 | cpplib configure | |
22e05272 | 1468 | generated by GNU Autoconf 2.69 |
4f4e53dd | 1469 | |
22e05272 | 1470 | Copyright (C) 2012 Free Software Foundation, Inc. |
4f4e53dd PB |
1471 | This configure script is free software; the Free Software Foundation |
1472 | gives unlimited permission to copy, distribute and modify it. | |
1473 | _ACEOF | |
5213506e | 1474 | exit |
4f4e53dd | 1475 | fi |
4f4e53dd | 1476 | |
5213506e RW |
1477 | ## ------------------------ ## |
1478 | ## Autoconf initialization. ## | |
1479 | ## ------------------------ ## | |
4f4e53dd | 1480 | |
5213506e RW |
1481 | # ac_fn_c_try_compile LINENO |
1482 | # -------------------------- | |
1483 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1484 | ac_fn_c_try_compile () | |
4f4e53dd | 1485 | { |
5213506e RW |
1486 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1487 | rm -f conftest.$ac_objext | |
1488 | if { { ac_try="$ac_compile" | |
1489 | case "(($ac_try" in | |
1490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1491 | *) ac_try_echo=$ac_try;; | |
1492 | esac | |
1493 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1494 | $as_echo "$ac_try_echo"; } >&5 | |
1495 | (eval "$ac_compile") 2>conftest.err | |
1496 | ac_status=$? | |
1497 | if test -s conftest.err; then | |
1498 | grep -v '^ *+' conftest.err >conftest.er1 | |
1499 | cat conftest.er1 >&5 | |
1500 | mv -f conftest.er1 conftest.err | |
1501 | fi | |
1502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1503 | test $ac_status = 0; } && { | |
1504 | test -z "$ac_c_werror_flag" || | |
1505 | test ! -s conftest.err | |
1506 | } && test -s conftest.$ac_objext; then : | |
1507 | ac_retval=0 | |
1508 | else | |
1509 | $as_echo "$as_me: failed program was:" >&5 | |
1510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4f4e53dd | 1511 | |
5213506e RW |
1512 | ac_retval=1 |
1513 | fi | |
22e05272 JM |
1514 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1515 | as_fn_set_status $ac_retval | |
4f4e53dd | 1516 | |
5213506e | 1517 | } # ac_fn_c_try_compile |
4f4e53dd | 1518 | |
5213506e RW |
1519 | # ac_fn_cxx_try_compile LINENO |
1520 | # ---------------------------- | |
1521 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1522 | ac_fn_cxx_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_cxx_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 | |
4f4e53dd | 1549 | |
5213506e RW |
1550 | ac_retval=1 |
1551 | fi | |
22e05272 JM |
1552 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1553 | as_fn_set_status $ac_retval | |
4f4e53dd | 1554 | |
5213506e | 1555 | } # ac_fn_cxx_try_compile |
4f4e53dd | 1556 | |
5213506e RW |
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 | |
22e05272 | 1578 | test $ac_status = 0; } > conftest.i && { |
5213506e RW |
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 | |
4f4e53dd | 1586 | |
5213506e RW |
1587 | ac_retval=1 |
1588 | fi | |
22e05272 JM |
1589 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1590 | as_fn_set_status $ac_retval | |
4f4e53dd | 1591 | |
5213506e | 1592 | } # ac_fn_c_try_cpp |
4f4e53dd | 1593 | |
5213506e RW |
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 | |
22e05272 | 1602 | if eval \${$3+:} false; then : |
5213506e RW |
1603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1604 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1605 | if eval \${$3+:} false; then : |
5213506e RW |
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> | |
4f4e53dd | 1619 | _ACEOF |
5213506e RW |
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; } | |
4f4e53dd | 1628 | |
5213506e RW |
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 | |
22e05272 | 1641 | rm -f conftest.err conftest.i conftest.$ac_ext |
5213506e RW |
1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1643 | $as_echo "$ac_header_preproc" >&6; } | |
4f4e53dd | 1644 | |
5213506e RW |
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;} | |
22e05272 | 1664 | ( $as_echo "## ----------------------------------- ## |
5213506e | 1665 | ## Report this to gcc-bugs@gcc.gnu.org ## |
22e05272 | 1666 | ## ----------------------------------- ##" |
5213506e RW |
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; } | |
22e05272 | 1672 | if eval \${$3+:} false; then : |
5213506e RW |
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 | |
22e05272 | 1681 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4f4e53dd | 1682 | |
5213506e | 1683 | } # ac_fn_c_check_header_mongrel |
4f4e53dd | 1684 | |
5213506e RW |
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 | |
4f4e53dd | 1718 | |
5213506e RW |
1719 | ac_retval=$ac_status |
1720 | fi | |
1721 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1722 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1723 | as_fn_set_status $ac_retval | |
4f4e53dd | 1724 | |
5213506e | 1725 | } # ac_fn_c_try_run |
4f4e53dd | 1726 | |
5213506e RW |
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; } | |
22e05272 | 1736 | if eval \${$3+:} false; then : |
5213506e RW |
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> | |
4f4e53dd | 1743 | _ACEOF |
5213506e RW |
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; } | |
22e05272 | 1754 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4f4e53dd | 1755 | |
5213506e | 1756 | } # ac_fn_c_check_header_compile |
4f4e53dd | 1757 | |
0e1a989c ILT |
1758 | # ac_fn_c_try_link LINENO |
1759 | # ----------------------- | |
5213506e | 1760 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
0e1a989c | 1761 | ac_fn_c_try_link () |
5213506e RW |
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; } && { | |
0e1a989c | 1781 | test -z "$ac_c_werror_flag" || |
5213506e RW |
1782 | test ! -s conftest.err |
1783 | } && test -s conftest$ac_exeext && { | |
1784 | test "$cross_compiling" = yes || | |
22e05272 | 1785 | test -x conftest$ac_exeext |
5213506e RW |
1786 | }; then : |
1787 | ac_retval=0 | |
1788 | else | |
1789 | $as_echo "$as_me: failed program was:" >&5 | |
1790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4f4e53dd | 1791 | |
5213506e RW |
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 | |
22e05272 JM |
1799 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1800 | as_fn_set_status $ac_retval | |
4f4e53dd | 1801 | |
0e1a989c | 1802 | } # ac_fn_c_try_link |
4f4e53dd | 1803 | |
0e1a989c ILT |
1804 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1805 | # ------------------------------------------- | |
5213506e RW |
1806 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
1807 | # variable VAR accordingly. | |
0e1a989c | 1808 | ac_fn_c_check_type () |
5213506e RW |
1809 | { |
1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1812 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1813 | if eval \${$3+:} false; then : |
5213506e RW |
1814 | $as_echo_n "(cached) " >&6 |
1815 | else | |
1816 | eval "$3=no" | |
1817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1818 | /* end confdefs.h. */ | |
1819 | $4 | |
1820 | int | |
1821 | main () | |
1822 | { | |
1823 | if (sizeof ($2)) | |
1824 | return 0; | |
1825 | ; | |
1826 | return 0; | |
1827 | } | |
1828 | _ACEOF | |
0e1a989c | 1829 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
1830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1831 | /* end confdefs.h. */ | |
1832 | $4 | |
1833 | int | |
1834 | main () | |
1835 | { | |
1836 | if (sizeof (($2))) | |
1837 | return 0; | |
1838 | ; | |
1839 | return 0; | |
1840 | } | |
1841 | _ACEOF | |
0e1a989c | 1842 | if ac_fn_c_try_compile "$LINENO"; then : |
4f4e53dd | 1843 | |
5213506e RW |
1844 | else |
1845 | eval "$3=yes" | |
1846 | fi | |
1847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1848 | fi | |
1849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1850 | fi | |
1851 | eval ac_res=\$$3 | |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1853 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1854 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4f4e53dd | 1855 | |
0e1a989c | 1856 | } # ac_fn_c_check_type |
4f4e53dd | 1857 | |
edf6ddf6 RB |
1858 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
1859 | # ------------------------------------ | |
1860 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
1861 | # accordingly. | |
1862 | ac_fn_c_find_uintX_t () | |
1863 | { | |
1864 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
1866 | $as_echo_n "checking for uint$2_t... " >&6; } | |
22e05272 | 1867 | if eval \${$3+:} false; then : |
edf6ddf6 RB |
1868 | $as_echo_n "(cached) " >&6 |
1869 | else | |
1870 | eval "$3=no" | |
22e05272 JM |
1871 | # Order is important - never check a type that is potentially smaller |
1872 | # than half of the expected target width. | |
edf6ddf6 RB |
1873 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
1874 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
1875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1876 | /* end confdefs.h. */ | |
1877 | $ac_includes_default | |
1878 | int | |
1879 | main () | |
1880 | { | |
22e05272 JM |
1881 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
1882 | test_array [0] = 0; | |
1883 | return test_array [0]; | |
edf6ddf6 RB |
1884 | |
1885 | ; | |
1886 | return 0; | |
1887 | } | |
1888 | _ACEOF | |
1889 | if ac_fn_c_try_compile "$LINENO"; then : | |
1890 | case $ac_type in #( | |
1891 | uint$2_t) : | |
1892 | eval "$3=yes" ;; #( | |
1893 | *) : | |
1894 | eval "$3=\$ac_type" ;; | |
1895 | esac | |
1896 | fi | |
1897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22e05272 | 1898 | if eval test \"x\$"$3"\" = x"no"; then : |
edf6ddf6 RB |
1899 | |
1900 | else | |
1901 | break | |
1902 | fi | |
1903 | done | |
1904 | fi | |
1905 | eval ac_res=\$$3 | |
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1907 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1908 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
edf6ddf6 RB |
1909 | |
1910 | } # ac_fn_c_find_uintX_t | |
1911 | ||
0e1a989c ILT |
1912 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
1913 | # -------------------------------------------- | |
5213506e RW |
1914 | # Tries to find the compile-time value of EXPR in a program that includes |
1915 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1916 | # computed | |
0e1a989c | 1917 | ac_fn_c_compute_int () |
5213506e RW |
1918 | { |
1919 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1920 | if test "$cross_compiling" = yes; then | |
1921 | # Depending upon the size, compute the lo and hi bounds. | |
1922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1923 | /* end confdefs.h. */ | |
1924 | $4 | |
1925 | int | |
1926 | main () | |
1927 | { | |
1928 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
22e05272 JM |
1929 | test_array [0] = 0; |
1930 | return test_array [0]; | |
4f4e53dd | 1931 | |
5213506e RW |
1932 | ; |
1933 | return 0; | |
1934 | } | |
1935 | _ACEOF | |
0e1a989c | 1936 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
1937 | ac_lo=0 ac_mid=0 |
1938 | while :; do | |
1939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1940 | /* end confdefs.h. */ | |
1941 | $4 | |
1942 | int | |
1943 | main () | |
1944 | { | |
1945 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
1946 | test_array [0] = 0; |
1947 | return test_array [0]; | |
4f4e53dd | 1948 | |
5213506e RW |
1949 | ; |
1950 | return 0; | |
1951 | } | |
1952 | _ACEOF | |
0e1a989c | 1953 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
1954 | ac_hi=$ac_mid; break |
1955 | else | |
1956 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1957 | if test $ac_lo -le $ac_mid; then | |
1958 | ac_lo= ac_hi= | |
1959 | break | |
1960 | fi | |
1961 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1962 | fi | |
1963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1964 | done | |
1965 | else | |
1966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1967 | /* end confdefs.h. */ | |
1968 | $4 | |
1969 | int | |
1970 | main () | |
1971 | { | |
1972 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
1973 | test_array [0] = 0; |
1974 | return test_array [0]; | |
4f4e53dd | 1975 | |
5213506e RW |
1976 | ; |
1977 | return 0; | |
1978 | } | |
1979 | _ACEOF | |
0e1a989c | 1980 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
1981 | ac_hi=-1 ac_mid=-1 |
1982 | while :; do | |
1983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1984 | /* end confdefs.h. */ | |
1985 | $4 | |
1986 | int | |
1987 | main () | |
1988 | { | |
1989 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
22e05272 JM |
1990 | test_array [0] = 0; |
1991 | return test_array [0]; | |
4f4e53dd | 1992 | |
5213506e RW |
1993 | ; |
1994 | return 0; | |
1995 | } | |
1996 | _ACEOF | |
0e1a989c | 1997 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
1998 | ac_lo=$ac_mid; break |
1999 | else | |
2000 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2001 | if test $ac_mid -le $ac_hi; then | |
2002 | ac_lo= ac_hi= | |
2003 | break | |
2004 | fi | |
2005 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2006 | fi | |
2007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2008 | done | |
2009 | else | |
2010 | ac_lo= ac_hi= | |
2011 | fi | |
2012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2013 | fi | |
2014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2015 | # Binary search between lo and hi bounds. | |
2016 | while test "x$ac_lo" != "x$ac_hi"; do | |
2017 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2019 | /* end confdefs.h. */ | |
2020 | $4 | |
2021 | int | |
2022 | main () | |
2023 | { | |
2024 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
2025 | test_array [0] = 0; |
2026 | return test_array [0]; | |
4f4e53dd | 2027 | |
5213506e RW |
2028 | ; |
2029 | return 0; | |
2030 | } | |
2031 | _ACEOF | |
0e1a989c | 2032 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
2033 | ac_hi=$ac_mid |
2034 | else | |
2035 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2036 | fi | |
2037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2038 | done | |
2039 | case $ac_lo in #(( | |
2040 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2041 | '') ac_retval=1 ;; | |
2042 | esac | |
2043 | else | |
2044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2045 | /* end confdefs.h. */ | |
2046 | $4 | |
2047 | static long int longval () { return $2; } | |
2048 | static unsigned long int ulongval () { return $2; } | |
2049 | #include <stdio.h> | |
2050 | #include <stdlib.h> | |
2051 | int | |
2052 | main () | |
2053 | { | |
4f4e53dd | 2054 | |
5213506e RW |
2055 | FILE *f = fopen ("conftest.val", "w"); |
2056 | if (! f) | |
2057 | return 1; | |
2058 | if (($2) < 0) | |
2059 | { | |
2060 | long int i = longval (); | |
2061 | if (i != ($2)) | |
2062 | return 1; | |
2063 | fprintf (f, "%ld", i); | |
2064 | } | |
2065 | else | |
2066 | { | |
2067 | unsigned long int i = ulongval (); | |
2068 | if (i != ($2)) | |
2069 | return 1; | |
2070 | fprintf (f, "%lu", i); | |
2071 | } | |
2072 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2073 | on some platforms. */ | |
2074 | return ferror (f) || fclose (f) != 0; | |
4f4e53dd | 2075 | |
5213506e RW |
2076 | ; |
2077 | return 0; | |
2078 | } | |
2079 | _ACEOF | |
0e1a989c | 2080 | if ac_fn_c_try_run "$LINENO"; then : |
5213506e RW |
2081 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
2082 | else | |
2083 | ac_retval=1 | |
2084 | fi | |
2085 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2086 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2087 | rm -f conftest.val | |
4f4e53dd | 2088 | |
5213506e | 2089 | fi |
22e05272 JM |
2090 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2091 | as_fn_set_status $ac_retval | |
18c04407 | 2092 | |
0e1a989c | 2093 | } # ac_fn_c_compute_int |
18c04407 | 2094 | |
0e1a989c ILT |
2095 | # ac_fn_c_check_func LINENO FUNC VAR |
2096 | # ---------------------------------- | |
5213506e | 2097 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
0e1a989c | 2098 | ac_fn_c_check_func () |
5213506e RW |
2099 | { |
2100 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2102 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2103 | if eval \${$3+:} false; then : |
5213506e RW |
2104 | $as_echo_n "(cached) " >&6 |
2105 | else | |
2106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2107 | /* end confdefs.h. */ | |
2108 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2109 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2110 | #define $2 innocuous_$2 | |
18c04407 | 2111 | |
5213506e RW |
2112 | /* System header to define __stub macros and hopefully few prototypes, |
2113 | which can conflict with char $2 (); below. | |
2114 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2115 | <limits.h> exists even on freestanding compilers. */ | |
4f4e53dd | 2116 | |
5213506e RW |
2117 | #ifdef __STDC__ |
2118 | # include <limits.h> | |
2119 | #else | |
2120 | # include <assert.h> | |
2121 | #endif | |
4f4e53dd | 2122 | |
5213506e | 2123 | #undef $2 |
4f4e53dd | 2124 | |
5213506e RW |
2125 | /* Override any GCC internal prototype to avoid an error. |
2126 | Use char because int might match the return type of a GCC | |
2127 | builtin and then its argument prototype would still apply. */ | |
2128 | #ifdef __cplusplus | |
2129 | extern "C" | |
2130 | #endif | |
2131 | char $2 (); | |
2132 | /* The GNU C library defines this for functions which it implements | |
2133 | to always fail with ENOSYS. Some functions are actually named | |
2134 | something starting with __ and the normal name is an alias. */ | |
2135 | #if defined __stub_$2 || defined __stub___$2 | |
2136 | choke me | |
2137 | #endif | |
88fa57d7 | 2138 | |
5213506e RW |
2139 | int |
2140 | main () | |
2141 | { | |
2142 | return $2 (); | |
2143 | ; | |
2144 | return 0; | |
2145 | } | |
2146 | _ACEOF | |
0e1a989c | 2147 | if ac_fn_c_try_link "$LINENO"; then : |
5213506e | 2148 | eval "$3=yes" |
88fa57d7 | 2149 | else |
5213506e | 2150 | eval "$3=no" |
88fa57d7 | 2151 | fi |
5213506e RW |
2152 | rm -f core conftest.err conftest.$ac_objext \ |
2153 | conftest$ac_exeext conftest.$ac_ext | |
4f4e53dd | 2154 | fi |
5213506e RW |
2155 | eval ac_res=\$$3 |
2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2157 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2158 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4f4e53dd | 2159 | |
0e1a989c | 2160 | } # ac_fn_c_check_func |
4f4e53dd | 2161 | |
22e05272 JM |
2162 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2163 | # --------------------------------------------- | |
2164 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2165 | # accordingly. | |
0e1a989c | 2166 | ac_fn_c_check_decl () |
5213506e RW |
2167 | { |
2168 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c3f247f4 RW |
2169 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2170 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2172 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
22e05272 | 2173 | if eval \${$3+:} false; then : |
5213506e | 2174 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 2175 | else |
5213506e RW |
2176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2177 | /* end confdefs.h. */ | |
2178 | $4 | |
2179 | int | |
2180 | main () | |
2181 | { | |
c3f247f4 RW |
2182 | #ifndef $as_decl_name |
2183 | #ifdef __cplusplus | |
2184 | (void) $as_decl_use; | |
2185 | #else | |
2186 | (void) $as_decl_name; | |
2187 | #endif | |
5213506e | 2188 | #endif |
4f4e53dd | 2189 | |
5213506e RW |
2190 | ; |
2191 | return 0; | |
2192 | } | |
2193 | _ACEOF | |
0e1a989c | 2194 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
2195 | eval "$3=yes" |
2196 | else | |
2197 | eval "$3=no" | |
4f4e53dd | 2198 | fi |
5213506e RW |
2199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2200 | fi | |
2201 | eval ac_res=\$$3 | |
2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2203 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2204 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4f4e53dd | 2205 | |
0e1a989c | 2206 | } # ac_fn_c_check_decl |
5b6d595b RO |
2207 | |
2208 | # ac_fn_cxx_try_link LINENO | |
2209 | # ------------------------- | |
2210 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2211 | ac_fn_cxx_try_link () | |
2212 | { | |
2213 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2215 | if { { ac_try="$ac_link" | |
2216 | case "(($ac_try" in | |
2217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2218 | *) ac_try_echo=$ac_try;; | |
2219 | esac | |
2220 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2221 | $as_echo "$ac_try_echo"; } >&5 | |
2222 | (eval "$ac_link") 2>conftest.err | |
2223 | ac_status=$? | |
2224 | if test -s conftest.err; then | |
2225 | grep -v '^ *+' conftest.err >conftest.er1 | |
2226 | cat conftest.er1 >&5 | |
2227 | mv -f conftest.er1 conftest.err | |
2228 | fi | |
2229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2230 | test $ac_status = 0; } && { | |
2231 | test -z "$ac_cxx_werror_flag" || | |
2232 | test ! -s conftest.err | |
2233 | } && test -s conftest$ac_exeext && { | |
2234 | test "$cross_compiling" = yes || | |
22e05272 | 2235 | test -x conftest$ac_exeext |
5b6d595b RO |
2236 | }; then : |
2237 | ac_retval=0 | |
2238 | else | |
2239 | $as_echo "$as_me: failed program was:" >&5 | |
2240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2241 | ||
2242 | ac_retval=1 | |
2243 | fi | |
2244 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2245 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2246 | # interfere with the next link command; also delete a directory that is | |
2247 | # left behind by Apple's compiler. We do this before executing the actions. | |
2248 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
2249 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2250 | as_fn_set_status $ac_retval | |
5b6d595b RO |
2251 | |
2252 | } # ac_fn_cxx_try_link | |
5213506e RW |
2253 | cat >config.log <<_ACEOF |
2254 | This file contains any messages produced by compilers while | |
2255 | running configure, to aid debugging if configure makes a mistake. | |
4f4e53dd | 2256 | |
5213506e | 2257 | It was created by cpplib $as_me , which was |
22e05272 | 2258 | generated by GNU Autoconf 2.69. Invocation command line was |
4f4e53dd | 2259 | |
5213506e RW |
2260 | $ $0 $@ |
2261 | ||
2262 | _ACEOF | |
2263 | exec 5>>config.log | |
2264 | { | |
2265 | cat <<_ASUNAME | |
2266 | ## --------- ## | |
2267 | ## Platform. ## | |
2268 | ## --------- ## | |
4f4e53dd | 2269 | |
5213506e RW |
2270 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2271 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2272 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2273 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2274 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
4f4e53dd | 2275 | |
5213506e RW |
2276 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2277 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
018a4785 | 2278 | |
5213506e RW |
2279 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2280 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2281 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2282 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2283 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2284 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2285 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
078e3ffe | 2286 | |
5213506e RW |
2287 | _ASUNAME |
2288 | ||
2289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4f4e53dd PB |
2290 | for as_dir in $PATH |
2291 | do | |
2292 | IFS=$as_save_IFS | |
2293 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2294 | $as_echo "PATH: $as_dir" |
2295 | done | |
2296 | IFS=$as_save_IFS | |
f1bf410c | 2297 | |
5213506e | 2298 | } >&5 |
f1bf410c | 2299 | |
5213506e | 2300 | cat >&5 <<_ACEOF |
f1bf410c | 2301 | |
f1bf410c | 2302 | |
5213506e RW |
2303 | ## ----------- ## |
2304 | ## Core tests. ## | |
2305 | ## ----------- ## | |
f1bf410c | 2306 | |
5213506e | 2307 | _ACEOF |
f1bf410c | 2308 | |
f1bf410c | 2309 | |
5213506e RW |
2310 | # Keep a trace of the command line. |
2311 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2312 | # Strip out --silent because we don't want to record it for future runs. | |
2313 | # Also quote any args containing shell meta-characters. | |
2314 | # Make two passes to allow for proper duplicate-argument suppression. | |
2315 | ac_configure_args= | |
2316 | ac_configure_args0= | |
2317 | ac_configure_args1= | |
2318 | ac_must_keep_next=false | |
2319 | for ac_pass in 1 2 | |
2320 | do | |
2321 | for ac_arg | |
2322 | do | |
2323 | case $ac_arg in | |
2324 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2325 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2326 | | -silent | --silent | --silen | --sile | --sil) | |
2327 | continue ;; | |
2328 | *\'*) | |
2329 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2330 | esac | |
2331 | case $ac_pass in | |
2332 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2333 | 2) | |
2334 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2335 | if test $ac_must_keep_next = true; then | |
2336 | ac_must_keep_next=false # Got value, back to normal. | |
2337 | else | |
2338 | case $ac_arg in | |
2339 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2340 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2341 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2342 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2343 | case "$ac_configure_args0 " in | |
2344 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2345 | esac | |
2346 | ;; | |
2347 | -* ) ac_must_keep_next=true ;; | |
2348 | esac | |
f1bf410c | 2349 | fi |
5213506e RW |
2350 | as_fn_append ac_configure_args " '$ac_arg'" |
2351 | ;; | |
2352 | esac | |
f1bf410c | 2353 | done |
5213506e RW |
2354 | done |
2355 | { ac_configure_args0=; unset ac_configure_args0;} | |
2356 | { ac_configure_args1=; unset ac_configure_args1;} | |
f1bf410c | 2357 | |
5213506e RW |
2358 | # When interrupted or exit'd, cleanup temporary files, and complete |
2359 | # config.log. We remove comments because anyway the quotes in there | |
2360 | # would cause problems or look ugly. | |
2361 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2362 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2363 | trap 'exit_status=$? | |
2364 | # Save into config.log some information that might help in debugging. | |
2365 | { | |
2366 | echo | |
f1bf410c | 2367 | |
22e05272 | 2368 | $as_echo "## ---------------- ## |
5213506e | 2369 | ## Cache variables. ## |
22e05272 | 2370 | ## ---------------- ##" |
5213506e RW |
2371 | echo |
2372 | # The following way of writing the cache mishandles newlines in values, | |
2373 | ( | |
2374 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2375 | eval ac_val=\$$ac_var | |
2376 | case $ac_val in #( | |
2377 | *${as_nl}*) | |
2378 | case $ac_var in #( | |
2379 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2380 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2381 | esac | |
2382 | case $ac_var in #( | |
2383 | _ | IFS | as_nl) ;; #( | |
2384 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2385 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2386 | esac ;; | |
2387 | esac | |
2388 | done | |
2389 | (set) 2>&1 | | |
2390 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2391 | *${as_nl}ac_space=\ *) | |
2392 | sed -n \ | |
2393 | "s/'\''/'\''\\\\'\'''\''/g; | |
2394 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2395 | ;; #( | |
2396 | *) | |
2397 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2398 | ;; | |
2399 | esac | | |
2400 | sort | |
2401 | ) | |
2402 | echo | |
f1bf410c | 2403 | |
22e05272 | 2404 | $as_echo "## ----------------- ## |
5213506e | 2405 | ## Output variables. ## |
22e05272 | 2406 | ## ----------------- ##" |
5213506e RW |
2407 | echo |
2408 | for ac_var in $ac_subst_vars | |
2409 | do | |
2410 | eval ac_val=\$$ac_var | |
2411 | case $ac_val in | |
2412 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2413 | esac | |
2414 | $as_echo "$ac_var='\''$ac_val'\''" | |
2415 | done | sort | |
2416 | echo | |
f1bf410c | 2417 | |
5213506e | 2418 | if test -n "$ac_subst_files"; then |
22e05272 | 2419 | $as_echo "## ------------------- ## |
5213506e | 2420 | ## File substitutions. ## |
22e05272 | 2421 | ## ------------------- ##" |
5213506e RW |
2422 | echo |
2423 | for ac_var in $ac_subst_files | |
2424 | do | |
2425 | eval ac_val=\$$ac_var | |
2426 | case $ac_val in | |
2427 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2428 | esac | |
2429 | $as_echo "$ac_var='\''$ac_val'\''" | |
2430 | done | sort | |
2431 | echo | |
f1bf410c | 2432 | fi |
f1bf410c | 2433 | |
5213506e | 2434 | if test -s confdefs.h; then |
22e05272 | 2435 | $as_echo "## ----------- ## |
5213506e | 2436 | ## confdefs.h. ## |
22e05272 | 2437 | ## ----------- ##" |
5213506e RW |
2438 | echo |
2439 | cat confdefs.h | |
2440 | echo | |
2441 | fi | |
2442 | test "$ac_signal" != 0 && | |
2443 | $as_echo "$as_me: caught signal $ac_signal" | |
2444 | $as_echo "$as_me: exit $exit_status" | |
2445 | } >&5 | |
2446 | rm -f core *.core core.conftest.* && | |
2447 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2448 | exit $exit_status | |
2449 | ' 0 | |
2450 | for ac_signal in 1 2 13 15; do | |
2451 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2452 | done | |
2453 | ac_signal=0 | |
f1bf410c | 2454 | |
5213506e RW |
2455 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2456 | rm -f -r conftest* confdefs.h | |
f1bf410c | 2457 | |
5213506e | 2458 | $as_echo "/* confdefs.h */" > confdefs.h |
f1bf410c | 2459 | |
5213506e | 2460 | # Predefined preprocessor variables. |
f1bf410c | 2461 | |
5213506e RW |
2462 | cat >>confdefs.h <<_ACEOF |
2463 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
f1bf410c | 2464 | _ACEOF |
f1bf410c | 2465 | |
5213506e RW |
2466 | cat >>confdefs.h <<_ACEOF |
2467 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
f1bf410c | 2468 | _ACEOF |
f1bf410c | 2469 | |
5213506e RW |
2470 | cat >>confdefs.h <<_ACEOF |
2471 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
f1bf410c JQ |
2472 | _ACEOF |
2473 | ||
5213506e RW |
2474 | cat >>confdefs.h <<_ACEOF |
2475 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
f1bf410c | 2476 | _ACEOF |
f1bf410c | 2477 | |
5213506e RW |
2478 | cat >>confdefs.h <<_ACEOF |
2479 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
f1bf410c | 2480 | _ACEOF |
f1bf410c | 2481 | |
5213506e RW |
2482 | cat >>confdefs.h <<_ACEOF |
2483 | #define PACKAGE_URL "$PACKAGE_URL" | |
f1bf410c JQ |
2484 | _ACEOF |
2485 | ||
f1bf410c | 2486 | |
5213506e RW |
2487 | # Let the site file select an alternate cache file if it wants to. |
2488 | # Prefer an explicitly selected file to automatically selected ones. | |
2489 | ac_site_file1=NONE | |
2490 | ac_site_file2=NONE | |
2491 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2492 | # We do not want a PATH search for config.site. |
2493 | case $CONFIG_SITE in #(( | |
2494 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2495 | */*) ac_site_file1=$CONFIG_SITE;; | |
2496 | *) ac_site_file1=./$CONFIG_SITE;; | |
2497 | esac | |
5213506e RW |
2498 | elif test "x$prefix" != xNONE; then |
2499 | ac_site_file1=$prefix/share/config.site | |
2500 | ac_site_file2=$prefix/etc/config.site | |
2501 | else | |
2502 | ac_site_file1=$ac_default_prefix/share/config.site | |
2503 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2504 | fi | |
2505 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
f1bf410c | 2506 | do |
5213506e | 2507 | test "x$ac_site_file" = xNONE && continue |
22e05272 | 2508 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2510 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2511 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2512 | . "$ac_site_file" \ |
2513 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2514 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2515 | as_fn_error $? "failed to load site script $ac_site_file | |
2516 | See \`config.log' for more details" "$LINENO" 5; } | |
f1bf410c | 2517 | fi |
f1bf410c | 2518 | done |
f1bf410c | 2519 | |
5213506e | 2520 | if test -r "$cache_file"; then |
22e05272 JM |
2521 | # Some versions of bash will fail to source /dev/null (special files |
2522 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2523 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2525 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2526 | case $cache_file in | |
2527 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2528 | *) . "./$cache_file";; | |
2529 | esac | |
f1bf410c | 2530 | fi |
f610dd5f | 2531 | else |
5213506e RW |
2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2533 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2534 | >$cache_file | |
f1bf410c | 2535 | fi |
f1bf410c | 2536 | |
5213506e RW |
2537 | # Check that the precious variables saved in the cache have kept the same |
2538 | # value. | |
2539 | ac_cache_corrupted=false | |
2540 | for ac_var in $ac_precious_vars; do | |
2541 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2542 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2543 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2544 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2545 | case $ac_old_set,$ac_new_set in | |
2546 | set,) | |
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2548 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2549 | ac_cache_corrupted=: ;; | |
2550 | ,set) | |
2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2552 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2553 | ac_cache_corrupted=: ;; | |
2554 | ,);; | |
2555 | *) | |
2556 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2557 | # differences in whitespace do not lead to failure. | |
2558 | ac_old_val_w=`echo x $ac_old_val` | |
2559 | ac_new_val_w=`echo x $ac_new_val` | |
2560 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2562 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2563 | ac_cache_corrupted=: | |
2564 | else | |
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2566 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2567 | eval $ac_var=\$ac_old_val | |
2568 | fi | |
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2570 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2572 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2573 | fi;; | |
2574 | esac | |
2575 | # Pass precious variables to config.status. | |
2576 | if test "$ac_new_set" = set; then | |
2577 | case $ac_new_val in | |
2578 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2579 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2580 | esac | |
2581 | case " $ac_configure_args " in | |
2582 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2583 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2584 | esac | |
2585 | fi | |
f1bf410c | 2586 | done |
5213506e RW |
2587 | if $ac_cache_corrupted; then |
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2589 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2591 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2592 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
f610dd5f | 2593 | fi |
5213506e RW |
2594 | ## -------------------- ## |
2595 | ## Main body of script. ## | |
2596 | ## -------------------- ## | |
f610dd5f | 2597 | |
f1bf410c JQ |
2598 | ac_ext=c |
2599 | ac_cpp='$CPP $CPPFLAGS' | |
2600 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2601 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2602 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2603 | ||
f610dd5f | 2604 | |
f610dd5f ZW |
2605 | |
2606 | ||
5213506e RW |
2607 | ac_aux_dir= |
2608 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
22e05272 JM |
2609 | if test -f "$ac_dir/install-sh"; then |
2610 | ac_aux_dir=$ac_dir | |
2611 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2612 | break | |
2613 | elif test -f "$ac_dir/install.sh"; then | |
2614 | ac_aux_dir=$ac_dir | |
2615 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2616 | break | |
2617 | elif test -f "$ac_dir/shtool"; then | |
2618 | ac_aux_dir=$ac_dir | |
2619 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2620 | break | |
2621 | fi | |
5213506e RW |
2622 | done |
2623 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2624 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
4f4e53dd | 2625 | fi |
f1bf410c | 2626 | |
5213506e RW |
2627 | # These three variables are undocumented and unsupported, |
2628 | # and are intended to be withdrawn in a future Autoconf release. | |
2629 | # They can cause serious problems if a builder's source tree is in a directory | |
2630 | # whose full name contains unusual characters. | |
2631 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2632 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2633 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
f1bf410c | 2634 | |
4f4e53dd | 2635 | |
5213506e RW |
2636 | # Make sure we can run config.sub. |
2637 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 2638 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2639 | |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2641 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2642 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2643 | $as_echo_n "(cached) " >&6 |
2644 | else | |
2645 | ac_build_alias=$build_alias | |
2646 | test "x$ac_build_alias" = x && | |
2647 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2648 | test "x$ac_build_alias" = x && | |
22e05272 | 2649 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2650 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2651 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2652 | |
2653 | fi | |
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2655 | $as_echo "$ac_cv_build" >&6; } | |
2656 | case $ac_cv_build in | |
2657 | *-*-*) ;; | |
22e05272 | 2658 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e RW |
2659 | esac |
2660 | build=$ac_cv_build | |
2661 | ac_save_IFS=$IFS; IFS='-' | |
2662 | set x $ac_cv_build | |
2663 | shift | |
2664 | build_cpu=$1 | |
2665 | build_vendor=$2 | |
2666 | shift; shift | |
2667 | # Remember, the first character of IFS is used to create $*, | |
2668 | # except with old shells: | |
2669 | build_os=$* | |
2670 | IFS=$ac_save_IFS | |
2671 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
f1bf410c | 2672 | |
f1bf410c | 2673 | |
5213506e RW |
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2675 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2676 | if ${ac_cv_host+:} false; then : |
5213506e | 2677 | $as_echo_n "(cached) " >&6 |
f1bf410c | 2678 | else |
5213506e RW |
2679 | if test "x$host_alias" = x; then |
2680 | ac_cv_host=$ac_cv_build | |
2681 | else | |
2682 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2683 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
f1bf410c | 2684 | fi |
4f4e53dd PB |
2685 | |
2686 | fi | |
5213506e RW |
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2688 | $as_echo "$ac_cv_host" >&6; } | |
2689 | case $ac_cv_host in | |
2690 | *-*-*) ;; | |
22e05272 | 2691 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e RW |
2692 | esac |
2693 | host=$ac_cv_host | |
2694 | ac_save_IFS=$IFS; IFS='-' | |
2695 | set x $ac_cv_host | |
2696 | shift | |
2697 | host_cpu=$1 | |
2698 | host_vendor=$2 | |
2699 | shift; shift | |
2700 | # Remember, the first character of IFS is used to create $*, | |
2701 | # except with old shells: | |
2702 | host_os=$* | |
2703 | IFS=$ac_save_IFS | |
2704 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4f4e53dd | 2705 | |
f1bf410c | 2706 | |
5213506e RW |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2708 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2709 | if ${ac_cv_target+:} false; then : |
5213506e | 2710 | $as_echo_n "(cached) " >&6 |
f1bf410c | 2711 | else |
5213506e RW |
2712 | if test "x$target_alias" = x; then |
2713 | ac_cv_target=$ac_cv_host | |
2714 | else | |
2715 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2716 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
f1bf410c | 2717 | fi |
f1bf410c JQ |
2718 | |
2719 | fi | |
5213506e RW |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2721 | $as_echo "$ac_cv_target" >&6; } | |
2722 | case $ac_cv_target in | |
2723 | *-*-*) ;; | |
22e05272 | 2724 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e RW |
2725 | esac |
2726 | target=$ac_cv_target | |
2727 | ac_save_IFS=$IFS; IFS='-' | |
2728 | set x $ac_cv_target | |
2729 | shift | |
2730 | target_cpu=$1 | |
2731 | target_vendor=$2 | |
2732 | shift; shift | |
2733 | # Remember, the first character of IFS is used to create $*, | |
2734 | # except with old shells: | |
2735 | target_os=$* | |
2736 | IFS=$ac_save_IFS | |
2737 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
f1bf410c JQ |
2738 | |
2739 | ||
5213506e RW |
2740 | # The aliases save the names the user supplied, while $host etc. |
2741 | # will get canonicalized. | |
2742 | test -n "$target_alias" && | |
2743 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2744 | NONENONEs,x,x, && | |
2745 | program_prefix=${target_alias}- | |
f1bf410c JQ |
2746 | |
2747 | ||
5213506e RW |
2748 | # Checks for programs. |
2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2750 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2751 | set x ${MAKE-make} | |
2752 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 2753 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5213506e | 2754 | $as_echo_n "(cached) " >&6 |
f1bf410c | 2755 | else |
5213506e RW |
2756 | cat >conftest.make <<\_ACEOF |
2757 | SHELL = /bin/sh | |
2758 | all: | |
2759 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
f1bf410c | 2760 | _ACEOF |
22e05272 | 2761 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5213506e RW |
2762 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2763 | *@@@%%%=?*=@@@%%%*) | |
2764 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2765 | *) | |
2766 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2767 | esac | |
2768 | rm -f conftest.make | |
4f4e53dd | 2769 | fi |
5213506e RW |
2770 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2772 | $as_echo "yes" >&6; } | |
2773 | SET_MAKE= | |
2774 | else | |
2775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2776 | $as_echo "no" >&6; } | |
2777 | SET_MAKE="MAKE=${MAKE-make}" | |
4f4e53dd PB |
2778 | fi |
2779 | ||
5213506e RW |
2780 | # Find a good install program. We prefer a C program (faster), |
2781 | # so one script is as good as another. But avoid the broken or | |
2782 | # incompatible versions: | |
2783 | # SysV /etc/install, /usr/sbin/install | |
2784 | # SunOS /usr/etc/install | |
2785 | # IRIX /sbin/install | |
2786 | # AIX /bin/install | |
2787 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2788 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2789 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2790 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2791 | # OS/2's system install, which has a completely different semantic | |
2792 | # ./install, which can be erroneously created by make from ./install.sh. | |
2793 | # Reject install programs that cannot install multiple files. | |
2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2795 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2796 | if test -z "$INSTALL"; then | |
22e05272 | 2797 | if ${ac_cv_path_install+:} false; then : |
5213506e RW |
2798 | $as_echo_n "(cached) " >&6 |
2799 | else | |
2800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2801 | for as_dir in $PATH | |
2802 | do | |
2803 | IFS=$as_save_IFS | |
2804 | test -z "$as_dir" && as_dir=. | |
2805 | # Account for people who put trailing slashes in PATH elements. | |
2806 | case $as_dir/ in #(( | |
2807 | ./ | .// | /[cC]/* | \ | |
2808 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2809 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2810 | /usr/ucb/* ) ;; | |
2811 | *) | |
2812 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2813 | # Don't use installbsd from OSF since it installs stuff as root | |
2814 | # by default. | |
2815 | for ac_prog in ginstall scoinst install; do | |
2816 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2817 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
5213506e RW |
2818 | if test $ac_prog = install && |
2819 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2820 | # AIX install. It has an incompatible calling convention. | |
2821 | : | |
2822 | elif test $ac_prog = install && | |
2823 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2824 | # program-specific install script used by HP pwplus--don't use. | |
2825 | : | |
2826 | else | |
2827 | rm -rf conftest.one conftest.two conftest.dir | |
2828 | echo one > conftest.one | |
2829 | echo two > conftest.two | |
2830 | mkdir conftest.dir | |
2831 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2832 | test -s conftest.one && test -s conftest.two && | |
2833 | test -s conftest.dir/conftest.one && | |
2834 | test -s conftest.dir/conftest.two | |
2835 | then | |
2836 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2837 | break 3 | |
2838 | fi | |
2839 | fi | |
2840 | fi | |
2841 | done | |
2842 | done | |
2843 | ;; | |
2844 | esac | |
f1bf410c | 2845 | |
5213506e RW |
2846 | done |
2847 | IFS=$as_save_IFS | |
f1bf410c | 2848 | |
5213506e | 2849 | rm -rf conftest.one conftest.two conftest.dir |
f1bf410c | 2850 | |
5213506e RW |
2851 | fi |
2852 | if test "${ac_cv_path_install+set}" = set; then | |
2853 | INSTALL=$ac_cv_path_install | |
2854 | else | |
2855 | # As a last resort, use the slow shell script. Don't cache a | |
2856 | # value for INSTALL within a source directory, because that will | |
2857 | # break other packages using the cache if that directory is | |
2858 | # removed, or if the value is a relative name. | |
2859 | INSTALL=$ac_install_sh | |
2860 | fi | |
2861 | fi | |
2862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2863 | $as_echo "$INSTALL" >&6; } | |
f1bf410c | 2864 | |
5213506e RW |
2865 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2866 | # It thinks the first close brace ends the variable substitution. | |
2867 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
f1bf410c | 2868 | |
5213506e | 2869 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4f4e53dd | 2870 | |
5213506e | 2871 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4f4e53dd | 2872 | |
5213506e RW |
2873 | ac_ext=c |
2874 | ac_cpp='$CPP $CPPFLAGS' | |
2875 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2876 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2877 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2878 | if test -n "$ac_tool_prefix"; then | |
2879 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2880 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2882 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2883 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 2884 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 2885 | else |
5213506e RW |
2886 | if test -n "$CC"; then |
2887 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4f4e53dd | 2888 | else |
5213506e RW |
2889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2890 | for as_dir in $PATH | |
2891 | do | |
2892 | IFS=$as_save_IFS | |
2893 | test -z "$as_dir" && as_dir=. | |
2894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2895 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
2896 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2897 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2898 | break 2 | |
2899 | fi | |
2900 | done | |
2901 | done | |
2902 | IFS=$as_save_IFS | |
4f4e53dd | 2903 | |
4f4e53dd | 2904 | fi |
5213506e RW |
2905 | fi |
2906 | CC=$ac_cv_prog_CC | |
2907 | if test -n "$CC"; then | |
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2909 | $as_echo "$CC" >&6; } | |
f1bf410c | 2910 | else |
5213506e RW |
2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2912 | $as_echo "no" >&6; } | |
4f4e53dd PB |
2913 | fi |
2914 | ||
4f4e53dd PB |
2915 | |
2916 | fi | |
5213506e RW |
2917 | if test -z "$ac_cv_prog_CC"; then |
2918 | ac_ct_CC=$CC | |
2919 | # Extract the first word of "gcc", so it can be a program name with args. | |
2920 | set dummy gcc; ac_word=$2 | |
2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2922 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2923 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 2924 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 2925 | else |
5213506e RW |
2926 | if test -n "$ac_ct_CC"; then |
2927 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
f1bf410c | 2928 | else |
5213506e RW |
2929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2930 | for as_dir in $PATH | |
4f4e53dd | 2931 | do |
5213506e RW |
2932 | IFS=$as_save_IFS |
2933 | test -z "$as_dir" && as_dir=. | |
2934 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2935 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
2936 | ac_cv_prog_ac_ct_CC="gcc" |
2937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2938 | break 2 | |
4f4e53dd | 2939 | fi |
5213506e RW |
2940 | done |
2941 | done | |
2942 | IFS=$as_save_IFS | |
2943 | ||
4f4e53dd | 2944 | fi |
5213506e RW |
2945 | fi |
2946 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2947 | if test -n "$ac_ct_CC"; then | |
2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2949 | $as_echo "$ac_ct_CC" >&6; } | |
4f4e53dd | 2950 | else |
5213506e RW |
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2952 | $as_echo "no" >&6; } | |
4f4e53dd | 2953 | fi |
4f4e53dd | 2954 | |
5213506e RW |
2955 | if test "x$ac_ct_CC" = x; then |
2956 | CC="" | |
4f4e53dd | 2957 | else |
5213506e RW |
2958 | case $cross_compiling:$ac_tool_warned in |
2959 | yes:) | |
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2961 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2962 | ac_tool_warned=yes ;; | |
2963 | esac | |
2964 | CC=$ac_ct_CC | |
4f4e53dd PB |
2965 | fi |
2966 | else | |
5213506e | 2967 | CC="$ac_cv_prog_CC" |
4f4e53dd | 2968 | fi |
5213506e RW |
2969 | |
2970 | if test -z "$CC"; then | |
2971 | if test -n "$ac_tool_prefix"; then | |
2972 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2973 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2975 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2976 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 2977 | $as_echo_n "(cached) " >&6 |
f1bf410c | 2978 | else |
5213506e RW |
2979 | if test -n "$CC"; then |
2980 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2981 | else | |
2982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2983 | for as_dir in $PATH | |
2984 | do | |
2985 | IFS=$as_save_IFS | |
2986 | test -z "$as_dir" && as_dir=. | |
2987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
2989 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2991 | break 2 | |
2992 | fi | |
2993 | done | |
2994 | done | |
2995 | IFS=$as_save_IFS | |
4f4e53dd PB |
2996 | |
2997 | fi | |
5213506e RW |
2998 | fi |
2999 | CC=$ac_cv_prog_CC | |
3000 | if test -n "$CC"; then | |
3001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3002 | $as_echo "$CC" >&6; } | |
3003 | else | |
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3005 | $as_echo "no" >&6; } | |
4f4e53dd | 3006 | fi |
4f4e53dd | 3007 | |
4f4e53dd | 3008 | |
5213506e | 3009 | fi |
f1bf410c | 3010 | fi |
5213506e RW |
3011 | if test -z "$CC"; then |
3012 | # Extract the first word of "cc", so it can be a program name with args. | |
3013 | set dummy cc; ac_word=$2 | |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3015 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3016 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3017 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3018 | else |
5213506e RW |
3019 | if test -n "$CC"; then |
3020 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3021 | else | |
3022 | ac_prog_rejected=no | |
3023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3024 | for as_dir in $PATH | |
f1bf410c | 3025 | do |
5213506e RW |
3026 | IFS=$as_save_IFS |
3027 | test -z "$as_dir" && as_dir=. | |
3028 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3029 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3030 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3031 | ac_prog_rejected=yes | |
3032 | continue | |
3033 | fi | |
3034 | ac_cv_prog_CC="cc" | |
3035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3036 | break 2 | |
3037 | fi | |
3038 | done | |
3039 | done | |
3040 | IFS=$as_save_IFS | |
3041 | ||
3042 | if test $ac_prog_rejected = yes; then | |
3043 | # We found a bogon in the path, so make sure we never use it. | |
3044 | set dummy $ac_cv_prog_CC | |
3045 | shift | |
3046 | if test $# != 0; then | |
3047 | # We chose a different compiler from the bogus one. | |
3048 | # However, it has the same basename, so the bogon will be chosen | |
3049 | # first if we set CC to just the basename; use the full file name. | |
3050 | shift | |
3051 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
f1bf410c | 3052 | fi |
f1bf410c | 3053 | fi |
5213506e RW |
3054 | fi |
3055 | fi | |
3056 | CC=$ac_cv_prog_CC | |
3057 | if test -n "$CC"; then | |
3058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3059 | $as_echo "$CC" >&6; } | |
4f4e53dd | 3060 | else |
5213506e RW |
3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3062 | $as_echo "no" >&6; } | |
4f4e53dd PB |
3063 | fi |
3064 | ||
5213506e | 3065 | |
f1bf410c | 3066 | fi |
5213506e RW |
3067 | if test -z "$CC"; then |
3068 | if test -n "$ac_tool_prefix"; then | |
3069 | for ac_prog in cl.exe | |
3070 | do | |
3071 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3072 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3074 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3075 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3076 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3077 | else |
5213506e RW |
3078 | if test -n "$CC"; then |
3079 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3080 | else | |
3081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3082 | for as_dir in $PATH | |
3083 | do | |
3084 | IFS=$as_save_IFS | |
3085 | test -z "$as_dir" && as_dir=. | |
3086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3088 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3090 | break 2 | |
3091 | fi | |
3092 | done | |
3093 | done | |
3094 | IFS=$as_save_IFS | |
4f4e53dd | 3095 | |
4f4e53dd | 3096 | fi |
5213506e RW |
3097 | fi |
3098 | CC=$ac_cv_prog_CC | |
3099 | if test -n "$CC"; then | |
3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3101 | $as_echo "$CC" >&6; } | |
f1bf410c | 3102 | else |
5213506e RW |
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3104 | $as_echo "no" >&6; } | |
4f4e53dd PB |
3105 | fi |
3106 | ||
4f4e53dd | 3107 | |
5213506e RW |
3108 | test -n "$CC" && break |
3109 | done | |
4f4e53dd | 3110 | fi |
5213506e RW |
3111 | if test -z "$CC"; then |
3112 | ac_ct_CC=$CC | |
3113 | for ac_prog in cl.exe | |
3114 | do | |
3115 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3116 | set dummy $ac_prog; ac_word=$2 | |
3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3118 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3119 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3120 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3121 | else |
5213506e RW |
3122 | if test -n "$ac_ct_CC"; then |
3123 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4f4e53dd | 3124 | else |
5213506e RW |
3125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3126 | for as_dir in $PATH | |
3127 | do | |
3128 | IFS=$as_save_IFS | |
3129 | test -z "$as_dir" && as_dir=. | |
3130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3132 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3134 | break 2 | |
3135 | fi | |
3136 | done | |
3137 | done | |
3138 | IFS=$as_save_IFS | |
4f4e53dd | 3139 | |
4f4e53dd | 3140 | fi |
4f4e53dd | 3141 | fi |
5213506e RW |
3142 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3143 | if test -n "$ac_ct_CC"; then | |
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3145 | $as_echo "$ac_ct_CC" >&6; } | |
4f4e53dd | 3146 | else |
5213506e RW |
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3148 | $as_echo "no" >&6; } | |
4f4e53dd | 3149 | fi |
4f4e53dd | 3150 | |
5213506e RW |
3151 | |
3152 | test -n "$ac_ct_CC" && break | |
3153 | done | |
3154 | ||
3155 | if test "x$ac_ct_CC" = x; then | |
3156 | CC="" | |
3157 | else | |
3158 | case $cross_compiling:$ac_tool_warned in | |
3159 | yes:) | |
3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3161 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3162 | ac_tool_warned=yes ;; | |
4f4e53dd | 3163 | esac |
5213506e RW |
3164 | CC=$ac_ct_CC |
3165 | fi | |
4f4e53dd | 3166 | fi |
4f4e53dd PB |
3167 | |
3168 | fi | |
4f4e53dd | 3169 | |
4f4e53dd | 3170 | |
5213506e RW |
3171 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3172 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3173 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3174 | See \`config.log' for more details" "$LINENO" 5; } | |
4f4e53dd | 3175 | |
5213506e RW |
3176 | # Provide some information about the compiler. |
3177 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3178 | set X $ac_compile | |
3179 | ac_compiler=$2 | |
3180 | for ac_option in --version -v -V -qversion; do | |
3181 | { { ac_try="$ac_compiler $ac_option >&5" | |
3182 | case "(($ac_try" in | |
3183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3184 | *) ac_try_echo=$ac_try;; | |
3185 | esac | |
3186 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3187 | $as_echo "$ac_try_echo"; } >&5 | |
3188 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3189 | ac_status=$? | |
3190 | if test -s conftest.err; then | |
3191 | sed '10a\ | |
3192 | ... rest of stderr output deleted ... | |
3193 | 10q' conftest.err >conftest.er1 | |
3194 | cat conftest.er1 >&5 | |
5213506e | 3195 | fi |
22e05272 | 3196 | rm -f conftest.er1 conftest.err |
5213506e RW |
3197 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3198 | test $ac_status = 0; } | |
3199 | done | |
4f4e53dd | 3200 | |
5213506e | 3201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
3202 | /* end confdefs.h. */ |
3203 | ||
3204 | int | |
3205 | main () | |
3206 | { | |
4f4e53dd PB |
3207 | |
3208 | ; | |
3209 | return 0; | |
3210 | } | |
3211 | _ACEOF | |
5213506e | 3212 | ac_clean_files_save=$ac_clean_files |
22e05272 | 3213 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
5213506e RW |
3214 | # Try to create an executable without -o first, disregard a.out. |
3215 | # It will help us diagnose broken compilers, and finding out an intuition | |
3216 | # of exeext. | |
22e05272 JM |
3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3218 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e | 3219 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4f4e53dd | 3220 | |
5213506e RW |
3221 | # The possible output files: |
3222 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4f4e53dd | 3223 | |
5213506e RW |
3224 | ac_rmfiles= |
3225 | for ac_file in $ac_files | |
3226 | do | |
3227 | case $ac_file in | |
3228 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3229 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3230 | esac | |
3231 | done | |
3232 | rm -f $ac_rmfiles | |
4f4e53dd | 3233 | |
5213506e RW |
3234 | if { { ac_try="$ac_link_default" |
3235 | case "(($ac_try" in | |
3236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3237 | *) ac_try_echo=$ac_try;; | |
3238 | esac | |
3239 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3240 | $as_echo "$ac_try_echo"; } >&5 | |
3241 | (eval "$ac_link_default") 2>&5 | |
3242 | ac_status=$? | |
3243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3244 | test $ac_status = 0; }; then : | |
3245 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3246 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3247 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3248 | # so that the user can short-circuit this test for compilers unknown to | |
3249 | # Autoconf. | |
3250 | for ac_file in $ac_files '' | |
3251 | do | |
3252 | test -f "$ac_file" || continue | |
3253 | case $ac_file in | |
3254 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3255 | ;; | |
3256 | [ab].out ) | |
3257 | # We found the default executable, but exeext='' is most | |
3258 | # certainly right. | |
3259 | break;; | |
3260 | *.* ) | |
3261 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3262 | then :; else | |
3263 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3264 | fi | |
3265 | # We set ac_cv_exeext here because the later test for it is not | |
3266 | # safe: cross compilers may not add the suffix if given an `-o' | |
3267 | # argument, so we may need to know it at that point already. | |
3268 | # Even if this section looks crufty: it has the advantage of | |
3269 | # actually working. | |
3270 | break;; | |
3271 | * ) | |
3272 | break;; | |
3273 | esac | |
3274 | done | |
3275 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4f4e53dd | 3276 | |
4f4e53dd | 3277 | else |
5213506e | 3278 | ac_file='' |
4f4e53dd | 3279 | fi |
5213506e | 3280 | if test -z "$ac_file"; then : |
22e05272 JM |
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3282 | $as_echo "no" >&6; } | |
3283 | $as_echo "$as_me: failed program was:" >&5 | |
5213506e | 3284 | sed 's/^/| /' conftest.$ac_ext >&5 |
4f4e53dd | 3285 | |
5213506e RW |
3286 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3287 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3288 | as_fn_error 77 "C compiler cannot create executables |
3289 | See \`config.log' for more details" "$LINENO" 5; } | |
3290 | else | |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3292 | $as_echo "yes" >&6; } | |
4f4e53dd | 3293 | fi |
22e05272 JM |
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3295 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3297 | $as_echo "$ac_file" >&6; } | |
5213506e | 3298 | ac_exeext=$ac_cv_exeext |
4f4e53dd | 3299 | |
22e05272 | 3300 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
5213506e | 3301 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3303 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3304 | if { { ac_try="$ac_link" | |
3305 | case "(($ac_try" in | |
3306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3307 | *) ac_try_echo=$ac_try;; | |
4f4e53dd | 3308 | esac |
5213506e RW |
3309 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3310 | $as_echo "$ac_try_echo"; } >&5 | |
3311 | (eval "$ac_link") 2>&5 | |
3312 | ac_status=$? | |
3313 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3314 | test $ac_status = 0; }; then : | |
3315 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3316 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3317 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3318 | # `rm'. | |
3319 | for ac_file in conftest.exe conftest conftest.*; do | |
3320 | test -f "$ac_file" || continue | |
3321 | case $ac_file in | |
3322 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3323 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3324 | break;; | |
3325 | * ) break;; | |
3326 | esac | |
3327 | done | |
3328 | else | |
3329 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3330 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3331 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3332 | See \`config.log' for more details" "$LINENO" 5; } | |
4f4e53dd | 3333 | fi |
22e05272 | 3334 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3336 | $as_echo "$ac_cv_exeext" >&6; } | |
4f4e53dd | 3337 | |
5213506e RW |
3338 | rm -f conftest.$ac_ext |
3339 | EXEEXT=$ac_cv_exeext | |
3340 | ac_exeext=$EXEEXT | |
22e05272 JM |
3341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3342 | /* end confdefs.h. */ | |
3343 | #include <stdio.h> | |
3344 | int | |
3345 | main () | |
3346 | { | |
3347 | FILE *f = fopen ("conftest.out", "w"); | |
3348 | return ferror (f) || fclose (f) != 0; | |
3349 | ||
3350 | ; | |
3351 | return 0; | |
3352 | } | |
3353 | _ACEOF | |
3354 | ac_clean_files="$ac_clean_files conftest.out" | |
3355 | # Check that the compiler produces executables we can run. If not, either | |
3356 | # the compiler is broken, or we cross compile. | |
3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3358 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3359 | if test "$cross_compiling" != yes; then | |
3360 | { { ac_try="$ac_link" | |
3361 | case "(($ac_try" in | |
3362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3363 | *) ac_try_echo=$ac_try;; | |
3364 | esac | |
3365 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3366 | $as_echo "$ac_try_echo"; } >&5 | |
3367 | (eval "$ac_link") 2>&5 | |
3368 | ac_status=$? | |
3369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3370 | test $ac_status = 0; } | |
3371 | if { ac_try='./conftest$ac_cv_exeext' | |
3372 | { { case "(($ac_try" in | |
3373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3374 | *) ac_try_echo=$ac_try;; | |
3375 | esac | |
3376 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3377 | $as_echo "$ac_try_echo"; } >&5 | |
3378 | (eval "$ac_try") 2>&5 | |
3379 | ac_status=$? | |
3380 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3381 | test $ac_status = 0; }; }; then | |
3382 | cross_compiling=no | |
3383 | else | |
3384 | if test "$cross_compiling" = maybe; then | |
3385 | cross_compiling=yes | |
3386 | else | |
3387 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3388 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3389 | as_fn_error $? "cannot run C compiled programs. | |
3390 | If you meant to cross compile, use \`--host'. | |
3391 | See \`config.log' for more details" "$LINENO" 5; } | |
3392 | fi | |
3393 | fi | |
3394 | fi | |
3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3396 | $as_echo "$cross_compiling" >&6; } | |
3397 | ||
3398 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3399 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3401 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 3402 | if ${ac_cv_objext+:} false; then : |
5213506e | 3403 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3404 | else |
5213506e | 3405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 3406 | /* end confdefs.h. */ |
5213506e | 3407 | |
4f4e53dd PB |
3408 | int |
3409 | main () | |
3410 | { | |
5213506e | 3411 | |
4f4e53dd PB |
3412 | ; |
3413 | return 0; | |
3414 | } | |
3415 | _ACEOF | |
5213506e RW |
3416 | rm -f conftest.o conftest.obj |
3417 | if { { ac_try="$ac_compile" | |
3418 | case "(($ac_try" in | |
3419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3420 | *) ac_try_echo=$ac_try;; | |
3421 | esac | |
3422 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3423 | $as_echo "$ac_try_echo"; } >&5 | |
3424 | (eval "$ac_compile") 2>&5 | |
3425 | ac_status=$? | |
3426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3427 | test $ac_status = 0; }; then : | |
3428 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3429 | test -f "$ac_file" || continue; | |
3430 | case $ac_file in | |
3431 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3432 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3433 | break;; | |
3434 | esac | |
3435 | done | |
4f4e53dd | 3436 | else |
5213506e | 3437 | $as_echo "$as_me: failed program was:" >&5 |
4f4e53dd PB |
3438 | sed 's/^/| /' conftest.$ac_ext >&5 |
3439 | ||
5213506e RW |
3440 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3442 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3443 | See \`config.log' for more details" "$LINENO" 5; } | |
4f4e53dd | 3444 | fi |
5213506e | 3445 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4f4e53dd | 3446 | fi |
5213506e RW |
3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3448 | $as_echo "$ac_cv_objext" >&6; } | |
3449 | OBJEXT=$ac_cv_objext | |
3450 | ac_objext=$OBJEXT | |
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3452 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 3453 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 3454 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3455 | else |
5213506e RW |
3456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3457 | /* end confdefs.h. */ | |
4f4e53dd | 3458 | |
5213506e RW |
3459 | int |
3460 | main () | |
3461 | { | |
3462 | #ifndef __GNUC__ | |
3463 | choke me | |
3464 | #endif | |
4f4e53dd | 3465 | |
5213506e RW |
3466 | ; |
3467 | return 0; | |
3468 | } | |
3469 | _ACEOF | |
3470 | if ac_fn_c_try_compile "$LINENO"; then : | |
3471 | ac_compiler_gnu=yes | |
3472 | else | |
3473 | ac_compiler_gnu=no | |
4f4e53dd | 3474 | fi |
5213506e RW |
3475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3476 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4f4e53dd | 3477 | |
5213506e RW |
3478 | fi |
3479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3480 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3481 | if test $ac_compiler_gnu = yes; then | |
3482 | GCC=yes | |
4f4e53dd | 3483 | else |
5213506e RW |
3484 | GCC= |
3485 | fi | |
3486 | ac_test_CFLAGS=${CFLAGS+set} | |
3487 | ac_save_CFLAGS=$CFLAGS | |
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3489 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 3490 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
3491 | $as_echo_n "(cached) " >&6 |
3492 | else | |
3493 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3494 | ac_c_werror_flag=yes | |
3495 | ac_cv_prog_cc_g=no | |
3496 | CFLAGS="-g" | |
3497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4f4e53dd | 3498 | /* end confdefs.h. */ |
5213506e | 3499 | |
4f4e53dd PB |
3500 | int |
3501 | main () | |
3502 | { | |
5213506e | 3503 | |
4f4e53dd PB |
3504 | ; |
3505 | return 0; | |
3506 | } | |
3507 | _ACEOF | |
5213506e RW |
3508 | if ac_fn_c_try_compile "$LINENO"; then : |
3509 | ac_cv_prog_cc_g=yes | |
4f4e53dd | 3510 | else |
5213506e RW |
3511 | CFLAGS="" |
3512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3513 | /* end confdefs.h. */ | |
4f4e53dd | 3514 | |
5213506e RW |
3515 | int |
3516 | main () | |
3517 | { | |
4f4e53dd | 3518 | |
5213506e RW |
3519 | ; |
3520 | return 0; | |
3521 | } | |
4f4e53dd | 3522 | _ACEOF |
5213506e | 3523 | if ac_fn_c_try_compile "$LINENO"; then : |
4f4e53dd | 3524 | |
d56a25e1 | 3525 | else |
5213506e RW |
3526 | ac_c_werror_flag=$ac_save_c_werror_flag |
3527 | CFLAGS="-g" | |
3528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d56a25e1 | 3529 | /* end confdefs.h. */ |
5213506e | 3530 | |
d56a25e1 TT |
3531 | int |
3532 | main () | |
3533 | { | |
5213506e | 3534 | |
d56a25e1 TT |
3535 | ; |
3536 | return 0; | |
3537 | } | |
3538 | _ACEOF | |
5213506e RW |
3539 | if ac_fn_c_try_compile "$LINENO"; then : |
3540 | ac_cv_prog_cc_g=yes | |
d56a25e1 | 3541 | fi |
5213506e | 3542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d56a25e1 | 3543 | fi |
5213506e RW |
3544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3545 | fi | |
3546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3547 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3548 | fi | |
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3550 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3551 | if test "$ac_test_CFLAGS" = set; then | |
3552 | CFLAGS=$ac_save_CFLAGS | |
3553 | elif test $ac_cv_prog_cc_g = yes; then | |
3554 | if test "$GCC" = yes; then | |
3555 | CFLAGS="-g -O2" | |
3556 | else | |
3557 | CFLAGS="-g" | |
3558 | fi | |
d56a25e1 | 3559 | else |
5213506e RW |
3560 | if test "$GCC" = yes; then |
3561 | CFLAGS="-O2" | |
3562 | else | |
3563 | CFLAGS= | |
3564 | fi | |
d56a25e1 | 3565 | fi |
5213506e RW |
3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3567 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 3568 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 3569 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3570 | else |
5213506e RW |
3571 | ac_cv_prog_cc_c89=no |
3572 | ac_save_CC=$CC | |
3573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4f4e53dd | 3574 | /* end confdefs.h. */ |
5213506e RW |
3575 | #include <stdarg.h> |
3576 | #include <stdio.h> | |
22e05272 | 3577 | struct stat; |
5213506e RW |
3578 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3579 | struct buf { int x; }; | |
3580 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3581 | static char *e (p, i) | |
3582 | char **p; | |
3583 | int i; | |
3584 | { | |
3585 | return p[i]; | |
3586 | } | |
3587 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3588 | { | |
3589 | char *s; | |
3590 | va_list v; | |
3591 | va_start (v,p); | |
3592 | s = g (p, va_arg (v,int)); | |
3593 | va_end (v); | |
3594 | return s; | |
3595 | } | |
4f4e53dd | 3596 | |
5213506e RW |
3597 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3598 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3599 | These don't provoke an error unfortunately, instead are silently treated | |
3600 | as 'x'. The following induces an error, until -std is added to get | |
3601 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3602 | array size at least. It's necessary to write '\x00'==0 to get something | |
3603 | that's true only with -std. */ | |
3604 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3605 | ||
3606 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3607 | inside strings and character constants. */ | |
3608 | #define FOO(x) 'x' | |
3609 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3610 | ||
3611 | int test (int i, double x); | |
3612 | struct s1 {int (*f) (int a);}; | |
3613 | struct s2 {int (*f) (double a);}; | |
3614 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3615 | int argc; | |
3616 | char **argv; | |
4f4e53dd PB |
3617 | int |
3618 | main () | |
3619 | { | |
5213506e | 3620 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
4f4e53dd PB |
3621 | ; |
3622 | return 0; | |
3623 | } | |
3624 | _ACEOF | |
5213506e RW |
3625 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3626 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3627 | do | |
3628 | CC="$ac_save_CC $ac_arg" | |
3629 | if ac_fn_c_try_compile "$LINENO"; then : | |
3630 | ac_cv_prog_cc_c89=$ac_arg | |
3631 | fi | |
3632 | rm -f core conftest.err conftest.$ac_objext | |
3633 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3634 | done | |
3635 | rm -f conftest.$ac_ext | |
3636 | CC=$ac_save_CC | |
4f4e53dd | 3637 | |
4f4e53dd | 3638 | fi |
5213506e RW |
3639 | # AC_CACHE_VAL |
3640 | case "x$ac_cv_prog_cc_c89" in | |
3641 | x) | |
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3643 | $as_echo "none needed" >&6; } ;; | |
3644 | xno) | |
3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3646 | $as_echo "unsupported" >&6; } ;; | |
3647 | *) | |
3648 | CC="$CC $ac_cv_prog_cc_c89" | |
3649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3650 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3651 | esac | |
3652 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3653 | ||
4f4e53dd | 3654 | fi |
4f4e53dd | 3655 | |
5213506e RW |
3656 | ac_ext=c |
3657 | ac_cpp='$CPP $CPPFLAGS' | |
3658 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3659 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3660 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3661 | ||
3662 | ac_ext=cpp | |
3663 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3664 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3665 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3666 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3667 | if test -z "$CXX"; then | |
3668 | if test -n "$CCC"; then | |
3669 | CXX=$CCC | |
3670 | else | |
3671 | if test -n "$ac_tool_prefix"; then | |
3672 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3673 | do | |
3674 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3675 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3677 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3678 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e RW |
3679 | $as_echo_n "(cached) " >&6 |
3680 | else | |
3681 | if test -n "$CXX"; then | |
3682 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3683 | else | |
3684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3685 | for as_dir in $PATH | |
3686 | do | |
3687 | IFS=$as_save_IFS | |
3688 | test -z "$as_dir" && as_dir=. | |
3689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3691 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
3692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3693 | break 2 | |
3694 | fi | |
3695 | done | |
3696 | done | |
3697 | IFS=$as_save_IFS | |
4f4e53dd | 3698 | |
5213506e RW |
3699 | fi |
3700 | fi | |
3701 | CXX=$ac_cv_prog_CXX | |
3702 | if test -n "$CXX"; then | |
3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3704 | $as_echo "$CXX" >&6; } | |
3705 | else | |
3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3707 | $as_echo "no" >&6; } | |
4f4e53dd PB |
3708 | fi |
3709 | ||
5213506e RW |
3710 | |
3711 | test -n "$CXX" && break | |
3712 | done | |
3713 | fi | |
3714 | if test -z "$CXX"; then | |
3715 | ac_ct_CXX=$CXX | |
3716 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3717 | do | |
3718 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3719 | set dummy $ac_prog; ac_word=$2 | |
3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3721 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3722 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 3723 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3724 | else |
5213506e RW |
3725 | if test -n "$ac_ct_CXX"; then |
3726 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4f4e53dd | 3727 | else |
5213506e RW |
3728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3729 | for as_dir in $PATH | |
3730 | do | |
3731 | IFS=$as_save_IFS | |
3732 | test -z "$as_dir" && as_dir=. | |
3733 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3734 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3735 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
3736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3737 | break 2 | |
3738 | fi | |
3739 | done | |
3740 | done | |
3741 | IFS=$as_save_IFS | |
3742 | ||
3743 | fi | |
3744 | fi | |
3745 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3746 | if test -n "$ac_ct_CXX"; then | |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3748 | $as_echo "$ac_ct_CXX" >&6; } | |
3749 | else | |
3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3751 | $as_echo "no" >&6; } | |
3752 | fi | |
3753 | ||
3754 | ||
3755 | test -n "$ac_ct_CXX" && break | |
3756 | done | |
4f4e53dd | 3757 | |
5213506e RW |
3758 | if test "x$ac_ct_CXX" = x; then |
3759 | CXX="g++" | |
3760 | else | |
3761 | case $cross_compiling:$ac_tool_warned in | |
3762 | yes:) | |
3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3764 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3765 | ac_tool_warned=yes ;; | |
3766 | esac | |
3767 | CXX=$ac_ct_CXX | |
3768 | fi | |
4f4e53dd | 3769 | fi |
5213506e RW |
3770 | |
3771 | fi | |
4f4e53dd | 3772 | fi |
5213506e RW |
3773 | # Provide some information about the compiler. |
3774 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3775 | set X $ac_compile | |
3776 | ac_compiler=$2 | |
3777 | for ac_option in --version -v -V -qversion; do | |
3778 | { { ac_try="$ac_compiler $ac_option >&5" | |
3779 | case "(($ac_try" in | |
3780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3781 | *) ac_try_echo=$ac_try;; | |
3782 | esac | |
3783 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3784 | $as_echo "$ac_try_echo"; } >&5 | |
3785 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3786 | ac_status=$? | |
3787 | if test -s conftest.err; then | |
3788 | sed '10a\ | |
3789 | ... rest of stderr output deleted ... | |
3790 | 10q' conftest.err >conftest.er1 | |
3791 | cat conftest.er1 >&5 | |
5213506e | 3792 | fi |
22e05272 | 3793 | rm -f conftest.er1 conftest.err |
5213506e RW |
3794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3795 | test $ac_status = 0; } | |
3796 | done | |
4f4e53dd | 3797 | |
5213506e RW |
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
3799 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 3800 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 3801 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3802 | else |
5213506e | 3803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 3804 | /* end confdefs.h. */ |
5213506e | 3805 | |
4f4e53dd PB |
3806 | int |
3807 | main () | |
3808 | { | |
5213506e RW |
3809 | #ifndef __GNUC__ |
3810 | choke me | |
3811 | #endif | |
4f4e53dd PB |
3812 | |
3813 | ; | |
3814 | return 0; | |
3815 | } | |
3816 | _ACEOF | |
5213506e RW |
3817 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3818 | ac_compiler_gnu=yes | |
3819 | else | |
3820 | ac_compiler_gnu=no | |
3821 | fi | |
3822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3823 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3824 | ||
3825 | fi | |
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3827 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3828 | if test $ac_compiler_gnu = yes; then | |
3829 | GXX=yes | |
3830 | else | |
3831 | GXX= | |
3832 | fi | |
3833 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3834 | ac_save_CXXFLAGS=$CXXFLAGS | |
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3836 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 3837 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
3838 | $as_echo_n "(cached) " >&6 |
3839 | else | |
3840 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3841 | ac_cxx_werror_flag=yes | |
3842 | ac_cv_prog_cxx_g=no | |
3843 | CXXFLAGS="-g" | |
3844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4f4e53dd | 3845 | /* end confdefs.h. */ |
5213506e | 3846 | |
4f4e53dd PB |
3847 | int |
3848 | main () | |
3849 | { | |
4f4e53dd PB |
3850 | |
3851 | ; | |
3852 | return 0; | |
3853 | } | |
3854 | _ACEOF | |
5213506e RW |
3855 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3856 | ac_cv_prog_cxx_g=yes | |
4f4e53dd | 3857 | else |
5213506e RW |
3858 | CXXFLAGS="" |
3859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4f4e53dd | 3860 | /* end confdefs.h. */ |
5213506e | 3861 | |
4f4e53dd PB |
3862 | int |
3863 | main () | |
3864 | { | |
4f4e53dd PB |
3865 | |
3866 | ; | |
3867 | return 0; | |
3868 | } | |
3869 | _ACEOF | |
5213506e RW |
3870 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3871 | ||
3872 | else | |
3873 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3874 | CXXFLAGS="-g" | |
3875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4f4e53dd | 3876 | /* end confdefs.h. */ |
5213506e | 3877 | |
4f4e53dd PB |
3878 | int |
3879 | main () | |
3880 | { | |
4f4e53dd PB |
3881 | |
3882 | ; | |
3883 | return 0; | |
3884 | } | |
3885 | _ACEOF | |
5213506e RW |
3886 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3887 | ac_cv_prog_cxx_g=yes | |
3888 | fi | |
3889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3890 | fi | |
3891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3892 | fi | |
3893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3894 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3895 | fi | |
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3897 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3898 | if test "$ac_test_CXXFLAGS" = set; then | |
3899 | CXXFLAGS=$ac_save_CXXFLAGS | |
3900 | elif test $ac_cv_prog_cxx_g = yes; then | |
3901 | if test "$GXX" = yes; then | |
3902 | CXXFLAGS="-g -O2" | |
3903 | else | |
3904 | CXXFLAGS="-g" | |
3905 | fi | |
4f4e53dd | 3906 | else |
5213506e RW |
3907 | if test "$GXX" = yes; then |
3908 | CXXFLAGS="-O2" | |
3909 | else | |
3910 | CXXFLAGS= | |
3911 | fi | |
3912 | fi | |
3913 | ac_ext=c | |
3914 | ac_cpp='$CPP $CPPFLAGS' | |
3915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3918 | ||
3919 | if test -n "$ac_tool_prefix"; then | |
3920 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3921 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3923 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3924 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e RW |
3925 | $as_echo_n "(cached) " >&6 |
3926 | else | |
3927 | if test -n "$RANLIB"; then | |
3928 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3929 | else | |
3930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3931 | for as_dir in $PATH | |
3932 | do | |
3933 | IFS=$as_save_IFS | |
3934 | test -z "$as_dir" && as_dir=. | |
3935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3937 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3939 | break 2 | |
3940 | fi | |
3941 | done | |
3942 | done | |
3943 | IFS=$as_save_IFS | |
3944 | ||
3945 | fi | |
3946 | fi | |
3947 | RANLIB=$ac_cv_prog_RANLIB | |
3948 | if test -n "$RANLIB"; then | |
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
3950 | $as_echo "$RANLIB" >&6; } | |
3951 | else | |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3953 | $as_echo "no" >&6; } | |
3954 | fi | |
3955 | ||
4f4e53dd | 3956 | |
4f4e53dd | 3957 | fi |
5213506e RW |
3958 | if test -z "$ac_cv_prog_RANLIB"; then |
3959 | ac_ct_RANLIB=$RANLIB | |
3960 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3961 | set dummy ranlib; ac_word=$2 | |
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3963 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3964 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e RW |
3965 | $as_echo_n "(cached) " >&6 |
3966 | else | |
3967 | if test -n "$ac_ct_RANLIB"; then | |
3968 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3969 | else | |
3970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3971 | for as_dir in $PATH | |
3972 | do | |
3973 | IFS=$as_save_IFS | |
3974 | test -z "$as_dir" && as_dir=. | |
3975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3976 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3977 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3979 | break 2 | |
3980 | fi | |
3981 | done | |
4f4e53dd | 3982 | done |
5213506e RW |
3983 | IFS=$as_save_IFS |
3984 | ||
3985 | fi | |
3986 | fi | |
3987 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3988 | if test -n "$ac_ct_RANLIB"; then | |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
3990 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4f4e53dd | 3991 | else |
5213506e RW |
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3993 | $as_echo "no" >&6; } | |
3994 | fi | |
4f4e53dd | 3995 | |
5213506e RW |
3996 | if test "x$ac_ct_RANLIB" = x; then |
3997 | RANLIB=":" | |
3998 | else | |
3999 | case $cross_compiling:$ac_tool_warned in | |
4000 | yes:) | |
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4002 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4003 | ac_tool_warned=yes ;; | |
4004 | esac | |
4005 | RANLIB=$ac_ct_RANLIB | |
4006 | fi | |
4007 | else | |
4008 | RANLIB="$ac_cv_prog_RANLIB" | |
4f4e53dd | 4009 | fi |
5213506e RW |
4010 | |
4011 | ||
480767a9 | 4012 | |
0e1a989c ILT |
4013 | ac_ext=c |
4014 | ac_cpp='$CPP $CPPFLAGS' | |
4015 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4016 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4019 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4020 | # On Suns, sometimes $CPP names a directory. | |
4021 | if test -n "$CPP" && test -d "$CPP"; then | |
4022 | CPP= | |
480767a9 | 4023 | fi |
0e1a989c | 4024 | if test -z "$CPP"; then |
22e05272 | 4025 | if ${ac_cv_prog_CPP+:} false; then : |
480767a9 ILT |
4026 | $as_echo_n "(cached) " >&6 |
4027 | else | |
0e1a989c ILT |
4028 | # Double quotes because CPP needs to be expanded |
4029 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4030 | do | |
4031 | ac_preproc_ok=false | |
4032 | for ac_c_preproc_warn_flag in '' yes | |
4033 | do | |
4034 | # Use a header file that comes with gcc, so configuring glibc | |
4035 | # with a fresh cross-compiler works. | |
4036 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4037 | # <limits.h> exists even on freestanding compilers. | |
4038 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4039 | # not just through cpp. "Syntax error" is here to catch this case. | |
4040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
480767a9 | 4041 | /* end confdefs.h. */ |
0e1a989c ILT |
4042 | #ifdef __STDC__ |
4043 | # include <limits.h> | |
4044 | #else | |
4045 | # include <assert.h> | |
4046 | #endif | |
4047 | Syntax error | |
480767a9 | 4048 | _ACEOF |
0e1a989c ILT |
4049 | if ac_fn_c_try_cpp "$LINENO"; then : |
4050 | ||
4051 | else | |
4052 | # Broken: fails on valid input. | |
4053 | continue | |
480767a9 | 4054 | fi |
22e05272 | 4055 | rm -f conftest.err conftest.i conftest.$ac_ext |
480767a9 | 4056 | |
0e1a989c ILT |
4057 | # OK, works on sane cases. Now check whether nonexistent headers |
4058 | # can be detected and how. | |
480767a9 ILT |
4059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4060 | /* end confdefs.h. */ | |
0e1a989c | 4061 | #include <ac_nonexistent.h> |
480767a9 | 4062 | _ACEOF |
0e1a989c ILT |
4063 | if ac_fn_c_try_cpp "$LINENO"; then : |
4064 | # Broken: success on invalid input. | |
4065 | continue | |
4066 | else | |
4067 | # Passes both tests. | |
4068 | ac_preproc_ok=: | |
4069 | break | |
480767a9 | 4070 | fi |
22e05272 | 4071 | rm -f conftest.err conftest.i conftest.$ac_ext |
480767a9 | 4072 | |
480767a9 | 4073 | done |
0e1a989c | 4074 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
22e05272 | 4075 | rm -f conftest.i conftest.err conftest.$ac_ext |
0e1a989c ILT |
4076 | if $ac_preproc_ok; then : |
4077 | break | |
480767a9 | 4078 | fi |
0e1a989c ILT |
4079 | |
4080 | done | |
4081 | ac_cv_prog_CPP=$CPP | |
4082 | ||
4083 | fi | |
4084 | CPP=$ac_cv_prog_CPP | |
480767a9 | 4085 | else |
0e1a989c ILT |
4086 | ac_cv_prog_CPP=$CPP |
4087 | fi | |
4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4089 | $as_echo "$CPP" >&6; } | |
4090 | ac_preproc_ok=false | |
4091 | for ac_c_preproc_warn_flag in '' yes | |
4092 | do | |
4093 | # Use a header file that comes with gcc, so configuring glibc | |
4094 | # with a fresh cross-compiler works. | |
4095 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4096 | # <limits.h> exists even on freestanding compilers. | |
4097 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4098 | # not just through cpp. "Syntax error" is here to catch this case. | |
480767a9 ILT |
4099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4100 | /* end confdefs.h. */ | |
0e1a989c ILT |
4101 | #ifdef __STDC__ |
4102 | # include <limits.h> | |
4103 | #else | |
4104 | # include <assert.h> | |
4105 | #endif | |
4106 | Syntax error | |
480767a9 | 4107 | _ACEOF |
0e1a989c ILT |
4108 | if ac_fn_c_try_cpp "$LINENO"; then : |
4109 | ||
4110 | else | |
4111 | # Broken: fails on valid input. | |
4112 | continue | |
480767a9 | 4113 | fi |
22e05272 | 4114 | rm -f conftest.err conftest.i conftest.$ac_ext |
0e1a989c ILT |
4115 | |
4116 | # OK, works on sane cases. Now check whether nonexistent headers | |
4117 | # can be detected and how. | |
480767a9 ILT |
4118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4119 | /* end confdefs.h. */ | |
0e1a989c | 4120 | #include <ac_nonexistent.h> |
480767a9 | 4121 | _ACEOF |
0e1a989c ILT |
4122 | if ac_fn_c_try_cpp "$LINENO"; then : |
4123 | # Broken: success on invalid input. | |
4124 | continue | |
4125 | else | |
4126 | # Passes both tests. | |
4127 | ac_preproc_ok=: | |
4128 | break | |
480767a9 | 4129 | fi |
22e05272 | 4130 | rm -f conftest.err conftest.i conftest.$ac_ext |
480767a9 | 4131 | |
0e1a989c ILT |
4132 | done |
4133 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4134 | rm -f conftest.i conftest.err conftest.$ac_ext |
0e1a989c | 4135 | if $ac_preproc_ok; then : |
480767a9 | 4136 | |
5213506e | 4137 | else |
0e1a989c ILT |
4138 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4139 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4140 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4141 | See \`config.log' for more details" "$LINENO" 5; } | |
4f4e53dd | 4142 | fi |
4f4e53dd | 4143 | |
0e1a989c ILT |
4144 | ac_ext=c |
4145 | ac_cpp='$CPP $CPPFLAGS' | |
4146 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4147 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4148 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e RW |
4149 | |
4150 | ||
0e1a989c ILT |
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4152 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 4153 | if ${ac_cv_path_GREP+:} false; then : |
5213506e | 4154 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4155 | else |
0e1a989c ILT |
4156 | if test -z "$GREP"; then |
4157 | ac_path_GREP_found=false | |
4158 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4160 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5213506e RW |
4161 | do |
4162 | IFS=$as_save_IFS | |
4163 | test -z "$as_dir" && as_dir=. | |
0e1a989c | 4164 | for ac_prog in grep ggrep; do |
5213506e | 4165 | for ac_exec_ext in '' $ac_executable_extensions; do |
0e1a989c | 4166 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4167 | as_fn_executable_p "$ac_path_GREP" || continue |
0e1a989c ILT |
4168 | # Check for GNU ac_path_GREP and select it if it is found. |
4169 | # Check for GNU $ac_path_GREP | |
4170 | case `"$ac_path_GREP" --version 2>&1` in | |
4171 | *GNU*) | |
4172 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4173 | *) | |
4174 | ac_count=0 | |
4175 | $as_echo_n 0123456789 >"conftest.in" | |
4176 | while : | |
4177 | do | |
4178 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4179 | mv "conftest.tmp" "conftest.in" | |
4180 | cp "conftest.in" "conftest.nl" | |
4181 | $as_echo 'GREP' >> "conftest.nl" | |
4182 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4183 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4184 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4185 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4186 | # Best one so far, save it but keep looking for a better one | |
4187 | ac_cv_path_GREP="$ac_path_GREP" | |
4188 | ac_path_GREP_max=$ac_count | |
4189 | fi | |
4190 | # 10*(2^10) chars as input seems more than enough | |
4191 | test $ac_count -gt 10 && break | |
4192 | done | |
4193 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4194 | esac | |
5213506e | 4195 | |
0e1a989c ILT |
4196 | $ac_path_GREP_found && break 3 |
4197 | done | |
4198 | done | |
5213506e RW |
4199 | done |
4200 | IFS=$as_save_IFS | |
0e1a989c | 4201 | if test -z "$ac_cv_path_GREP"; then |
22e05272 | 4202 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
0e1a989c | 4203 | fi |
5213506e | 4204 | else |
0e1a989c | 4205 | ac_cv_path_GREP=$GREP |
5213506e | 4206 | fi |
4f4e53dd | 4207 | |
0e1a989c ILT |
4208 | fi |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4210 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4211 | GREP="$ac_cv_path_GREP" | |
5213506e | 4212 | |
5213506e | 4213 | |
0e1a989c ILT |
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4215 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 4216 | if ${ac_cv_path_EGREP+:} false; then : |
5213506e | 4217 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4218 | else |
0e1a989c ILT |
4219 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4220 | then ac_cv_path_EGREP="$GREP -E" | |
4221 | else | |
4222 | if test -z "$EGREP"; then | |
4223 | ac_path_EGREP_found=false | |
4224 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4226 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5213506e RW |
4227 | do |
4228 | IFS=$as_save_IFS | |
4229 | test -z "$as_dir" && as_dir=. | |
0e1a989c | 4230 | for ac_prog in egrep; do |
5213506e | 4231 | for ac_exec_ext in '' $ac_executable_extensions; do |
0e1a989c | 4232 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4233 | as_fn_executable_p "$ac_path_EGREP" || continue |
0e1a989c ILT |
4234 | # Check for GNU ac_path_EGREP and select it if it is found. |
4235 | # Check for GNU $ac_path_EGREP | |
4236 | case `"$ac_path_EGREP" --version 2>&1` in | |
4237 | *GNU*) | |
4238 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4239 | *) | |
4240 | ac_count=0 | |
4241 | $as_echo_n 0123456789 >"conftest.in" | |
4242 | while : | |
4243 | do | |
4244 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4245 | mv "conftest.tmp" "conftest.in" | |
4246 | cp "conftest.in" "conftest.nl" | |
4247 | $as_echo 'EGREP' >> "conftest.nl" | |
4248 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4249 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4250 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4251 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4252 | # Best one so far, save it but keep looking for a better one | |
4253 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4254 | ac_path_EGREP_max=$ac_count | |
4255 | fi | |
4256 | # 10*(2^10) chars as input seems more than enough | |
4257 | test $ac_count -gt 10 && break | |
5213506e | 4258 | done |
0e1a989c ILT |
4259 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4260 | esac | |
4f4e53dd | 4261 | |
0e1a989c ILT |
4262 | $ac_path_EGREP_found && break 3 |
4263 | done | |
4264 | done | |
4265 | done | |
4266 | IFS=$as_save_IFS | |
4267 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 4268 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
0e1a989c | 4269 | fi |
4f4e53dd | 4270 | else |
0e1a989c | 4271 | ac_cv_path_EGREP=$EGREP |
4f4e53dd | 4272 | fi |
4f4e53dd | 4273 | |
0e1a989c ILT |
4274 | fi |
4275 | fi | |
4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4277 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4278 | EGREP="$ac_cv_path_EGREP" | |
4f4e53dd | 4279 | |
5213506e | 4280 | |
0e1a989c ILT |
4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4282 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 4283 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 4284 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4285 | else |
0e1a989c | 4286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 4287 | /* end confdefs.h. */ |
0e1a989c ILT |
4288 | #include <stdlib.h> |
4289 | #include <stdarg.h> | |
4290 | #include <string.h> | |
4291 | #include <float.h> | |
4f4e53dd | 4292 | |
4f4e53dd PB |
4293 | int |
4294 | main () | |
4295 | { | |
4f4e53dd PB |
4296 | |
4297 | ; | |
4298 | return 0; | |
4299 | } | |
4300 | _ACEOF | |
5213506e | 4301 | if ac_fn_c_try_compile "$LINENO"; then : |
0e1a989c | 4302 | ac_cv_header_stdc=yes |
4f4e53dd | 4303 | else |
0e1a989c | 4304 | ac_cv_header_stdc=no |
5213506e RW |
4305 | fi |
4306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4f4e53dd | 4307 | |
0e1a989c ILT |
4308 | if test $ac_cv_header_stdc = yes; then |
4309 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4311 | /* end confdefs.h. */ | |
4312 | #include <string.h> | |
4f4e53dd | 4313 | |
0e1a989c ILT |
4314 | _ACEOF |
4315 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4316 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4f4e53dd | 4317 | |
5213506e | 4318 | else |
0e1a989c ILT |
4319 | ac_cv_header_stdc=no |
4320 | fi | |
4321 | rm -f conftest* | |
5213506e | 4322 | |
0e1a989c ILT |
4323 | fi |
4324 | ||
4325 | if test $ac_cv_header_stdc = yes; then | |
4326 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4328 | /* end confdefs.h. */ | |
4329 | #include <stdlib.h> | |
4f4e53dd | 4330 | |
4f4e53dd | 4331 | _ACEOF |
0e1a989c ILT |
4332 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4333 | $EGREP "free" >/dev/null 2>&1; then : | |
4334 | ||
4f4e53dd | 4335 | else |
0e1a989c | 4336 | ac_cv_header_stdc=no |
4f4e53dd | 4337 | fi |
0e1a989c | 4338 | rm -f conftest* |
4f4e53dd | 4339 | |
4f4e53dd | 4340 | fi |
4f4e53dd | 4341 | |
0e1a989c ILT |
4342 | if test $ac_cv_header_stdc = yes; then |
4343 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4344 | if test "$cross_compiling" = yes; then : | |
4345 | : | |
4f4e53dd | 4346 | else |
0e1a989c | 4347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 4348 | /* end confdefs.h. */ |
0e1a989c ILT |
4349 | #include <ctype.h> |
4350 | #include <stdlib.h> | |
4351 | #if ((' ' & 0x0FF) == 0x020) | |
4352 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4353 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4354 | #else | |
4355 | # define ISLOWER(c) \ | |
4356 | (('a' <= (c) && (c) <= 'i') \ | |
4357 | || ('j' <= (c) && (c) <= 'r') \ | |
4358 | || ('s' <= (c) && (c) <= 'z')) | |
4359 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4360 | #endif | |
5213506e | 4361 | |
0e1a989c | 4362 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4f4e53dd PB |
4363 | int |
4364 | main () | |
4365 | { | |
0e1a989c ILT |
4366 | int i; |
4367 | for (i = 0; i < 256; i++) | |
4368 | if (XOR (islower (i), ISLOWER (i)) | |
4369 | || toupper (i) != TOUPPER (i)) | |
4370 | return 2; | |
4f4e53dd PB |
4371 | return 0; |
4372 | } | |
4373 | _ACEOF | |
0e1a989c ILT |
4374 | if ac_fn_c_try_run "$LINENO"; then : |
4375 | ||
4f4e53dd | 4376 | else |
0e1a989c | 4377 | ac_cv_header_stdc=no |
4f4e53dd | 4378 | fi |
0e1a989c ILT |
4379 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4380 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4f4e53dd | 4381 | fi |
0d667716 | 4382 | |
5213506e | 4383 | fi |
0e1a989c ILT |
4384 | fi |
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4386 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4387 | if test $ac_cv_header_stdc = yes; then | |
0d667716 | 4388 | |
0e1a989c | 4389 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
0d667716 | 4390 | |
5213506e | 4391 | fi |
0d667716 | 4392 | |
0e1a989c ILT |
4393 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4394 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4395 | inttypes.h stdint.h unistd.h | |
4396 | do : | |
4397 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4398 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4399 | " | |
22e05272 | 4400 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
0e1a989c ILT |
4401 | cat >>confdefs.h <<_ACEOF |
4402 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4403 | _ACEOF | |
4404 | ||
5213506e | 4405 | fi |
0d667716 | 4406 | |
0e1a989c | 4407 | done |
0d667716 KG |
4408 | |
4409 | ||
0e1a989c ILT |
4410 | |
4411 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
22e05272 | 4412 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
0e1a989c | 4413 | MINIX=yes |
5213506e | 4414 | else |
0e1a989c | 4415 | MINIX= |
5213506e | 4416 | fi |
0d667716 KG |
4417 | |
4418 | ||
0e1a989c | 4419 | if test "$MINIX" = yes; then |
0d667716 | 4420 | |
0e1a989c | 4421 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
0d667716 KG |
4422 | |
4423 | ||
0e1a989c ILT |
4424 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
4425 | ||
4426 | ||
4427 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4f4e53dd | 4428 | |
5213506e | 4429 | fi |
4f4e53dd | 4430 | |
4f4e53dd | 4431 | |
0e1a989c ILT |
4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4433 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
22e05272 | 4434 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
0e1a989c ILT |
4435 | $as_echo_n "(cached) " >&6 |
4436 | else | |
4437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4438 | /* end confdefs.h. */ | |
4f4e53dd | 4439 | |
22e05272 JM |
4440 | # define __EXTENSIONS__ 1 |
4441 | $ac_includes_default | |
0e1a989c ILT |
4442 | int |
4443 | main () | |
4444 | { | |
4445 | ||
4446 | ; | |
4447 | return 0; | |
4448 | } | |
4449 | _ACEOF | |
4450 | if ac_fn_c_try_compile "$LINENO"; then : | |
4451 | ac_cv_safe_to_define___extensions__=yes | |
5213506e | 4452 | else |
0e1a989c | 4453 | ac_cv_safe_to_define___extensions__=no |
4f4e53dd | 4454 | fi |
0e1a989c | 4455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4f4e53dd | 4456 | fi |
0e1a989c ILT |
4457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4458 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4459 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4460 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4f4e53dd | 4461 | |
0e1a989c | 4462 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
4f4e53dd | 4463 | |
0e1a989c | 4464 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
ff5dfc48 | 4465 | |
0e1a989c | 4466 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
ff5dfc48 | 4467 | |
0e1a989c | 4468 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
ff5dfc48 | 4469 | |
0e1a989c ILT |
4470 | |
4471 | # Check whether --enable-largefile was given. | |
4472 | if test "${enable_largefile+set}" = set; then : | |
4473 | enableval=$enable_largefile; | |
ff5dfc48 | 4474 | fi |
ff5dfc48 | 4475 | |
0e1a989c | 4476 | if test "$enable_largefile" != no; then |
4f4e53dd | 4477 | |
0e1a989c ILT |
4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
4479 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
22e05272 | 4480 | if ${ac_cv_sys_largefile_CC+:} false; then : |
5213506e | 4481 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4482 | else |
0e1a989c ILT |
4483 | ac_cv_sys_largefile_CC=no |
4484 | if test "$GCC" != yes; then | |
4485 | ac_save_CC=$CC | |
4486 | while :; do | |
4487 | # IRIX 6.2 and later do not support large files by default, | |
4488 | # so use the C compiler's -n32 option if that helps. | |
4489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4490 | /* end confdefs.h. */ | |
4491 | #include <sys/types.h> | |
4492 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4493 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4494 | since some C++ compilers masquerading as C compilers | |
4495 | incorrectly reject 9223372036854775807. */ | |
4496 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4497 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4498 | && LARGE_OFF_T % 2147483647 == 1) | |
4499 | ? 1 : -1]; | |
4500 | int | |
4501 | main () | |
4502 | { | |
5213506e | 4503 | |
0e1a989c ILT |
4504 | ; |
4505 | return 0; | |
4506 | } | |
4507 | _ACEOF | |
4508 | if ac_fn_c_try_compile "$LINENO"; then : | |
4509 | break | |
5213506e | 4510 | fi |
0e1a989c ILT |
4511 | rm -f core conftest.err conftest.$ac_objext |
4512 | CC="$CC -n32" | |
4513 | if ac_fn_c_try_compile "$LINENO"; then : | |
4514 | ac_cv_sys_largefile_CC=' -n32'; break | |
5213506e | 4515 | fi |
0e1a989c ILT |
4516 | rm -f core conftest.err conftest.$ac_objext |
4517 | break | |
4518 | done | |
4519 | CC=$ac_save_CC | |
4520 | rm -f conftest.$ac_ext | |
4521 | fi | |
c3f829c1 | 4522 | fi |
0e1a989c ILT |
4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
4524 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
4525 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4526 | CC=$CC$ac_cv_sys_largefile_CC | |
4527 | fi | |
5213506e | 4528 | |
0e1a989c ILT |
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
4530 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
22e05272 | 4531 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
5213506e | 4532 | $as_echo_n "(cached) " >&6 |
c3f829c1 | 4533 | else |
0e1a989c | 4534 | while :; do |
5213506e | 4535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3f829c1 | 4536 | /* end confdefs.h. */ |
5213506e | 4537 | #include <sys/types.h> |
0e1a989c ILT |
4538 | /* Check that off_t can represent 2**63 - 1 correctly. |
4539 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4540 | since some C++ compilers masquerading as C compilers | |
4541 | incorrectly reject 9223372036854775807. */ | |
4542 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4543 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4544 | && LARGE_OFF_T % 2147483647 == 1) | |
4545 | ? 1 : -1]; | |
c3f829c1 GDR |
4546 | int |
4547 | main () | |
4548 | { | |
0e1a989c | 4549 | |
c3f829c1 GDR |
4550 | ; |
4551 | return 0; | |
4552 | } | |
4553 | _ACEOF | |
5213506e | 4554 | if ac_fn_c_try_compile "$LINENO"; then : |
0e1a989c | 4555 | ac_cv_sys_file_offset_bits=no; break |
c3f829c1 | 4556 | fi |
5213506e | 4557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0e1a989c ILT |
4558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4559 | /* end confdefs.h. */ | |
4560 | #define _FILE_OFFSET_BITS 64 | |
4561 | #include <sys/types.h> | |
4562 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4563 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4564 | since some C++ compilers masquerading as C compilers | |
4565 | incorrectly reject 9223372036854775807. */ | |
4566 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4567 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4568 | && LARGE_OFF_T % 2147483647 == 1) | |
4569 | ? 1 : -1]; | |
4570 | int | |
4571 | main () | |
4572 | { | |
c3f829c1 | 4573 | |
0e1a989c ILT |
4574 | ; |
4575 | return 0; | |
4576 | } | |
4577 | _ACEOF | |
4578 | if ac_fn_c_try_compile "$LINENO"; then : | |
4579 | ac_cv_sys_file_offset_bits=64; break | |
be0f1e54 | 4580 | fi |
0e1a989c ILT |
4581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4582 | ac_cv_sys_file_offset_bits=unknown | |
4583 | break | |
4584 | done | |
4585 | fi | |
4586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
4587 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
4588 | case $ac_cv_sys_file_offset_bits in #( | |
4589 | no | unknown) ;; | |
4590 | *) | |
4591 | cat >>confdefs.h <<_ACEOF | |
4592 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4593 | _ACEOF | |
4594 | ;; | |
4595 | esac | |
4596 | rm -rf conftest* | |
4597 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
4598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
4599 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
22e05272 | 4600 | if ${ac_cv_sys_large_files+:} false; then : |
5213506e | 4601 | $as_echo_n "(cached) " >&6 |
be0f1e54 | 4602 | else |
0e1a989c | 4603 | while :; do |
5213506e | 4604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
be0f1e54 | 4605 | /* end confdefs.h. */ |
0e1a989c ILT |
4606 | #include <sys/types.h> |
4607 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4608 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4609 | since some C++ compilers masquerading as C compilers | |
4610 | incorrectly reject 9223372036854775807. */ | |
4611 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4612 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4613 | && LARGE_OFF_T % 2147483647 == 1) | |
4614 | ? 1 : -1]; | |
be0f1e54 PB |
4615 | int |
4616 | main () | |
4617 | { | |
be0f1e54 PB |
4618 | |
4619 | ; | |
4620 | return 0; | |
4621 | } | |
4622 | _ACEOF | |
5213506e | 4623 | if ac_fn_c_try_compile "$LINENO"; then : |
0e1a989c ILT |
4624 | ac_cv_sys_large_files=no; break |
4625 | fi | |
4626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4628 | /* end confdefs.h. */ | |
4629 | #define _LARGE_FILES 1 | |
4630 | #include <sys/types.h> | |
4631 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4632 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4633 | since some C++ compilers masquerading as C compilers | |
4634 | incorrectly reject 9223372036854775807. */ | |
4635 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4636 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4637 | && LARGE_OFF_T % 2147483647 == 1) | |
4638 | ? 1 : -1]; | |
4639 | int | |
4640 | main () | |
4641 | { | |
4642 | ||
4643 | ; | |
4644 | return 0; | |
4645 | } | |
4646 | _ACEOF | |
4647 | if ac_fn_c_try_compile "$LINENO"; then : | |
4648 | ac_cv_sys_large_files=1; break | |
be0f1e54 | 4649 | fi |
5213506e | 4650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0e1a989c ILT |
4651 | ac_cv_sys_large_files=unknown |
4652 | break | |
4653 | done | |
4654 | fi | |
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
4656 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
4657 | case $ac_cv_sys_large_files in #( | |
4658 | no | unknown) ;; | |
4659 | *) | |
4660 | cat >>confdefs.h <<_ACEOF | |
4661 | #define _LARGE_FILES $ac_cv_sys_large_files | |
4662 | _ACEOF | |
4663 | ;; | |
4664 | esac | |
4665 | rm -rf conftest* | |
4666 | fi | |
22e05272 JM |
4667 | |
4668 | ||
be0f1e54 | 4669 | fi |
be0f1e54 | 4670 | |
be0f1e54 | 4671 | |
0e1a989c ILT |
4672 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing |
4673 | for ac_prog in aclocal | |
5213506e | 4674 | do |
0e1a989c ILT |
4675 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4676 | set dummy $ac_prog; ac_word=$2 | |
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4678 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4679 | if ${ac_cv_prog_ACLOCAL+:} false; then : |
0e1a989c | 4680 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4681 | else |
0e1a989c ILT |
4682 | if test -n "$ACLOCAL"; then |
4683 | ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test. | |
be0f1e54 | 4684 | else |
0e1a989c ILT |
4685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4686 | for as_dir in $PATH | |
4687 | do | |
4688 | IFS=$as_save_IFS | |
4689 | test -z "$as_dir" && as_dir=. | |
4690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0e1a989c ILT |
4692 | ac_cv_prog_ACLOCAL="$ac_prog" |
4693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4694 | break 2 | |
4695 | fi | |
5213506e | 4696 | done |
0e1a989c ILT |
4697 | done |
4698 | IFS=$as_save_IFS | |
be0f1e54 | 4699 | |
4f4e53dd | 4700 | fi |
5213506e | 4701 | fi |
0e1a989c ILT |
4702 | ACLOCAL=$ac_cv_prog_ACLOCAL |
4703 | if test -n "$ACLOCAL"; then | |
4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 | |
4705 | $as_echo "$ACLOCAL" >&6; } | |
5213506e | 4706 | else |
0e1a989c ILT |
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4708 | $as_echo "no" >&6; } | |
4f4e53dd | 4709 | fi |
4f4e53dd | 4710 | |
4f4e53dd | 4711 | |
0e1a989c | 4712 | test -n "$ACLOCAL" && break |
5213506e | 4713 | done |
0e1a989c | 4714 | test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal" |
4f4e53dd | 4715 | |
0e1a989c ILT |
4716 | for ac_prog in autoconf |
4717 | do | |
4718 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4719 | set dummy $ac_prog; ac_word=$2 | |
4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4721 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4722 | if ${ac_cv_prog_AUTOCONF+:} false; then : |
5213506e | 4723 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4724 | else |
0e1a989c ILT |
4725 | if test -n "$AUTOCONF"; then |
4726 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. | |
4727 | else | |
4728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4729 | for as_dir in $PATH | |
5213506e RW |
4730 | do |
4731 | IFS=$as_save_IFS | |
4732 | test -z "$as_dir" && as_dir=. | |
5213506e | 4733 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4734 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0e1a989c ILT |
4735 | ac_cv_prog_AUTOCONF="$ac_prog" |
4736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4737 | break 2 | |
4738 | fi | |
4739 | done | |
5213506e RW |
4740 | done |
4741 | IFS=$as_save_IFS | |
0e1a989c ILT |
4742 | |
4743 | fi | |
4744 | fi | |
4745 | AUTOCONF=$ac_cv_prog_AUTOCONF | |
4746 | if test -n "$AUTOCONF"; then | |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 | |
4748 | $as_echo "$AUTOCONF" >&6; } | |
5213506e | 4749 | else |
0e1a989c ILT |
4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4751 | $as_echo "no" >&6; } | |
4f4e53dd | 4752 | fi |
4f4e53dd | 4753 | |
4f4e53dd | 4754 | |
0e1a989c ILT |
4755 | test -n "$AUTOCONF" && break |
4756 | done | |
4757 | test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf" | |
4f4e53dd | 4758 | |
0e1a989c ILT |
4759 | for ac_prog in autoheader |
4760 | do | |
4761 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4762 | set dummy $ac_prog; ac_word=$2 | |
4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4764 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4765 | if ${ac_cv_prog_AUTOHEADER+:} false; then : |
5213506e | 4766 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4767 | else |
0e1a989c ILT |
4768 | if test -n "$AUTOHEADER"; then |
4769 | ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test. | |
4770 | else | |
4771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4772 | for as_dir in $PATH | |
5213506e RW |
4773 | do |
4774 | IFS=$as_save_IFS | |
4775 | test -z "$as_dir" && as_dir=. | |
5213506e | 4776 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4777 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0e1a989c ILT |
4778 | ac_cv_prog_AUTOHEADER="$ac_prog" |
4779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4780 | break 2 | |
4781 | fi | |
4782 | done | |
5213506e RW |
4783 | done |
4784 | IFS=$as_save_IFS | |
0e1a989c ILT |
4785 | |
4786 | fi | |
4787 | fi | |
4788 | AUTOHEADER=$ac_cv_prog_AUTOHEADER | |
4789 | if test -n "$AUTOHEADER"; then | |
4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 | |
4791 | $as_echo "$AUTOHEADER" >&6; } | |
5213506e | 4792 | else |
0e1a989c ILT |
4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4794 | $as_echo "no" >&6; } | |
5213506e | 4795 | fi |
4f4e53dd | 4796 | |
0e1a989c ILT |
4797 | |
4798 | test -n "$AUTOHEADER" && break | |
4799 | done | |
4800 | test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader" | |
4801 | ||
4802 | ||
4803 | # Figure out what compiler warnings we can enable. | |
4804 | # See config/warnings.m4 for details. | |
4805 | ||
bf5372e7 YS |
4806 | ac_ext=c |
4807 | ac_cpp='$CPP $CPPFLAGS' | |
4808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4811 | ||
0e1a989c ILT |
4812 | warn= |
4813 | save_CFLAGS="$CFLAGS" | |
095af58f | 4814 | for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \ |
0e1a989c | 4815 | -Wmissing-format-attribute; do |
095af58f AS |
4816 | # Do the check with the no- prefix removed since gcc silently |
4817 | # accepts any -Wno-* option on purpose | |
4818 | case $real_option in | |
4a5e00ca | 4819 | -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; |
095af58f AS |
4820 | *) option=$real_option ;; |
4821 | esac | |
0e1a989c ILT |
4822 | as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` |
4823 | ||
4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
4825 | $as_echo_n "checking whether $CC supports $option... " >&6; } | |
22e05272 | 4826 | if eval \${$as_acx_Woption+:} false; then : |
0e1a989c ILT |
4827 | $as_echo_n "(cached) " >&6 |
4828 | else | |
4829 | CFLAGS="$option" | |
4830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4831 | /* end confdefs.h. */ | |
4832 | ||
4833 | int | |
4834 | main () | |
4835 | { | |
4836 | ||
4837 | ; | |
4838 | return 0; | |
4839 | } | |
4840 | _ACEOF | |
4841 | if ac_fn_c_try_compile "$LINENO"; then : | |
4842 | eval "$as_acx_Woption=yes" | |
4843 | else | |
4844 | eval "$as_acx_Woption=no" | |
4f4e53dd | 4845 | fi |
0e1a989c | 4846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5213506e | 4847 | |
0e1a989c ILT |
4848 | fi |
4849 | eval ac_res=\$$as_acx_Woption | |
4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4851 | $as_echo "$ac_res" >&6; } | |
4852 | if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
095af58f | 4853 | warn="$warn${warn:+ }$real_option" |
0e1a989c ILT |
4854 | fi |
4855 | done | |
4856 | CFLAGS="$save_CFLAGS" | |
bf5372e7 YS |
4857 | ac_ext=c |
4858 | ac_cpp='$CPP $CPPFLAGS' | |
4859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4862 | ||
4863 | ||
4864 | ac_ext=c | |
4865 | ac_cpp='$CPP $CPPFLAGS' | |
4866 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4867 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4868 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e | 4869 | |
0e1a989c ILT |
4870 | c_warn= |
4871 | save_CFLAGS="$CFLAGS" | |
095af58f | 4872 | for real_option in -Wstrict-prototypes -Wmissing-prototypes \ |
0e1a989c | 4873 | -Wold-style-definition -Wc++-compat; do |
095af58f AS |
4874 | # Do the check with the no- prefix removed since gcc silently |
4875 | # accepts any -Wno-* option on purpose | |
4876 | case $real_option in | |
4a5e00ca | 4877 | -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; |
095af58f AS |
4878 | *) option=$real_option ;; |
4879 | esac | |
0e1a989c ILT |
4880 | as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` |
4881 | ||
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
4883 | $as_echo_n "checking whether $CC supports $option... " >&6; } | |
22e05272 | 4884 | if eval \${$as_acx_Woption+:} false; then : |
5213506e | 4885 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4886 | else |
0e1a989c ILT |
4887 | CFLAGS="$option" |
4888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4f4e53dd | 4889 | /* end confdefs.h. */ |
5213506e | 4890 | |
4f4e53dd PB |
4891 | int |
4892 | main () | |
4893 | { | |
4f4e53dd PB |
4894 | |
4895 | ; | |
4896 | return 0; | |
4897 | } | |
4898 | _ACEOF | |
5213506e | 4899 | if ac_fn_c_try_compile "$LINENO"; then : |
0e1a989c | 4900 | eval "$as_acx_Woption=yes" |
4f4e53dd | 4901 | else |
0e1a989c | 4902 | eval "$as_acx_Woption=no" |
4f4e53dd | 4903 | fi |
5213506e | 4904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4f4e53dd | 4905 | |
0e1a989c ILT |
4906 | fi |
4907 | eval ac_res=\$$as_acx_Woption | |
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4909 | $as_echo "$ac_res" >&6; } | |
4910 | if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
095af58f | 4911 | c_warn="$c_warn${c_warn:+ }$real_option" |
0e1a989c ILT |
4912 | fi |
4913 | done | |
4914 | CFLAGS="$save_CFLAGS" | |
bf5372e7 YS |
4915 | ac_ext=c |
4916 | ac_cpp='$CPP $CPPFLAGS' | |
4917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4920 | ||
4921 | ||
4922 | ac_ext=c | |
4923 | ac_cpp='$CPP $CPPFLAGS' | |
4924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
0e1a989c ILT |
4927 | |
4928 | WARN_PEDANTIC= | |
095af58f AS |
4929 | # Do the check with the no- prefix removed from the warning options |
4930 | # since gcc silently accepts any -Wno-* option on purpose | |
0e1a989c | 4931 | if test "$GCC" = yes; then : |
095af58f AS |
4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5 |
4933 | $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; } | |
22e05272 | 4934 | if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then : |
0e1a989c ILT |
4935 | $as_echo_n "(cached) " >&6 |
4936 | else | |
4937 | save_CFLAGS="$CFLAGS" | |
095af58f | 4938 | CFLAGS="-pedantic -Wlong-long" |
0e1a989c | 4939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 4940 | /* end confdefs.h. */ |
4f4e53dd | 4941 | |
0e1a989c ILT |
4942 | int |
4943 | main () | |
4944 | { | |
4945 | ||
4946 | ; | |
4947 | return 0; | |
4948 | } | |
4f4e53dd | 4949 | _ACEOF |
0e1a989c | 4950 | if ac_fn_c_try_compile "$LINENO"; then : |
095af58f | 4951 | acx_cv_prog_cc_pedantic__Wlong_long=yes |
0e1a989c | 4952 | else |
095af58f | 4953 | acx_cv_prog_cc_pedantic__Wlong_long=no |
0e1a989c ILT |
4954 | fi |
4955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4956 | CFLAGS="$save_CFLAGS" | |
4957 | fi | |
095af58f AS |
4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5 |
4959 | $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; } | |
4960 | if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then : | |
0e1a989c ILT |
4961 | WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long" |
4962 | fi | |
4963 | ||
4964 | fi | |
bf5372e7 YS |
4965 | ac_ext=c |
4966 | ac_cpp='$CPP $CPPFLAGS' | |
4967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4970 | ||
4f4e53dd | 4971 | |
0e1a989c | 4972 | |
e9411247 | 4973 | # Disable exceptions and RTTI if building with g++ |
bf5372e7 YS |
4974 | ac_ext=c |
4975 | ac_cpp='$CPP $CPPFLAGS' | |
4976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4979 | ||
e9411247 MM |
4980 | noexception_flags= |
4981 | save_CFLAGS="$CFLAGS" | |
095af58f AS |
4982 | for real_option in -fno-exceptions -fno-rtti; do |
4983 | # Do the check with the no- prefix removed since gcc silently | |
4984 | # accepts any -Wno-* option on purpose | |
4985 | case $real_option in | |
4a5e00ca | 4986 | -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; |
095af58f AS |
4987 | *) option=$real_option ;; |
4988 | esac | |
e9411247 MM |
4989 | as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` |
4990 | ||
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
4992 | $as_echo_n "checking whether $CC supports $option... " >&6; } | |
22e05272 | 4993 | if eval \${$as_acx_Woption+:} false; then : |
e9411247 MM |
4994 | $as_echo_n "(cached) " >&6 |
4995 | else | |
4996 | CFLAGS="$option" | |
4997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4998 | /* end confdefs.h. */ | |
4999 | ||
5000 | int | |
5001 | main () | |
5002 | { | |
5003 | ||
5004 | ; | |
5005 | return 0; | |
5006 | } | |
5007 | _ACEOF | |
5008 | if ac_fn_c_try_compile "$LINENO"; then : | |
5009 | eval "$as_acx_Woption=yes" | |
5010 | else | |
5011 | eval "$as_acx_Woption=no" | |
5012 | fi | |
5013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5014 | ||
5015 | fi | |
5016 | eval ac_res=\$$as_acx_Woption | |
5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5018 | $as_echo "$ac_res" >&6; } | |
5019 | if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
095af58f | 5020 | noexception_flags="$noexception_flags${noexception_flags:+ }$real_option" |
e9411247 MM |
5021 | fi |
5022 | done | |
5023 | CFLAGS="$save_CFLAGS" | |
bf5372e7 YS |
5024 | ac_ext=c |
5025 | ac_cpp='$CPP $CPPFLAGS' | |
5026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5029 | ||
e9411247 MM |
5030 | |
5031 | ||
0e1a989c ILT |
5032 | # Only enable with --enable-werror-always until existing warnings are |
5033 | # corrected. | |
bf5372e7 YS |
5034 | ac_ext=c |
5035 | ac_cpp='$CPP $CPPFLAGS' | |
5036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5039 | ||
0e1a989c ILT |
5040 | WERROR= |
5041 | # Check whether --enable-werror-always was given. | |
5042 | if test "${enable_werror_always+set}" = set; then : | |
5043 | enableval=$enable_werror_always; | |
5213506e | 5044 | else |
0e1a989c | 5045 | enable_werror_always=no |
4f4e53dd | 5046 | fi |
4f4e53dd | 5047 | |
0e1a989c ILT |
5048 | if test $enable_werror_always = yes; then : |
5049 | WERROR="$WERROR${WERROR:+ }-Werror" | |
5213506e | 5050 | fi |
4f4e53dd | 5051 | |
bf5372e7 YS |
5052 | ac_ext=c |
5053 | ac_cpp='$CPP $CPPFLAGS' | |
5054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5057 | ||
4f4e53dd | 5058 | |
0e1a989c ILT |
5059 | |
5060 | # Dependency checking. | |
5061 | rm -rf .tst 2>/dev/null | |
5062 | mkdir .tst 2>/dev/null | |
5063 | if test -d .tst; then | |
5064 | am__leading_dot=. | |
5065 | else | |
5066 | am__leading_dot=_ | |
5067 | fi | |
5068 | rmdir .tst 2>/dev/null | |
5069 | ||
5070 | DEPDIR="${am__leading_dot}deps" | |
5071 | ||
5072 | ac_config_commands="$ac_config_commands depdir" | |
5073 | ||
5074 | ||
0e1a989c ILT |
5075 | ac_ext=cpp |
5076 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5077 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5078 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5079 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5080 | ||
5081 | ||
5082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5083 | /* end confdefs.h. */ | |
5084 | int i; | |
0d667716 | 5085 | _ACEOF |
0e1a989c ILT |
5086 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5087 | ||
5088 | else | |
22e05272 | 5089 | as_fn_error $? "C++ compiler missing or inoperational" "$LINENO" 5 |
0e1a989c ILT |
5090 | fi |
5091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5092 | ac_ext=c | |
5093 | ac_cpp='$CPP $CPPFLAGS' | |
5094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5097 | ||
5098 | depcc="$CXX" am_compiler_list= | |
5099 | ||
5100 | am_depcomp=$ac_aux_dir/depcomp | |
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5102 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 5103 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
0e1a989c ILT |
5104 | $as_echo_n "(cached) " >&6 |
5105 | else | |
5106 | if test -f "$am_depcomp"; then | |
5107 | # We make a subdir and do the tests there. Otherwise we can end up | |
5108 | # making bogus files that we don't know about and never remove. For | |
5109 | # instance it was reported that on HP-UX the gcc test will end up | |
5110 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5111 | # in D'. | |
5112 | mkdir conftest.dir | |
5113 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5114 | # using a relative directory. | |
5115 | cp "$am_depcomp" conftest.dir | |
5116 | cd conftest.dir | |
5117 | # We will build objects and dependencies in a subdirectory because | |
5118 | # it helps to detect inapplicable dependency modes. For instance | |
5119 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5120 | # side effect of compilation, but ICC will put the dependencies in | |
5121 | # the current directory while Tru64 will put them in the object | |
5122 | # directory. | |
5123 | mkdir sub | |
5124 | ||
5125 | am_cv_CXX_dependencies_compiler_type=none | |
5126 | if test "$am_compiler_list" = ""; then | |
5127 | am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5128 | fi | |
5129 | for depmode in $am_compiler_list; do | |
5130 | if test $depmode = none; then break; fi | |
5131 | ||
5132 | $as_echo "$as_me:$LINENO: trying $depmode" >&5 | |
5133 | # Setup a source with many dependencies, because some compilers | |
5134 | # like to wrap large dependency lists on column 80 (with \), and | |
5135 | # we should not choose a depcomp mode which is confused by this. | |
5136 | # | |
5137 | # We need to recreate these files for each test, as the compiler may | |
5138 | # overwrite some of them when testing with obscure command lines. | |
5139 | # This happens at least with the AIX C compiler. | |
5140 | : > sub/conftest.c | |
5141 | for i in 1 2 3 4 5 6; do | |
5142 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5143 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5144 | # Solaris 8's {/usr,}/bin/sh. | |
5145 | touch sub/conftst$i.h | |
5146 | done | |
5147 | echo "include sub/conftest.Po" > confmf | |
5148 | ||
5149 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5150 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5151 | # handle `-M -o', and we need to detect this. | |
5152 | depcmd="depmode=$depmode \ | |
5153 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
5154 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5155 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" | |
5156 | echo "| $depcmd" | sed -e 's/ */ /g' >&5 | |
5157 | if env $depcmd > conftest.err 2>&1 && | |
5158 | grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && | |
5159 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && | |
5160 | ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then | |
5161 | # icc doesn't choke on unknown options, it will just issue warnings | |
5162 | # or remarks (even with -Werror). So we grep stderr for any message | |
5163 | # that says an option was ignored or not supported. | |
5164 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5165 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5166 | # The diagnosis changed in icc 8.0: | |
5167 | # icc: Command line remark: option '-MP' not supported | |
5168 | if (grep 'ignoring option' conftest.err || | |
5169 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5170 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5171 | $as_echo "$as_me:$LINENO: success" >&5 | |
5172 | break | |
5173 | fi | |
5174 | fi | |
5175 | $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 | |
5176 | sed -e 's/^/| /' < conftest.err >&5 | |
5177 | done | |
5178 | ||
5179 | cd .. | |
5180 | rm -rf conftest.dir | |
5181 | else | |
5182 | am_cv_CXX_dependencies_compiler_type=none | |
5183 | fi | |
0d667716 | 5184 | |
5213506e | 5185 | fi |
0e1a989c ILT |
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5187 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5188 | if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone | |
22e05272 | 5189 | then as_fn_error $? "no usable dependency style found" "$LINENO" 5 |
0e1a989c | 5190 | else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
0d667716 KG |
5191 | |
5192 | fi | |
5213506e | 5193 | |
0e1a989c ILT |
5194 | |
5195 | # Checks for header files. | |
5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
5197 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
22e05272 | 5198 | if ${ac_cv_header_time+:} false; then : |
0e1a989c | 5199 | $as_echo_n "(cached) " >&6 |
0d667716 | 5200 | else |
5213506e | 5201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0d667716 | 5202 | /* end confdefs.h. */ |
0e1a989c ILT |
5203 | #include <sys/types.h> |
5204 | #include <sys/time.h> | |
5205 | #include <time.h> | |
5213506e | 5206 | |
0d667716 KG |
5207 | int |
5208 | main () | |
5209 | { | |
0e1a989c ILT |
5210 | if ((struct tm *) 0) |
5211 | return 0; | |
5212 | ; | |
0d667716 KG |
5213 | return 0; |
5214 | } | |
5215 | _ACEOF | |
0e1a989c ILT |
5216 | if ac_fn_c_try_compile "$LINENO"; then : |
5217 | ac_cv_header_time=yes | |
0d667716 | 5218 | else |
0e1a989c | 5219 | ac_cv_header_time=no |
5213506e | 5220 | fi |
0e1a989c | 5221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d667716 | 5222 | fi |
0e1a989c ILT |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
5224 | $as_echo "$ac_cv_header_time" >&6; } | |
5225 | if test $ac_cv_header_time = yes; then | |
0d667716 | 5226 | |
0e1a989c | 5227 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
0d667716 | 5228 | |
5213506e RW |
5229 | fi |
5230 | ||
0e1a989c ILT |
5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 |
5232 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
22e05272 | 5233 | if ${gcc_cv_header_string+:} false; then : |
5213506e | 5234 | $as_echo_n "(cached) " >&6 |
0d667716 | 5235 | else |
5213506e RW |
5236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5237 | /* end confdefs.h. */ | |
0e1a989c ILT |
5238 | #include <string.h> |
5239 | #include <strings.h> | |
5240 | int | |
5241 | main () | |
5242 | { | |
4f4e53dd | 5243 | |
0e1a989c ILT |
5244 | ; |
5245 | return 0; | |
5246 | } | |
4f4e53dd | 5247 | _ACEOF |
0e1a989c ILT |
5248 | if ac_fn_c_try_compile "$LINENO"; then : |
5249 | gcc_cv_header_string=yes | |
5213506e | 5250 | else |
0e1a989c | 5251 | gcc_cv_header_string=no |
4f4e53dd | 5252 | fi |
0e1a989c | 5253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5213506e | 5254 | fi |
0e1a989c ILT |
5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
5256 | $as_echo "$gcc_cv_header_string" >&6; } | |
5257 | if test $gcc_cv_header_string = yes; then | |
4f4e53dd | 5258 | |
0e1a989c | 5259 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h |
4f4e53dd | 5260 | |
5213506e RW |
5261 | fi |
5262 | ||
5213506e RW |
5263 | |
5264 | for ac_header in locale.h fcntl.h limits.h stddef.h \ | |
0e1a989c | 5265 | stdlib.h strings.h string.h sys/file.h unistd.h |
5213506e RW |
5266 | do : |
5267 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
0e1a989c | 5268 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
22e05272 | 5269 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
4f4e53dd | 5270 | cat >>confdefs.h <<_ACEOF |
5213506e | 5271 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4f4e53dd PB |
5272 | _ACEOF |
5273 | ||
5213506e RW |
5274 | fi |
5275 | ||
5276 | done | |
4f4e53dd | 5277 | |
5213506e RW |
5278 | |
5279 | # Checks for typedefs, structures, and compiler characteristics. | |
246a2fcb RH |
5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5281 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
22e05272 | 5282 | if ${ac_cv_c_bigendian+:} false; then : |
246a2fcb RH |
5283 | $as_echo_n "(cached) " >&6 |
5284 | else | |
5285 | ac_cv_c_bigendian=unknown | |
5286 | # See if we're dealing with a universal compiler. | |
5287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5288 | /* end confdefs.h. */ | |
5289 | #ifndef __APPLE_CC__ | |
5290 | not a universal capable compiler | |
5291 | #endif | |
5292 | typedef int dummy; | |
5293 | ||
5294 | _ACEOF | |
0e1a989c | 5295 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5296 | |
5297 | # Check for potential -arch flags. It is not universal unless | |
5298 | # there are at least two -arch flags with different values. | |
5299 | ac_arch= | |
5300 | ac_prev= | |
5301 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5302 | if test -n "$ac_prev"; then | |
5303 | case $ac_word in | |
5304 | i?86 | x86_64 | ppc | ppc64) | |
5305 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5306 | ac_arch=$ac_word | |
5307 | else | |
5308 | ac_cv_c_bigendian=universal | |
5309 | break | |
5310 | fi | |
5311 | ;; | |
5312 | esac | |
5313 | ac_prev= | |
5314 | elif test "x$ac_word" = "x-arch"; then | |
5315 | ac_prev=arch | |
5316 | fi | |
5317 | done | |
5318 | fi | |
5319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5320 | if test $ac_cv_c_bigendian = unknown; then | |
5321 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5323 | /* end confdefs.h. */ | |
5324 | #include <sys/types.h> | |
5325 | #include <sys/param.h> | |
5326 | ||
5327 | int | |
5328 | main () | |
5329 | { | |
5330 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
5331 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5332 | && LITTLE_ENDIAN) | |
5333 | bogus endian macros | |
5334 | #endif | |
5335 | ||
5336 | ; | |
5337 | return 0; | |
5338 | } | |
5339 | _ACEOF | |
0e1a989c | 5340 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5341 | # It does; now see whether it defined to BIG_ENDIAN or not. |
5342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5343 | /* end confdefs.h. */ | |
5344 | #include <sys/types.h> | |
5345 | #include <sys/param.h> | |
5346 | ||
5347 | int | |
5348 | main () | |
5349 | { | |
5350 | #if BYTE_ORDER != BIG_ENDIAN | |
5351 | not big endian | |
5352 | #endif | |
5353 | ||
5354 | ; | |
5355 | return 0; | |
5356 | } | |
5357 | _ACEOF | |
0e1a989c | 5358 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5359 | ac_cv_c_bigendian=yes |
5360 | else | |
5361 | ac_cv_c_bigendian=no | |
5362 | fi | |
5363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5364 | fi | |
5365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5366 | fi | |
5367 | if test $ac_cv_c_bigendian = unknown; then | |
5368 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5370 | /* end confdefs.h. */ | |
5371 | #include <limits.h> | |
5372 | ||
5373 | int | |
5374 | main () | |
5375 | { | |
5376 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5377 | bogus endian macros | |
5378 | #endif | |
5379 | ||
5380 | ; | |
5381 | return 0; | |
5382 | } | |
5383 | _ACEOF | |
0e1a989c | 5384 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5385 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
5386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5387 | /* end confdefs.h. */ | |
5388 | #include <limits.h> | |
5389 | ||
5390 | int | |
5391 | main () | |
5392 | { | |
5393 | #ifndef _BIG_ENDIAN | |
5394 | not big endian | |
5395 | #endif | |
5396 | ||
5397 | ; | |
5398 | return 0; | |
5399 | } | |
5400 | _ACEOF | |
0e1a989c | 5401 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5402 | ac_cv_c_bigendian=yes |
5403 | else | |
5404 | ac_cv_c_bigendian=no | |
5405 | fi | |
5406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5407 | fi | |
5408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5409 | fi | |
5410 | if test $ac_cv_c_bigendian = unknown; then | |
5411 | # Compile a test program. | |
5412 | if test "$cross_compiling" = yes; then : | |
5413 | # Try to guess by grepping values from an object file. | |
5414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5415 | /* end confdefs.h. */ | |
5416 | short int ascii_mm[] = | |
5417 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5418 | short int ascii_ii[] = | |
5419 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5420 | int use_ascii (int i) { | |
5421 | return ascii_mm[i] + ascii_ii[i]; | |
5422 | } | |
5423 | short int ebcdic_ii[] = | |
5424 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5425 | short int ebcdic_mm[] = | |
5426 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5427 | int use_ebcdic (int i) { | |
5428 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5429 | } | |
5430 | extern int foo; | |
5431 | ||
5432 | int | |
5433 | main () | |
5434 | { | |
5435 | return use_ascii (foo) == use_ebcdic (foo); | |
5436 | ; | |
5437 | return 0; | |
5438 | } | |
5439 | _ACEOF | |
0e1a989c | 5440 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5441 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
5442 | ac_cv_c_bigendian=yes | |
5443 | fi | |
5444 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5445 | if test "$ac_cv_c_bigendian" = unknown; then | |
5446 | ac_cv_c_bigendian=no | |
5447 | else | |
5448 | # finding both strings is unlikely to happen, but who knows? | |
5449 | ac_cv_c_bigendian=unknown | |
5450 | fi | |
5451 | fi | |
5452 | fi | |
5453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5454 | else | |
5455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5456 | /* end confdefs.h. */ | |
5457 | $ac_includes_default | |
5458 | int | |
5459 | main () | |
5460 | { | |
5461 | ||
5462 | /* Are we little or big endian? From Harbison&Steele. */ | |
5463 | union | |
5464 | { | |
5465 | long int l; | |
5466 | char c[sizeof (long int)]; | |
5467 | } u; | |
5468 | u.l = 1; | |
5469 | return u.c[sizeof (long int) - 1] == 1; | |
5470 | ||
5471 | ; | |
5472 | return 0; | |
5473 | } | |
5474 | _ACEOF | |
0e1a989c | 5475 | if ac_fn_c_try_run "$LINENO"; then : |
246a2fcb RH |
5476 | ac_cv_c_bigendian=no |
5477 | else | |
5478 | ac_cv_c_bigendian=yes | |
5479 | fi | |
5480 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5481 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5482 | fi | |
5483 | ||
5484 | fi | |
5485 | fi | |
5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
5487 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5488 | case $ac_cv_c_bigendian in #( | |
5489 | yes) | |
5490 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5491 | ;; #( | |
5492 | no) | |
5493 | ;; #( | |
5494 | universal) | |
5495 | ||
5496 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5497 | ||
5498 | ;; #( | |
5499 | *) | |
22e05272 | 5500 | as_fn_error $? "unknown endianness |
246a2fcb RH |
5501 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
5502 | esac | |
5503 | ||
5213506e RW |
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
5505 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
22e05272 | 5506 | if ${ac_cv_c_const+:} false; then : |
5213506e | 5507 | $as_echo_n "(cached) " >&6 |
0d667716 | 5508 | else |
5213506e | 5509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0d667716 | 5510 | /* end confdefs.h. */ |
5213506e | 5511 | |
0d667716 KG |
5512 | int |
5513 | main () | |
5514 | { | |
22e05272 | 5515 | |
5213506e | 5516 | #ifndef __cplusplus |
22e05272 | 5517 | /* Ultrix mips cc rejects this sort of thing. */ |
5213506e | 5518 | typedef int charset[2]; |
22e05272 | 5519 | const charset cs = { 0, 0 }; |
5213506e RW |
5520 | /* SunOS 4.1.1 cc rejects this. */ |
5521 | char const *const *pcpcc; | |
5522 | char **ppc; | |
5523 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5524 | struct point {int x, y;}; | |
5525 | static struct point const zero = {0,0}; | |
5526 | /* AIX XL C 1.02.0.0 rejects this. | |
5527 | It does not let you subtract one const X* pointer from another in | |
5528 | an arm of an if-expression whose if-part is not a constant | |
5529 | expression */ | |
5530 | const char *g = "string"; | |
5531 | pcpcc = &g + (g ? g-g : 0); | |
5532 | /* HPUX 7.0 cc rejects these. */ | |
5533 | ++pcpcc; | |
5534 | ppc = (char**) pcpcc; | |
5535 | pcpcc = (char const *const *) ppc; | |
22e05272 JM |
5536 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
5537 | char tx; | |
5538 | char *t = &tx; | |
5213506e RW |
5539 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
5540 | ||
5541 | *t++ = 0; | |
5542 | if (s) return 0; | |
5543 | } | |
5544 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5545 | int x[] = {25, 17}; | |
5546 | const int *foo = &x[0]; | |
5547 | ++foo; | |
5548 | } | |
5549 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5550 | typedef const int *iptr; | |
5551 | iptr p = 0; | |
5552 | ++p; | |
5553 | } | |
22e05272 | 5554 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
5213506e | 5555 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
22e05272 JM |
5556 | struct s { int j; const int *ap[3]; } bx; |
5557 | struct s *b = &bx; b->j = 5; | |
5213506e RW |
5558 | } |
5559 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5560 | const int foo = 10; | |
5561 | if (!foo) return 0; | |
5562 | } | |
5563 | return !cs[0] && !zero.x; | |
0d667716 KG |
5564 | #endif |
5565 | ||
5566 | ; | |
5567 | return 0; | |
5568 | } | |
5569 | _ACEOF | |
0e1a989c | 5570 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e | 5571 | ac_cv_c_const=yes |
0d667716 | 5572 | else |
5213506e | 5573 | ac_cv_c_const=no |
0d667716 | 5574 | fi |
5213506e | 5575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d667716 | 5576 | fi |
5213506e RW |
5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5578 | $as_echo "$ac_cv_c_const" >&6; } | |
5579 | if test $ac_cv_c_const = no; then | |
0d667716 | 5580 | |
5213506e | 5581 | $as_echo "#define const /**/" >>confdefs.h |
0d667716 | 5582 | |
5213506e | 5583 | fi |
0d667716 | 5584 | |
5213506e RW |
5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5586 | $as_echo_n "checking for inline... " >&6; } | |
22e05272 | 5587 | if ${ac_cv_c_inline+:} false; then : |
5213506e | 5588 | $as_echo_n "(cached) " >&6 |
0d667716 | 5589 | else |
5213506e RW |
5590 | ac_cv_c_inline=no |
5591 | for ac_kw in inline __inline__ __inline; do | |
5592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5593 | /* end confdefs.h. */ | |
5594 | #ifndef __cplusplus | |
5595 | typedef int foo_t; | |
5596 | static $ac_kw foo_t static_foo () {return 0; } | |
5597 | $ac_kw foo_t foo () {return 0; } | |
5598 | #endif | |
5599 | ||
0d667716 | 5600 | _ACEOF |
0e1a989c | 5601 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
5602 | ac_cv_c_inline=$ac_kw |
5603 | fi | |
5604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5605 | test "$ac_cv_c_inline" != no && break | |
5606 | done | |
0d667716 | 5607 | |
5213506e RW |
5608 | fi |
5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
5610 | $as_echo "$ac_cv_c_inline" >&6; } | |
5611 | ||
5612 | case $ac_cv_c_inline in | |
5613 | inline | yes) ;; | |
5614 | *) | |
5615 | case $ac_cv_c_inline in | |
5616 | no) ac_val=;; | |
5617 | *) ac_val=$ac_cv_c_inline;; | |
5618 | esac | |
5619 | cat >>confdefs.h <<_ACEOF | |
5620 | #ifndef __cplusplus | |
5621 | #define inline $ac_val | |
5622 | #endif | |
5623 | _ACEOF | |
5624 | ;; | |
5625 | esac | |
0d667716 | 5626 | |
5213506e RW |
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5 |
5628 | $as_echo_n "checking for obstacks... " >&6; } | |
22e05272 | 5629 | if ${ac_cv_func_obstack+:} false; then : |
5213506e | 5630 | $as_echo_n "(cached) " >&6 |
0d667716 | 5631 | else |
5213506e | 5632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0d667716 KG |
5633 | /* end confdefs.h. */ |
5634 | $ac_includes_default | |
5213506e | 5635 | #include "obstack.h" |
0d667716 KG |
5636 | int |
5637 | main () | |
5638 | { | |
5213506e RW |
5639 | struct obstack mem; |
5640 | #define obstack_chunk_alloc malloc | |
5641 | #define obstack_chunk_free free | |
5642 | obstack_init (&mem); | |
5643 | obstack_free (&mem, 0); | |
0d667716 KG |
5644 | ; |
5645 | return 0; | |
5646 | } | |
5647 | _ACEOF | |
0e1a989c | 5648 | if ac_fn_c_try_link "$LINENO"; then : |
5213506e | 5649 | ac_cv_func_obstack=yes |
0d667716 | 5650 | else |
5213506e | 5651 | ac_cv_func_obstack=no |
0d667716 | 5652 | fi |
5213506e RW |
5653 | rm -f core conftest.err conftest.$ac_objext \ |
5654 | conftest$ac_exeext conftest.$ac_ext | |
0d667716 | 5655 | fi |
5213506e RW |
5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5 |
5657 | $as_echo "$ac_cv_func_obstack" >&6; } | |
5658 | if test $ac_cv_func_obstack = yes; then | |
0d667716 | 5659 | |
5213506e | 5660 | $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h |
0d667716 KG |
5661 | |
5662 | else | |
5213506e RW |
5663 | case " $LIBOBJS " in |
5664 | *" obstack.$ac_objext "* ) ;; | |
5665 | *) LIBOBJS="$LIBOBJS obstack.$ac_objext" | |
5666 | ;; | |
5667 | esac | |
0d667716 KG |
5668 | |
5669 | fi | |
5213506e | 5670 | |
0e1a989c | 5671 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
22e05272 | 5672 | if test "x$ac_cv_type_off_t" = xyes; then : |
5213506e | 5673 | |
0d667716 | 5674 | else |
0d667716 | 5675 | |
5213506e RW |
5676 | cat >>confdefs.h <<_ACEOF |
5677 | #define off_t long int | |
0d667716 | 5678 | _ACEOF |
0d667716 | 5679 | |
0d667716 | 5680 | fi |
5213506e | 5681 | |
0e1a989c | 5682 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
22e05272 | 5683 | if test "x$ac_cv_type_size_t" = xyes; then : |
5213506e RW |
5684 | |
5685 | else | |
0d667716 KG |
5686 | |
5687 | cat >>confdefs.h <<_ACEOF | |
5213506e | 5688 | #define size_t unsigned int |
0d667716 KG |
5689 | _ACEOF |
5690 | ||
5213506e RW |
5691 | fi |
5692 | ||
0e1a989c | 5693 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
22e05272 | 5694 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
0d667716 KG |
5695 | |
5696 | else | |
0d667716 | 5697 | |
5213506e RW |
5698 | cat >>confdefs.h <<_ACEOF |
5699 | #define ssize_t int | |
5700 | _ACEOF | |
0d667716 | 5701 | |
246a2fcb RH |
5702 | fi |
5703 | ||
5704 | ||
0e1a989c | 5705 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
22e05272 | 5706 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
246a2fcb RH |
5707 | |
5708 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
5709 | ||
5710 | else | |
5711 | for ac_type in 'unsigned int' 'unsigned long int' \ | |
5712 | 'unsigned long long int'; do | |
5713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5714 | /* end confdefs.h. */ | |
5715 | $ac_includes_default | |
5716 | int | |
5717 | main () | |
5718 | { | |
5719 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
5720 | test_array [0] = 0; |
5721 | return test_array [0]; | |
246a2fcb RH |
5722 | |
5723 | ; | |
5724 | return 0; | |
5725 | } | |
5726 | _ACEOF | |
0e1a989c | 5727 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5728 | |
5729 | cat >>confdefs.h <<_ACEOF | |
5730 | #define uintptr_t $ac_type | |
5731 | _ACEOF | |
5732 | ||
5733 | ac_type= | |
5734 | fi | |
5735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5736 | test -z "$ac_type" && break | |
5737 | done | |
5738 | fi | |
5739 | ||
5740 | ||
0e1a989c | 5741 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
22e05272 | 5742 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
246a2fcb RH |
5743 | |
5744 | else | |
5745 | ||
5746 | cat >>confdefs.h <<_ACEOF | |
5747 | #define ptrdiff_t int | |
5748 | _ACEOF | |
5749 | ||
54da09ee RB |
5750 | fi |
5751 | ||
edf6ddf6 RB |
5752 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
5753 | case $ac_cv_c_uint64_t in #( | |
5754 | no|yes) ;; #( | |
5755 | *) | |
54da09ee | 5756 | |
edf6ddf6 | 5757 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
54da09ee RB |
5758 | |
5759 | ||
5760 | cat >>confdefs.h <<_ACEOF | |
edf6ddf6 | 5761 | #define uint64_t $ac_cv_c_uint64_t |
54da09ee | 5762 | _ACEOF |
edf6ddf6 RB |
5763 | ;; |
5764 | esac | |
54da09ee | 5765 | |
edf6ddf6 | 5766 | if test x"$ac_cv_c_uint64_t" = x"no"; then |
22e05272 | 5767 | as_fn_error $? "uint64_t not found" "$LINENO" 5 |
0d667716 | 5768 | fi |
5213506e RW |
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
5770 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
22e05272 | 5771 | if ${ac_cv_struct_tm+:} false; then : |
5213506e | 5772 | $as_echo_n "(cached) " >&6 |
0d667716 | 5773 | else |
5213506e | 5774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0d667716 | 5775 | /* end confdefs.h. */ |
5213506e RW |
5776 | #include <sys/types.h> |
5777 | #include <time.h> | |
5778 | ||
0d667716 KG |
5779 | int |
5780 | main () | |
5781 | { | |
5213506e RW |
5782 | struct tm tm; |
5783 | int *p = &tm.tm_sec; | |
5784 | return !p; | |
0d667716 KG |
5785 | ; |
5786 | return 0; | |
5787 | } | |
5788 | _ACEOF | |
0e1a989c | 5789 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e | 5790 | ac_cv_struct_tm=time.h |
0d667716 | 5791 | else |
5213506e | 5792 | ac_cv_struct_tm=sys/time.h |
0d667716 | 5793 | fi |
5213506e | 5794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d667716 | 5795 | fi |
5213506e RW |
5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
5797 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5798 | if test $ac_cv_struct_tm = sys/time.h; then | |
0d667716 | 5799 | |
5213506e | 5800 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
0d667716 | 5801 | |
5213506e | 5802 | fi |
0d667716 | 5803 | |
5213506e RW |
5804 | # The cast to long int works around a bug in the HP C Compiler |
5805 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5806 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5807 | # This bug is HP SR number 8606223364. | |
5808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
5809 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 5810 | if ${ac_cv_sizeof_int+:} false; then : |
5213506e | 5811 | $as_echo_n "(cached) " >&6 |
0d667716 | 5812 | else |
0e1a989c | 5813 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
0d667716 | 5814 | |
5213506e RW |
5815 | else |
5816 | if test "$ac_cv_type_int" = yes; then | |
5817 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5818 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
5819 | as_fn_error 77 "cannot compute sizeof (int) |
5820 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
5821 | else |
5822 | ac_cv_sizeof_int=0 | |
5823 | fi | |
5824 | fi | |
0d667716 KG |
5825 | |
5826 | fi | |
5213506e RW |
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
5828 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
0d667716 | 5829 | |
0d667716 | 5830 | |
0d667716 KG |
5831 | |
5832 | cat >>confdefs.h <<_ACEOF | |
5213506e | 5833 | #define SIZEOF_INT $ac_cv_sizeof_int |
0d667716 KG |
5834 | _ACEOF |
5835 | ||
5836 | ||
5213506e RW |
5837 | # The cast to long int works around a bug in the HP C Compiler |
5838 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5839 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5840 | # This bug is HP SR number 8606223364. | |
5841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
5842 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 5843 | if ${ac_cv_sizeof_long+:} false; then : |
5213506e | 5844 | $as_echo_n "(cached) " >&6 |
0d667716 | 5845 | else |
0e1a989c | 5846 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
0d667716 | 5847 | |
5213506e RW |
5848 | else |
5849 | if test "$ac_cv_type_long" = yes; then | |
5850 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5851 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
5852 | as_fn_error 77 "cannot compute sizeof (long) |
5853 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
5854 | else |
5855 | ac_cv_sizeof_long=0 | |
5856 | fi | |
5857 | fi | |
0d667716 KG |
5858 | |
5859 | fi | |
5213506e RW |
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
5861 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
0d667716 | 5862 | |
0d667716 | 5863 | |
0d667716 KG |
5864 | |
5865 | cat >>confdefs.h <<_ACEOF | |
5213506e | 5866 | #define SIZEOF_LONG $ac_cv_sizeof_long |
0d667716 KG |
5867 | _ACEOF |
5868 | ||
5869 | ||
5213506e RW |
5870 | |
5871 | for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked | |
5872 | do : | |
5873 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
0e1a989c | 5874 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
22e05272 | 5875 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
0d667716 | 5876 | cat >>confdefs.h <<_ACEOF |
5213506e | 5877 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
0d667716 KG |
5878 | _ACEOF |
5879 | ||
0d667716 | 5880 | fi |
5213506e RW |
5881 | done |
5882 | ||
0e1a989c | 5883 | ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default" |
22e05272 | 5884 | if test "x$ac_cv_have_decl_abort" = xyes; then : |
5213506e | 5885 | ac_have_decl=1 |
0d667716 | 5886 | else |
5213506e RW |
5887 | ac_have_decl=0 |
5888 | fi | |
0d667716 | 5889 | |
5213506e RW |
5890 | cat >>confdefs.h <<_ACEOF |
5891 | #define HAVE_DECL_ABORT $ac_have_decl | |
0d667716 | 5892 | _ACEOF |
0e1a989c | 5893 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
22e05272 | 5894 | if test "x$ac_cv_have_decl_asprintf" = xyes; then : |
5213506e | 5895 | ac_have_decl=1 |
0d667716 | 5896 | else |
5213506e | 5897 | ac_have_decl=0 |
0d667716 | 5898 | fi |
0d667716 KG |
5899 | |
5900 | cat >>confdefs.h <<_ACEOF | |
5213506e | 5901 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
0d667716 | 5902 | _ACEOF |
22e05272 JM |
5903 | as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh` |
5904 | ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default" | |
5905 | if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : | |
5213506e | 5906 | ac_have_decl=1 |
0d667716 | 5907 | else |
5213506e | 5908 | ac_have_decl=0 |
0d667716 | 5909 | fi |
0d667716 | 5910 | |
5213506e RW |
5911 | cat >>confdefs.h <<_ACEOF |
5912 | #define HAVE_DECL_BASENAME $ac_have_decl | |
0d667716 | 5913 | _ACEOF |
0e1a989c | 5914 | ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default" |
22e05272 | 5915 | if test "x$ac_cv_have_decl_errno" = xyes; then : |
5213506e | 5916 | ac_have_decl=1 |
0d667716 | 5917 | else |
5213506e | 5918 | ac_have_decl=0 |
0d667716 | 5919 | fi |
5213506e RW |
5920 | |
5921 | cat >>confdefs.h <<_ACEOF | |
5922 | #define HAVE_DECL_ERRNO $ac_have_decl | |
5923 | _ACEOF | |
0e1a989c | 5924 | ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default" |
22e05272 | 5925 | if test "x$ac_cv_have_decl_getopt" = xyes; then : |
5213506e RW |
5926 | ac_have_decl=1 |
5927 | else | |
5928 | ac_have_decl=0 | |
0d667716 | 5929 | fi |
0d667716 KG |
5930 | |
5931 | cat >>confdefs.h <<_ACEOF | |
5213506e | 5932 | #define HAVE_DECL_GETOPT $ac_have_decl |
0d667716 | 5933 | _ACEOF |
0e1a989c | 5934 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
22e05272 | 5935 | if test "x$ac_cv_have_decl_vasprintf" = xyes; then : |
c3f247f4 RW |
5936 | ac_have_decl=1 |
5937 | else | |
5938 | ac_have_decl=0 | |
5939 | fi | |
5940 | ||
5941 | cat >>confdefs.h <<_ACEOF | |
5942 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
5943 | _ACEOF | |
5944 | ||
0e1a989c | 5945 | ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" |
22e05272 | 5946 | if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then : |
5213506e RW |
5947 | ac_have_decl=1 |
5948 | else | |
5949 | ac_have_decl=0 | |
5950 | fi | |
0d667716 | 5951 | |
5213506e RW |
5952 | cat >>confdefs.h <<_ACEOF |
5953 | #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl | |
5954 | _ACEOF | |
0e1a989c | 5955 | ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" |
22e05272 | 5956 | if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : |
5213506e RW |
5957 | ac_have_decl=1 |
5958 | else | |
5959 | ac_have_decl=0 | |
5960 | fi | |
0d667716 | 5961 | |
5213506e RW |
5962 | cat >>confdefs.h <<_ACEOF |
5963 | #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl | |
5964 | _ACEOF | |
0e1a989c | 5965 | ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" |
22e05272 | 5966 | if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then : |
5213506e | 5967 | ac_have_decl=1 |
0d667716 | 5968 | else |
5213506e RW |
5969 | ac_have_decl=0 |
5970 | fi | |
5971 | ||
5972 | cat >>confdefs.h <<_ACEOF | |
5973 | #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl | |
0d667716 | 5974 | _ACEOF |
0e1a989c | 5975 | ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" |
22e05272 | 5976 | if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then : |
5213506e RW |
5977 | ac_have_decl=1 |
5978 | else | |
5979 | ac_have_decl=0 | |
5980 | fi | |
0d667716 | 5981 | |
5213506e RW |
5982 | cat >>confdefs.h <<_ACEOF |
5983 | #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl | |
5984 | _ACEOF | |
0e1a989c | 5985 | ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default" |
22e05272 | 5986 | if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes; then : |
5213506e RW |
5987 | ac_have_decl=1 |
5988 | else | |
5989 | ac_have_decl=0 | |
5990 | fi | |
0d667716 | 5991 | |
5213506e RW |
5992 | cat >>confdefs.h <<_ACEOF |
5993 | #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl | |
5994 | _ACEOF | |
0e1a989c | 5995 | ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" |
22e05272 | 5996 | if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : |
5213506e RW |
5997 | ac_have_decl=1 |
5998 | else | |
5999 | ac_have_decl=0 | |
c3f829c1 | 6000 | fi |
5213506e RW |
6001 | |
6002 | cat >>confdefs.h <<_ACEOF | |
6003 | #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl | |
6004 | _ACEOF | |
0e1a989c | 6005 | ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default" |
22e05272 | 6006 | if test "x$ac_cv_have_decl_fileno_unlocked" = xyes; then : |
5213506e | 6007 | ac_have_decl=1 |
c3f829c1 | 6008 | else |
5213506e RW |
6009 | ac_have_decl=0 |
6010 | fi | |
6011 | ||
6012 | cat >>confdefs.h <<_ACEOF | |
6013 | #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl | |
c3f829c1 | 6014 | _ACEOF |
0e1a989c | 6015 | ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default" |
22e05272 | 6016 | if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes; then : |
5213506e RW |
6017 | ac_have_decl=1 |
6018 | else | |
6019 | ac_have_decl=0 | |
6020 | fi | |
c3f829c1 | 6021 | |
5213506e RW |
6022 | cat >>confdefs.h <<_ACEOF |
6023 | #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl | |
c3f829c1 | 6024 | _ACEOF |
0e1a989c | 6025 | ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" |
22e05272 | 6026 | if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then : |
5213506e | 6027 | ac_have_decl=1 |
c3f829c1 | 6028 | else |
5213506e RW |
6029 | ac_have_decl=0 |
6030 | fi | |
c3f829c1 | 6031 | |
5213506e RW |
6032 | cat >>confdefs.h <<_ACEOF |
6033 | #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl | |
6034 | _ACEOF | |
0e1a989c | 6035 | ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" |
22e05272 | 6036 | if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then : |
5213506e RW |
6037 | ac_have_decl=1 |
6038 | else | |
6039 | ac_have_decl=0 | |
c3f829c1 | 6040 | fi |
5213506e RW |
6041 | |
6042 | cat >>confdefs.h <<_ACEOF | |
6043 | #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl | |
6044 | _ACEOF | |
0e1a989c | 6045 | ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" |
22e05272 | 6046 | if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then : |
5213506e RW |
6047 | ac_have_decl=1 |
6048 | else | |
6049 | ac_have_decl=0 | |
c3f829c1 | 6050 | fi |
c3f829c1 GDR |
6051 | |
6052 | cat >>confdefs.h <<_ACEOF | |
5213506e | 6053 | #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl |
c3f829c1 | 6054 | _ACEOF |
0e1a989c | 6055 | ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" |
22e05272 | 6056 | if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then : |
5213506e RW |
6057 | ac_have_decl=1 |
6058 | else | |
6059 | ac_have_decl=0 | |
6060 | fi | |
c3f829c1 | 6061 | |
5213506e RW |
6062 | cat >>confdefs.h <<_ACEOF |
6063 | #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl | |
6064 | _ACEOF | |
0e1a989c | 6065 | ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" |
22e05272 | 6066 | if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then : |
5213506e RW |
6067 | ac_have_decl=1 |
6068 | else | |
6069 | ac_have_decl=0 | |
6070 | fi | |
c3f829c1 | 6071 | |
5213506e RW |
6072 | cat >>confdefs.h <<_ACEOF |
6073 | #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl | |
6074 | _ACEOF | |
0e1a989c | 6075 | ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" |
22e05272 | 6076 | if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : |
5213506e | 6077 | ac_have_decl=1 |
c3f829c1 | 6078 | else |
5213506e RW |
6079 | ac_have_decl=0 |
6080 | fi | |
6081 | ||
6082 | cat >>confdefs.h <<_ACEOF | |
6083 | #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl | |
c3f829c1 | 6084 | _ACEOF |
0e1a989c | 6085 | ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" |
22e05272 | 6086 | if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then : |
5213506e RW |
6087 | ac_have_decl=1 |
6088 | else | |
6089 | ac_have_decl=0 | |
6090 | fi | |
c3f829c1 | 6091 | |
5213506e RW |
6092 | cat >>confdefs.h <<_ACEOF |
6093 | #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl | |
6094 | _ACEOF | |
0e1a989c | 6095 | ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" |
22e05272 | 6096 | if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then : |
5213506e RW |
6097 | ac_have_decl=1 |
6098 | else | |
6099 | ac_have_decl=0 | |
6100 | fi | |
c3f829c1 | 6101 | |
5213506e RW |
6102 | cat >>confdefs.h <<_ACEOF |
6103 | #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl | |
6104 | _ACEOF | |
4f4e53dd PB |
6105 | |
6106 | ||
6107 | # Checks for library functions. | |
6108 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6109 | # for constant arguments. Useless! | |
5213506e RW |
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
6111 | $as_echo_n "checking for working alloca.h... " >&6; } | |
22e05272 | 6112 | if ${ac_cv_working_alloca_h+:} false; then : |
5213506e | 6113 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6114 | else |
5213506e | 6115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6116 | /* end confdefs.h. */ |
6117 | #include <alloca.h> | |
6118 | int | |
6119 | main () | |
6120 | { | |
6121 | char *p = (char *) alloca (2 * sizeof (int)); | |
5213506e | 6122 | if (p) return 0; |
4f4e53dd PB |
6123 | ; |
6124 | return 0; | |
6125 | } | |
6126 | _ACEOF | |
0e1a989c | 6127 | if ac_fn_c_try_link "$LINENO"; then : |
4f4e53dd PB |
6128 | ac_cv_working_alloca_h=yes |
6129 | else | |
5213506e | 6130 | ac_cv_working_alloca_h=no |
4f4e53dd | 6131 | fi |
5213506e RW |
6132 | rm -f core conftest.err conftest.$ac_objext \ |
6133 | conftest$ac_exeext conftest.$ac_ext | |
4f4e53dd | 6134 | fi |
5213506e RW |
6135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
6136 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
4f4e53dd PB |
6137 | if test $ac_cv_working_alloca_h = yes; then |
6138 | ||
5213506e | 6139 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
4f4e53dd PB |
6140 | |
6141 | fi | |
6142 | ||
5213506e RW |
6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
6144 | $as_echo_n "checking for alloca... " >&6; } | |
22e05272 | 6145 | if ${ac_cv_func_alloca_works+:} false; then : |
5213506e | 6146 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6147 | else |
5213506e | 6148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6149 | /* end confdefs.h. */ |
6150 | #ifdef __GNUC__ | |
6151 | # define alloca __builtin_alloca | |
6152 | #else | |
6153 | # ifdef _MSC_VER | |
6154 | # include <malloc.h> | |
6155 | # define alloca _alloca | |
6156 | # else | |
5213506e | 6157 | # ifdef HAVE_ALLOCA_H |
4f4e53dd PB |
6158 | # include <alloca.h> |
6159 | # else | |
6160 | # ifdef _AIX | |
6161 | #pragma alloca | |
6162 | # else | |
6163 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
22e05272 | 6164 | void *alloca (size_t); |
4f4e53dd PB |
6165 | # endif |
6166 | # endif | |
6167 | # endif | |
6168 | # endif | |
6169 | #endif | |
6170 | ||
6171 | int | |
6172 | main () | |
6173 | { | |
6174 | char *p = (char *) alloca (1); | |
5213506e | 6175 | if (p) return 0; |
4f4e53dd PB |
6176 | ; |
6177 | return 0; | |
6178 | } | |
6179 | _ACEOF | |
0e1a989c | 6180 | if ac_fn_c_try_link "$LINENO"; then : |
4f4e53dd PB |
6181 | ac_cv_func_alloca_works=yes |
6182 | else | |
5213506e | 6183 | ac_cv_func_alloca_works=no |
4f4e53dd | 6184 | fi |
5213506e RW |
6185 | rm -f core conftest.err conftest.$ac_objext \ |
6186 | conftest$ac_exeext conftest.$ac_ext | |
4f4e53dd | 6187 | fi |
5213506e RW |
6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
6189 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
4f4e53dd PB |
6190 | |
6191 | if test $ac_cv_func_alloca_works = yes; then | |
6192 | ||
5213506e | 6193 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
4f4e53dd PB |
6194 | |
6195 | else | |
6196 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6197 | # that cause trouble. Some versions do not even contain alloca or | |
6198 | # contain a buggy version. If you still want to use their alloca, | |
6199 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6200 | ||
5213506e | 6201 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
4f4e53dd | 6202 | |
5213506e | 6203 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
4f4e53dd PB |
6204 | |
6205 | ||
5213506e RW |
6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
6207 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
22e05272 | 6208 | if ${ac_cv_os_cray+:} false; then : |
5213506e | 6209 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6210 | else |
5213506e | 6211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 6212 | /* end confdefs.h. */ |
5213506e | 6213 | #if defined CRAY && ! defined CRAY2 |
4f4e53dd PB |
6214 | webecray |
6215 | #else | |
6216 | wenotbecray | |
6217 | #endif | |
6218 | ||
6219 | _ACEOF | |
6220 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e | 6221 | $EGREP "webecray" >/dev/null 2>&1; then : |
4f4e53dd PB |
6222 | ac_cv_os_cray=yes |
6223 | else | |
6224 | ac_cv_os_cray=no | |
6225 | fi | |
6226 | rm -f conftest* | |
6227 | ||
6228 | fi | |
5213506e RW |
6229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
6230 | $as_echo "$ac_cv_os_cray" >&6; } | |
4f4e53dd PB |
6231 | if test $ac_cv_os_cray = yes; then |
6232 | for ac_func in _getb67 GETB67 getb67; do | |
5213506e | 6233 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
0e1a989c | 6234 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
22e05272 | 6235 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
4f4e53dd PB |
6236 | |
6237 | cat >>confdefs.h <<_ACEOF | |
6238 | #define CRAY_STACKSEG_END $ac_func | |
6239 | _ACEOF | |
6240 | ||
6241 | break | |
6242 | fi | |
6243 | ||
6244 | done | |
6245 | fi | |
6246 | ||
5213506e RW |
6247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
6248 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
22e05272 | 6249 | if ${ac_cv_c_stack_direction+:} false; then : |
5213506e | 6250 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6251 | else |
5213506e | 6252 | if test "$cross_compiling" = yes; then : |
4f4e53dd PB |
6253 | ac_cv_c_stack_direction=0 |
6254 | else | |
5213506e | 6255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 6256 | /* end confdefs.h. */ |
5213506e | 6257 | $ac_includes_default |
4f4e53dd | 6258 | int |
22e05272 | 6259 | find_stack_direction (int *addr, int depth) |
4f4e53dd | 6260 | { |
22e05272 JM |
6261 | int dir, dummy = 0; |
6262 | if (! addr) | |
6263 | addr = &dummy; | |
6264 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
6265 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
6266 | return dir + dummy; | |
4f4e53dd PB |
6267 | } |
6268 | ||
6269 | int | |
22e05272 | 6270 | main (int argc, char **argv) |
4f4e53dd | 6271 | { |
22e05272 | 6272 | return find_stack_direction (0, argc + !argv + 20) < 0; |
4f4e53dd PB |
6273 | } |
6274 | _ACEOF | |
0e1a989c | 6275 | if ac_fn_c_try_run "$LINENO"; then : |
4f4e53dd PB |
6276 | ac_cv_c_stack_direction=1 |
6277 | else | |
5213506e | 6278 | ac_cv_c_stack_direction=-1 |
4f4e53dd | 6279 | fi |
5213506e RW |
6280 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6281 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4f4e53dd | 6282 | fi |
4f4e53dd | 6283 | |
5213506e RW |
6284 | fi |
6285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
6286 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
4f4e53dd PB |
6287 | cat >>confdefs.h <<_ACEOF |
6288 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6289 | _ACEOF | |
6290 | ||
6291 | ||
6292 | fi | |
6293 | ||
5213506e RW |
6294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
6295 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 6296 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 6297 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6298 | else |
5213506e | 6299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6300 | /* end confdefs.h. */ |
6301 | #include <stdlib.h> | |
6302 | #include <stdarg.h> | |
6303 | #include <string.h> | |
6304 | #include <float.h> | |
6305 | ||
6306 | int | |
6307 | main () | |
6308 | { | |
6309 | ||
6310 | ; | |
6311 | return 0; | |
6312 | } | |
6313 | _ACEOF | |
0e1a989c | 6314 | if ac_fn_c_try_compile "$LINENO"; then : |
4f4e53dd PB |
6315 | ac_cv_header_stdc=yes |
6316 | else | |
5213506e | 6317 | ac_cv_header_stdc=no |
4f4e53dd | 6318 | fi |
5213506e | 6319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4f4e53dd PB |
6320 | |
6321 | if test $ac_cv_header_stdc = yes; then | |
6322 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5213506e | 6323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6324 | /* end confdefs.h. */ |
6325 | #include <string.h> | |
6326 | ||
6327 | _ACEOF | |
6328 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
6329 | $EGREP "memchr" >/dev/null 2>&1; then : |
6330 | ||
4f4e53dd PB |
6331 | else |
6332 | ac_cv_header_stdc=no | |
6333 | fi | |
6334 | rm -f conftest* | |
6335 | ||
6336 | fi | |
6337 | ||
6338 | if test $ac_cv_header_stdc = yes; then | |
6339 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5213506e | 6340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6341 | /* end confdefs.h. */ |
6342 | #include <stdlib.h> | |
6343 | ||
6344 | _ACEOF | |
6345 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
6346 | $EGREP "free" >/dev/null 2>&1; then : |
6347 | ||
4f4e53dd PB |
6348 | else |
6349 | ac_cv_header_stdc=no | |
6350 | fi | |
6351 | rm -f conftest* | |
6352 | ||
6353 | fi | |
6354 | ||
6355 | if test $ac_cv_header_stdc = yes; then | |
6356 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5213506e | 6357 | if test "$cross_compiling" = yes; then : |
4f4e53dd PB |
6358 | : |
6359 | else | |
5213506e | 6360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6361 | /* end confdefs.h. */ |
6362 | #include <ctype.h> | |
5213506e | 6363 | #include <stdlib.h> |
4f4e53dd PB |
6364 | #if ((' ' & 0x0FF) == 0x020) |
6365 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6366 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6367 | #else | |
6368 | # define ISLOWER(c) \ | |
6369 | (('a' <= (c) && (c) <= 'i') \ | |
6370 | || ('j' <= (c) && (c) <= 'r') \ | |
6371 | || ('s' <= (c) && (c) <= 'z')) | |
6372 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6373 | #endif | |
6374 | ||
6375 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6376 | int | |
6377 | main () | |
6378 | { | |
6379 | int i; | |
6380 | for (i = 0; i < 256; i++) | |
6381 | if (XOR (islower (i), ISLOWER (i)) | |
6382 | || toupper (i) != TOUPPER (i)) | |
5213506e RW |
6383 | return 2; |
6384 | return 0; | |
4f4e53dd PB |
6385 | } |
6386 | _ACEOF | |
0e1a989c | 6387 | if ac_fn_c_try_run "$LINENO"; then : |
4f4e53dd | 6388 | |
5213506e RW |
6389 | else |
6390 | ac_cv_header_stdc=no | |
4f4e53dd | 6391 | fi |
5213506e RW |
6392 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6393 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4f4e53dd | 6394 | fi |
5213506e | 6395 | |
4f4e53dd PB |
6396 | fi |
6397 | fi | |
5213506e RW |
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
6399 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4f4e53dd PB |
6400 | if test $ac_cv_header_stdc = yes; then |
6401 | ||
5213506e | 6402 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
4f4e53dd PB |
6403 | |
6404 | fi | |
6405 | ||
6406 | ||
5213506e RW |
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
6408 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
22e05272 | 6409 | if ${am_cv_langinfo_codeset+:} false; then : |
5213506e | 6410 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6411 | else |
5213506e | 6412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6413 | /* end confdefs.h. */ |
6414 | #include <langinfo.h> | |
6415 | int | |
6416 | main () | |
6417 | { | |
6418 | char* cs = nl_langinfo(CODESET); | |
6419 | ; | |
6420 | return 0; | |
6421 | } | |
6422 | _ACEOF | |
0e1a989c | 6423 | if ac_fn_c_try_link "$LINENO"; then : |
4f4e53dd PB |
6424 | am_cv_langinfo_codeset=yes |
6425 | else | |
5213506e | 6426 | am_cv_langinfo_codeset=no |
4f4e53dd | 6427 | fi |
5213506e RW |
6428 | rm -f core conftest.err conftest.$ac_objext \ |
6429 | conftest$ac_exeext conftest.$ac_ext | |
4f4e53dd PB |
6430 | |
6431 | fi | |
5213506e RW |
6432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
6433 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
4f4e53dd PB |
6434 | if test $am_cv_langinfo_codeset = yes; then |
6435 | ||
5213506e | 6436 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
4f4e53dd PB |
6437 | |
6438 | fi | |
6439 | ||
6440 | # If we haven't got the data from the intl directory, | |
6441 | # assume NLS is disabled. | |
6442 | USE_NLS=no | |
6443 | LIBINTL= | |
6444 | LIBINTL_DEP= | |
6445 | INCINTL= | |
6446 | XGETTEXT= | |
6447 | GMSGFMT= | |
6448 | POSUB= | |
f7288899 EC |
6449 | |
6450 | if test -f ../intl/config.intl; then | |
6451 | . ../intl/config.intl | |
4f4e53dd | 6452 | fi |
5213506e RW |
6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
6454 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
4f4e53dd | 6455 | if test x"$USE_NLS" != xyes; then |
5213506e RW |
6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6457 | $as_echo "no" >&6; } | |
4f4e53dd | 6458 | else |
5213506e RW |
6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6460 | $as_echo "yes" >&6; } | |
4f4e53dd | 6461 | |
5213506e | 6462 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
4f4e53dd PB |
6463 | |
6464 | ||
5213506e RW |
6465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
6466 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
4f4e53dd PB |
6467 | # Look for .po and .gmo files in the source directory. |
6468 | CATALOGS= | |
6469 | XLINGUAS= | |
6470 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
6471 | # If there aren't any .gmo files the shell will give us the | |
6472 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
6473 | # weeded out. | |
6474 | case "$cat" in *\**) | |
6475 | continue;; | |
6476 | esac | |
6477 | # The quadruple backslash is collapsed to a double backslash | |
6478 | # by the backticks, then collapsed again by the double quotes, | |
6479 | # leaving us with one backslash in the sed expression (right | |
6480 | # before the dot that mustn't act as a wildcard). | |
5c3c3683 DJ |
6481 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` |
6482 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
4f4e53dd PB |
6483 | # The user is allowed to set LINGUAS to a list of languages to |
6484 | # install catalogs for. If it's empty that means "all of them." | |
6485 | if test "x$LINGUAS" = x; then | |
6486 | CATALOGS="$CATALOGS $cat" | |
6487 | XLINGUAS="$XLINGUAS $lang" | |
6488 | else | |
6489 | case "$LINGUAS" in *$lang*) | |
6490 | CATALOGS="$CATALOGS $cat" | |
6491 | XLINGUAS="$XLINGUAS $lang" | |
6492 | ;; | |
6493 | esac | |
6494 | fi | |
6495 | done | |
6496 | LINGUAS="$XLINGUAS" | |
5213506e RW |
6497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
6498 | $as_echo "$LINGUAS" >&6; } | |
5c3c3683 DJ |
6499 | |
6500 | ||
6501 | DATADIRNAME=share | |
6502 | ||
6503 | INSTOBJEXT=.mo | |
6504 | ||
6505 | GENCAT=gencat | |
6506 | ||
6507 | CATOBJEXT=.gmo | |
6508 | ||
4f4e53dd PB |
6509 | fi |
6510 | ||
5213506e RW |
6511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5 |
6512 | $as_echo_n "checking for uchar... " >&6; } | |
22e05272 | 6513 | if ${gcc_cv_type_uchar+:} false; then : |
5213506e | 6514 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6515 | else |
5213506e | 6516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6517 | /* end confdefs.h. */ |
6518 | ||
f78ce0c2 | 6519 | #include <sys/types.h> |
4f4e53dd PB |
6520 | |
6521 | int | |
6522 | main () | |
6523 | { | |
6524 | if ((uchar *)0) return 0; | |
6525 | if (sizeof(uchar)) return 0; | |
6526 | ; | |
6527 | return 0; | |
6528 | } | |
6529 | _ACEOF | |
0e1a989c | 6530 | if ac_fn_c_try_compile "$LINENO"; then : |
4f4e53dd PB |
6531 | ac_cv_type_uchar=yes |
6532 | else | |
5213506e | 6533 | ac_cv_type_uchar=no |
4f4e53dd | 6534 | fi |
5213506e | 6535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4f4e53dd | 6536 | fi |
5213506e RW |
6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5 |
6538 | $as_echo "$gcc_cv_type_uchar" >&6; } | |
4f4e53dd PB |
6539 | if test $ac_cv_type_uchar = yes; then |
6540 | ||
5213506e | 6541 | $as_echo "#define HAVE_UCHAR 1" >>confdefs.h |
4f4e53dd PB |
6542 | |
6543 | fi | |
6544 | ||
5b6d595b RO |
6545 | # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different |
6546 | # iconv() prototype. | |
0823efed DN |
6547 | ac_ext=cpp |
6548 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6549 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6550 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6551 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6552 | ||
4f4e53dd PB |
6553 | |
6554 | if test "X$prefix" = "XNONE"; then | |
6555 | acl_final_prefix="$ac_default_prefix" | |
6556 | else | |
6557 | acl_final_prefix="$prefix" | |
6558 | fi | |
6559 | if test "X$exec_prefix" = "XNONE"; then | |
6560 | acl_final_exec_prefix='${prefix}' | |
6561 | else | |
6562 | acl_final_exec_prefix="$exec_prefix" | |
6563 | fi | |
6564 | acl_save_prefix="$prefix" | |
6565 | prefix="$acl_final_prefix" | |
6566 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
6567 | prefix="$acl_save_prefix" | |
6568 | ||
6569 | ||
5213506e RW |
6570 | # Check whether --with-gnu-ld was given. |
6571 | if test "${with_gnu_ld+set}" = set; then : | |
6572 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4f4e53dd PB |
6573 | else |
6574 | with_gnu_ld=no | |
5213506e RW |
6575 | fi |
6576 | ||
4f4e53dd PB |
6577 | # Prepare PATH_SEPARATOR. |
6578 | # The user is always right. | |
6579 | if test "${PATH_SEPARATOR+set}" != set; then | |
6580 | echo "#! /bin/sh" >conf$$.sh | |
6581 | echo "exit 0" >>conf$$.sh | |
6582 | chmod +x conf$$.sh | |
6583 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6584 | PATH_SEPARATOR=';' | |
6585 | else | |
6586 | PATH_SEPARATOR=: | |
6587 | fi | |
6588 | rm -f conf$$.sh | |
6589 | fi | |
6590 | ac_prog=ld | |
6591 | if test "$GCC" = yes; then | |
6592 | # Check if gcc -print-prog-name=ld gives a path. | |
5213506e RW |
6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
6594 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
4f4e53dd PB |
6595 | case $host in |
6596 | *-*-mingw*) | |
6597 | # gcc leaves a trailing carriage return which upsets mingw | |
6598 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6599 | *) | |
6600 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6601 | esac | |
6602 | case $ac_prog in | |
6603 | # Accept absolute paths. | |
6604 | [\\/]* | [A-Za-z]:[\\/]*) | |
6605 | re_direlt='/[^/][^/]*/\.\./' | |
6606 | # Canonicalize the path of ld | |
6607 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
6608 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
6609 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
6610 | done | |
6611 | test -z "$LD" && LD="$ac_prog" | |
6612 | ;; | |
6613 | "") | |
6614 | # If it fails, then pretend we aren't using GCC. | |
6615 | ac_prog=ld | |
6616 | ;; | |
6617 | *) | |
6618 | # If it is relative, then search for the first ld in PATH. | |
6619 | with_gnu_ld=unknown | |
6620 | ;; | |
6621 | esac | |
6622 | elif test "$with_gnu_ld" = yes; then | |
5213506e RW |
6623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
6624 | $as_echo_n "checking for GNU ld... " >&6; } | |
4f4e53dd | 6625 | else |
5213506e RW |
6626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
6627 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4f4e53dd | 6628 | fi |
22e05272 | 6629 | if ${acl_cv_path_LD+:} false; then : |
5213506e | 6630 | $as_echo_n "(cached) " >&6 |
4f4e53dd PB |
6631 | else |
6632 | if test -z "$LD"; then | |
6633 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
6634 | for ac_dir in $PATH; do | |
6635 | test -z "$ac_dir" && ac_dir=. | |
6636 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6637 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
6638 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6639 | # but apparently some GNU ld's only accept -v. | |
6640 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
88fa57d7 KC |
6641 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
6642 | test "$with_gnu_ld" != no && break | |
6643 | else | |
6644 | test "$with_gnu_ld" != yes && break | |
6645 | fi | |
4f4e53dd PB |
6646 | fi |
6647 | done | |
6648 | IFS="$ac_save_ifs" | |
6649 | else | |
6650 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
6651 | fi | |
6652 | fi | |
6653 | ||
6654 | LD="$acl_cv_path_LD" | |
6655 | if test -n "$LD"; then | |
5213506e RW |
6656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
6657 | $as_echo "$LD" >&6; } | |
4f4e53dd | 6658 | else |
5213506e RW |
6659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6660 | $as_echo "no" >&6; } | |
4f4e53dd | 6661 | fi |
22e05272 | 6662 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
5213506e RW |
6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6664 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 6665 | if ${acl_cv_prog_gnu_ld+:} false; then : |
5213506e | 6666 | $as_echo_n "(cached) " >&6 |
4f4e53dd PB |
6667 | else |
6668 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
88fa57d7 KC |
6669 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
6670 | acl_cv_prog_gnu_ld=yes | |
6671 | else | |
6672 | acl_cv_prog_gnu_ld=no | |
6673 | fi | |
4f4e53dd | 6674 | fi |
5213506e RW |
6675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
6676 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
4f4e53dd PB |
6677 | with_gnu_ld=$acl_cv_prog_gnu_ld |
6678 | ||
6679 | ||
6680 | ||
5213506e RW |
6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
6682 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
22e05272 | 6683 | if ${acl_cv_rpath+:} false; then : |
5213506e | 6684 | $as_echo_n "(cached) " >&6 |
4f4e53dd PB |
6685 | else |
6686 | ||
6687 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
6688 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
6689 | . ./conftest.sh | |
6690 | rm -f ./conftest.sh | |
6691 | acl_cv_rpath=done | |
6692 | ||
6693 | fi | |
5213506e RW |
6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
6695 | $as_echo "$acl_cv_rpath" >&6; } | |
4f4e53dd PB |
6696 | wl="$acl_cv_wl" |
6697 | libext="$acl_cv_libext" | |
6698 | shlibext="$acl_cv_shlibext" | |
6699 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
6700 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
6701 | hardcode_direct="$acl_cv_hardcode_direct" | |
6702 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
5213506e RW |
6703 | # Check whether --enable-rpath was given. |
6704 | if test "${enable_rpath+set}" = set; then : | |
6705 | enableval=$enable_rpath; : | |
4f4e53dd PB |
6706 | else |
6707 | enable_rpath=yes | |
5213506e RW |
6708 | fi |
6709 | ||
4f4e53dd PB |
6710 | |
6711 | ||
6712 | ||
6713 | ||
6714 | ||
6715 | ||
6716 | ||
6717 | use_additional=yes | |
6718 | ||
6719 | acl_save_prefix="$prefix" | |
6720 | prefix="$acl_final_prefix" | |
6721 | acl_save_exec_prefix="$exec_prefix" | |
6722 | exec_prefix="$acl_final_exec_prefix" | |
6723 | ||
6724 | eval additional_includedir=\"$includedir\" | |
6725 | eval additional_libdir=\"$libdir\" | |
6726 | ||
6727 | exec_prefix="$acl_save_exec_prefix" | |
6728 | prefix="$acl_save_prefix" | |
6729 | ||
6730 | ||
5213506e RW |
6731 | # Check whether --with-libiconv-prefix was given. |
6732 | if test "${with_libiconv_prefix+set}" = set; then : | |
6733 | withval=$with_libiconv_prefix; | |
4f4e53dd PB |
6734 | if test "X$withval" = "Xno"; then |
6735 | use_additional=no | |
6736 | else | |
6737 | if test "X$withval" = "X"; then | |
6738 | ||
6739 | acl_save_prefix="$prefix" | |
6740 | prefix="$acl_final_prefix" | |
6741 | acl_save_exec_prefix="$exec_prefix" | |
6742 | exec_prefix="$acl_final_exec_prefix" | |
6743 | ||
6744 | eval additional_includedir=\"$includedir\" | |
6745 | eval additional_libdir=\"$libdir\" | |
6746 | ||
6747 | exec_prefix="$acl_save_exec_prefix" | |
6748 | prefix="$acl_save_prefix" | |
6749 | ||
6750 | else | |
6751 | additional_includedir="$withval/include" | |
6752 | additional_libdir="$withval/lib" | |
6753 | fi | |
6754 | fi | |
6755 | ||
5213506e RW |
6756 | fi |
6757 | ||
e7c26e04 AB |
6758 | |
6759 | # Check whether --with-libiconv-type was given. | |
6760 | if test "${with_libiconv_type+set}" = set; then : | |
6761 | withval=$with_libiconv_type; with_libiconv_type=$withval | |
6762 | else | |
6763 | with_libiconv_type=auto | |
6764 | fi | |
6765 | ||
6766 | lib_type=`eval echo \$with_libiconv_type` | |
6767 | ||
4f4e53dd PB |
6768 | LIBICONV= |
6769 | LTLIBICONV= | |
6770 | INCICONV= | |
6771 | rpathdirs= | |
6772 | ltrpathdirs= | |
6773 | names_already_handled= | |
6774 | names_next_round='iconv ' | |
6775 | while test -n "$names_next_round"; do | |
6776 | names_this_round="$names_next_round" | |
6777 | names_next_round= | |
6778 | for name in $names_this_round; do | |
6779 | already_handled= | |
6780 | for n in $names_already_handled; do | |
6781 | if test "$n" = "$name"; then | |
6782 | already_handled=yes | |
6783 | break | |
6784 | fi | |
6785 | done | |
6786 | if test -z "$already_handled"; then | |
6787 | names_already_handled="$names_already_handled $name" | |
6788 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
6789 | eval value=\"\$HAVE_LIB$uppername\" | |
6790 | if test -n "$value"; then | |
6791 | if test "$value" = yes; then | |
6792 | eval value=\"\$LIB$uppername\" | |
6793 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
6794 | eval value=\"\$LTLIB$uppername\" | |
6795 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
6796 | else | |
6797 | : | |
6798 | fi | |
6799 | else | |
6800 | found_dir= | |
6801 | found_la= | |
6802 | found_so= | |
6803 | found_a= | |
6804 | if test $use_additional = yes; then | |
e7c26e04 | 6805 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then |
4f4e53dd PB |
6806 | found_dir="$additional_libdir" |
6807 | found_so="$additional_libdir/lib$name.$shlibext" | |
6808 | if test -f "$additional_libdir/lib$name.la"; then | |
6809 | found_la="$additional_libdir/lib$name.la" | |
6810 | fi | |
e7c26e04 | 6811 | elif test x$lib_type != xshared; then |
4f4e53dd PB |
6812 | if test -f "$additional_libdir/lib$name.$libext"; then |
6813 | found_dir="$additional_libdir" | |
6814 | found_a="$additional_libdir/lib$name.$libext" | |
6815 | if test -f "$additional_libdir/lib$name.la"; then | |
6816 | found_la="$additional_libdir/lib$name.la" | |
6817 | fi | |
6818 | fi | |
6819 | fi | |
6820 | fi | |
6821 | if test "X$found_dir" = "X"; then | |
6822 | for x in $LDFLAGS $LTLIBICONV; do | |
6823 | ||
6824 | acl_save_prefix="$prefix" | |
6825 | prefix="$acl_final_prefix" | |
6826 | acl_save_exec_prefix="$exec_prefix" | |
6827 | exec_prefix="$acl_final_exec_prefix" | |
6828 | eval x=\"$x\" | |
6829 | exec_prefix="$acl_save_exec_prefix" | |
6830 | prefix="$acl_save_prefix" | |
6831 | ||
6832 | case "$x" in | |
6833 | -L*) | |
6834 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
e7c26e04 | 6835 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then |
4f4e53dd PB |
6836 | found_dir="$dir" |
6837 | found_so="$dir/lib$name.$shlibext" | |
6838 | if test -f "$dir/lib$name.la"; then | |
6839 | found_la="$dir/lib$name.la" | |
6840 | fi | |
e7c26e04 | 6841 | elif test x$lib_type != xshared; then |
4f4e53dd PB |
6842 | if test -f "$dir/lib$name.$libext"; then |
6843 | found_dir="$dir" | |
6844 | found_a="$dir/lib$name.$libext" | |
6845 | if test -f "$dir/lib$name.la"; then | |
6846 | found_la="$dir/lib$name.la" | |
6847 | fi | |
6848 | fi | |
6849 | fi | |
6850 | ;; | |
6851 | esac | |
6852 | if test "X$found_dir" != "X"; then | |
6853 | break | |
6854 | fi | |
6855 | done | |
6856 | fi | |
6857 | if test "X$found_dir" != "X"; then | |
6858 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
6859 | if test "X$found_so" != "X"; then | |
6860 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
6861 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
6862 | else | |
6863 | haveit= | |
6864 | for x in $ltrpathdirs; do | |
6865 | if test "X$x" = "X$found_dir"; then | |
6866 | haveit=yes | |
6867 | break | |
6868 | fi | |
6869 | done | |
6870 | if test -z "$haveit"; then | |
6871 | ltrpathdirs="$ltrpathdirs $found_dir" | |
6872 | fi | |
6873 | if test "$hardcode_direct" = yes; then | |
6874 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
6875 | else | |
6876 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
6877 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
6878 | haveit= | |
6879 | for x in $rpathdirs; do | |
6880 | if test "X$x" = "X$found_dir"; then | |
6881 | haveit=yes | |
6882 | break | |
6883 | fi | |
6884 | done | |
6885 | if test -z "$haveit"; then | |
6886 | rpathdirs="$rpathdirs $found_dir" | |
6887 | fi | |
6888 | else | |
6889 | haveit= | |
6890 | for x in $LDFLAGS $LIBICONV; do | |
6891 | ||
6892 | acl_save_prefix="$prefix" | |
6893 | prefix="$acl_final_prefix" | |
6894 | acl_save_exec_prefix="$exec_prefix" | |
6895 | exec_prefix="$acl_final_exec_prefix" | |
6896 | eval x=\"$x\" | |
6897 | exec_prefix="$acl_save_exec_prefix" | |
6898 | prefix="$acl_save_prefix" | |
6899 | ||
6900 | if test "X$x" = "X-L$found_dir"; then | |
6901 | haveit=yes | |
6902 | break | |
6903 | fi | |
6904 | done | |
6905 | if test -z "$haveit"; then | |
6906 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
6907 | fi | |
6908 | if test "$hardcode_minus_L" != no; then | |
6909 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
6910 | else | |
6911 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
6912 | fi | |
6913 | fi | |
6914 | fi | |
6915 | fi | |
6916 | else | |
6917 | if test "X$found_a" != "X"; then | |
6918 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
6919 | else | |
6920 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
6921 | fi | |
6922 | fi | |
6923 | additional_includedir= | |
6924 | case "$found_dir" in | |
6925 | */lib | */lib/) | |
6926 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
6927 | additional_includedir="$basedir/include" | |
6928 | ;; | |
6929 | esac | |
6930 | if test "X$additional_includedir" != "X"; then | |
6931 | if test "X$additional_includedir" != "X/usr/include"; then | |
6932 | haveit= | |
6933 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
6934 | if test -n "$GCC"; then | |
6935 | case $host_os in | |
6936 | linux*) haveit=yes;; | |
6937 | esac | |
6938 | fi | |
6939 | fi | |
6940 | if test -z "$haveit"; then | |
6941 | for x in $CPPFLAGS $INCICONV; do | |
6942 | ||
6943 | acl_save_prefix="$prefix" | |
6944 | prefix="$acl_final_prefix" | |
6945 | acl_save_exec_prefix="$exec_prefix" | |
6946 | exec_prefix="$acl_final_exec_prefix" | |
6947 | eval x=\"$x\" | |
6948 | exec_prefix="$acl_save_exec_prefix" | |
6949 | prefix="$acl_save_prefix" | |
6950 | ||
6951 | if test "X$x" = "X-I$additional_includedir"; then | |
6952 | haveit=yes | |
6953 | break | |
6954 | fi | |
6955 | done | |
6956 | if test -z "$haveit"; then | |
6957 | if test -d "$additional_includedir"; then | |
6958 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
6959 | fi | |
6960 | fi | |
6961 | fi | |
6962 | fi | |
6963 | fi | |
6964 | if test -n "$found_la"; then | |
6965 | save_libdir="$libdir" | |
6966 | case "$found_la" in | |
6967 | */* | *\\*) . "$found_la" ;; | |
6968 | *) . "./$found_la" ;; | |
6969 | esac | |
6970 | libdir="$save_libdir" | |
6971 | for dep in $dependency_libs; do | |
6972 | case "$dep" in | |
6973 | -L*) | |
6974 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
6975 | if test "X$additional_libdir" != "X/usr/lib"; then | |
6976 | haveit= | |
6977 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
6978 | if test -n "$GCC"; then | |
6979 | case $host_os in | |
6980 | linux*) haveit=yes;; | |
6981 | esac | |
6982 | fi | |
6983 | fi | |
6984 | if test -z "$haveit"; then | |
6985 | haveit= | |
6986 | for x in $LDFLAGS $LIBICONV; do | |
6987 | ||
6988 | acl_save_prefix="$prefix" | |
6989 | prefix="$acl_final_prefix" | |
6990 | acl_save_exec_prefix="$exec_prefix" | |
6991 | exec_prefix="$acl_final_exec_prefix" | |
6992 | eval x=\"$x\" | |
6993 | exec_prefix="$acl_save_exec_prefix" | |
6994 | prefix="$acl_save_prefix" | |
6995 | ||
6996 | if test "X$x" = "X-L$additional_libdir"; then | |
6997 | haveit=yes | |
6998 | break | |
6999 | fi | |
7000 | done | |
7001 | if test -z "$haveit"; then | |
7002 | if test -d "$additional_libdir"; then | |
7003 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
7004 | fi | |
7005 | fi | |
7006 | haveit= | |
7007 | for x in $LDFLAGS $LTLIBICONV; do | |
7008 | ||
7009 | acl_save_prefix="$prefix" | |
7010 | prefix="$acl_final_prefix" | |
7011 | acl_save_exec_prefix="$exec_prefix" | |
7012 | exec_prefix="$acl_final_exec_prefix" | |
7013 | eval x=\"$x\" | |
7014 | exec_prefix="$acl_save_exec_prefix" | |
7015 | prefix="$acl_save_prefix" | |
7016 | ||
7017 | if test "X$x" = "X-L$additional_libdir"; then | |
7018 | haveit=yes | |
7019 | break | |
7020 | fi | |
7021 | done | |
7022 | if test -z "$haveit"; then | |
7023 | if test -d "$additional_libdir"; then | |
7024 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
7025 | fi | |
7026 | fi | |
7027 | fi | |
7028 | fi | |
7029 | ;; | |
7030 | -R*) | |
7031 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
7032 | if test "$enable_rpath" != no; then | |
7033 | haveit= | |
7034 | for x in $rpathdirs; do | |
7035 | if test "X$x" = "X$dir"; then | |
7036 | haveit=yes | |
7037 | break | |
7038 | fi | |
7039 | done | |
7040 | if test -z "$haveit"; then | |
7041 | rpathdirs="$rpathdirs $dir" | |
7042 | fi | |
7043 | haveit= | |
7044 | for x in $ltrpathdirs; do | |
7045 | if test "X$x" = "X$dir"; then | |
7046 | haveit=yes | |
7047 | break | |
7048 | fi | |
7049 | done | |
7050 | if test -z "$haveit"; then | |
7051 | ltrpathdirs="$ltrpathdirs $dir" | |
7052 | fi | |
7053 | fi | |
7054 | ;; | |
7055 | -l*) | |
7056 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
7057 | ;; | |
7058 | *.la) | |
7059 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
7060 | ;; | |
7061 | *) | |
7062 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
7063 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
7064 | ;; | |
7065 | esac | |
7066 | done | |
7067 | fi | |
7068 | else | |
e7c26e04 AB |
7069 | if x$lib_type = xauto || x$lib_type = xshared; then |
7070 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7071 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
7072 | else | |
7073 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" | |
7074 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" | |
7075 | fi | |
4f4e53dd PB |
7076 | fi |
7077 | fi | |
7078 | fi | |
7079 | done | |
7080 | done | |
7081 | if test "X$rpathdirs" != "X"; then | |
7082 | if test -n "$hardcode_libdir_separator"; then | |
7083 | alldirs= | |
7084 | for found_dir in $rpathdirs; do | |
7085 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
7086 | done | |
7087 | acl_save_libdir="$libdir" | |
7088 | libdir="$alldirs" | |
7089 | eval flag=\"$hardcode_libdir_flag_spec\" | |
7090 | libdir="$acl_save_libdir" | |
7091 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
7092 | else | |
7093 | for found_dir in $rpathdirs; do | |
7094 | acl_save_libdir="$libdir" | |
7095 | libdir="$found_dir" | |
7096 | eval flag=\"$hardcode_libdir_flag_spec\" | |
7097 | libdir="$acl_save_libdir" | |
7098 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
7099 | done | |
7100 | fi | |
7101 | fi | |
7102 | if test "X$ltrpathdirs" != "X"; then | |
7103 | for found_dir in $ltrpathdirs; do | |
7104 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
7105 | done | |
7106 | fi | |
7107 | ||
7108 | ||
5b6d595b RO |
7109 | |
7110 | ||
7111 | ||
7112 | ||
7113 | ||
5b6d595b RO |
7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
7115 | $as_echo_n "checking for iconv... " >&6; } | |
22e05272 | 7116 | if ${am_cv_func_iconv+:} false; then : |
5b6d595b RO |
7117 | $as_echo_n "(cached) " >&6 |
7118 | else | |
7119 | ||
7120 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
7121 | am_cv_lib_iconv=no | |
bf5372e7 YS |
7122 | am_save_CPPFLAGS="$CPPFLAGS" |
7123 | CPPFLAGS="$CPPFLAGS $INCICONV" | |
5b6d595b RO |
7124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7125 | /* end confdefs.h. */ | |
7126 | #include <stdlib.h> | |
7127 | #include <iconv.h> | |
7128 | int | |
7129 | main () | |
7130 | { | |
7131 | iconv_t cd = iconv_open("",""); | |
7132 | iconv(cd,NULL,NULL,NULL,NULL); | |
7133 | iconv_close(cd); | |
7134 | ; | |
7135 | return 0; | |
7136 | } | |
7137 | _ACEOF | |
7138 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7139 | am_cv_func_iconv=yes | |
7140 | fi | |
7141 | rm -f core conftest.err conftest.$ac_objext \ | |
7142 | conftest$ac_exeext conftest.$ac_ext | |
bf5372e7 YS |
7143 | CPPFLAGS="$am_save_CPPFLAGS" |
7144 | ||
7145 | if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then | |
7146 | for _libs in .libs _libs; do | |
7147 | am_save_CPPFLAGS="$CPPFLAGS" | |
7148 | am_save_LIBS="$LIBS" | |
7149 | CPPFLAGS="$CPPFLAGS -I../libiconv/include" | |
7150 | LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" | |
7151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7152 | /* end confdefs.h. */ | |
7153 | #include <stdlib.h> | |
7154 | #include <iconv.h> | |
7155 | int | |
7156 | main () | |
7157 | { | |
7158 | iconv_t cd = iconv_open("",""); | |
7159 | iconv(cd,NULL,NULL,NULL,NULL); | |
7160 | iconv_close(cd); | |
7161 | ; | |
7162 | return 0; | |
7163 | } | |
7164 | _ACEOF | |
7165 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7166 | INCICONV="-I../libiconv/include" | |
7167 | LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a | |
7168 | LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la | |
7169 | am_cv_lib_iconv=yes | |
7170 | am_cv_func_iconv=yes | |
7171 | fi | |
7172 | rm -f core conftest.err conftest.$ac_objext \ | |
7173 | conftest$ac_exeext conftest.$ac_ext | |
7174 | CPPFLAGS="$am_save_CPPFLAGS" | |
7175 | LIBS="$am_save_LIBS" | |
7176 | if test "$am_cv_func_iconv" = "yes"; then | |
7177 | break | |
7178 | fi | |
7179 | done | |
7180 | fi | |
7181 | ||
5b6d595b | 7182 | if test "$am_cv_func_iconv" != yes; then |
bf5372e7 | 7183 | am_save_CPPFLAGS="$CPPFLAGS" |
5b6d595b | 7184 | am_save_LIBS="$LIBS" |
e9f3803d | 7185 | CPPFLAGS="$CPPFLAGS $INCICONV" |
5b6d595b RO |
7186 | LIBS="$LIBS $LIBICONV" |
7187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7188 | /* end confdefs.h. */ | |
7189 | #include <stdlib.h> | |
7190 | #include <iconv.h> | |
7191 | int | |
7192 | main () | |
7193 | { | |
7194 | iconv_t cd = iconv_open("",""); | |
7195 | iconv(cd,NULL,NULL,NULL,NULL); | |
7196 | iconv_close(cd); | |
7197 | ; | |
7198 | return 0; | |
7199 | } | |
7200 | _ACEOF | |
7201 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7202 | am_cv_lib_iconv=yes | |
7203 | am_cv_func_iconv=yes | |
7204 | fi | |
7205 | rm -f core conftest.err conftest.$ac_objext \ | |
7206 | conftest$ac_exeext conftest.$ac_ext | |
bf5372e7 | 7207 | CPPFLAGS="$am_save_CPPFLAGS" |
5b6d595b RO |
7208 | LIBS="$am_save_LIBS" |
7209 | fi | |
7210 | ||
7211 | fi | |
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
7213 | $as_echo "$am_cv_func_iconv" >&6; } | |
7214 | if test "$am_cv_func_iconv" = yes; then | |
7215 | ||
7216 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
7217 | ||
7218 | fi | |
7219 | if test "$am_cv_lib_iconv" = yes; then | |
bf5372e7 YS |
7220 | |
7221 | for element in $INCICONV; do | |
7222 | haveit= | |
7223 | for x in $CPPFLAGS; do | |
7224 | ||
7225 | acl_save_prefix="$prefix" | |
7226 | prefix="$acl_final_prefix" | |
7227 | acl_save_exec_prefix="$exec_prefix" | |
7228 | exec_prefix="$acl_final_exec_prefix" | |
7229 | eval x=\"$x\" | |
7230 | exec_prefix="$acl_save_exec_prefix" | |
7231 | prefix="$acl_save_prefix" | |
7232 | ||
7233 | if test "X$x" = "X$element"; then | |
7234 | haveit=yes | |
7235 | break | |
7236 | fi | |
7237 | done | |
7238 | if test -z "$haveit"; then | |
7239 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
7240 | fi | |
7241 | done | |
7242 | ||
5b6d595b RO |
7243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
7244 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
7245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
7246 | $as_echo "$LIBICONV" >&6; } | |
7247 | else | |
5b6d595b RO |
7248 | LIBICONV= |
7249 | LTLIBICONV= | |
7250 | fi | |
7251 | ||
7252 | ||
7253 | ||
7254 | if test "$am_cv_func_iconv" = yes; then | |
7255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
7256 | $as_echo_n "checking for iconv declaration... " >&6; } | |
22e05272 | 7257 | if ${am_cv_proto_iconv+:} false; then : |
5b6d595b RO |
7258 | $as_echo_n "(cached) " >&6 |
7259 | else | |
7260 | ||
7261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7262 | /* end confdefs.h. */ | |
7263 | ||
7264 | #include <stdlib.h> | |
7265 | #include <iconv.h> | |
7266 | extern | |
7267 | #ifdef __cplusplus | |
7268 | "C" | |
7269 | #endif | |
7270 | #if defined(__STDC__) || defined(__cplusplus) | |
7271 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
7272 | #else | |
7273 | size_t iconv(); | |
7274 | #endif | |
7275 | ||
7276 | int | |
7277 | main () | |
7278 | { | |
7279 | ||
7280 | ; | |
7281 | return 0; | |
7282 | } | |
7283 | _ACEOF | |
7284 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7285 | am_cv_proto_iconv_arg1="" | |
7286 | else | |
7287 | am_cv_proto_iconv_arg1="const" | |
7288 | fi | |
7289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7290 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
7291 | fi | |
7292 | ||
7293 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
7295 | }$am_cv_proto_iconv" >&5 | |
7296 | $as_echo "${ac_t:- | |
7297 | }$am_cv_proto_iconv" >&6; } | |
7298 | ||
7299 | cat >>confdefs.h <<_ACEOF | |
7300 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
7301 | _ACEOF | |
7302 | ||
7303 | fi | |
7304 | ||
0823efed | 7305 | ac_ext=c |
5b6d595b RO |
7306 | ac_cpp='$CPP $CPPFLAGS' |
7307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7310 | ||
4f4e53dd | 7311 | |
078e3ffe | 7312 | # More defines and substitutions. |
39b8ce7f | 7313 | PACKAGE="$PACKAGE_TARNAME" |
078e3ffe PB |
7314 | |
7315 | cat >>confdefs.h <<_ACEOF | |
7316 | #define PACKAGE "$PACKAGE" | |
7317 | _ACEOF | |
7318 | ||
7319 | ||
4f4e53dd PB |
7320 | |
7321 | if test "x$enable_nls" != xno; then | |
078e3ffe PB |
7322 | USED_CATALOGS='$(CATALOGS)' |
7323 | else | |
7324 | USED_CATALOGS= | |
7325 | fi | |
7326 | ||
7327 | ||
5213506e RW |
7328 | # Check whether --enable-maintainer-mode was given. |
7329 | if test "${enable_maintainer_mode+set}" = set; then : | |
7330 | enableval=$enable_maintainer_mode; | |
4f4e53dd | 7331 | else |
078e3ffe | 7332 | enable_maintainer_mode=no |
5213506e RW |
7333 | fi |
7334 | ||
078e3ffe PB |
7335 | |
7336 | if test "x$enable_maintainer_mode" = xno; then | |
7337 | MAINT='#' | |
7338 | else | |
7339 | MAINT= | |
4f4e53dd PB |
7340 | fi |
7341 | ||
078e3ffe | 7342 | |
1a80db97 JJ |
7343 | # Enable expensive internal checks |
7344 | is_release= | |
7345 | if test -f $srcdir/../gcc/DEV-PHASE \ | |
7346 | && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then | |
7347 | is_release=yes | |
7348 | fi | |
7349 | ||
5213506e RW |
7350 | # Check whether --enable-checking was given. |
7351 | if test "${enable_checking+set}" = set; then : | |
1a80db97 JJ |
7352 | enableval=$enable_checking; ac_checking_flags="${enableval}" |
7353 | else | |
7354 | ||
7355 | # Determine the default checks. | |
7356 | if test x$is_release = x ; then | |
7357 | ac_checking_flags=yes | |
4f4e53dd | 7358 | else |
1a80db97 JJ |
7359 | ac_checking_flags=release |
7360 | fi | |
5213506e RW |
7361 | fi |
7362 | ||
1a80db97 JJ |
7363 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," |
7364 | for check in release $ac_checking_flags | |
7365 | do | |
7366 | case $check in | |
7367 | # these set all the flags to specific states | |
3549e181 JJ |
7368 | yes|all) ac_checking=1 ; ac_assert_checking=1 ; ac_valgrind_checking= ;; |
7369 | no|none) ac_checking= ; ac_assert_checking= ; ac_valgrind_checking= ;; | |
7370 | release) ac_checking= ; ac_assert_checking=1 ; ac_valgrind_checking= ;; | |
1a80db97 | 7371 | # these enable particular checks |
3549e181 | 7372 | assert) ac_assert_checking=1 ;; |
1a80db97 JJ |
7373 | misc) ac_checking=1 ;; |
7374 | valgrind) ac_valgrind_checking=1 ;; | |
7375 | # accept | |
7376 | *) ;; | |
7377 | esac | |
7378 | done | |
7379 | IFS="$ac_save_IFS" | |
4f4e53dd | 7380 | |
1a80db97 | 7381 | if test x$ac_checking != x ; then |
4f4e53dd | 7382 | |
a6c764d0 | 7383 | $as_echo "#define CHECKING_P 1" >>confdefs.h |
7ec491c0 MM |
7384 | |
7385 | else | |
7386 | $as_echo "#define CHECKING_P 0" >>confdefs.h | |
7387 | ||
4f4e53dd PB |
7388 | fi |
7389 | ||
3549e181 JJ |
7390 | if test x$ac_assert_checking != x ; then |
7391 | ||
7392 | $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h | |
7393 | ||
7394 | fi | |
7395 | ||
1a80db97 JJ |
7396 | if test x$ac_valgrind_checking != x ; then |
7397 | ||
7398 | $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h | |
7399 | ||
7400 | fi | |
7401 | ||
5dc99c46 SB |
7402 | # Check whether --enable-canonical-system-headers was given. |
7403 | if test "${enable_canonical_system_headers+set}" = set; then : | |
7404 | enableval=$enable_canonical_system_headers; | |
7405 | else | |
7406 | enable_canonical_system_headers=yes | |
7407 | fi | |
7408 | ||
7409 | if test $enable_canonical_system_headers != no; then | |
7410 | ||
7411 | $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h | |
7412 | ||
7413 | fi | |
7414 | ||
6f173e52 RH |
7415 | case $target in |
7416 | i?86-* | x86_64-*) | |
7417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7418 | /* end confdefs.h. */ | |
7419 | ||
7420 | int | |
7421 | main () | |
7422 | { | |
7423 | asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0)) | |
7424 | ; | |
7425 | return 0; | |
7426 | } | |
7427 | _ACEOF | |
0e1a989c | 7428 | if ac_fn_c_try_compile "$LINENO"; then : |
6f173e52 RH |
7429 | |
7430 | $as_echo "#define HAVE_SSE4 1" >>confdefs.h | |
7431 | ||
7432 | fi | |
7433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7434 | esac | |
7435 | ||
459260ec DM |
7436 | # Enable --enable-host-shared. |
7437 | # Check whether --enable-host-shared was given. | |
7438 | if test "${enable_host_shared+set}" = set; then : | |
7439 | enableval=$enable_host_shared; PICFLAG=-fPIC | |
7440 | else | |
7441 | PICFLAG= | |
7442 | fi | |
7443 | ||
7444 | ||
7445 | ||
ceb17928 ML |
7446 | # Check whether --enable-valgrind-annotations was given. |
7447 | if test "${enable_valgrind_annotations+set}" = set; then : | |
7448 | enableval=$enable_valgrind_annotations; | |
7449 | else | |
7450 | enable_valgrind_annotations=no | |
7451 | fi | |
7452 | ||
7453 | if test x$enable_valgrind_annotations != xno \ | |
7454 | || test x$ac_valgrind_checking != x; then | |
7455 | if (test $have_valgrind_h = no \ | |
7456 | && test $gcc_cv_header_memcheck_h = no \ | |
7457 | && test $gcc_cv_header_valgrind_memcheck_h = no); then | |
22e05272 | 7458 | as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5 |
ceb17928 ML |
7459 | fi |
7460 | ||
7461 | $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h | |
7462 | ||
7463 | fi | |
7464 | ||
078e3ffe PB |
7465 | # Output. |
7466 | ||
5213506e | 7467 | ac_config_headers="$ac_config_headers config.h:config.in" |
4f4e53dd | 7468 | |
5213506e | 7469 | ac_config_files="$ac_config_files Makefile" |
4f4e53dd PB |
7470 | |
7471 | cat >confcache <<\_ACEOF | |
7472 | # This file is a shell script that caches the results of configure | |
7473 | # tests run on this system so they can be shared between configure | |
7474 | # scripts and configure runs, see configure's option --config-cache. | |
7475 | # It is not useful on other systems. If it contains results you don't | |
7476 | # want to keep, you may remove or edit it. | |
7477 | # | |
7478 | # config.status only pays attention to the cache file if you give it | |
7479 | # the --recheck option to rerun configure. | |
7480 | # | |
7481 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7482 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7483 | # following values. | |
7484 | ||
7485 | _ACEOF | |
7486 | ||
7487 | # The following way of writing the cache mishandles newlines in values, | |
7488 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 7489 | # So, we kill variables containing newlines. |
4f4e53dd PB |
7490 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7491 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
7492 | ( |
7493 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7494 | eval ac_val=\$$ac_var | |
7495 | case $ac_val in #( | |
7496 | *${as_nl}*) | |
7497 | case $ac_var in #( | |
7498 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7499 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7500 | esac | |
7501 | case $ac_var in #( | |
7502 | _ | IFS | as_nl) ;; #( | |
7503 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7504 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7505 | esac ;; | |
7506 | esac | |
7507 | done | |
7508 | ||
4f4e53dd | 7509 | (set) 2>&1 | |
5213506e RW |
7510 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7511 | *${as_nl}ac_space=\ *) | |
7512 | # `set' does not quote correctly, so add quotes: double-quote | |
7513 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4f4e53dd PB |
7514 | sed -n \ |
7515 | "s/'/'\\\\''/g; | |
7516 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 7517 | ;; #( |
4f4e53dd PB |
7518 | *) |
7519 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 7520 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4f4e53dd | 7521 | ;; |
5213506e RW |
7522 | esac | |
7523 | sort | |
7524 | ) | | |
4f4e53dd | 7525 | sed ' |
5213506e | 7526 | /^ac_cv_env_/b end |
4f4e53dd | 7527 | t clear |
5213506e | 7528 | :clear |
4f4e53dd PB |
7529 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7530 | t end | |
5213506e RW |
7531 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7532 | :end' >>confcache | |
7533 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7534 | if test -w "$cache_file"; then | |
22e05272 | 7535 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
7537 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
7538 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
7539 | cat confcache >"$cache_file" | |
7540 | else | |
7541 | case $cache_file in #( | |
7542 | */* | ?:*) | |
7543 | mv -f confcache "$cache_file"$$ && | |
7544 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
7545 | *) | |
7546 | mv -f confcache "$cache_file" ;; | |
7547 | esac | |
7548 | fi | |
7549 | fi | |
4f4e53dd | 7550 | else |
5213506e RW |
7551 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7552 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4f4e53dd PB |
7553 | fi |
7554 | fi | |
7555 | rm -f confcache | |
7556 | ||
7557 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7558 | # Let make expand exec_prefix. | |
7559 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7560 | ||
4f4e53dd PB |
7561 | DEFS=-DHAVE_CONFIG_H |
7562 | ||
7563 | ac_libobjs= | |
7564 | ac_ltlibobjs= | |
22e05272 | 7565 | U= |
4f4e53dd PB |
7566 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7567 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
7568 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7569 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7570 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7571 | # will be set to the directory where LIBOBJS objects are built. | |
7572 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7573 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
4f4e53dd PB |
7574 | done |
7575 | LIBOBJS=$ac_libobjs | |
7576 | ||
7577 | LTLIBOBJS=$ac_ltlibobjs | |
7578 | ||
7579 | ||
4f4e53dd | 7580 | |
246a2fcb | 7581 | |
22e05272 | 7582 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 7583 | ac_write_fail=0 |
4f4e53dd PB |
7584 | ac_clean_files_save=$ac_clean_files |
7585 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
7586 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7587 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7588 | as_write_fail=0 | |
7589 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
4f4e53dd PB |
7590 | #! $SHELL |
7591 | # Generated by $as_me. | |
7592 | # Run this file to recreate the current configuration. | |
7593 | # Compiler output produced by configure, useful for debugging | |
7594 | # configure, is in config.log if it exists. | |
7595 | ||
7596 | debug=false | |
7597 | ac_cs_recheck=false | |
7598 | ac_cs_silent=false | |
4f4e53dd | 7599 | |
5213506e RW |
7600 | SHELL=\${CONFIG_SHELL-$SHELL} |
7601 | export SHELL | |
7602 | _ASEOF | |
7603 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7604 | ## -------------------- ## | |
7605 | ## M4sh Initialization. ## | |
7606 | ## -------------------- ## | |
7607 | ||
7608 | # Be more Bourne compatible | |
7609 | DUALCASE=1; export DUALCASE # for MKS sh | |
7610 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4f4e53dd PB |
7611 | emulate sh |
7612 | NULLCMD=: | |
5213506e | 7613 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4f4e53dd PB |
7614 | # is contrary to our usage. Disable this feature. |
7615 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
7616 | setopt NO_GLOB_SUBST |
7617 | else | |
7618 | case `(set -o) 2>/dev/null` in #( | |
7619 | *posix*) : | |
7620 | set -o posix ;; #( | |
7621 | *) : | |
7622 | ;; | |
7623 | esac | |
4f4e53dd | 7624 | fi |
4f4e53dd | 7625 | |
5213506e RW |
7626 | |
7627 | as_nl=' | |
7628 | ' | |
7629 | export as_nl | |
7630 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7631 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7632 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7633 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7634 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7635 | # but without wasting forks for bash or zsh. | |
7636 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7637 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7638 | as_echo='print -r --' | |
7639 | as_echo_n='print -rn --' | |
7640 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7641 | as_echo='printf %s\n' | |
7642 | as_echo_n='printf %s' | |
7643 | else | |
7644 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7645 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7646 | as_echo_n='/usr/ucb/echo -n' | |
7647 | else | |
7648 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7649 | as_echo_n_body='eval | |
7650 | arg=$1; | |
7651 | case $arg in #( | |
7652 | *"$as_nl"*) | |
7653 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7654 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7655 | esac; | |
7656 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7657 | ' | |
7658 | export as_echo_n_body | |
7659 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7660 | fi | |
7661 | export as_echo_body | |
7662 | as_echo='sh -c $as_echo_body as_echo' | |
7663 | fi | |
7664 | ||
7665 | # The user is always right. | |
7666 | if test "${PATH_SEPARATOR+set}" != set; then | |
7667 | PATH_SEPARATOR=: | |
7668 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7669 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7670 | PATH_SEPARATOR=';' | |
7671 | } | |
4f4e53dd PB |
7672 | fi |
7673 | ||
7674 | ||
5213506e RW |
7675 | # IFS |
7676 | # We need space, tab and new line, in precisely that order. Quoting is | |
7677 | # there to prevent editors from complaining about space-tab. | |
7678 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7679 | # splitting by setting IFS to empty value.) | |
7680 | IFS=" "" $as_nl" | |
7681 | ||
7682 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 7683 | as_myself= |
5213506e RW |
7684 | case $0 in #(( |
7685 | *[\\/]* ) as_myself=$0 ;; | |
7686 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7687 | for as_dir in $PATH | |
7688 | do | |
7689 | IFS=$as_save_IFS | |
7690 | test -z "$as_dir" && as_dir=. | |
7691 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7692 | done | |
7693 | IFS=$as_save_IFS | |
7694 | ||
7695 | ;; | |
7696 | esac | |
7697 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7698 | # in which case we are not to be found in the path. | |
7699 | if test "x$as_myself" = x; then | |
7700 | as_myself=$0 | |
7701 | fi | |
7702 | if test ! -f "$as_myself"; then | |
7703 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7704 | exit 1 | |
7705 | fi | |
7706 | ||
7707 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7708 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7709 | # suppresses any "Segmentation fault" message there. '((' could | |
7710 | # trigger a bug in pdksh 5.2.14. | |
7711 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7712 | do eval test x\${$as_var+set} = xset \ | |
7713 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7714 | done | |
4f4e53dd PB |
7715 | PS1='$ ' |
7716 | PS2='> ' | |
7717 | PS4='+ ' | |
7718 | ||
7719 | # NLS nuisances. | |
5213506e RW |
7720 | LC_ALL=C |
7721 | export LC_ALL | |
7722 | LANGUAGE=C | |
7723 | export LANGUAGE | |
7724 | ||
7725 | # CDPATH. | |
7726 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7727 | ||
7728 | ||
22e05272 JM |
7729 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
7730 | # ---------------------------------------- | |
5213506e RW |
7731 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
7732 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 7733 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
7734 | as_fn_error () |
7735 | { | |
22e05272 JM |
7736 | as_status=$1; test $as_status -eq 0 && as_status=1 |
7737 | if test "$4"; then | |
7738 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7739 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
4f4e53dd | 7740 | fi |
22e05272 | 7741 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
7742 | as_fn_exit $as_status |
7743 | } # as_fn_error | |
7744 | ||
7745 | ||
7746 | # as_fn_set_status STATUS | |
7747 | # ----------------------- | |
7748 | # Set $? to STATUS, without forking. | |
7749 | as_fn_set_status () | |
7750 | { | |
7751 | return $1 | |
7752 | } # as_fn_set_status | |
7753 | ||
7754 | # as_fn_exit STATUS | |
7755 | # ----------------- | |
7756 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7757 | as_fn_exit () | |
7758 | { | |
7759 | set +e | |
7760 | as_fn_set_status $1 | |
7761 | exit $1 | |
7762 | } # as_fn_exit | |
7763 | ||
7764 | # as_fn_unset VAR | |
7765 | # --------------- | |
7766 | # Portably unset VAR. | |
7767 | as_fn_unset () | |
7768 | { | |
7769 | { eval $1=; unset $1;} | |
7770 | } | |
7771 | as_unset=as_fn_unset | |
7772 | # as_fn_append VAR VALUE | |
7773 | # ---------------------- | |
7774 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7775 | # advantage of any shell optimizations that allow amortized linear growth over | |
7776 | # repeated appends, instead of the typical quadratic growth present in naive | |
7777 | # implementations. | |
7778 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7779 | eval 'as_fn_append () | |
7780 | { | |
7781 | eval $1+=\$2 | |
7782 | }' | |
7783 | else | |
7784 | as_fn_append () | |
7785 | { | |
7786 | eval $1=\$$1\$2 | |
7787 | } | |
7788 | fi # as_fn_append | |
7789 | ||
7790 | # as_fn_arith ARG... | |
7791 | # ------------------ | |
7792 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7793 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7794 | # must be portable across $(()) and expr. | |
7795 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7796 | eval 'as_fn_arith () | |
7797 | { | |
7798 | as_val=$(( $* )) | |
7799 | }' | |
7800 | else | |
7801 | as_fn_arith () | |
7802 | { | |
7803 | as_val=`expr "$@" || test $? -eq 1` | |
7804 | } | |
7805 | fi # as_fn_arith | |
4f4e53dd | 7806 | |
5213506e RW |
7807 | |
7808 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7809 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4f4e53dd PB |
7810 | as_expr=expr |
7811 | else | |
7812 | as_expr=false | |
7813 | fi | |
7814 | ||
5213506e | 7815 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4f4e53dd PB |
7816 | as_basename=basename |
7817 | else | |
7818 | as_basename=false | |
7819 | fi | |
7820 | ||
5213506e RW |
7821 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7822 | as_dirname=dirname | |
7823 | else | |
7824 | as_dirname=false | |
7825 | fi | |
4f4e53dd | 7826 | |
5213506e | 7827 | as_me=`$as_basename -- "$0" || |
4f4e53dd PB |
7828 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7829 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
7830 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7831 | $as_echo X/"$0" | | |
7832 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7833 | s//\1/ | |
7834 | q | |
7835 | } | |
7836 | /^X\/\(\/\/\)$/{ | |
7837 | s//\1/ | |
7838 | q | |
7839 | } | |
7840 | /^X\/\(\/\).*/{ | |
7841 | s//\1/ | |
7842 | q | |
7843 | } | |
7844 | s/.*/./; q'` | |
4f4e53dd | 7845 | |
4f4e53dd PB |
7846 | # Avoid depending upon Character Ranges. |
7847 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7848 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7849 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7850 | as_cr_digits='0123456789' | |
7851 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7852 | ||
5213506e RW |
7853 | ECHO_C= ECHO_N= ECHO_T= |
7854 | case `echo -n x` in #((((( | |
7855 | -n*) | |
7856 | case `echo 'xy\c'` in | |
7857 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7858 | xy) ECHO_C='\c';; | |
7859 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7860 | ECHO_T=' ';; | |
7861 | esac;; | |
7862 | *) | |
7863 | ECHO_N='-n';; | |
7864 | esac | |
4f4e53dd PB |
7865 | |
7866 | rm -f conf$$ conf$$.exe conf$$.file | |
5213506e RW |
7867 | if test -d conf$$.dir; then |
7868 | rm -f conf$$.dir/conf$$.file | |
7869 | else | |
7870 | rm -f conf$$.dir | |
7871 | mkdir conf$$.dir 2>/dev/null | |
7872 | fi | |
7873 | if (echo >conf$$.file) 2>/dev/null; then | |
7874 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4f4e53dd | 7875 | as_ln_s='ln -s' |
5213506e RW |
7876 | # ... but there are two gotchas: |
7877 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7878 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 7879 | # In both cases, we have to default to `cp -pR'. |
5213506e | 7880 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 7881 | as_ln_s='cp -pR' |
5213506e RW |
7882 | elif ln conf$$.file conf$$ 2>/dev/null; then |
7883 | as_ln_s=ln | |
7884 | else | |
22e05272 | 7885 | as_ln_s='cp -pR' |
4f4e53dd | 7886 | fi |
4f4e53dd | 7887 | else |
22e05272 | 7888 | as_ln_s='cp -pR' |
4f4e53dd | 7889 | fi |
5213506e RW |
7890 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7891 | rmdir conf$$.dir 2>/dev/null | |
7892 | ||
7893 | ||
7894 | # as_fn_mkdir_p | |
7895 | # ------------- | |
7896 | # Create "$as_dir" as a directory, including parents if necessary. | |
7897 | as_fn_mkdir_p () | |
7898 | { | |
7899 | ||
7900 | case $as_dir in #( | |
7901 | -*) as_dir=./$as_dir;; | |
7902 | esac | |
7903 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7904 | as_dirs= | |
7905 | while :; do | |
7906 | case $as_dir in #( | |
7907 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7908 | *) as_qdir=$as_dir;; | |
7909 | esac | |
7910 | as_dirs="'$as_qdir' $as_dirs" | |
7911 | as_dir=`$as_dirname -- "$as_dir" || | |
7912 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7913 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7914 | X"$as_dir" : 'X\(//\)$' \| \ | |
7915 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7916 | $as_echo X"$as_dir" | | |
7917 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7918 | s//\1/ | |
7919 | q | |
7920 | } | |
7921 | /^X\(\/\/\)[^/].*/{ | |
7922 | s//\1/ | |
7923 | q | |
7924 | } | |
7925 | /^X\(\/\/\)$/{ | |
7926 | s//\1/ | |
7927 | q | |
7928 | } | |
7929 | /^X\(\/\).*/{ | |
7930 | s//\1/ | |
7931 | q | |
7932 | } | |
7933 | s/.*/./; q'` | |
7934 | test -d "$as_dir" && break | |
7935 | done | |
7936 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 7937 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
4f4e53dd | 7938 | |
5213506e RW |
7939 | |
7940 | } # as_fn_mkdir_p | |
4f4e53dd | 7941 | if mkdir -p . 2>/dev/null; then |
5213506e | 7942 | as_mkdir_p='mkdir -p "$as_dir"' |
4f4e53dd PB |
7943 | else |
7944 | test -d ./-p && rmdir ./-p | |
7945 | as_mkdir_p=false | |
7946 | fi | |
7947 | ||
22e05272 JM |
7948 | |
7949 | # as_fn_executable_p FILE | |
7950 | # ----------------------- | |
7951 | # Test if FILE is an executable regular file. | |
7952 | as_fn_executable_p () | |
7953 | { | |
7954 | test -f "$1" && test -x "$1" | |
7955 | } # as_fn_executable_p | |
7956 | as_test_x='test -x' | |
7957 | as_executable_p=as_fn_executable_p | |
4f4e53dd PB |
7958 | |
7959 | # Sed expression to map a string onto a valid CPP name. | |
7960 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7961 | ||
7962 | # Sed expression to map a string onto a valid variable name. | |
7963 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7964 | ||
7965 | ||
4f4e53dd | 7966 | exec 6>&1 |
5213506e RW |
7967 | ## ----------------------------------- ## |
7968 | ## Main body of $CONFIG_STATUS script. ## | |
7969 | ## ----------------------------------- ## | |
7970 | _ASEOF | |
7971 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
4f4e53dd | 7972 | |
5213506e RW |
7973 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7974 | # Save the log message, to keep $0 and so on meaningful, and to | |
4f4e53dd | 7975 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
7976 | # values after options handling. |
7977 | ac_log=" | |
4f4e53dd | 7978 | This file was extended by cpplib $as_me , which was |
22e05272 | 7979 | generated by GNU Autoconf 2.69. Invocation command line was |
4f4e53dd PB |
7980 | |
7981 | CONFIG_FILES = $CONFIG_FILES | |
7982 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7983 | CONFIG_LINKS = $CONFIG_LINKS | |
7984 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7985 | $ $0 $@ | |
7986 | ||
5213506e RW |
7987 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7988 | " | |
7989 | ||
4f4e53dd PB |
7990 | _ACEOF |
7991 | ||
5213506e RW |
7992 | case $ac_config_files in *" |
7993 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7994 | esac | |
4f4e53dd | 7995 | |
5213506e RW |
7996 | case $ac_config_headers in *" |
7997 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7998 | esac | |
4f4e53dd | 7999 | |
4f4e53dd | 8000 | |
5213506e RW |
8001 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8002 | # Files that config.status was made for. | |
8003 | config_files="$ac_config_files" | |
8004 | config_headers="$ac_config_headers" | |
8005 | config_commands="$ac_config_commands" | |
4f4e53dd | 8006 | |
5213506e | 8007 | _ACEOF |
4f4e53dd | 8008 | |
5213506e | 8009 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4f4e53dd | 8010 | ac_cs_usage="\ |
5213506e RW |
8011 | \`$as_me' instantiates files and other configuration actions |
8012 | from templates according to the current configuration. Unless the files | |
8013 | and actions are specified as TAGs, all are instantiated by default. | |
4f4e53dd | 8014 | |
5213506e | 8015 | Usage: $0 [OPTION]... [TAG]... |
4f4e53dd PB |
8016 | |
8017 | -h, --help print this help, then exit | |
5213506e | 8018 | -V, --version print version number and configuration settings, then exit |
22e05272 | 8019 | --config print configuration, then exit |
5213506e RW |
8020 | -q, --quiet, --silent |
8021 | do not print progress messages | |
4f4e53dd PB |
8022 | -d, --debug don't remove temporary files |
8023 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
8024 | --file=FILE[:TEMPLATE] |
8025 | instantiate the configuration file FILE | |
8026 | --header=FILE[:TEMPLATE] | |
8027 | instantiate the configuration header FILE | |
4f4e53dd PB |
8028 | |
8029 | Configuration files: | |
8030 | $config_files | |
8031 | ||
8032 | Configuration headers: | |
8033 | $config_headers | |
8034 | ||
f610dd5f ZW |
8035 | Configuration commands: |
8036 | $config_commands | |
8037 | ||
5213506e | 8038 | Report bugs to <gcc-bugs@gcc.gnu.org>." |
4f4e53dd | 8039 | |
5213506e RW |
8040 | _ACEOF |
8041 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 8042 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
4f4e53dd PB |
8043 | ac_cs_version="\\ |
8044 | cpplib config.status | |
22e05272 JM |
8045 | configured by $0, generated by GNU Autoconf 2.69, |
8046 | with options \\"\$ac_cs_config\\" | |
4f4e53dd | 8047 | |
22e05272 | 8048 | Copyright (C) 2012 Free Software Foundation, Inc. |
4f4e53dd PB |
8049 | This config.status script is free software; the Free Software Foundation |
8050 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
8051 | |
8052 | ac_pwd='$ac_pwd' | |
8053 | srcdir='$srcdir' | |
8054 | INSTALL='$INSTALL' | |
8055 | test -n "\$AWK" || AWK=awk | |
4f4e53dd PB |
8056 | _ACEOF |
8057 | ||
5213506e RW |
8058 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8059 | # The default lists apply if the user does not specify any file. | |
4f4e53dd PB |
8060 | ac_need_defaults=: |
8061 | while test $# != 0 | |
8062 | do | |
8063 | case $1 in | |
22e05272 | 8064 | --*=?*) |
5213506e RW |
8065 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8066 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
4f4e53dd PB |
8067 | ac_shift=: |
8068 | ;; | |
22e05272 JM |
8069 | --*=) |
8070 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
8071 | ac_optarg= | |
8072 | ac_shift=: | |
8073 | ;; | |
5213506e | 8074 | *) |
4f4e53dd PB |
8075 | ac_option=$1 |
8076 | ac_optarg=$2 | |
8077 | ac_shift=shift | |
8078 | ;; | |
4f4e53dd PB |
8079 | esac |
8080 | ||
8081 | case $ac_option in | |
8082 | # Handling of the options. | |
4f4e53dd PB |
8083 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8084 | ac_cs_recheck=: ;; | |
5213506e RW |
8085 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8086 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
8087 | --config | --confi | --conf | --con | --co | --c ) |
8088 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 8089 | --debug | --debu | --deb | --de | --d | -d ) |
4f4e53dd PB |
8090 | debug=: ;; |
8091 | --file | --fil | --fi | --f ) | |
8092 | $ac_shift | |
5213506e RW |
8093 | case $ac_optarg in |
8094 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 8095 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
8096 | esac |
8097 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
4f4e53dd PB |
8098 | ac_need_defaults=false;; |
8099 | --header | --heade | --head | --hea ) | |
8100 | $ac_shift | |
5213506e RW |
8101 | case $ac_optarg in |
8102 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8103 | esac | |
8104 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
4f4e53dd | 8105 | ac_need_defaults=false;; |
5213506e RW |
8106 | --he | --h) |
8107 | # Conflict between --help and --header | |
22e05272 | 8108 | as_fn_error $? "ambiguous option: \`$1' |
5213506e RW |
8109 | Try \`$0 --help' for more information.";; |
8110 | --help | --hel | -h ) | |
8111 | $as_echo "$ac_cs_usage"; exit ;; | |
4f4e53dd PB |
8112 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8113 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8114 | ac_cs_silent=: ;; | |
8115 | ||
8116 | # This is an error. | |
22e05272 | 8117 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 8118 | Try \`$0 --help' for more information." ;; |
4f4e53dd | 8119 | |
5213506e RW |
8120 | *) as_fn_append ac_config_targets " $1" |
8121 | ac_need_defaults=false ;; | |
4f4e53dd PB |
8122 | |
8123 | esac | |
8124 | shift | |
8125 | done | |
8126 | ||
8127 | ac_configure_extra_args= | |
8128 | ||
8129 | if $ac_cs_silent; then | |
8130 | exec 6>/dev/null | |
8131 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8132 | fi | |
8133 | ||
8134 | _ACEOF | |
5213506e | 8135 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4f4e53dd | 8136 | if \$ac_cs_recheck; then |
22e05272 | 8137 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
8138 | shift |
8139 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8140 | CONFIG_SHELL='$SHELL' | |
8141 | export CONFIG_SHELL | |
8142 | exec "\$@" | |
4f4e53dd PB |
8143 | fi |
8144 | ||
8145 | _ACEOF | |
5213506e RW |
8146 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8147 | exec 5>>config.log | |
8148 | { | |
8149 | echo | |
8150 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8151 | ## Running $as_me. ## | |
8152 | _ASBOX | |
8153 | $as_echo "$ac_log" | |
8154 | } >&5 | |
4f4e53dd | 8155 | |
5213506e RW |
8156 | _ACEOF |
8157 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f610dd5f | 8158 | # |
5213506e | 8159 | # INIT-COMMANDS |
f610dd5f | 8160 | # |
024abeb3 | 8161 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR |
4f4e53dd | 8162 | |
f610dd5f | 8163 | _ACEOF |
4f4e53dd | 8164 | |
5213506e | 8165 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4f4e53dd | 8166 | |
5213506e | 8167 | # Handling of arguments. |
4f4e53dd PB |
8168 | for ac_config_target in $ac_config_targets |
8169 | do | |
5213506e RW |
8170 | case $ac_config_target in |
8171 | "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; | |
8172 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
8173 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8174 | ||
22e05272 | 8175 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
4f4e53dd PB |
8176 | esac |
8177 | done | |
8178 | ||
5213506e | 8179 | |
4f4e53dd PB |
8180 | # If the user did not use the arguments to specify the items to instantiate, |
8181 | # then the envvar interface is used. Set only those that are not. | |
8182 | # We use the long form for the default assignment because of an extremely | |
8183 | # bizarre bug on SunOS 4.1.3. | |
8184 | if $ac_need_defaults; then | |
8185 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8186 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
f610dd5f | 8187 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
4f4e53dd PB |
8188 | fi |
8189 | ||
8190 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 8191 | # simply because there is no reason against having it here, and in addition, |
4f4e53dd | 8192 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
8193 | # Hook for its removal unless debugging. |
8194 | # Note that there is a small window in which the directory will not be cleaned: | |
8195 | # after its creation but before its name has been assigned to `$tmp'. | |
4f4e53dd PB |
8196 | $debug || |
8197 | { | |
22e05272 | 8198 | tmp= ac_tmp= |
5213506e | 8199 | trap 'exit_status=$? |
22e05272 JM |
8200 | : "${ac_tmp:=$tmp}" |
8201 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
8202 | ' 0 |
8203 | trap 'as_fn_exit 1' 1 2 13 15 | |
4f4e53dd | 8204 | } |
4f4e53dd PB |
8205 | # Create a (secure) tmp directory for tmp files. |
8206 | ||
8207 | { | |
5213506e | 8208 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 8209 | test -d "$tmp" |
4f4e53dd PB |
8210 | } || |
8211 | { | |
5213506e RW |
8212 | tmp=./conf$$-$RANDOM |
8213 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
8214 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
8215 | ac_tmp=$tmp | |
5213506e RW |
8216 | |
8217 | # Set up the scripts for CONFIG_FILES section. | |
8218 | # No need to generate them if there are no CONFIG_FILES. | |
8219 | # This happens for instance with `./config.status config.h'. | |
8220 | if test -n "$CONFIG_FILES"; then | |
8221 | ||
8222 | ||
8223 | ac_cr=`echo X | tr X '\015'` | |
8224 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8225 | # But we know of no other shell where ac_cr would be empty at this | |
8226 | # point, so we can use a bashism as a fallback. | |
8227 | if test "x$ac_cr" = x; then | |
8228 | eval ac_cr=\$\'\\r\' | |
8229 | fi | |
8230 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8231 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 8232 | ac_cs_awk_cr='\\r' |
5213506e RW |
8233 | else |
8234 | ac_cs_awk_cr=$ac_cr | |
8235 | fi | |
8236 | ||
22e05272 | 8237 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
8238 | _ACEOF |
8239 | ||
8240 | ||
8241 | { | |
8242 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8243 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8244 | echo "_ACEOF" | |
8245 | } >conf$$subs.sh || | |
22e05272 JM |
8246 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8247 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
8248 | ac_delim='%!_!# ' |
8249 | for ac_last_try in false false false false false :; do | |
8250 | . ./conf$$subs.sh || | |
22e05272 | 8251 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
8252 | |
8253 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8254 | if test $ac_delim_n = $ac_delim_num; then | |
8255 | break | |
8256 | elif $ac_last_try; then | |
22e05272 | 8257 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
8258 | else |
8259 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8260 | fi | |
8261 | done | |
8262 | rm -f conf$$subs.sh | |
8263 | ||
8264 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 8265 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
8266 | _ACEOF |
8267 | sed -n ' | |
8268 | h | |
8269 | s/^/S["/; s/!.*/"]=/ | |
8270 | p | |
8271 | g | |
8272 | s/^[^!]*!// | |
8273 | :repl | |
8274 | t repl | |
8275 | s/'"$ac_delim"'$// | |
8276 | t delim | |
8277 | :nl | |
8278 | h | |
22e05272 | 8279 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
8280 | t more1 |
8281 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8282 | p | |
8283 | n | |
8284 | b repl | |
8285 | :more1 | |
8286 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8287 | p | |
8288 | g | |
8289 | s/.\{148\}// | |
8290 | t nl | |
8291 | :delim | |
8292 | h | |
22e05272 | 8293 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
8294 | t more2 |
8295 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8296 | p | |
8297 | b | |
8298 | :more2 | |
8299 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8300 | p | |
8301 | g | |
8302 | s/.\{148\}// | |
8303 | t delim | |
8304 | ' <conf$$subs.awk | sed ' | |
8305 | /^[^""]/{ | |
8306 | N | |
8307 | s/\n// | |
8308 | } | |
8309 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8310 | rm -f conf$$subs.awk | |
8311 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8312 | _ACAWK | |
22e05272 | 8313 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
8314 | for (key in S) S_is_set[key] = 1 |
8315 | FS = "\a" | |
8316 | ||
8317 | } | |
4f4e53dd | 8318 | { |
5213506e RW |
8319 | line = $ 0 |
8320 | nfields = split(line, field, "@") | |
8321 | substed = 0 | |
8322 | len = length(field[1]) | |
8323 | for (i = 2; i < nfields; i++) { | |
8324 | key = field[i] | |
8325 | keylen = length(key) | |
8326 | if (S_is_set[key]) { | |
8327 | value = S[key] | |
8328 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8329 | len += length(value) + length(field[++i]) | |
8330 | substed = 1 | |
8331 | } else | |
8332 | len += 1 + keylen | |
8333 | } | |
8334 | ||
8335 | print line | |
4f4e53dd PB |
8336 | } |
8337 | ||
5213506e RW |
8338 | _ACAWK |
8339 | _ACEOF | |
8340 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8341 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8342 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8343 | else | |
8344 | cat | |
22e05272 JM |
8345 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
8346 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
4f4e53dd PB |
8347 | _ACEOF |
8348 | ||
22e05272 JM |
8349 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
8350 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
8351 | # trailing colons and then remove the whole line if VPATH becomes empty |
8352 | # (actually we leave an empty line to preserve line numbers). | |
8353 | if test "x$srcdir" = x.; then | |
22e05272 JM |
8354 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
8355 | h | |
8356 | s/// | |
8357 | s/^/:/ | |
8358 | s/[ ]*$/:/ | |
8359 | s/:\$(srcdir):/:/g | |
8360 | s/:\${srcdir}:/:/g | |
8361 | s/:@srcdir@:/:/g | |
8362 | s/^:*// | |
5213506e | 8363 | s/:*$// |
22e05272 JM |
8364 | x |
8365 | s/\(=[ ]*\).*/\1/ | |
8366 | G | |
8367 | s/\n// | |
5213506e RW |
8368 | s/^[^=]*=[ ]*$// |
8369 | }' | |
8370 | fi | |
4f4e53dd | 8371 | |
5213506e RW |
8372 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8373 | fi # test -n "$CONFIG_FILES" | |
4f4e53dd | 8374 | |
5213506e RW |
8375 | # Set up the scripts for CONFIG_HEADERS section. |
8376 | # No need to generate them if there are no CONFIG_HEADERS. | |
8377 | # This happens for instance with `./config.status Makefile'. | |
8378 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 8379 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5213506e RW |
8380 | BEGIN { |
8381 | _ACEOF | |
8382 | ||
8383 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
8384 | # here-document in config.status, that substitutes the proper values into | |
8385 | # config.h.in to produce config.h. | |
8386 | ||
8387 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8388 | # handling of long lines. | |
8389 | ac_delim='%!_!# ' | |
8390 | for ac_last_try in false false :; do | |
22e05272 JM |
8391 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
8392 | if test -z "$ac_tt"; then | |
5213506e RW |
8393 | break |
8394 | elif $ac_last_try; then | |
22e05272 | 8395 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5213506e RW |
8396 | else |
8397 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4f4e53dd | 8398 | fi |
5213506e | 8399 | done |
4f4e53dd | 8400 | |
5213506e RW |
8401 | # For the awk script, D is an array of macro values keyed by name, |
8402 | # likewise P contains macro parameters if any. Preserve backslash | |
8403 | # newline sequences. | |
8404 | ||
8405 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8406 | sed -n ' | |
8407 | s/.\{148\}/&'"$ac_delim"'/g | |
8408 | t rset | |
8409 | :rset | |
8410 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8411 | t def | |
8412 | d | |
8413 | :def | |
8414 | s/\\$// | |
8415 | t bsnl | |
8416 | s/["\\]/\\&/g | |
8417 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8418 | D["\1"]=" \3"/p | |
8419 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8420 | d | |
8421 | :bsnl | |
8422 | s/["\\]/\\&/g | |
8423 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8424 | D["\1"]=" \3\\\\\\n"\\/p | |
8425 | t cont | |
8426 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8427 | t cont | |
8428 | d | |
8429 | :cont | |
8430 | n | |
8431 | s/.\{148\}/&'"$ac_delim"'/g | |
8432 | t clear | |
8433 | :clear | |
8434 | s/\\$// | |
8435 | t bsnlc | |
8436 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8437 | d | |
8438 | :bsnlc | |
8439 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8440 | b cont | |
8441 | ' <confdefs.h | sed ' | |
8442 | s/'"$ac_delim"'/"\\\ | |
8443 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8444 | ||
8445 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8446 | for (key in D) D_is_set[key] = 1 | |
8447 | FS = "\a" | |
8448 | } | |
8449 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8450 | line = \$ 0 | |
8451 | split(line, arg, " ") | |
8452 | if (arg[1] == "#") { | |
8453 | defundef = arg[2] | |
8454 | mac1 = arg[3] | |
8455 | } else { | |
8456 | defundef = substr(arg[1], 2) | |
8457 | mac1 = arg[2] | |
8458 | } | |
8459 | split(mac1, mac2, "(") #) | |
8460 | macro = mac2[1] | |
8461 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8462 | if (D_is_set[macro]) { | |
8463 | # Preserve the white space surrounding the "#". | |
8464 | print prefix "define", macro P[macro] D[macro] | |
8465 | next | |
8466 | } else { | |
8467 | # Replace #undef with comments. This is necessary, for example, | |
8468 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8469 | # on some systems where configure will not decide to define it. | |
8470 | if (defundef == "undef") { | |
8471 | print "/*", prefix defundef, macro, "*/" | |
8472 | next | |
8473 | } | |
8474 | } | |
8475 | } | |
8476 | { print } | |
8477 | _ACAWK | |
4f4e53dd | 8478 | _ACEOF |
5213506e | 8479 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22e05272 | 8480 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5213506e RW |
8481 | fi # test -n "$CONFIG_HEADERS" |
8482 | ||
8483 | ||
8484 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8485 | shift | |
8486 | for ac_tag | |
8487 | do | |
8488 | case $ac_tag in | |
8489 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8490 | esac | |
8491 | case $ac_mode$ac_tag in | |
8492 | :[FHL]*:*);; | |
22e05272 | 8493 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
8494 | :[FH]-) ac_tag=-:-;; |
8495 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8496 | esac | |
8497 | ac_save_IFS=$IFS | |
8498 | IFS=: | |
8499 | set x $ac_tag | |
8500 | IFS=$ac_save_IFS | |
8501 | shift | |
8502 | ac_file=$1 | |
8503 | shift | |
8504 | ||
8505 | case $ac_mode in | |
8506 | :L) ac_source=$1;; | |
8507 | :[FH]) | |
8508 | ac_file_inputs= | |
8509 | for ac_f | |
8510 | do | |
8511 | case $ac_f in | |
22e05272 | 8512 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
8513 | *) # Look for the file first in the build tree, then in the source tree |
8514 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8515 | # because $ac_f cannot contain `:'. | |
8516 | test -f "$ac_f" || | |
8517 | case $ac_f in | |
8518 | [\\/$]*) false;; | |
8519 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8520 | esac || | |
22e05272 | 8521 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
8522 | esac |
8523 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8524 | as_fn_append ac_file_inputs " '$ac_f'" | |
8525 | done | |
8526 | ||
8527 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8528 | # use $as_me), people would be surprised to read: | |
8529 | # /* config.h. Generated by config.status. */ | |
8530 | configure_input='Generated from '` | |
8531 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8532 | `' by configure.' | |
8533 | if test x"$ac_file" != x-; then | |
8534 | configure_input="$ac_file. $configure_input" | |
8535 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8536 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8537 | fi | |
8538 | # Neutralize special characters interpreted by sed in replacement strings. | |
8539 | case $configure_input in #( | |
8540 | *\&* | *\|* | *\\* ) | |
8541 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8542 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8543 | *) ac_sed_conf_input=$configure_input;; | |
8544 | esac | |
8545 | ||
8546 | case $ac_tag in | |
22e05272 JM |
8547 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
8548 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
8549 | esac |
8550 | ;; | |
4f4e53dd PB |
8551 | esac |
8552 | ||
5213506e | 8553 | ac_dir=`$as_dirname -- "$ac_file" || |
4f4e53dd PB |
8554 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8555 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8556 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
8557 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8558 | $as_echo X"$ac_file" | | |
8559 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8560 | s//\1/ | |
8561 | q | |
8562 | } | |
8563 | /^X\(\/\/\)[^/].*/{ | |
8564 | s//\1/ | |
8565 | q | |
8566 | } | |
8567 | /^X\(\/\/\)$/{ | |
8568 | s//\1/ | |
8569 | q | |
8570 | } | |
8571 | /^X\(\/\).*/{ | |
8572 | s//\1/ | |
8573 | q | |
8574 | } | |
8575 | s/.*/./; q'` | |
8576 | as_dir="$ac_dir"; as_fn_mkdir_p | |
4f4e53dd PB |
8577 | ac_builddir=. |
8578 | ||
5213506e RW |
8579 | case "$ac_dir" in |
8580 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8581 | *) | |
8582 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8583 | # A ".." for each directory in $ac_dir_suffix. | |
8584 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8585 | case $ac_top_builddir_sub in | |
8586 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8587 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8588 | esac ;; | |
8589 | esac | |
8590 | ac_abs_top_builddir=$ac_pwd | |
8591 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8592 | # for backward compatibility: | |
8593 | ac_top_builddir=$ac_top_build_prefix | |
4f4e53dd PB |
8594 | |
8595 | case $srcdir in | |
5213506e | 8596 | .) # We are building in place. |
4f4e53dd | 8597 | ac_srcdir=. |
5213506e RW |
8598 | ac_top_srcdir=$ac_top_builddir_sub |
8599 | ac_abs_top_srcdir=$ac_pwd ;; | |
8600 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4f4e53dd | 8601 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
8602 | ac_top_srcdir=$srcdir |
8603 | ac_abs_top_srcdir=$srcdir ;; | |
8604 | *) # Relative name. | |
8605 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8606 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8607 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4f4e53dd | 8608 | esac |
5213506e | 8609 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
4f4e53dd | 8610 | |
4f4e53dd | 8611 | |
5213506e RW |
8612 | case $ac_mode in |
8613 | :F) | |
8614 | # | |
8615 | # CONFIG_FILE | |
8616 | # | |
4f4e53dd PB |
8617 | |
8618 | case $INSTALL in | |
8619 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 8620 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
4f4e53dd | 8621 | esac |
5213506e | 8622 | _ACEOF |
4f4e53dd | 8623 | |
5213506e RW |
8624 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8625 | # If the template does not know about datarootdir, expand it. | |
8626 | # FIXME: This hack should be removed a few years after 2.60. | |
8627 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8628 | ac_sed_dataroot=' | |
8629 | /datarootdir/ { | |
8630 | p | |
8631 | q | |
8632 | } | |
8633 | /@datadir@/p | |
8634 | /@docdir@/p | |
8635 | /@infodir@/p | |
8636 | /@localedir@/p | |
8637 | /@mandir@/p' | |
8638 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8639 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8640 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8641 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8642 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8643 | _ACEOF | |
8644 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8645 | ac_datarootdir_hack=' | |
8646 | s&@datadir@&$datadir&g | |
8647 | s&@docdir@&$docdir&g | |
8648 | s&@infodir@&$infodir&g | |
8649 | s&@localedir@&$localedir&g | |
8650 | s&@mandir@&$mandir&g | |
8651 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8652 | esac | |
4f4e53dd | 8653 | _ACEOF |
5213506e RW |
8654 | |
8655 | # Neutralize VPATH when `$srcdir' = `.'. | |
8656 | # Shell code in configure.ac might set extrasub. | |
8657 | # FIXME: do we really want to maintain this feature? | |
8658 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8659 | ac_sed_extra="$ac_vpsub | |
4f4e53dd PB |
8660 | $extrasub |
8661 | _ACEOF | |
5213506e | 8662 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4f4e53dd PB |
8663 | :t |
8664 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
8665 | s|@configure_input@|$ac_sed_conf_input|;t t |
8666 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8667 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8668 | s&@srcdir@&$ac_srcdir&;t t | |
8669 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8670 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8671 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8672 | s&@builddir@&$ac_builddir&;t t | |
8673 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8674 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8675 | s&@INSTALL@&$ac_INSTALL&;t t | |
8676 | $ac_datarootdir_hack | |
8677 | " | |
22e05272 JM |
8678 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
8679 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
8680 | |
8681 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
8682 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
8683 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
8684 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 8686 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 8687 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 8688 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 8689 | |
22e05272 | 8690 | rm -f "$ac_tmp/stdin" |
4f4e53dd | 8691 | case $ac_file in |
22e05272 JM |
8692 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
8693 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 8694 | esac \ |
22e05272 | 8695 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e RW |
8696 | ;; |
8697 | :H) | |
8698 | # | |
8699 | # CONFIG_HEADER | |
8700 | # | |
4f4e53dd | 8701 | if test x"$ac_file" != x-; then |
5213506e RW |
8702 | { |
8703 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
8704 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
8705 | } >"$ac_tmp/config.h" \ | |
8706 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8707 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5213506e RW |
8708 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
8709 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
4f4e53dd | 8710 | else |
5213506e | 8711 | rm -f "$ac_file" |
22e05272 JM |
8712 | mv "$ac_tmp/config.h" "$ac_file" \ |
8713 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
4f4e53dd PB |
8714 | fi |
8715 | else | |
5213506e | 8716 | $as_echo "/* $configure_input */" \ |
22e05272 JM |
8717 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
8718 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
4f4e53dd | 8719 | fi |
5213506e | 8720 | ;; |
f610dd5f | 8721 | |
5213506e RW |
8722 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8723 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8724 | ;; | |
8725 | esac | |
f610dd5f | 8726 | |
f610dd5f | 8727 | |
5213506e RW |
8728 | case $ac_file$ac_mode in |
8729 | "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; | |
8730 | "config.h":H) echo timestamp > stamp-h1 ;; | |
f610dd5f | 8731 | |
f610dd5f | 8732 | esac |
5213506e | 8733 | done # for ac_tag |
4f4e53dd | 8734 | |
4f4e53dd | 8735 | |
5213506e | 8736 | as_fn_exit 0 |
4f4e53dd | 8737 | _ACEOF |
4f4e53dd PB |
8738 | ac_clean_files=$ac_clean_files_save |
8739 | ||
5213506e | 8740 | test $ac_write_fail = 0 || |
22e05272 | 8741 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 8742 | |
4f4e53dd PB |
8743 | |
8744 | # configure is writing to config.log, and then calls config.status. | |
8745 | # config.status does its own redirection, appending to config.log. | |
8746 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8747 | # by configure, so config.status won't be able to write to it; its | |
8748 | # output is simply discarded. So we exec the FD to /dev/null, | |
8749 | # effectively closing config.log, so it can be properly (re)opened and | |
8750 | # appended to by config.status. When coming back to configure, we | |
8751 | # need to make the FD available again. | |
8752 | if test "$no_create" != yes; then | |
8753 | ac_cs_success=: | |
8754 | ac_config_status_args= | |
8755 | test "$silent" = yes && | |
8756 | ac_config_status_args="$ac_config_status_args --quiet" | |
8757 | exec 5>/dev/null | |
8758 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8759 | exec 5>>config.log | |
8760 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8761 | # would make configure fail if this is the last instruction. | |
22e05272 | 8762 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
8763 | fi |
8764 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8766 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
4f4e53dd PB |
8767 | fi |
8768 |