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