]> git.ipfire.org Git - thirdparty/gcc.git/blob - libcpp/configure
Make TOPN counter dynamically allocated.
[thirdparty/gcc.git] / libcpp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cpplib .
4 #
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: gcc-bugs@gcc.gnu.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='cpplib'
582 PACKAGE_TARNAME='cpplib'
583 PACKAGE_VERSION=' '
584 PACKAGE_STRING='cpplib '
585 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
586 PACKAGE_URL=''
587
588 ac_unique_file="ucnid.h"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='LTLIBOBJS
626 CET_HOST_FLAGS
627 PICFLAG
628 MAINT
629 USED_CATALOGS
630 PACKAGE
631 LTLIBICONV
632 LIBICONV
633 CATOBJEXT
634 GENCAT
635 INSTOBJEXT
636 DATADIRNAME
637 CATALOGS
638 POSUB
639 GMSGFMT
640 XGETTEXT
641 INCINTL
642 LIBINTL_DEP
643 LIBINTL
644 USE_NLS
645 ALLOCA
646 LIBOBJS
647 CXXDEPMODE
648 DEPDIR
649 am__leading_dot
650 WERROR
651 noexception_flags
652 WARN_PEDANTIC
653 c_warn
654 warn
655 AUTOHEADER
656 AUTOCONF
657 ACLOCAL
658 EGREP
659 GREP
660 CPP
661 AR
662 RANLIB
663 ac_ct_CXX
664 CXXFLAGS
665 CXX
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
672 CC
673 INSTALL_DATA
674 INSTALL_SCRIPT
675 INSTALL_PROGRAM
676 SET_MAKE
677 target_os
678 target_vendor
679 target_cpu
680 target
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 target_alias
690 host_alias
691 build_alias
692 LIBS
693 ECHO_T
694 ECHO_N
695 ECHO_C
696 DEFS
697 mandir
698 localedir
699 libdir
700 psdir
701 pdfdir
702 dvidir
703 htmldir
704 infodir
705 docdir
706 oldincludedir
707 includedir
708 localstatedir
709 sharedstatedir
710 sysconfdir
711 datadir
712 datarootdir
713 libexecdir
714 sbindir
715 bindir
716 program_transform_name
717 prefix
718 exec_prefix
719 PACKAGE_URL
720 PACKAGE_BUGREPORT
721 PACKAGE_STRING
722 PACKAGE_VERSION
723 PACKAGE_TARNAME
724 PACKAGE_NAME
725 PATH_SEPARATOR
726 SHELL'
727 ac_subst_files=''
728 ac_user_opts='
729 enable_option_checking
730 enable_largefile
731 enable_werror_always
732 with_gnu_ld
733 enable_rpath
734 with_libiconv_prefix
735 with_libiconv_type
736 enable_maintainer_mode
737 enable_checking
738 enable_canonical_system_headers
739 enable_host_shared
740 enable_cet
741 enable_valgrind_annotations
742 '
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
746 CC
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
751 CXX
752 CXXFLAGS
753 CCC
754 CPP'
755
756
757 # Initialize some variables set by options.
758 ac_init_help=
759 ac_init_version=false
760 ac_unrecognized_opts=
761 ac_unrecognized_sep=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
778
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
804
805 ac_prev=
806 ac_dashdash=
807 for ac_option
808 do
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
814 fi
815
816 case $ac_option in
817 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *=) ac_optarg= ;;
819 *) ac_optarg=yes ;;
820 esac
821
822 # Accept the important Cygnus configure options, so we can diagnose typos.
823
824 case $ac_dashdash$ac_option in
825 --)
826 ac_dashdash=yes ;;
827
828 -bindir | --bindir | --bindi | --bind | --bin | --bi)
829 ac_prev=bindir ;;
830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831 bindir=$ac_optarg ;;
832
833 -build | --build | --buil | --bui | --bu)
834 ac_prev=build_alias ;;
835 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836 build_alias=$ac_optarg ;;
837
838 -cache-file | --cache-file | --cache-fil | --cache-fi \
839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840 ac_prev=cache_file ;;
841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843 cache_file=$ac_optarg ;;
844
845 --config-cache | -C)
846 cache_file=config.cache ;;
847
848 -datadir | --datadir | --datadi | --datad)
849 ac_prev=datadir ;;
850 -datadir=* | --datadir=* | --datadi=* | --datad=*)
851 datadir=$ac_optarg ;;
852
853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854 | --dataroo | --dataro | --datar)
855 ac_prev=datarootdir ;;
856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858 datarootdir=$ac_optarg ;;
859
860 -disable-* | --disable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error $? "invalid feature name: $ac_useropt"
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
868 *"
869 "enable_$ac_useropt"
870 "*) ;;
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
873 esac
874 eval enable_$ac_useropt=no ;;
875
876 -docdir | --docdir | --docdi | --doc | --do)
877 ac_prev=docdir ;;
878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 docdir=$ac_optarg ;;
880
881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882 ac_prev=dvidir ;;
883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 dvidir=$ac_optarg ;;
885
886 -enable-* | --enable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=\$ac_optarg ;;
901
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
910
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
913 with_gas=yes ;;
914
915 -help | --help | --hel | --he | -h)
916 ac_init_help=long ;;
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
921
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
926
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928 ac_prev=htmldir ;;
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930 | --ht=*)
931 htmldir=$ac_optarg ;;
932
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
939
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
941 ac_prev=infodir ;;
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
944
945 -libdir | --libdir | --libdi | --libd)
946 ac_prev=libdir ;;
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
948 libdir=$ac_optarg ;;
949
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
956
957 -localedir | --localedir | --localedi | --localed | --locale)
958 ac_prev=localedir ;;
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
961
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
968
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970 ac_prev=mandir ;;
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972 mandir=$ac_optarg ;;
973
974 -nfp | --nfp | --nf)
975 # Obsolete; use --without-fp.
976 with_fp=no ;;
977
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
980 no_create=yes ;;
981
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 no_recursion=yes ;;
985
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
994
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996 ac_prev=prefix ;;
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998 prefix=$ac_optarg ;;
999
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1006
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1013
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1030
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032 ac_prev=pdfdir ;;
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1035
1036 -psdir | --psdir | --psdi | --psd | --ps)
1037 ac_prev=psdir ;;
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 psdir=$ac_optarg ;;
1040
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 silent=yes ;;
1044
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046 ac_prev=sbindir ;;
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048 | --sbi=* | --sb=*)
1049 sbindir=$ac_optarg ;;
1050
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1054 | --sha | --sh)
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059 | --sha=* | --sh=*)
1060 sharedstatedir=$ac_optarg ;;
1061
1062 -site | --site | --sit)
1063 ac_prev=site ;;
1064 -site=* | --site=* | --sit=*)
1065 site=$ac_optarg ;;
1066
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068 ac_prev=srcdir ;;
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070 srcdir=$ac_optarg ;;
1071
1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077 sysconfdir=$ac_optarg ;;
1078
1079 -target | --target | --targe | --targ | --tar | --ta | --t)
1080 ac_prev=target_alias ;;
1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082 target_alias=$ac_optarg ;;
1083
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085 verbose=yes ;;
1086
1087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
1089
1090 -with-* | --with-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid package name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1098 *"
1099 "with_$ac_useropt"
1100 "*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1104 eval with_$ac_useropt=\$ac_optarg ;;
1105
1106 -without-* | --without-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115 "with_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=no ;;
1121
1122 --x)
1123 # Obsolete; use --with-x.
1124 with_x=yes ;;
1125
1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127 | --x-incl | --x-inc | --x-in | --x-i)
1128 ac_prev=x_includes ;;
1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131 x_includes=$ac_optarg ;;
1132
1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135 ac_prev=x_libraries ;;
1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138 x_libraries=$ac_optarg ;;
1139
1140 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141 Try \`$0 --help' for more information"
1142 ;;
1143
1144 *=*)
1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 case $ac_envvar in #(
1148 '' | [0-9]* | *[!_$as_cr_alnum]* )
1149 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1150 esac
1151 eval $ac_envvar=\$ac_optarg
1152 export $ac_envvar ;;
1153
1154 *)
1155 # FIXME: should be removed in autoconf 3.0.
1156 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1160 ;;
1161
1162 esac
1163 done
1164
1165 if test -n "$ac_prev"; then
1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167 as_fn_error $? "missing argument to $ac_option"
1168 fi
1169
1170 if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in
1172 no) ;;
1173 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175 esac
1176 fi
1177
1178 # Check all directory arguments for consistency.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1183 do
1184 eval ac_val=\$$ac_var
1185 # Remove trailing slashes.
1186 case $ac_val in
1187 */ )
1188 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189 eval $ac_var=\$ac_val;;
1190 esac
1191 # Be sure to have absolute directory names.
1192 case $ac_val in
1193 [\\/$]* | ?:[\\/]* ) continue;;
1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195 esac
1196 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197 done
1198
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1202 build=$build_alias
1203 host=$host_alias
1204 target=$target_alias
1205
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 elif test "x$build_alias" != "x$host_alias"; then
1211 cross_compiling=yes
1212 fi
1213 fi
1214
1215 ac_tool_prefix=
1216 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217
1218 test "$silent" = yes && exec 6>/dev/null
1219
1220
1221 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222 ac_ls_di=`ls -di .` &&
1223 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224 as_fn_error $? "working directory cannot be determined"
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 as_fn_error $? "pwd does not report name of working directory"
1227
1228
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231 ac_srcdir_defaulted=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir=`$as_dirname -- "$as_myself" ||
1234 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$as_myself" : 'X\(//\)[^/]' \| \
1236 X"$as_myself" : 'X\(//\)$' \| \
1237 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238 $as_echo X"$as_myself" |
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\/\)[^/].*/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)$/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\).*/{
1252 s//\1/
1253 q
1254 }
1255 s/.*/./; q'`
1256 srcdir=$ac_confdir
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 srcdir=..
1259 fi
1260 else
1261 ac_srcdir_defaulted=no
1262 fi
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1266 fi
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 ac_abs_confdir=`(
1269 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1270 pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1287
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295 \`configure' configures cpplib to adapt to many kinds of systems.
1296
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302 Defaults for the options are specified in brackets.
1303
1304 Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking ...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1320
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1325
1326 For better control, use the options below.
1327
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1348 _ACEOF
1349
1350 cat <<\_ACEOF
1351
1352 System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 --target=TARGET configure for building compilers for TARGET [HOST]
1356 _ACEOF
1357 fi
1358
1359 if test -n "$ac_init_help"; then
1360 case $ac_init_help in
1361 short | recursive ) echo "Configuration of cpplib :";;
1362 esac
1363 cat <<\_ACEOF
1364
1365 Optional Features:
1366 --disable-option-checking ignore unrecognized --enable/--with options
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --disable-largefile omit support for large files
1370 --enable-werror-always enable -Werror despite compiler version
1371 --disable-rpath do not hardcode runtime library paths
1372 --enable-maintainer-mode enable rules only needed by maintainers
1373 --enable-checking[=LIST]
1374 enable expensive run-time checks. With LIST, enable
1375 only specific categories of checks. Categories are:
1376 yes,no,all,none,release. Flags are: misc,valgrind or
1377 other strings
1378 --enable-canonical-system-headers
1379 enable or disable system headers canonicalization
1380 --enable-host-shared build host code as shared libraries
1381 --enable-cet enable Intel CET in host libraries [default=auto]
1382 --enable-valgrind-annotations
1383 enable valgrind runtime interaction
1384
1385 Optional Packages:
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-gnu-ld assume the C compiler uses GNU ld default=no
1389 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1390 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1391 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1392
1393 Some influential environment variables:
1394 CC C compiler command
1395 CFLAGS C compiler flags
1396 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1397 nonstandard directory <lib dir>
1398 LIBS libraries to pass to the linker, e.g. -l<library>
1399 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1400 you have headers in a nonstandard directory <include dir>
1401 CXX C++ compiler command
1402 CXXFLAGS C++ compiler flags
1403 CPP C preprocessor
1404
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1407
1408 Report bugs to <gcc-bugs@gcc.gnu.org>.
1409 _ACEOF
1410 ac_status=$?
1411 fi
1412
1413 if test "$ac_init_help" = "recursive"; then
1414 # If there are subdirs, report their specific --help.
1415 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416 test -d "$ac_dir" ||
1417 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1418 continue
1419 ac_builddir=.
1420
1421 case "$ac_dir" in
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *)
1424 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430 esac ;;
1431 esac
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1436
1437 case $srcdir in
1438 .) # We are building in place.
1439 ac_srcdir=.
1440 ac_top_srcdir=$ac_top_builddir_sub
1441 ac_abs_top_srcdir=$ac_pwd ;;
1442 [\\/]* | ?:[\\/]* ) # Absolute name.
1443 ac_srcdir=$srcdir$ac_dir_suffix;
1444 ac_top_srcdir=$srcdir
1445 ac_abs_top_srcdir=$srcdir ;;
1446 *) # Relative name.
1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 esac
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452
1453 cd "$ac_dir" || { ac_status=$?; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1459 echo &&
1460 $SHELL "$ac_srcdir/configure" --help=recursive
1461 else
1462 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463 fi || ac_status=$?
1464 cd "$ac_pwd" || { ac_status=$?; break; }
1465 done
1466 fi
1467
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1470 cat <<\_ACEOF
1471 cpplib configure
1472 generated by GNU Autoconf 2.69
1473
1474 Copyright (C) 2012 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1477 _ACEOF
1478 exit
1479 fi
1480
1481 ## ------------------------ ##
1482 ## Autoconf initialization. ##
1483 ## ------------------------ ##
1484
1485 # ac_fn_c_try_compile LINENO
1486 # --------------------------
1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_c_try_compile ()
1489 {
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 rm -f conftest.$ac_objext
1492 if { { ac_try="$ac_compile"
1493 case "(($ac_try" in
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1496 esac
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_compile") 2>conftest.err
1500 ac_status=$?
1501 if test -s conftest.err; then
1502 grep -v '^ *+' conftest.err >conftest.er1
1503 cat conftest.er1 >&5
1504 mv -f conftest.er1 conftest.err
1505 fi
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; } && {
1508 test -z "$ac_c_werror_flag" ||
1509 test ! -s conftest.err
1510 } && test -s conftest.$ac_objext; then :
1511 ac_retval=0
1512 else
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1515
1516 ac_retval=1
1517 fi
1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 as_fn_set_status $ac_retval
1520
1521 } # ac_fn_c_try_compile
1522
1523 # ac_fn_cxx_try_compile LINENO
1524 # ----------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_cxx_try_compile ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_cxx_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555 fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559 } # ac_fn_cxx_try_compile
1560
1561 # ac_fn_c_try_cpp LINENO
1562 # ----------------------
1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_cpp ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_cpp conftest.$ac_ext"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } > conftest.i && {
1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 }; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592 fi
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_cpp
1597
1598 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1599 # -------------------------------------------------------
1600 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1601 # the include files in INCLUDES and setting the cache variable VAR
1602 # accordingly.
1603 ac_fn_c_check_header_mongrel ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if eval \${$3+:} false; then :
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 $as_echo_n "checking for $2... " >&6; }
1609 if eval \${$3+:} false; then :
1610 $as_echo_n "(cached) " >&6
1611 fi
1612 eval ac_res=\$$3
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614 $as_echo "$ac_res" >&6; }
1615 else
1616 # Is the header compilable?
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1618 $as_echo_n "checking $2 usability... " >&6; }
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1621 $4
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625 ac_header_compiler=yes
1626 else
1627 ac_header_compiler=no
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1631 $as_echo "$ac_header_compiler" >&6; }
1632
1633 # Is the header present?
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1635 $as_echo_n "checking $2 presence... " >&6; }
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_cpp "$LINENO"; then :
1641 ac_header_preproc=yes
1642 else
1643 ac_header_preproc=no
1644 fi
1645 rm -f conftest.err conftest.i conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1647 $as_echo "$ac_header_preproc" >&6; }
1648
1649 # So? What about this header?
1650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1651 yes:no: )
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1653 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 ;;
1657 no:yes:* )
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1659 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1661 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1663 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1665 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 ( $as_echo "## ----------------------------------- ##
1669 ## Report this to gcc-bugs@gcc.gnu.org ##
1670 ## ----------------------------------- ##"
1671 ) | sed "s/^/$as_me: WARNING: /" >&2
1672 ;;
1673 esac
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 eval "$3=\$ac_header_compiler"
1680 fi
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 fi
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687 } # ac_fn_c_check_header_mongrel
1688
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=$ac_status
1724 fi
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_run
1730
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750 else
1751 eval "$3=no"
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 fi
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760 } # ac_fn_c_check_header_compile
1761
1762 # ac_fn_c_try_link LINENO
1763 # -----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_link ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 test -x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797 fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1805
1806 } # ac_fn_c_try_link
1807
1808 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1809 # -------------------------------------------
1810 # Tests whether TYPE exists after having included INCLUDES, setting cache
1811 # variable VAR accordingly.
1812 ac_fn_c_check_type ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1819 else
1820 eval "$3=no"
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 $4
1824 int
1825 main ()
1826 {
1827 if (sizeof ($2))
1828 return 0;
1829 ;
1830 return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 $4
1837 int
1838 main ()
1839 {
1840 if (sizeof (($2)))
1841 return 0;
1842 ;
1843 return 0;
1844 }
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847
1848 else
1849 eval "$3=yes"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_type
1861
1862 # ac_fn_c_find_uintX_t LINENO BITS VAR
1863 # ------------------------------------
1864 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1865 # accordingly.
1866 ac_fn_c_find_uintX_t ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1870 $as_echo_n "checking for uint$2_t... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 eval "$3=no"
1875 # Order is important - never check a type that is potentially smaller
1876 # than half of the expected target width.
1877 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1878 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 $ac_includes_default
1882 int
1883 main ()
1884 {
1885 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1886 test_array [0] = 0;
1887 return test_array [0];
1888
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 case $ac_type in #(
1895 uint$2_t) :
1896 eval "$3=yes" ;; #(
1897 *) :
1898 eval "$3=\$ac_type" ;;
1899 esac
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 if eval test \"x\$"$3"\" = x"no"; then :
1903
1904 else
1905 break
1906 fi
1907 done
1908 fi
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_c_find_uintX_t
1915
1916 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917 # --------------------------------------------
1918 # Tries to find the compile-time value of EXPR in a program that includes
1919 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1920 # computed
1921 ac_fn_c_compute_int ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if test "$cross_compiling" = yes; then
1925 # Depending upon the size, compute the lo and hi bounds.
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 $4
1929 int
1930 main ()
1931 {
1932 static int test_array [1 - 2 * !(($2) >= 0)];
1933 test_array [0] = 0;
1934 return test_array [0];
1935
1936 ;
1937 return 0;
1938 }
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_lo=0 ac_mid=0
1942 while :; do
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 $4
1946 int
1947 main ()
1948 {
1949 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1950 test_array [0] = 0;
1951 return test_array [0];
1952
1953 ;
1954 return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_hi=$ac_mid; break
1959 else
1960 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1961 if test $ac_lo -le $ac_mid; then
1962 ac_lo= ac_hi=
1963 break
1964 fi
1965 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 done
1969 else
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 int
1974 main ()
1975 {
1976 static int test_array [1 - 2 * !(($2) < 0)];
1977 test_array [0] = 0;
1978 return test_array [0];
1979
1980 ;
1981 return 0;
1982 }
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 ac_hi=-1 ac_mid=-1
1986 while :; do
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 $4
1990 int
1991 main ()
1992 {
1993 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1994 test_array [0] = 0;
1995 return test_array [0];
1996
1997 ;
1998 return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_lo=$ac_mid; break
2003 else
2004 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2005 if test $ac_mid -le $ac_hi; then
2006 ac_lo= ac_hi=
2007 break
2008 fi
2009 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 done
2013 else
2014 ac_lo= ac_hi=
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 # Binary search between lo and hi bounds.
2020 while test "x$ac_lo" != "x$ac_hi"; do
2021 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $4
2025 int
2026 main ()
2027 {
2028 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029 test_array [0] = 0;
2030 return test_array [0];
2031
2032 ;
2033 return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 ac_hi=$ac_mid
2038 else
2039 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 done
2043 case $ac_lo in #((
2044 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2045 '') ac_retval=1 ;;
2046 esac
2047 else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2050 $4
2051 static long int longval () { return $2; }
2052 static unsigned long int ulongval () { return $2; }
2053 #include <stdio.h>
2054 #include <stdlib.h>
2055 int
2056 main ()
2057 {
2058
2059 FILE *f = fopen ("conftest.val", "w");
2060 if (! f)
2061 return 1;
2062 if (($2) < 0)
2063 {
2064 long int i = longval ();
2065 if (i != ($2))
2066 return 1;
2067 fprintf (f, "%ld", i);
2068 }
2069 else
2070 {
2071 unsigned long int i = ulongval ();
2072 if (i != ($2))
2073 return 1;
2074 fprintf (f, "%lu", i);
2075 }
2076 /* Do not output a trailing newline, as this causes \r\n confusion
2077 on some platforms. */
2078 return ferror (f) || fclose (f) != 0;
2079
2080 ;
2081 return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_run "$LINENO"; then :
2085 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2086 else
2087 ac_retval=1
2088 fi
2089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2090 conftest.$ac_objext conftest.beam conftest.$ac_ext
2091 rm -f conftest.val
2092
2093 fi
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 as_fn_set_status $ac_retval
2096
2097 } # ac_fn_c_compute_int
2098
2099 # ac_fn_c_check_func LINENO FUNC VAR
2100 # ----------------------------------
2101 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2102 ac_fn_c_check_func ()
2103 {
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106 $as_echo_n "checking for $2... " >&6; }
2107 if eval \${$3+:} false; then :
2108 $as_echo_n "(cached) " >&6
2109 else
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2114 #define $2 innocuous_$2
2115
2116 /* System header to define __stub macros and hopefully few prototypes,
2117 which can conflict with char $2 (); below.
2118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2119 <limits.h> exists even on freestanding compilers. */
2120
2121 #ifdef __STDC__
2122 # include <limits.h>
2123 #else
2124 # include <assert.h>
2125 #endif
2126
2127 #undef $2
2128
2129 /* Override any GCC internal prototype to avoid an error.
2130 Use char because int might match the return type of a GCC
2131 builtin and then its argument prototype would still apply. */
2132 #ifdef __cplusplus
2133 extern "C"
2134 #endif
2135 char $2 ();
2136 /* The GNU C library defines this for functions which it implements
2137 to always fail with ENOSYS. Some functions are actually named
2138 something starting with __ and the normal name is an alias. */
2139 #if defined __stub_$2 || defined __stub___$2
2140 choke me
2141 #endif
2142
2143 int
2144 main ()
2145 {
2146 return $2 ();
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_link "$LINENO"; then :
2152 eval "$3=yes"
2153 else
2154 eval "$3=no"
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext \
2157 conftest$ac_exeext conftest.$ac_ext
2158 fi
2159 eval ac_res=\$$3
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163
2164 } # ac_fn_c_check_func
2165
2166 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2167 # ---------------------------------------------
2168 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2169 # accordingly.
2170 ac_fn_c_check_decl ()
2171 {
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 as_decl_name=`echo $2|sed 's/ *(.*//'`
2174 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2176 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2177 if eval \${$3+:} false; then :
2178 $as_echo_n "(cached) " >&6
2179 else
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2182 $4
2183 int
2184 main ()
2185 {
2186 #ifndef $as_decl_name
2187 #ifdef __cplusplus
2188 (void) $as_decl_use;
2189 #else
2190 (void) $as_decl_name;
2191 #endif
2192 #endif
2193
2194 ;
2195 return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199 eval "$3=yes"
2200 else
2201 eval "$3=no"
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 fi
2205 eval ac_res=\$$3
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207 $as_echo "$ac_res" >&6; }
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209
2210 } # ac_fn_c_check_decl
2211
2212 # ac_fn_cxx_try_link LINENO
2213 # -------------------------
2214 # Try to link conftest.$ac_ext, and return whether this succeeded.
2215 ac_fn_cxx_try_link ()
2216 {
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 rm -f conftest.$ac_objext conftest$ac_exeext
2219 if { { ac_try="$ac_link"
2220 case "(($ac_try" in
2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2223 esac
2224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2225 $as_echo "$ac_try_echo"; } >&5
2226 (eval "$ac_link") 2>conftest.err
2227 ac_status=$?
2228 if test -s conftest.err; then
2229 grep -v '^ *+' conftest.err >conftest.er1
2230 cat conftest.er1 >&5
2231 mv -f conftest.er1 conftest.err
2232 fi
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; } && {
2235 test -z "$ac_cxx_werror_flag" ||
2236 test ! -s conftest.err
2237 } && test -s conftest$ac_exeext && {
2238 test "$cross_compiling" = yes ||
2239 test -x conftest$ac_exeext
2240 }; then :
2241 ac_retval=0
2242 else
2243 $as_echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2245
2246 ac_retval=1
2247 fi
2248 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2249 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2250 # interfere with the next link command; also delete a directory that is
2251 # left behind by Apple's compiler. We do this before executing the actions.
2252 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 as_fn_set_status $ac_retval
2255
2256 } # ac_fn_cxx_try_link
2257 cat >config.log <<_ACEOF
2258 This file contains any messages produced by compilers while
2259 running configure, to aid debugging if configure makes a mistake.
2260
2261 It was created by cpplib $as_me , which was
2262 generated by GNU Autoconf 2.69. Invocation command line was
2263
2264 $ $0 $@
2265
2266 _ACEOF
2267 exec 5>>config.log
2268 {
2269 cat <<_ASUNAME
2270 ## --------- ##
2271 ## Platform. ##
2272 ## --------- ##
2273
2274 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279
2280 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2282
2283 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2284 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2285 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2287 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2288 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2289 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2290
2291 _ASUNAME
2292
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 $as_echo "PATH: $as_dir"
2299 done
2300 IFS=$as_save_IFS
2301
2302 } >&5
2303
2304 cat >&5 <<_ACEOF
2305
2306
2307 ## ----------- ##
2308 ## Core tests. ##
2309 ## ----------- ##
2310
2311 _ACEOF
2312
2313
2314 # Keep a trace of the command line.
2315 # Strip out --no-create and --no-recursion so they do not pile up.
2316 # Strip out --silent because we don't want to record it for future runs.
2317 # Also quote any args containing shell meta-characters.
2318 # Make two passes to allow for proper duplicate-argument suppression.
2319 ac_configure_args=
2320 ac_configure_args0=
2321 ac_configure_args1=
2322 ac_must_keep_next=false
2323 for ac_pass in 1 2
2324 do
2325 for ac_arg
2326 do
2327 case $ac_arg in
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2331 continue ;;
2332 *\'*)
2333 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334 esac
2335 case $ac_pass in
2336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2337 2)
2338 as_fn_append ac_configure_args1 " '$ac_arg'"
2339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2341 else
2342 case $ac_arg in
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 esac
2350 ;;
2351 -* ) ac_must_keep_next=true ;;
2352 esac
2353 fi
2354 as_fn_append ac_configure_args " '$ac_arg'"
2355 ;;
2356 esac
2357 done
2358 done
2359 { ac_configure_args0=; unset ac_configure_args0;}
2360 { ac_configure_args1=; unset ac_configure_args1;}
2361
2362 # When interrupted or exit'd, cleanup temporary files, and complete
2363 # config.log. We remove comments because anyway the quotes in there
2364 # would cause problems or look ugly.
2365 # WARNING: Use '\'' to represent an apostrophe within the trap.
2366 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367 trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2369 {
2370 echo
2371
2372 $as_echo "## ---------------- ##
2373 ## Cache variables. ##
2374 ## ---------------- ##"
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2377 (
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2400 *)
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402 ;;
2403 esac |
2404 sort
2405 )
2406 echo
2407
2408 $as_echo "## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##"
2411 echo
2412 for ac_var in $ac_subst_vars
2413 do
2414 eval ac_val=\$$ac_var
2415 case $ac_val in
2416 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 esac
2418 $as_echo "$ac_var='\''$ac_val'\''"
2419 done | sort
2420 echo
2421
2422 if test -n "$ac_subst_files"; then
2423 $as_echo "## ------------------- ##
2424 ## File substitutions. ##
2425 ## ------------------- ##"
2426 echo
2427 for ac_var in $ac_subst_files
2428 do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2436 fi
2437
2438 if test -s confdefs.h; then
2439 $as_echo "## ----------- ##
2440 ## confdefs.h. ##
2441 ## ----------- ##"
2442 echo
2443 cat confdefs.h
2444 echo
2445 fi
2446 test "$ac_signal" != 0 &&
2447 $as_echo "$as_me: caught signal $ac_signal"
2448 $as_echo "$as_me: exit $exit_status"
2449 } >&5
2450 rm -f core *.core core.conftest.* &&
2451 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452 exit $exit_status
2453 ' 0
2454 for ac_signal in 1 2 13 15; do
2455 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456 done
2457 ac_signal=0
2458
2459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2460 rm -f -r conftest* confdefs.h
2461
2462 $as_echo "/* confdefs.h */" > confdefs.h
2463
2464 # Predefined preprocessor variables.
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_NAME "$PACKAGE_NAME"
2468 _ACEOF
2469
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472 _ACEOF
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2476 _ACEOF
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_STRING "$PACKAGE_STRING"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484 _ACEOF
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_URL "$PACKAGE_URL"
2488 _ACEOF
2489
2490
2491 # Let the site file select an alternate cache file if it wants to.
2492 # Prefer an explicitly selected file to automatically selected ones.
2493 ac_site_file1=NONE
2494 ac_site_file2=NONE
2495 if test -n "$CONFIG_SITE"; then
2496 # We do not want a PATH search for config.site.
2497 case $CONFIG_SITE in #((
2498 -*) ac_site_file1=./$CONFIG_SITE;;
2499 */*) ac_site_file1=$CONFIG_SITE;;
2500 *) ac_site_file1=./$CONFIG_SITE;;
2501 esac
2502 elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2505 else
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2508 fi
2509 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510 do
2511 test "x$ac_site_file" = xNONE && continue
2512 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2516 . "$ac_site_file" \
2517 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 as_fn_error $? "failed to load site script $ac_site_file
2520 See \`config.log' for more details" "$LINENO" 5; }
2521 fi
2522 done
2523
2524 if test -r "$cache_file"; then
2525 # Some versions of bash will fail to source /dev/null (special files
2526 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2527 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2529 $as_echo "$as_me: loading cache $cache_file" >&6;}
2530 case $cache_file in
2531 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2532 *) . "./$cache_file";;
2533 esac
2534 fi
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2537 $as_echo "$as_me: creating cache $cache_file" >&6;}
2538 >$cache_file
2539 fi
2540
2541 # Check that the precious variables saved in the cache have kept the same
2542 # value.
2543 ac_cache_corrupted=false
2544 for ac_var in $ac_precious_vars; do
2545 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2546 eval ac_new_set=\$ac_env_${ac_var}_set
2547 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2548 eval ac_new_val=\$ac_env_${ac_var}_value
2549 case $ac_old_set,$ac_new_set in
2550 set,)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2554 ,set)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,);;
2559 *)
2560 if test "x$ac_old_val" != "x$ac_new_val"; then
2561 # differences in whitespace do not lead to failure.
2562 ac_old_val_w=`echo x $ac_old_val`
2563 ac_new_val_w=`echo x $ac_new_val`
2564 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2566 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2567 ac_cache_corrupted=:
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2570 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2571 eval $ac_var=\$ac_old_val
2572 fi
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2574 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2576 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2577 fi;;
2578 esac
2579 # Pass precious variables to config.status.
2580 if test "$ac_new_set" = set; then
2581 case $ac_new_val in
2582 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2583 *) ac_arg=$ac_var=$ac_new_val ;;
2584 esac
2585 case " $ac_configure_args " in
2586 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2587 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2588 esac
2589 fi
2590 done
2591 if $ac_cache_corrupted; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2595 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2596 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2597 fi
2598 ## -------------------- ##
2599 ## Main body of script. ##
2600 ## -------------------- ##
2601
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607
2608
2609
2610
2611 ac_aux_dir=
2612 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2613 if test -f "$ac_dir/install-sh"; then
2614 ac_aux_dir=$ac_dir
2615 ac_install_sh="$ac_aux_dir/install-sh -c"
2616 break
2617 elif test -f "$ac_dir/install.sh"; then
2618 ac_aux_dir=$ac_dir
2619 ac_install_sh="$ac_aux_dir/install.sh -c"
2620 break
2621 elif test -f "$ac_dir/shtool"; then
2622 ac_aux_dir=$ac_dir
2623 ac_install_sh="$ac_aux_dir/shtool install -c"
2624 break
2625 fi
2626 done
2627 if test -z "$ac_aux_dir"; then
2628 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2629 fi
2630
2631 # These three variables are undocumented and unsupported,
2632 # and are intended to be withdrawn in a future Autoconf release.
2633 # They can cause serious problems if a builder's source tree is in a directory
2634 # whose full name contains unusual characters.
2635 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2636 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2637 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2638
2639
2640 # Make sure we can run config.sub.
2641 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2642 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2643
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2645 $as_echo_n "checking build system type... " >&6; }
2646 if ${ac_cv_build+:} false; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 ac_build_alias=$build_alias
2650 test "x$ac_build_alias" = x &&
2651 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2652 test "x$ac_build_alias" = x &&
2653 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2654 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2655 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2656
2657 fi
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2659 $as_echo "$ac_cv_build" >&6; }
2660 case $ac_cv_build in
2661 *-*-*) ;;
2662 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2663 esac
2664 build=$ac_cv_build
2665 ac_save_IFS=$IFS; IFS='-'
2666 set x $ac_cv_build
2667 shift
2668 build_cpu=$1
2669 build_vendor=$2
2670 shift; shift
2671 # Remember, the first character of IFS is used to create $*,
2672 # except with old shells:
2673 build_os=$*
2674 IFS=$ac_save_IFS
2675 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2676
2677
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2679 $as_echo_n "checking host system type... " >&6; }
2680 if ${ac_cv_host+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if test "x$host_alias" = x; then
2684 ac_cv_host=$ac_cv_build
2685 else
2686 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2687 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2688 fi
2689
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2692 $as_echo "$ac_cv_host" >&6; }
2693 case $ac_cv_host in
2694 *-*-*) ;;
2695 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2696 esac
2697 host=$ac_cv_host
2698 ac_save_IFS=$IFS; IFS='-'
2699 set x $ac_cv_host
2700 shift
2701 host_cpu=$1
2702 host_vendor=$2
2703 shift; shift
2704 # Remember, the first character of IFS is used to create $*,
2705 # except with old shells:
2706 host_os=$*
2707 IFS=$ac_save_IFS
2708 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2709
2710
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2712 $as_echo_n "checking target system type... " >&6; }
2713 if ${ac_cv_target+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test "x$target_alias" = x; then
2717 ac_cv_target=$ac_cv_host
2718 else
2719 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2720 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2721 fi
2722
2723 fi
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2725 $as_echo "$ac_cv_target" >&6; }
2726 case $ac_cv_target in
2727 *-*-*) ;;
2728 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2729 esac
2730 target=$ac_cv_target
2731 ac_save_IFS=$IFS; IFS='-'
2732 set x $ac_cv_target
2733 shift
2734 target_cpu=$1
2735 target_vendor=$2
2736 shift; shift
2737 # Remember, the first character of IFS is used to create $*,
2738 # except with old shells:
2739 target_os=$*
2740 IFS=$ac_save_IFS
2741 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2742
2743
2744 # The aliases save the names the user supplied, while $host etc.
2745 # will get canonicalized.
2746 test -n "$target_alias" &&
2747 test "$program_prefix$program_suffix$program_transform_name" = \
2748 NONENONEs,x,x, &&
2749 program_prefix=${target_alias}-
2750
2751
2752 # Checks for programs.
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2754 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2755 set x ${MAKE-make}
2756 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2757 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 cat >conftest.make <<\_ACEOF
2761 SHELL = /bin/sh
2762 all:
2763 @echo '@@@%%%=$(MAKE)=@@@%%%'
2764 _ACEOF
2765 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2766 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2767 *@@@%%%=?*=@@@%%%*)
2768 eval ac_cv_prog_make_${ac_make}_set=yes;;
2769 *)
2770 eval ac_cv_prog_make_${ac_make}_set=no;;
2771 esac
2772 rm -f conftest.make
2773 fi
2774 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2776 $as_echo "yes" >&6; }
2777 SET_MAKE=
2778 else
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2781 SET_MAKE="MAKE=${MAKE-make}"
2782 fi
2783
2784 # Find a good install program. We prefer a C program (faster),
2785 # so one script is as good as another. But avoid the broken or
2786 # incompatible versions:
2787 # SysV /etc/install, /usr/sbin/install
2788 # SunOS /usr/etc/install
2789 # IRIX /sbin/install
2790 # AIX /bin/install
2791 # AmigaOS /C/install, which installs bootblocks on floppy discs
2792 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2793 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2794 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2795 # OS/2's system install, which has a completely different semantic
2796 # ./install, which can be erroneously created by make from ./install.sh.
2797 # Reject install programs that cannot install multiple files.
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2799 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2800 if test -z "$INSTALL"; then
2801 if ${ac_cv_path_install+:} false; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 # Account for people who put trailing slashes in PATH elements.
2810 case $as_dir/ in #((
2811 ./ | .// | /[cC]/* | \
2812 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2813 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2814 /usr/ucb/* ) ;;
2815 *)
2816 # OSF1 and SCO ODT 3.0 have their own names for install.
2817 # Don't use installbsd from OSF since it installs stuff as root
2818 # by default.
2819 for ac_prog in ginstall scoinst install; do
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2822 if test $ac_prog = install &&
2823 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2824 # AIX install. It has an incompatible calling convention.
2825 :
2826 elif test $ac_prog = install &&
2827 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2828 # program-specific install script used by HP pwplus--don't use.
2829 :
2830 else
2831 rm -rf conftest.one conftest.two conftest.dir
2832 echo one > conftest.one
2833 echo two > conftest.two
2834 mkdir conftest.dir
2835 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2836 test -s conftest.one && test -s conftest.two &&
2837 test -s conftest.dir/conftest.one &&
2838 test -s conftest.dir/conftest.two
2839 then
2840 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2841 break 3
2842 fi
2843 fi
2844 fi
2845 done
2846 done
2847 ;;
2848 esac
2849
2850 done
2851 IFS=$as_save_IFS
2852
2853 rm -rf conftest.one conftest.two conftest.dir
2854
2855 fi
2856 if test "${ac_cv_path_install+set}" = set; then
2857 INSTALL=$ac_cv_path_install
2858 else
2859 # As a last resort, use the slow shell script. Don't cache a
2860 # value for INSTALL within a source directory, because that will
2861 # break other packages using the cache if that directory is
2862 # removed, or if the value is a relative name.
2863 INSTALL=$ac_install_sh
2864 fi
2865 fi
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2867 $as_echo "$INSTALL" >&6; }
2868
2869 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2870 # It thinks the first close brace ends the variable substitution.
2871 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2872
2873 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2874
2875 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2876
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_CC+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2903 fi
2904 done
2905 done
2906 IFS=$as_save_IFS
2907
2908 fi
2909 fi
2910 CC=$ac_cv_prog_CC
2911 if test -n "$CC"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913 $as_echo "$CC" >&6; }
2914 else
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2917 fi
2918
2919
2920 fi
2921 if test -z "$ac_cv_prog_CC"; then
2922 ac_ct_CC=$CC
2923 # Extract the first word of "gcc", so it can be a program name with args.
2924 set dummy gcc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 if test -n "$ac_ct_CC"; then
2931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_ac_ct_CC="gcc"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2943 fi
2944 done
2945 done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2953 $as_echo "$ac_ct_CC" >&6; }
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2958
2959 if test "x$ac_ct_CC" = x; then
2960 CC=""
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966 ac_tool_warned=yes ;;
2967 esac
2968 CC=$ac_ct_CC
2969 fi
2970 else
2971 CC="$ac_cv_prog_CC"
2972 fi
2973
2974 if test -z "$CC"; then
2975 if test -n "$ac_tool_prefix"; then
2976 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2977 set dummy ${ac_tool_prefix}cc; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_CC+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_CC="${ac_tool_prefix}cc"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2996 fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 CC=$ac_cv_prog_CC
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3011
3012
3013 fi
3014 fi
3015 if test -z "$CC"; then
3016 # Extract the first word of "cc", so it can be a program name with args.
3017 set dummy cc; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_prog_CC+:} false; then :
3021 $as_echo_n "(cached) " >&6
3022 else
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 ac_prog_rejected=no
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3035 ac_prog_rejected=yes
3036 continue
3037 fi
3038 ac_cv_prog_CC="cc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3041 fi
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 if test $ac_prog_rejected = yes; then
3047 # We found a bogon in the path, so make sure we never use it.
3048 set dummy $ac_cv_prog_CC
3049 shift
3050 if test $# != 0; then
3051 # We chose a different compiler from the bogus one.
3052 # However, it has the same basename, so the bogon will be chosen
3053 # first if we set CC to just the basename; use the full file name.
3054 shift
3055 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3056 fi
3057 fi
3058 fi
3059 fi
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3064 else
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070 fi
3071 if test -z "$CC"; then
3072 if test -n "$ac_tool_prefix"; then
3073 for ac_prog in cl.exe
3074 do
3075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 test -n "$CC" && break
3113 done
3114 fi
3115 if test -z "$CC"; then
3116 ac_ct_CC=$CC
3117 for ac_prog in cl.exe
3118 do
3119 # Extract the first word of "$ac_prog", so it can be a program name with args.
3120 set dummy $ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$ac_ct_CC"; then
3127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_ac_ct_CC="$ac_prog"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3147 if test -n "$ac_ct_CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3149 $as_echo "$ac_ct_CC" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156 test -n "$ac_ct_CC" && break
3157 done
3158
3159 if test "x$ac_ct_CC" = x; then
3160 CC=""
3161 else
3162 case $cross_compiling:$ac_tool_warned in
3163 yes:)
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3166 ac_tool_warned=yes ;;
3167 esac
3168 CC=$ac_ct_CC
3169 fi
3170 fi
3171
3172 fi
3173
3174
3175 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177 as_fn_error $? "no acceptable C compiler found in \$PATH
3178 See \`config.log' for more details" "$LINENO" 5; }
3179
3180 # Provide some information about the compiler.
3181 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3182 set X $ac_compile
3183 ac_compiler=$2
3184 for ac_option in --version -v -V -qversion; do
3185 { { ac_try="$ac_compiler $ac_option >&5"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3193 ac_status=$?
3194 if test -s conftest.err; then
3195 sed '10a\
3196 ... rest of stderr output deleted ...
3197 10q' conftest.err >conftest.er1
3198 cat conftest.er1 >&5
3199 fi
3200 rm -f conftest.er1 conftest.err
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }
3203 done
3204
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3207
3208 int
3209 main ()
3210 {
3211
3212 ;
3213 return 0;
3214 }
3215 _ACEOF
3216 ac_clean_files_save=$ac_clean_files
3217 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3218 # Try to create an executable without -o first, disregard a.out.
3219 # It will help us diagnose broken compilers, and finding out an intuition
3220 # of exeext.
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3222 $as_echo_n "checking whether the C compiler works... " >&6; }
3223 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3224
3225 # The possible output files:
3226 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3227
3228 ac_rmfiles=
3229 for ac_file in $ac_files
3230 do
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3233 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3234 esac
3235 done
3236 rm -f $ac_rmfiles
3237
3238 if { { ac_try="$ac_link_default"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_link_default") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3250 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3251 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3252 # so that the user can short-circuit this test for compilers unknown to
3253 # Autoconf.
3254 for ac_file in $ac_files ''
3255 do
3256 test -f "$ac_file" || continue
3257 case $ac_file in
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3259 ;;
3260 [ab].out )
3261 # We found the default executable, but exeext='' is most
3262 # certainly right.
3263 break;;
3264 *.* )
3265 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3266 then :; else
3267 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3268 fi
3269 # We set ac_cv_exeext here because the later test for it is not
3270 # safe: cross compilers may not add the suffix if given an `-o'
3271 # argument, so we may need to know it at that point already.
3272 # Even if this section looks crufty: it has the advantage of
3273 # actually working.
3274 break;;
3275 * )
3276 break;;
3277 esac
3278 done
3279 test "$ac_cv_exeext" = no && ac_cv_exeext=
3280
3281 else
3282 ac_file=''
3283 fi
3284 if test -z "$ac_file"; then :
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 $as_echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error 77 "C compiler cannot create executables
3293 See \`config.log' for more details" "$LINENO" 5; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296 $as_echo "yes" >&6; }
3297 fi
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3299 $as_echo_n "checking for C compiler default output file name... " >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3301 $as_echo "$ac_file" >&6; }
3302 ac_exeext=$ac_cv_exeext
3303
3304 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3305 ac_clean_files=$ac_clean_files_save
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3307 $as_echo_n "checking for suffix of executables... " >&6; }
3308 if { { ac_try="$ac_link"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_link") 2>&5
3316 ac_status=$?
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; then :
3319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3320 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3321 # work properly (i.e., refer to `conftest.exe'), while it won't with
3322 # `rm'.
3323 for ac_file in conftest.exe conftest conftest.*; do
3324 test -f "$ac_file" || continue
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328 break;;
3329 * ) break;;
3330 esac
3331 done
3332 else
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3336 See \`config.log' for more details" "$LINENO" 5; }
3337 fi
3338 rm -f conftest conftest$ac_cv_exeext
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3340 $as_echo "$ac_cv_exeext" >&6; }
3341
3342 rm -f conftest.$ac_ext
3343 EXEEXT=$ac_cv_exeext
3344 ac_exeext=$EXEEXT
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347 #include <stdio.h>
3348 int
3349 main ()
3350 {
3351 FILE *f = fopen ("conftest.out", "w");
3352 return ferror (f) || fclose (f) != 0;
3353
3354 ;
3355 return 0;
3356 }
3357 _ACEOF
3358 ac_clean_files="$ac_clean_files conftest.out"
3359 # Check that the compiler produces executables we can run. If not, either
3360 # the compiler is broken, or we cross compile.
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3362 $as_echo_n "checking whether we are cross compiling... " >&6; }
3363 if test "$cross_compiling" != yes; then
3364 { { ac_try="$ac_link"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }
3375 if { ac_try='./conftest$ac_cv_exeext'
3376 { { case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_try") 2>&5
3383 ac_status=$?
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }; }; then
3386 cross_compiling=no
3387 else
3388 if test "$cross_compiling" = maybe; then
3389 cross_compiling=yes
3390 else
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error $? "cannot run C compiled programs.
3394 If you meant to cross compile, use \`--host'.
3395 See \`config.log' for more details" "$LINENO" 5; }
3396 fi
3397 fi
3398 fi
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3400 $as_echo "$cross_compiling" >&6; }
3401
3402 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3403 ac_clean_files=$ac_clean_files_save
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3405 $as_echo_n "checking for suffix of object files... " >&6; }
3406 if ${ac_cv_objext+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3411
3412 int
3413 main ()
3414 {
3415
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 rm -f conftest.o conftest.obj
3421 if { { ac_try="$ac_compile"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_compile") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; then :
3432 for ac_file in conftest.o conftest.obj conftest.*; do
3433 test -f "$ac_file" || continue;
3434 case $ac_file in
3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3436 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3437 break;;
3438 esac
3439 done
3440 else
3441 $as_echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $? "cannot compute suffix of object files: cannot compile
3447 See \`config.log' for more details" "$LINENO" 5; }
3448 fi
3449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3450 fi
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3452 $as_echo "$ac_cv_objext" >&6; }
3453 OBJEXT=$ac_cv_objext
3454 ac_objext=$OBJEXT
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3456 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3457 if ${ac_cv_c_compiler_gnu+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3462
3463 int
3464 main ()
3465 {
3466 #ifndef __GNUC__
3467 choke me
3468 #endif
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_compiler_gnu=yes
3476 else
3477 ac_compiler_gnu=no
3478 fi
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3481
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3484 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3485 if test $ac_compiler_gnu = yes; then
3486 GCC=yes
3487 else
3488 GCC=
3489 fi
3490 ac_test_CFLAGS=${CFLAGS+set}
3491 ac_save_CFLAGS=$CFLAGS
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3493 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3494 if ${ac_cv_prog_cc_g+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 ac_save_c_werror_flag=$ac_c_werror_flag
3498 ac_c_werror_flag=yes
3499 ac_cv_prog_cc_g=no
3500 CFLAGS="-g"
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503
3504 int
3505 main ()
3506 {
3507
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513 ac_cv_prog_cc_g=yes
3514 else
3515 CFLAGS=""
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518
3519 int
3520 main ()
3521 {
3522
3523 ;
3524 return 0;
3525 }
3526 _ACEOF
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528
3529 else
3530 ac_c_werror_flag=$ac_save_c_werror_flag
3531 CFLAGS="-g"
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3534
3535 int
3536 main ()
3537 {
3538
3539 ;
3540 return 0;
3541 }
3542 _ACEOF
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_cv_prog_cc_g=yes
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 fi
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 fi
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 ac_c_werror_flag=$ac_save_c_werror_flag
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3554 $as_echo "$ac_cv_prog_cc_g" >&6; }
3555 if test "$ac_test_CFLAGS" = set; then
3556 CFLAGS=$ac_save_CFLAGS
3557 elif test $ac_cv_prog_cc_g = yes; then
3558 if test "$GCC" = yes; then
3559 CFLAGS="-g -O2"
3560 else
3561 CFLAGS="-g"
3562 fi
3563 else
3564 if test "$GCC" = yes; then
3565 CFLAGS="-O2"
3566 else
3567 CFLAGS=
3568 fi
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3571 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3572 if ${ac_cv_prog_cc_c89+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 ac_cv_prog_cc_c89=no
3576 ac_save_CC=$CC
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579 #include <stdarg.h>
3580 #include <stdio.h>
3581 struct stat;
3582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3583 struct buf { int x; };
3584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585 static char *e (p, i)
3586 char **p;
3587 int i;
3588 {
3589 return p[i];
3590 }
3591 static char *f (char * (*g) (char **, int), char **p, ...)
3592 {
3593 char *s;
3594 va_list v;
3595 va_start (v,p);
3596 s = g (p, va_arg (v,int));
3597 va_end (v);
3598 return s;
3599 }
3600
3601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3602 function prototypes and stuff, but not '\xHH' hex character constants.
3603 These don't provoke an error unfortunately, instead are silently treated
3604 as 'x'. The following induces an error, until -std is added to get
3605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3606 array size at least. It's necessary to write '\x00'==0 to get something
3607 that's true only with -std. */
3608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3609
3610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611 inside strings and character constants. */
3612 #define FOO(x) 'x'
3613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3614
3615 int test (int i, double x);
3616 struct s1 {int (*f) (int a);};
3617 struct s2 {int (*f) (double a);};
3618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619 int argc;
3620 char **argv;
3621 int
3622 main ()
3623 {
3624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3631 do
3632 CC="$ac_save_CC $ac_arg"
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_cv_prog_cc_c89=$ac_arg
3635 fi
3636 rm -f core conftest.err conftest.$ac_objext
3637 test "x$ac_cv_prog_cc_c89" != "xno" && break
3638 done
3639 rm -f conftest.$ac_ext
3640 CC=$ac_save_CC
3641
3642 fi
3643 # AC_CACHE_VAL
3644 case "x$ac_cv_prog_cc_c89" in
3645 x)
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3647 $as_echo "none needed" >&6; } ;;
3648 xno)
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3650 $as_echo "unsupported" >&6; } ;;
3651 *)
3652 CC="$CC $ac_cv_prog_cc_c89"
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3655 esac
3656 if test "x$ac_cv_prog_cc_c89" != xno; then :
3657
3658 fi
3659
3660 ac_ext=c
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666 ac_ext=cpp
3667 ac_cpp='$CXXCPP $CPPFLAGS'
3668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3671 if test -z "$CXX"; then
3672 if test -n "$CCC"; then
3673 CXX=$CCC
3674 else
3675 if test -n "$ac_tool_prefix"; then
3676 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3677 do
3678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if ${ac_cv_prog_CXX+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 if test -n "$CXX"; then
3686 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3698 fi
3699 done
3700 done
3701 IFS=$as_save_IFS
3702
3703 fi
3704 fi
3705 CXX=$ac_cv_prog_CXX
3706 if test -n "$CXX"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3708 $as_echo "$CXX" >&6; }
3709 else
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712 fi
3713
3714
3715 test -n "$CXX" && break
3716 done
3717 fi
3718 if test -z "$CXX"; then
3719 ac_ct_CXX=$CXX
3720 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3721 do
3722 # Extract the first word of "$ac_prog", so it can be a program name with args.
3723 set dummy $ac_prog; ac_word=$2
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 $as_echo_n "checking for $ac_word... " >&6; }
3726 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 if test -n "$ac_ct_CXX"; then
3730 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3734 do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_ac_ct_CXX="$ac_prog"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743 done
3744 done
3745 IFS=$as_save_IFS
3746
3747 fi
3748 fi
3749 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3750 if test -n "$ac_ct_CXX"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3752 $as_echo "$ac_ct_CXX" >&6; }
3753 else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 fi
3757
3758
3759 test -n "$ac_ct_CXX" && break
3760 done
3761
3762 if test "x$ac_ct_CXX" = x; then
3763 CXX="g++"
3764 else
3765 case $cross_compiling:$ac_tool_warned in
3766 yes:)
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3769 ac_tool_warned=yes ;;
3770 esac
3771 CXX=$ac_ct_CXX
3772 fi
3773 fi
3774
3775 fi
3776 fi
3777 # Provide some information about the compiler.
3778 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3779 set X $ac_compile
3780 ac_compiler=$2
3781 for ac_option in --version -v -V -qversion; do
3782 { { ac_try="$ac_compiler $ac_option >&5"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3790 ac_status=$?
3791 if test -s conftest.err; then
3792 sed '10a\
3793 ... rest of stderr output deleted ...
3794 10q' conftest.err >conftest.er1
3795 cat conftest.er1 >&5
3796 fi
3797 rm -f conftest.er1 conftest.err
3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799 test $ac_status = 0; }
3800 done
3801
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3803 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3804 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3809
3810 int
3811 main ()
3812 {
3813 #ifndef __GNUC__
3814 choke me
3815 #endif
3816
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 if ac_fn_cxx_try_compile "$LINENO"; then :
3822 ac_compiler_gnu=yes
3823 else
3824 ac_compiler_gnu=no
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3828
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3831 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3832 if test $ac_compiler_gnu = yes; then
3833 GXX=yes
3834 else
3835 GXX=
3836 fi
3837 ac_test_CXXFLAGS=${CXXFLAGS+set}
3838 ac_save_CXXFLAGS=$CXXFLAGS
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3840 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3841 if ${ac_cv_prog_cxx_g+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3845 ac_cxx_werror_flag=yes
3846 ac_cv_prog_cxx_g=no
3847 CXXFLAGS="-g"
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850
3851 int
3852 main ()
3853 {
3854
3855 ;
3856 return 0;
3857 }
3858 _ACEOF
3859 if ac_fn_cxx_try_compile "$LINENO"; then :
3860 ac_cv_prog_cxx_g=yes
3861 else
3862 CXXFLAGS=""
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865
3866 int
3867 main ()
3868 {
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 if ac_fn_cxx_try_compile "$LINENO"; then :
3875
3876 else
3877 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3878 CXXFLAGS="-g"
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881
3882 int
3883 main ()
3884 {
3885
3886 ;
3887 return 0;
3888 }
3889 _ACEOF
3890 if ac_fn_cxx_try_compile "$LINENO"; then :
3891 ac_cv_prog_cxx_g=yes
3892 fi
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 fi
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3901 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3902 if test "$ac_test_CXXFLAGS" = set; then
3903 CXXFLAGS=$ac_save_CXXFLAGS
3904 elif test $ac_cv_prog_cxx_g = yes; then
3905 if test "$GXX" = yes; then
3906 CXXFLAGS="-g -O2"
3907 else
3908 CXXFLAGS="-g"
3909 fi
3910 else
3911 if test "$GXX" = yes; then
3912 CXXFLAGS="-O2"
3913 else
3914 CXXFLAGS=
3915 fi
3916 fi
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923 if test -n "$ac_tool_prefix"; then
3924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3925 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927 $as_echo_n "checking for $ac_word... " >&6; }
3928 if ${ac_cv_prog_RANLIB+:} false; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 if test -n "$RANLIB"; then
3932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3936 do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3944 fi
3945 done
3946 done
3947 IFS=$as_save_IFS
3948
3949 fi
3950 fi
3951 RANLIB=$ac_cv_prog_RANLIB
3952 if test -n "$RANLIB"; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3954 $as_echo "$RANLIB" >&6; }
3955 else
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957 $as_echo "no" >&6; }
3958 fi
3959
3960
3961 fi
3962 if test -z "$ac_cv_prog_RANLIB"; then
3963 ac_ct_RANLIB=$RANLIB
3964 # Extract the first word of "ranlib", so it can be a program name with args.
3965 set dummy ranlib; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 if test -n "$ac_ct_RANLIB"; then
3972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_ac_ct_RANLIB="ranlib"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3984 fi
3985 done
3986 done
3987 IFS=$as_save_IFS
3988
3989 fi
3990 fi
3991 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3992 if test -n "$ac_ct_RANLIB"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3994 $as_echo "$ac_ct_RANLIB" >&6; }
3995 else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998 fi
3999
4000 if test "x$ac_ct_RANLIB" = x; then
4001 RANLIB=":"
4002 else
4003 case $cross_compiling:$ac_tool_warned in
4004 yes:)
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007 ac_tool_warned=yes ;;
4008 esac
4009 RANLIB=$ac_ct_RANLIB
4010 fi
4011 else
4012 RANLIB="$ac_cv_prog_RANLIB"
4013 fi
4014
4015 if test -n "$ac_tool_prefix"; then
4016 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4017 set dummy ${ac_tool_prefix}ar; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if ${ac_cv_prog_AR+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 if test -n "$AR"; then
4024 ac_cv_prog_AR="$AR" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033 ac_cv_prog_AR="${ac_tool_prefix}ar"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4036 fi
4037 done
4038 done
4039 IFS=$as_save_IFS
4040
4041 fi
4042 fi
4043 AR=$ac_cv_prog_AR
4044 if test -n "$AR"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4046 $as_echo "$AR" >&6; }
4047 else
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4050 fi
4051
4052
4053 fi
4054 if test -z "$ac_cv_prog_AR"; then
4055 ac_ct_AR=$AR
4056 # Extract the first word of "ar", so it can be a program name with args.
4057 set dummy ar; ac_word=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 if test -n "$ac_ct_AR"; then
4064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_ac_ct_AR="ar"
4074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 break 2
4076 fi
4077 done
4078 done
4079 IFS=$as_save_IFS
4080
4081 fi
4082 fi
4083 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4084 if test -n "$ac_ct_AR"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4086 $as_echo "$ac_ct_AR" >&6; }
4087 else
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4090 fi
4091
4092 if test "x$ac_ct_AR" = x; then
4093 AR=""
4094 else
4095 case $cross_compiling:$ac_tool_warned in
4096 yes:)
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4099 ac_tool_warned=yes ;;
4100 esac
4101 AR=$ac_ct_AR
4102 fi
4103 else
4104 AR="$ac_cv_prog_AR"
4105 fi
4106
4107
4108
4109 ac_ext=c
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4115 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4116 # On Suns, sometimes $CPP names a directory.
4117 if test -n "$CPP" && test -d "$CPP"; then
4118 CPP=
4119 fi
4120 if test -z "$CPP"; then
4121 if ${ac_cv_prog_CPP+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 # Double quotes because CPP needs to be expanded
4125 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4126 do
4127 ac_preproc_ok=false
4128 for ac_c_preproc_warn_flag in '' yes
4129 do
4130 # Use a header file that comes with gcc, so configuring glibc
4131 # with a fresh cross-compiler works.
4132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133 # <limits.h> exists even on freestanding compilers.
4134 # On the NeXT, cc -E runs the code through the compiler's parser,
4135 # not just through cpp. "Syntax error" is here to catch this case.
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #ifdef __STDC__
4139 # include <limits.h>
4140 #else
4141 # include <assert.h>
4142 #endif
4143 Syntax error
4144 _ACEOF
4145 if ac_fn_c_try_cpp "$LINENO"; then :
4146
4147 else
4148 # Broken: fails on valid input.
4149 continue
4150 fi
4151 rm -f conftest.err conftest.i conftest.$ac_ext
4152
4153 # OK, works on sane cases. Now check whether nonexistent headers
4154 # can be detected and how.
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 #include <ac_nonexistent.h>
4158 _ACEOF
4159 if ac_fn_c_try_cpp "$LINENO"; then :
4160 # Broken: success on invalid input.
4161 continue
4162 else
4163 # Passes both tests.
4164 ac_preproc_ok=:
4165 break
4166 fi
4167 rm -f conftest.err conftest.i conftest.$ac_ext
4168
4169 done
4170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4171 rm -f conftest.i conftest.err conftest.$ac_ext
4172 if $ac_preproc_ok; then :
4173 break
4174 fi
4175
4176 done
4177 ac_cv_prog_CPP=$CPP
4178
4179 fi
4180 CPP=$ac_cv_prog_CPP
4181 else
4182 ac_cv_prog_CPP=$CPP
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4185 $as_echo "$CPP" >&6; }
4186 ac_preproc_ok=false
4187 for ac_c_preproc_warn_flag in '' yes
4188 do
4189 # Use a header file that comes with gcc, so configuring glibc
4190 # with a fresh cross-compiler works.
4191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4192 # <limits.h> exists even on freestanding compilers.
4193 # On the NeXT, cc -E runs the code through the compiler's parser,
4194 # not just through cpp. "Syntax error" is here to catch this case.
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 #ifdef __STDC__
4198 # include <limits.h>
4199 #else
4200 # include <assert.h>
4201 #endif
4202 Syntax error
4203 _ACEOF
4204 if ac_fn_c_try_cpp "$LINENO"; then :
4205
4206 else
4207 # Broken: fails on valid input.
4208 continue
4209 fi
4210 rm -f conftest.err conftest.i conftest.$ac_ext
4211
4212 # OK, works on sane cases. Now check whether nonexistent headers
4213 # can be detected and how.
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4217 _ACEOF
4218 if ac_fn_c_try_cpp "$LINENO"; then :
4219 # Broken: success on invalid input.
4220 continue
4221 else
4222 # Passes both tests.
4223 ac_preproc_ok=:
4224 break
4225 fi
4226 rm -f conftest.err conftest.i conftest.$ac_ext
4227
4228 done
4229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4230 rm -f conftest.i conftest.err conftest.$ac_ext
4231 if $ac_preproc_ok; then :
4232
4233 else
4234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4237 See \`config.log' for more details" "$LINENO" 5; }
4238 fi
4239
4240 ac_ext=c
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245
4246
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4248 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4249 if ${ac_cv_path_GREP+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 if test -z "$GREP"; then
4253 ac_path_GREP_found=false
4254 # Loop through the user's path and test for each of PROGNAME-LIST
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4257 do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_prog in grep ggrep; do
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4263 as_fn_executable_p "$ac_path_GREP" || continue
4264 # Check for GNU ac_path_GREP and select it if it is found.
4265 # Check for GNU $ac_path_GREP
4266 case `"$ac_path_GREP" --version 2>&1` in
4267 *GNU*)
4268 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4269 *)
4270 ac_count=0
4271 $as_echo_n 0123456789 >"conftest.in"
4272 while :
4273 do
4274 cat "conftest.in" "conftest.in" >"conftest.tmp"
4275 mv "conftest.tmp" "conftest.in"
4276 cp "conftest.in" "conftest.nl"
4277 $as_echo 'GREP' >> "conftest.nl"
4278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4280 as_fn_arith $ac_count + 1 && ac_count=$as_val
4281 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4282 # Best one so far, save it but keep looking for a better one
4283 ac_cv_path_GREP="$ac_path_GREP"
4284 ac_path_GREP_max=$ac_count
4285 fi
4286 # 10*(2^10) chars as input seems more than enough
4287 test $ac_count -gt 10 && break
4288 done
4289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4290 esac
4291
4292 $ac_path_GREP_found && break 3
4293 done
4294 done
4295 done
4296 IFS=$as_save_IFS
4297 if test -z "$ac_cv_path_GREP"; then
4298 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4299 fi
4300 else
4301 ac_cv_path_GREP=$GREP
4302 fi
4303
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4306 $as_echo "$ac_cv_path_GREP" >&6; }
4307 GREP="$ac_cv_path_GREP"
4308
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4311 $as_echo_n "checking for egrep... " >&6; }
4312 if ${ac_cv_path_EGREP+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4316 then ac_cv_path_EGREP="$GREP -E"
4317 else
4318 if test -z "$EGREP"; then
4319 ac_path_EGREP_found=false
4320 # Loop through the user's path and test for each of PROGNAME-LIST
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323 do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_prog in egrep; do
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4329 as_fn_executable_p "$ac_path_EGREP" || continue
4330 # Check for GNU ac_path_EGREP and select it if it is found.
4331 # Check for GNU $ac_path_EGREP
4332 case `"$ac_path_EGREP" --version 2>&1` in
4333 *GNU*)
4334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4335 *)
4336 ac_count=0
4337 $as_echo_n 0123456789 >"conftest.in"
4338 while :
4339 do
4340 cat "conftest.in" "conftest.in" >"conftest.tmp"
4341 mv "conftest.tmp" "conftest.in"
4342 cp "conftest.in" "conftest.nl"
4343 $as_echo 'EGREP' >> "conftest.nl"
4344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346 as_fn_arith $ac_count + 1 && ac_count=$as_val
4347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4348 # Best one so far, save it but keep looking for a better one
4349 ac_cv_path_EGREP="$ac_path_EGREP"
4350 ac_path_EGREP_max=$ac_count
4351 fi
4352 # 10*(2^10) chars as input seems more than enough
4353 test $ac_count -gt 10 && break
4354 done
4355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356 esac
4357
4358 $ac_path_EGREP_found && break 3
4359 done
4360 done
4361 done
4362 IFS=$as_save_IFS
4363 if test -z "$ac_cv_path_EGREP"; then
4364 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4365 fi
4366 else
4367 ac_cv_path_EGREP=$EGREP
4368 fi
4369
4370 fi
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4373 $as_echo "$ac_cv_path_EGREP" >&6; }
4374 EGREP="$ac_cv_path_EGREP"
4375
4376
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4378 $as_echo_n "checking for ANSI C header files... " >&6; }
4379 if ${ac_cv_header_stdc+:} false; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384 #include <stdlib.h>
4385 #include <stdarg.h>
4386 #include <string.h>
4387 #include <float.h>
4388
4389 int
4390 main ()
4391 {
4392
4393 ;
4394 return 0;
4395 }
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398 ac_cv_header_stdc=yes
4399 else
4400 ac_cv_header_stdc=no
4401 fi
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403
4404 if test $ac_cv_header_stdc = yes; then
4405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #include <string.h>
4409
4410 _ACEOF
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 $EGREP "memchr" >/dev/null 2>&1; then :
4413
4414 else
4415 ac_cv_header_stdc=no
4416 fi
4417 rm -f conftest*
4418
4419 fi
4420
4421 if test $ac_cv_header_stdc = yes; then
4422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #include <stdlib.h>
4426
4427 _ACEOF
4428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4429 $EGREP "free" >/dev/null 2>&1; then :
4430
4431 else
4432 ac_cv_header_stdc=no
4433 fi
4434 rm -f conftest*
4435
4436 fi
4437
4438 if test $ac_cv_header_stdc = yes; then
4439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4440 if test "$cross_compiling" = yes; then :
4441 :
4442 else
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 #include <ctype.h>
4446 #include <stdlib.h>
4447 #if ((' ' & 0x0FF) == 0x020)
4448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4450 #else
4451 # define ISLOWER(c) \
4452 (('a' <= (c) && (c) <= 'i') \
4453 || ('j' <= (c) && (c) <= 'r') \
4454 || ('s' <= (c) && (c) <= 'z'))
4455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4456 #endif
4457
4458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4459 int
4460 main ()
4461 {
4462 int i;
4463 for (i = 0; i < 256; i++)
4464 if (XOR (islower (i), ISLOWER (i))
4465 || toupper (i) != TOUPPER (i))
4466 return 2;
4467 return 0;
4468 }
4469 _ACEOF
4470 if ac_fn_c_try_run "$LINENO"; then :
4471
4472 else
4473 ac_cv_header_stdc=no
4474 fi
4475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4476 conftest.$ac_objext conftest.beam conftest.$ac_ext
4477 fi
4478
4479 fi
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4482 $as_echo "$ac_cv_header_stdc" >&6; }
4483 if test $ac_cv_header_stdc = yes; then
4484
4485 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4486
4487 fi
4488
4489 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4490 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4491 inttypes.h stdint.h unistd.h
4492 do :
4493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4494 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4495 "
4496 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4497 cat >>confdefs.h <<_ACEOF
4498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4499 _ACEOF
4500
4501 fi
4502
4503 done
4504
4505
4506
4507 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4508 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4509 MINIX=yes
4510 else
4511 MINIX=
4512 fi
4513
4514
4515 if test "$MINIX" = yes; then
4516
4517 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4518
4519
4520 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4521
4522
4523 $as_echo "#define _MINIX 1" >>confdefs.h
4524
4525 fi
4526
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4529 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4530 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535
4536 # define __EXTENSIONS__ 1
4537 $ac_includes_default
4538 int
4539 main ()
4540 {
4541
4542 ;
4543 return 0;
4544 }
4545 _ACEOF
4546 if ac_fn_c_try_compile "$LINENO"; then :
4547 ac_cv_safe_to_define___extensions__=yes
4548 else
4549 ac_cv_safe_to_define___extensions__=no
4550 fi
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4554 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4555 test $ac_cv_safe_to_define___extensions__ = yes &&
4556 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4557
4558 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4559
4560 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4561
4562 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4563
4564 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4565
4566
4567 # Check whether --enable-largefile was given.
4568 if test "${enable_largefile+set}" = set; then :
4569 enableval=$enable_largefile;
4570 fi
4571
4572 if test "$enable_largefile" != no; then
4573
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4575 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4576 if ${ac_cv_sys_largefile_CC+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 ac_cv_sys_largefile_CC=no
4580 if test "$GCC" != yes; then
4581 ac_save_CC=$CC
4582 while :; do
4583 # IRIX 6.2 and later do not support large files by default,
4584 # so use the C compiler's -n32 option if that helps.
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 #include <sys/types.h>
4588 /* Check that off_t can represent 2**63 - 1 correctly.
4589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4590 since some C++ compilers masquerading as C compilers
4591 incorrectly reject 9223372036854775807. */
4592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4594 && LARGE_OFF_T % 2147483647 == 1)
4595 ? 1 : -1];
4596 int
4597 main ()
4598 {
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 if ac_fn_c_try_compile "$LINENO"; then :
4605 break
4606 fi
4607 rm -f core conftest.err conftest.$ac_objext
4608 CC="$CC -n32"
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610 ac_cv_sys_largefile_CC=' -n32'; break
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext
4613 break
4614 done
4615 CC=$ac_save_CC
4616 rm -f conftest.$ac_ext
4617 fi
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4620 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4621 if test "$ac_cv_sys_largefile_CC" != no; then
4622 CC=$CC$ac_cv_sys_largefile_CC
4623 fi
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4626 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4627 if ${ac_cv_sys_file_offset_bits+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 while :; do
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 #include <sys/types.h>
4634 /* Check that off_t can represent 2**63 - 1 correctly.
4635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4636 since some C++ compilers masquerading as C compilers
4637 incorrectly reject 9223372036854775807. */
4638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4640 && LARGE_OFF_T % 2147483647 == 1)
4641 ? 1 : -1];
4642 int
4643 main ()
4644 {
4645
4646 ;
4647 return 0;
4648 }
4649 _ACEOF
4650 if ac_fn_c_try_compile "$LINENO"; then :
4651 ac_cv_sys_file_offset_bits=no; break
4652 fi
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 #define _FILE_OFFSET_BITS 64
4657 #include <sys/types.h>
4658 /* Check that off_t can represent 2**63 - 1 correctly.
4659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4660 since some C++ compilers masquerading as C compilers
4661 incorrectly reject 9223372036854775807. */
4662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4664 && LARGE_OFF_T % 2147483647 == 1)
4665 ? 1 : -1];
4666 int
4667 main ()
4668 {
4669
4670 ;
4671 return 0;
4672 }
4673 _ACEOF
4674 if ac_fn_c_try_compile "$LINENO"; then :
4675 ac_cv_sys_file_offset_bits=64; break
4676 fi
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 ac_cv_sys_file_offset_bits=unknown
4679 break
4680 done
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4683 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4684 case $ac_cv_sys_file_offset_bits in #(
4685 no | unknown) ;;
4686 *)
4687 cat >>confdefs.h <<_ACEOF
4688 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4689 _ACEOF
4690 ;;
4691 esac
4692 rm -rf conftest*
4693 if test $ac_cv_sys_file_offset_bits = unknown; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4695 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4696 if ${ac_cv_sys_large_files+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 while :; do
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 #include <sys/types.h>
4703 /* Check that off_t can represent 2**63 - 1 correctly.
4704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4705 since some C++ compilers masquerading as C compilers
4706 incorrectly reject 9223372036854775807. */
4707 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4709 && LARGE_OFF_T % 2147483647 == 1)
4710 ? 1 : -1];
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_sys_large_files=no; break
4721 fi
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 #define _LARGE_FILES 1
4726 #include <sys/types.h>
4727 /* Check that off_t can represent 2**63 - 1 correctly.
4728 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4729 since some C++ compilers masquerading as C compilers
4730 incorrectly reject 9223372036854775807. */
4731 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4733 && LARGE_OFF_T % 2147483647 == 1)
4734 ? 1 : -1];
4735 int
4736 main ()
4737 {
4738
4739 ;
4740 return 0;
4741 }
4742 _ACEOF
4743 if ac_fn_c_try_compile "$LINENO"; then :
4744 ac_cv_sys_large_files=1; break
4745 fi
4746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 ac_cv_sys_large_files=unknown
4748 break
4749 done
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4752 $as_echo "$ac_cv_sys_large_files" >&6; }
4753 case $ac_cv_sys_large_files in #(
4754 no | unknown) ;;
4755 *)
4756 cat >>confdefs.h <<_ACEOF
4757 #define _LARGE_FILES $ac_cv_sys_large_files
4758 _ACEOF
4759 ;;
4760 esac
4761 rm -rf conftest*
4762 fi
4763
4764
4765 fi
4766
4767
4768 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4769 for ac_prog in aclocal
4770 do
4771 # Extract the first word of "$ac_prog", so it can be a program name with args.
4772 set dummy $ac_prog; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_prog_ACLOCAL+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -n "$ACLOCAL"; then
4779 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_prog_ACLOCAL="$ac_prog"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4791 fi
4792 done
4793 done
4794 IFS=$as_save_IFS
4795
4796 fi
4797 fi
4798 ACLOCAL=$ac_cv_prog_ACLOCAL
4799 if test -n "$ACLOCAL"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4801 $as_echo "$ACLOCAL" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4805 fi
4806
4807
4808 test -n "$ACLOCAL" && break
4809 done
4810 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4811
4812 for ac_prog in autoconf
4813 do
4814 # Extract the first word of "$ac_prog", so it can be a program name with args.
4815 set dummy $ac_prog; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_prog_AUTOCONF+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$AUTOCONF"; then
4822 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_AUTOCONF="$ac_prog"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 AUTOCONF=$ac_cv_prog_AUTOCONF
4842 if test -n "$AUTOCONF"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4844 $as_echo "$AUTOCONF" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850
4851 test -n "$AUTOCONF" && break
4852 done
4853 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4854
4855 for ac_prog in autoheader
4856 do
4857 # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy $ac_prog; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_AUTOHEADER+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -n "$AUTOHEADER"; then
4865 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_AUTOHEADER="$ac_prog"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4877 fi
4878 done
4879 done
4880 IFS=$as_save_IFS
4881
4882 fi
4883 fi
4884 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4885 if test -n "$AUTOHEADER"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4887 $as_echo "$AUTOHEADER" >&6; }
4888 else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4891 fi
4892
4893
4894 test -n "$AUTOHEADER" && break
4895 done
4896 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4897
4898
4899 # Figure out what compiler warnings we can enable.
4900 # See config/warnings.m4 for details.
4901
4902 ac_ext=c
4903 ac_cpp='$CPP $CPPFLAGS'
4904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4907
4908 warn=
4909 save_CFLAGS="$CFLAGS"
4910 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
4911 -Wmissing-format-attribute; do
4912 # Do the check with the no- prefix removed since gcc silently
4913 # accepts any -Wno-* option on purpose
4914 case $real_option in
4915 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4916 *) option=$real_option ;;
4917 esac
4918 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4919
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4921 $as_echo_n "checking whether $CC supports $option... " >&6; }
4922 if eval \${$as_acx_Woption+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 CFLAGS="$option"
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928
4929 int
4930 main ()
4931 {
4932
4933 ;
4934 return 0;
4935 }
4936 _ACEOF
4937 if ac_fn_c_try_compile "$LINENO"; then :
4938 eval "$as_acx_Woption=yes"
4939 else
4940 eval "$as_acx_Woption=no"
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943
4944 fi
4945 eval ac_res=\$$as_acx_Woption
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4947 $as_echo "$ac_res" >&6; }
4948 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4949 warn="$warn${warn:+ }$real_option"
4950 fi
4951 done
4952 CFLAGS="$save_CFLAGS"
4953 ac_ext=c
4954 ac_cpp='$CPP $CPPFLAGS'
4955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4958
4959
4960 ac_ext=c
4961 ac_cpp='$CPP $CPPFLAGS'
4962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965
4966 c_warn=
4967 save_CFLAGS="$CFLAGS"
4968 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
4969 -Wold-style-definition -Wc++-compat; do
4970 # Do the check with the no- prefix removed since gcc silently
4971 # accepts any -Wno-* option on purpose
4972 case $real_option in
4973 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4974 *) option=$real_option ;;
4975 esac
4976 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4977
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4979 $as_echo_n "checking whether $CC supports $option... " >&6; }
4980 if eval \${$as_acx_Woption+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 CFLAGS="$option"
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986
4987 int
4988 main ()
4989 {
4990
4991 ;
4992 return 0;
4993 }
4994 _ACEOF
4995 if ac_fn_c_try_compile "$LINENO"; then :
4996 eval "$as_acx_Woption=yes"
4997 else
4998 eval "$as_acx_Woption=no"
4999 fi
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001
5002 fi
5003 eval ac_res=\$$as_acx_Woption
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5005 $as_echo "$ac_res" >&6; }
5006 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5007 c_warn="$c_warn${c_warn:+ }$real_option"
5008 fi
5009 done
5010 CFLAGS="$save_CFLAGS"
5011 ac_ext=c
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016
5017
5018 ac_ext=c
5019 ac_cpp='$CPP $CPPFLAGS'
5020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023
5024 WARN_PEDANTIC=
5025 # Do the check with the no- prefix removed from the warning options
5026 # since gcc silently accepts any -Wno-* option on purpose
5027 if test "$GCC" = yes; then :
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
5029 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
5030 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 save_CFLAGS="$CFLAGS"
5034 CFLAGS="-pedantic -Wlong-long"
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5037
5038 int
5039 main ()
5040 {
5041
5042 ;
5043 return 0;
5044 }
5045 _ACEOF
5046 if ac_fn_c_try_compile "$LINENO"; then :
5047 acx_cv_prog_cc_pedantic__Wlong_long=yes
5048 else
5049 acx_cv_prog_cc_pedantic__Wlong_long=no
5050 fi
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 CFLAGS="$save_CFLAGS"
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
5055 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
5056 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
5057 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
5058 fi
5059
5060 fi
5061 ac_ext=c
5062 ac_cpp='$CPP $CPPFLAGS'
5063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066
5067
5068
5069 # Disable exceptions and RTTI if building with g++
5070 ac_ext=c
5071 ac_cpp='$CPP $CPPFLAGS'
5072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5075
5076 noexception_flags=
5077 save_CFLAGS="$CFLAGS"
5078 for real_option in -fno-exceptions -fno-rtti; do
5079 # Do the check with the no- prefix removed since gcc silently
5080 # accepts any -Wno-* option on purpose
5081 case $real_option in
5082 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5083 *) option=$real_option ;;
5084 esac
5085 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5086
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5088 $as_echo_n "checking whether $CC supports $option... " >&6; }
5089 if eval \${$as_acx_Woption+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 CFLAGS="$option"
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5095
5096 int
5097 main ()
5098 {
5099
5100 ;
5101 return 0;
5102 }
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 eval "$as_acx_Woption=yes"
5106 else
5107 eval "$as_acx_Woption=no"
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110
5111 fi
5112 eval ac_res=\$$as_acx_Woption
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5114 $as_echo "$ac_res" >&6; }
5115 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5116 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
5117 fi
5118 done
5119 CFLAGS="$save_CFLAGS"
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125
5126
5127
5128 # Only enable with --enable-werror-always until existing warnings are
5129 # corrected.
5130 ac_ext=c
5131 ac_cpp='$CPP $CPPFLAGS'
5132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135
5136 WERROR=
5137 # Check whether --enable-werror-always was given.
5138 if test "${enable_werror_always+set}" = set; then :
5139 enableval=$enable_werror_always;
5140 else
5141 enable_werror_always=no
5142 fi
5143
5144 if test $enable_werror_always = yes; then :
5145 WERROR="$WERROR${WERROR:+ }-Werror"
5146 fi
5147
5148 ac_ext=c
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153
5154
5155
5156 # Dependency checking.
5157 rm -rf .tst 2>/dev/null
5158 mkdir .tst 2>/dev/null
5159 if test -d .tst; then
5160 am__leading_dot=.
5161 else
5162 am__leading_dot=_
5163 fi
5164 rmdir .tst 2>/dev/null
5165
5166 DEPDIR="${am__leading_dot}deps"
5167
5168 ac_config_commands="$ac_config_commands depdir"
5169
5170
5171 ac_ext=cpp
5172 ac_cpp='$CXXCPP $CPPFLAGS'
5173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5176
5177
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 int i;
5181 _ACEOF
5182 if ac_fn_cxx_try_compile "$LINENO"; then :
5183
5184 else
5185 as_fn_error $? "C++ compiler missing or inoperational" "$LINENO" 5
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 ac_ext=c
5189 ac_cpp='$CPP $CPPFLAGS'
5190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193
5194 depcc="$CXX" am_compiler_list=
5195
5196 am_depcomp=$ac_aux_dir/depcomp
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5198 $as_echo_n "checking dependency style of $depcc... " >&6; }
5199 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -f "$am_depcomp"; then
5203 # We make a subdir and do the tests there. Otherwise we can end up
5204 # making bogus files that we don't know about and never remove. For
5205 # instance it was reported that on HP-UX the gcc test will end up
5206 # making a dummy file named `D' -- because `-MD' means `put the output
5207 # in D'.
5208 mkdir conftest.dir
5209 # Copy depcomp to subdir because otherwise we won't find it if we're
5210 # using a relative directory.
5211 cp "$am_depcomp" conftest.dir
5212 cd conftest.dir
5213 # We will build objects and dependencies in a subdirectory because
5214 # it helps to detect inapplicable dependency modes. For instance
5215 # both Tru64's cc and ICC support -MD to output dependencies as a
5216 # side effect of compilation, but ICC will put the dependencies in
5217 # the current directory while Tru64 will put them in the object
5218 # directory.
5219 mkdir sub
5220
5221 am_cv_CXX_dependencies_compiler_type=none
5222 if test "$am_compiler_list" = ""; then
5223 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5224 fi
5225 for depmode in $am_compiler_list; do
5226 if test $depmode = none; then break; fi
5227
5228 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5229 # Setup a source with many dependencies, because some compilers
5230 # like to wrap large dependency lists on column 80 (with \), and
5231 # we should not choose a depcomp mode which is confused by this.
5232 #
5233 # We need to recreate these files for each test, as the compiler may
5234 # overwrite some of them when testing with obscure command lines.
5235 # This happens at least with the AIX C compiler.
5236 : > sub/conftest.c
5237 for i in 1 2 3 4 5 6; do
5238 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5239 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5240 # Solaris 8's {/usr,}/bin/sh.
5241 touch sub/conftst$i.h
5242 done
5243 echo "include sub/conftest.Po" > confmf
5244
5245 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5246 # mode. It turns out that the SunPro C++ compiler does not properly
5247 # handle `-M -o', and we need to detect this.
5248 depcmd="depmode=$depmode \
5249 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5250 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5251 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5252 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5253 if env $depcmd > conftest.err 2>&1 &&
5254 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5255 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5256 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5257 # icc doesn't choke on unknown options, it will just issue warnings
5258 # or remarks (even with -Werror). So we grep stderr for any message
5259 # that says an option was ignored or not supported.
5260 # When given -MP, icc 7.0 and 7.1 complain thusly:
5261 # icc: Command line warning: ignoring option '-M'; no argument required
5262 # The diagnosis changed in icc 8.0:
5263 # icc: Command line remark: option '-MP' not supported
5264 if (grep 'ignoring option' conftest.err ||
5265 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5266 am_cv_CXX_dependencies_compiler_type=$depmode
5267 $as_echo "$as_me:$LINENO: success" >&5
5268 break
5269 fi
5270 fi
5271 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5272 sed -e 's/^/| /' < conftest.err >&5
5273 done
5274
5275 cd ..
5276 rm -rf conftest.dir
5277 else
5278 am_cv_CXX_dependencies_compiler_type=none
5279 fi
5280
5281 fi
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5283 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5284 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5285 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
5286 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5287
5288 fi
5289
5290
5291 # Checks for header files.
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5293 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5294 if ${ac_cv_header_time+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <sys/types.h>
5300 #include <sys/time.h>
5301 #include <time.h>
5302
5303 int
5304 main ()
5305 {
5306 if ((struct tm *) 0)
5307 return 0;
5308 ;
5309 return 0;
5310 }
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313 ac_cv_header_time=yes
5314 else
5315 ac_cv_header_time=no
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 fi
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5320 $as_echo "$ac_cv_header_time" >&6; }
5321 if test $ac_cv_header_time = yes; then
5322
5323 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5324
5325 fi
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5328 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5329 if ${gcc_cv_header_string+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <string.h>
5335 #include <strings.h>
5336 int
5337 main ()
5338 {
5339
5340 ;
5341 return 0;
5342 }
5343 _ACEOF
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345 gcc_cv_header_string=yes
5346 else
5347 gcc_cv_header_string=no
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 fi
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5352 $as_echo "$gcc_cv_header_string" >&6; }
5353 if test $gcc_cv_header_string = yes; then
5354
5355 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5356
5357 fi
5358
5359
5360 for ac_header in locale.h fcntl.h limits.h stddef.h \
5361 stdlib.h strings.h string.h sys/file.h unistd.h
5362 do :
5363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5364 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5366 cat >>confdefs.h <<_ACEOF
5367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368 _ACEOF
5369
5370 fi
5371
5372 done
5373
5374
5375 # Checks for typedefs, structures, and compiler characteristics.
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5377 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5378 if ${ac_cv_c_bigendian+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 ac_cv_c_bigendian=unknown
5382 # See if we're dealing with a universal compiler.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #ifndef __APPLE_CC__
5386 not a universal capable compiler
5387 #endif
5388 typedef int dummy;
5389
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392
5393 # Check for potential -arch flags. It is not universal unless
5394 # there are at least two -arch flags with different values.
5395 ac_arch=
5396 ac_prev=
5397 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5398 if test -n "$ac_prev"; then
5399 case $ac_word in
5400 i?86 | x86_64 | ppc | ppc64)
5401 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5402 ac_arch=$ac_word
5403 else
5404 ac_cv_c_bigendian=universal
5405 break
5406 fi
5407 ;;
5408 esac
5409 ac_prev=
5410 elif test "x$ac_word" = "x-arch"; then
5411 ac_prev=arch
5412 fi
5413 done
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 if test $ac_cv_c_bigendian = unknown; then
5417 # See if sys/param.h defines the BYTE_ORDER macro.
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 #include <sys/types.h>
5421 #include <sys/param.h>
5422
5423 int
5424 main ()
5425 {
5426 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5427 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5428 && LITTLE_ENDIAN)
5429 bogus endian macros
5430 #endif
5431
5432 ;
5433 return 0;
5434 }
5435 _ACEOF
5436 if ac_fn_c_try_compile "$LINENO"; then :
5437 # It does; now see whether it defined to BIG_ENDIAN or not.
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 #include <sys/types.h>
5441 #include <sys/param.h>
5442
5443 int
5444 main ()
5445 {
5446 #if BYTE_ORDER != BIG_ENDIAN
5447 not big endian
5448 #endif
5449
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 if ac_fn_c_try_compile "$LINENO"; then :
5455 ac_cv_c_bigendian=yes
5456 else
5457 ac_cv_c_bigendian=no
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 fi
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 fi
5463 if test $ac_cv_c_bigendian = unknown; then
5464 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #include <limits.h>
5468
5469 int
5470 main ()
5471 {
5472 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5473 bogus endian macros
5474 #endif
5475
5476 ;
5477 return 0;
5478 }
5479 _ACEOF
5480 if ac_fn_c_try_compile "$LINENO"; then :
5481 # It does; now see whether it defined to _BIG_ENDIAN or not.
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #include <limits.h>
5485
5486 int
5487 main ()
5488 {
5489 #ifndef _BIG_ENDIAN
5490 not big endian
5491 #endif
5492
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498 ac_cv_c_bigendian=yes
5499 else
5500 ac_cv_c_bigendian=no
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 fi
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 fi
5506 if test $ac_cv_c_bigendian = unknown; then
5507 # Compile a test program.
5508 if test "$cross_compiling" = yes; then :
5509 # Try to guess by grepping values from an object file.
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 short int ascii_mm[] =
5513 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5514 short int ascii_ii[] =
5515 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5516 int use_ascii (int i) {
5517 return ascii_mm[i] + ascii_ii[i];
5518 }
5519 short int ebcdic_ii[] =
5520 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5521 short int ebcdic_mm[] =
5522 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5523 int use_ebcdic (int i) {
5524 return ebcdic_mm[i] + ebcdic_ii[i];
5525 }
5526 extern int foo;
5527
5528 int
5529 main ()
5530 {
5531 return use_ascii (foo) == use_ebcdic (foo);
5532 ;
5533 return 0;
5534 }
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"; then :
5537 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5538 ac_cv_c_bigendian=yes
5539 fi
5540 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5541 if test "$ac_cv_c_bigendian" = unknown; then
5542 ac_cv_c_bigendian=no
5543 else
5544 # finding both strings is unlikely to happen, but who knows?
5545 ac_cv_c_bigendian=unknown
5546 fi
5547 fi
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 else
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 $ac_includes_default
5554 int
5555 main ()
5556 {
5557
5558 /* Are we little or big endian? From Harbison&Steele. */
5559 union
5560 {
5561 long int l;
5562 char c[sizeof (long int)];
5563 } u;
5564 u.l = 1;
5565 return u.c[sizeof (long int) - 1] == 1;
5566
5567 ;
5568 return 0;
5569 }
5570 _ACEOF
5571 if ac_fn_c_try_run "$LINENO"; then :
5572 ac_cv_c_bigendian=no
5573 else
5574 ac_cv_c_bigendian=yes
5575 fi
5576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5577 conftest.$ac_objext conftest.beam conftest.$ac_ext
5578 fi
5579
5580 fi
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5583 $as_echo "$ac_cv_c_bigendian" >&6; }
5584 case $ac_cv_c_bigendian in #(
5585 yes)
5586 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5587 ;; #(
5588 no)
5589 ;; #(
5590 universal)
5591
5592 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5593
5594 ;; #(
5595 *)
5596 as_fn_error $? "unknown endianness
5597 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5598 esac
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5601 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5602 if ${ac_cv_c_const+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607
5608 int
5609 main ()
5610 {
5611
5612 #ifndef __cplusplus
5613 /* Ultrix mips cc rejects this sort of thing. */
5614 typedef int charset[2];
5615 const charset cs = { 0, 0 };
5616 /* SunOS 4.1.1 cc rejects this. */
5617 char const *const *pcpcc;
5618 char **ppc;
5619 /* NEC SVR4.0.2 mips cc rejects this. */
5620 struct point {int x, y;};
5621 static struct point const zero = {0,0};
5622 /* AIX XL C 1.02.0.0 rejects this.
5623 It does not let you subtract one const X* pointer from another in
5624 an arm of an if-expression whose if-part is not a constant
5625 expression */
5626 const char *g = "string";
5627 pcpcc = &g + (g ? g-g : 0);
5628 /* HPUX 7.0 cc rejects these. */
5629 ++pcpcc;
5630 ppc = (char**) pcpcc;
5631 pcpcc = (char const *const *) ppc;
5632 { /* SCO 3.2v4 cc rejects this sort of thing. */
5633 char tx;
5634 char *t = &tx;
5635 char const *s = 0 ? (char *) 0 : (char const *) 0;
5636
5637 *t++ = 0;
5638 if (s) return 0;
5639 }
5640 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5641 int x[] = {25, 17};
5642 const int *foo = &x[0];
5643 ++foo;
5644 }
5645 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5646 typedef const int *iptr;
5647 iptr p = 0;
5648 ++p;
5649 }
5650 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5651 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5652 struct s { int j; const int *ap[3]; } bx;
5653 struct s *b = &bx; b->j = 5;
5654 }
5655 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5656 const int foo = 10;
5657 if (!foo) return 0;
5658 }
5659 return !cs[0] && !zero.x;
5660 #endif
5661
5662 ;
5663 return 0;
5664 }
5665 _ACEOF
5666 if ac_fn_c_try_compile "$LINENO"; then :
5667 ac_cv_c_const=yes
5668 else
5669 ac_cv_c_const=no
5670 fi
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 fi
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5674 $as_echo "$ac_cv_c_const" >&6; }
5675 if test $ac_cv_c_const = no; then
5676
5677 $as_echo "#define const /**/" >>confdefs.h
5678
5679 fi
5680
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5682 $as_echo_n "checking for inline... " >&6; }
5683 if ${ac_cv_c_inline+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 ac_cv_c_inline=no
5687 for ac_kw in inline __inline__ __inline; do
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #ifndef __cplusplus
5691 typedef int foo_t;
5692 static $ac_kw foo_t static_foo () {return 0; }
5693 $ac_kw foo_t foo () {return 0; }
5694 #endif
5695
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698 ac_cv_c_inline=$ac_kw
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 test "$ac_cv_c_inline" != no && break
5702 done
5703
5704 fi
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5706 $as_echo "$ac_cv_c_inline" >&6; }
5707
5708 case $ac_cv_c_inline in
5709 inline | yes) ;;
5710 *)
5711 case $ac_cv_c_inline in
5712 no) ac_val=;;
5713 *) ac_val=$ac_cv_c_inline;;
5714 esac
5715 cat >>confdefs.h <<_ACEOF
5716 #ifndef __cplusplus
5717 #define inline $ac_val
5718 #endif
5719 _ACEOF
5720 ;;
5721 esac
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5724 $as_echo_n "checking for obstacks... " >&6; }
5725 if ${ac_cv_func_obstack+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5730 $ac_includes_default
5731 #include "obstack.h"
5732 int
5733 main ()
5734 {
5735 struct obstack mem;
5736 #define obstack_chunk_alloc malloc
5737 #define obstack_chunk_free free
5738 obstack_init (&mem);
5739 obstack_free (&mem, 0);
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 if ac_fn_c_try_link "$LINENO"; then :
5745 ac_cv_func_obstack=yes
5746 else
5747 ac_cv_func_obstack=no
5748 fi
5749 rm -f core conftest.err conftest.$ac_objext \
5750 conftest$ac_exeext conftest.$ac_ext
5751 fi
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5753 $as_echo "$ac_cv_func_obstack" >&6; }
5754 if test $ac_cv_func_obstack = yes; then
5755
5756 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5757
5758 else
5759 case " $LIBOBJS " in
5760 *" obstack.$ac_objext "* ) ;;
5761 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5762 ;;
5763 esac
5764
5765 fi
5766
5767 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5768 if test "x$ac_cv_type_off_t" = xyes; then :
5769
5770 else
5771
5772 cat >>confdefs.h <<_ACEOF
5773 #define off_t long int
5774 _ACEOF
5775
5776 fi
5777
5778 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5779 if test "x$ac_cv_type_size_t" = xyes; then :
5780
5781 else
5782
5783 cat >>confdefs.h <<_ACEOF
5784 #define size_t unsigned int
5785 _ACEOF
5786
5787 fi
5788
5789 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5790 if test "x$ac_cv_type_ssize_t" = xyes; then :
5791
5792 else
5793
5794 cat >>confdefs.h <<_ACEOF
5795 #define ssize_t int
5796 _ACEOF
5797
5798 fi
5799
5800
5801 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5802 if test "x$ac_cv_type_uintptr_t" = xyes; then :
5803
5804 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5805
5806 else
5807 for ac_type in 'unsigned int' 'unsigned long int' \
5808 'unsigned long long int'; do
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5811 $ac_includes_default
5812 int
5813 main ()
5814 {
5815 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5816 test_array [0] = 0;
5817 return test_array [0];
5818
5819 ;
5820 return 0;
5821 }
5822 _ACEOF
5823 if ac_fn_c_try_compile "$LINENO"; then :
5824
5825 cat >>confdefs.h <<_ACEOF
5826 #define uintptr_t $ac_type
5827 _ACEOF
5828
5829 ac_type=
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 test -z "$ac_type" && break
5833 done
5834 fi
5835
5836
5837 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5838 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
5839
5840 else
5841
5842 cat >>confdefs.h <<_ACEOF
5843 #define ptrdiff_t int
5844 _ACEOF
5845
5846 fi
5847
5848 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5849 case $ac_cv_c_uint64_t in #(
5850 no|yes) ;; #(
5851 *)
5852
5853 $as_echo "#define _UINT64_T 1" >>confdefs.h
5854
5855
5856 cat >>confdefs.h <<_ACEOF
5857 #define uint64_t $ac_cv_c_uint64_t
5858 _ACEOF
5859 ;;
5860 esac
5861
5862 if test x"$ac_cv_c_uint64_t" = x"no"; then
5863 as_fn_error $? "uint64_t not found" "$LINENO" 5
5864 fi
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5866 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5867 if ${ac_cv_struct_tm+:} false; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872 #include <sys/types.h>
5873 #include <time.h>
5874
5875 int
5876 main ()
5877 {
5878 struct tm tm;
5879 int *p = &tm.tm_sec;
5880 return !p;
5881 ;
5882 return 0;
5883 }
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886 ac_cv_struct_tm=time.h
5887 else
5888 ac_cv_struct_tm=sys/time.h
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 fi
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5893 $as_echo "$ac_cv_struct_tm" >&6; }
5894 if test $ac_cv_struct_tm = sys/time.h; then
5895
5896 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5897
5898 fi
5899
5900 # The cast to long int works around a bug in the HP C Compiler
5901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5903 # This bug is HP SR number 8606223364.
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5905 $as_echo_n "checking size of int... " >&6; }
5906 if ${ac_cv_sizeof_int+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5910
5911 else
5912 if test "$ac_cv_type_int" = yes; then
5913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5915 as_fn_error 77 "cannot compute sizeof (int)
5916 See \`config.log' for more details" "$LINENO" 5; }
5917 else
5918 ac_cv_sizeof_int=0
5919 fi
5920 fi
5921
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5924 $as_echo "$ac_cv_sizeof_int" >&6; }
5925
5926
5927
5928 cat >>confdefs.h <<_ACEOF
5929 #define SIZEOF_INT $ac_cv_sizeof_int
5930 _ACEOF
5931
5932
5933 # The cast to long int works around a bug in the HP C Compiler
5934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5936 # This bug is HP SR number 8606223364.
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5938 $as_echo_n "checking size of long... " >&6; }
5939 if ${ac_cv_sizeof_long+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5943
5944 else
5945 if test "$ac_cv_type_long" = yes; then
5946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5948 as_fn_error 77 "cannot compute sizeof (long)
5949 See \`config.log' for more details" "$LINENO" 5; }
5950 else
5951 ac_cv_sizeof_long=0
5952 fi
5953 fi
5954
5955 fi
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5957 $as_echo "$ac_cv_sizeof_long" >&6; }
5958
5959
5960
5961 cat >>confdefs.h <<_ACEOF
5962 #define SIZEOF_LONG $ac_cv_sizeof_long
5963 _ACEOF
5964
5965
5966
5967 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
5968 do :
5969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5970 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5971 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5972 cat >>confdefs.h <<_ACEOF
5973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5974 _ACEOF
5975
5976 fi
5977 done
5978
5979 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5980 if test "x$ac_cv_have_decl_abort" = xyes; then :
5981 ac_have_decl=1
5982 else
5983 ac_have_decl=0
5984 fi
5985
5986 cat >>confdefs.h <<_ACEOF
5987 #define HAVE_DECL_ABORT $ac_have_decl
5988 _ACEOF
5989 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5990 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
5991 ac_have_decl=1
5992 else
5993 ac_have_decl=0
5994 fi
5995
5996 cat >>confdefs.h <<_ACEOF
5997 #define HAVE_DECL_ASPRINTF $ac_have_decl
5998 _ACEOF
5999 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
6000 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
6001 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
6002 ac_have_decl=1
6003 else
6004 ac_have_decl=0
6005 fi
6006
6007 cat >>confdefs.h <<_ACEOF
6008 #define HAVE_DECL_BASENAME $ac_have_decl
6009 _ACEOF
6010 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
6011 if test "x$ac_cv_have_decl_errno" = xyes; then :
6012 ac_have_decl=1
6013 else
6014 ac_have_decl=0
6015 fi
6016
6017 cat >>confdefs.h <<_ACEOF
6018 #define HAVE_DECL_ERRNO $ac_have_decl
6019 _ACEOF
6020 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
6021 if test "x$ac_cv_have_decl_getopt" = xyes; then :
6022 ac_have_decl=1
6023 else
6024 ac_have_decl=0
6025 fi
6026
6027 cat >>confdefs.h <<_ACEOF
6028 #define HAVE_DECL_GETOPT $ac_have_decl
6029 _ACEOF
6030 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6031 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
6032 ac_have_decl=1
6033 else
6034 ac_have_decl=0
6035 fi
6036
6037 cat >>confdefs.h <<_ACEOF
6038 #define HAVE_DECL_VASPRINTF $ac_have_decl
6039 _ACEOF
6040
6041 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
6042 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
6043 ac_have_decl=1
6044 else
6045 ac_have_decl=0
6046 fi
6047
6048 cat >>confdefs.h <<_ACEOF
6049 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
6050 _ACEOF
6051 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
6052 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
6053 ac_have_decl=1
6054 else
6055 ac_have_decl=0
6056 fi
6057
6058 cat >>confdefs.h <<_ACEOF
6059 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
6060 _ACEOF
6061 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
6062 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
6063 ac_have_decl=1
6064 else
6065 ac_have_decl=0
6066 fi
6067
6068 cat >>confdefs.h <<_ACEOF
6069 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
6070 _ACEOF
6071 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
6072 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
6073 ac_have_decl=1
6074 else
6075 ac_have_decl=0
6076 fi
6077
6078 cat >>confdefs.h <<_ACEOF
6079 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
6080 _ACEOF
6081 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
6082 if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes; then :
6083 ac_have_decl=1
6084 else
6085 ac_have_decl=0
6086 fi
6087
6088 cat >>confdefs.h <<_ACEOF
6089 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
6090 _ACEOF
6091 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
6092 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
6093 ac_have_decl=1
6094 else
6095 ac_have_decl=0
6096 fi
6097
6098 cat >>confdefs.h <<_ACEOF
6099 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6100 _ACEOF
6101 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6102 if test "x$ac_cv_have_decl_fileno_unlocked" = xyes; then :
6103 ac_have_decl=1
6104 else
6105 ac_have_decl=0
6106 fi
6107
6108 cat >>confdefs.h <<_ACEOF
6109 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6110 _ACEOF
6111 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6112 if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes; then :
6113 ac_have_decl=1
6114 else
6115 ac_have_decl=0
6116 fi
6117
6118 cat >>confdefs.h <<_ACEOF
6119 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6120 _ACEOF
6121 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6122 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
6123 ac_have_decl=1
6124 else
6125 ac_have_decl=0
6126 fi
6127
6128 cat >>confdefs.h <<_ACEOF
6129 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6130 _ACEOF
6131 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6132 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
6133 ac_have_decl=1
6134 else
6135 ac_have_decl=0
6136 fi
6137
6138 cat >>confdefs.h <<_ACEOF
6139 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6140 _ACEOF
6141 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6142 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
6143 ac_have_decl=1
6144 else
6145 ac_have_decl=0
6146 fi
6147
6148 cat >>confdefs.h <<_ACEOF
6149 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6150 _ACEOF
6151 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6152 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
6153 ac_have_decl=1
6154 else
6155 ac_have_decl=0
6156 fi
6157
6158 cat >>confdefs.h <<_ACEOF
6159 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6160 _ACEOF
6161 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6162 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
6163 ac_have_decl=1
6164 else
6165 ac_have_decl=0
6166 fi
6167
6168 cat >>confdefs.h <<_ACEOF
6169 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6170 _ACEOF
6171 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6172 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
6173 ac_have_decl=1
6174 else
6175 ac_have_decl=0
6176 fi
6177
6178 cat >>confdefs.h <<_ACEOF
6179 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6180 _ACEOF
6181 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6182 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
6183 ac_have_decl=1
6184 else
6185 ac_have_decl=0
6186 fi
6187
6188 cat >>confdefs.h <<_ACEOF
6189 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6190 _ACEOF
6191 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6192 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
6193 ac_have_decl=1
6194 else
6195 ac_have_decl=0
6196 fi
6197
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6200 _ACEOF
6201
6202
6203 # Checks for library functions.
6204 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6205 # for constant arguments. Useless!
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6207 $as_echo_n "checking for working alloca.h... " >&6; }
6208 if ${ac_cv_working_alloca_h+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 #include <alloca.h>
6214 int
6215 main ()
6216 {
6217 char *p = (char *) alloca (2 * sizeof (int));
6218 if (p) return 0;
6219 ;
6220 return 0;
6221 }
6222 _ACEOF
6223 if ac_fn_c_try_link "$LINENO"; then :
6224 ac_cv_working_alloca_h=yes
6225 else
6226 ac_cv_working_alloca_h=no
6227 fi
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6232 $as_echo "$ac_cv_working_alloca_h" >&6; }
6233 if test $ac_cv_working_alloca_h = yes; then
6234
6235 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6236
6237 fi
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6240 $as_echo_n "checking for alloca... " >&6; }
6241 if ${ac_cv_func_alloca_works+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #ifdef __GNUC__
6247 # define alloca __builtin_alloca
6248 #else
6249 # ifdef _MSC_VER
6250 # include <malloc.h>
6251 # define alloca _alloca
6252 # else
6253 # ifdef HAVE_ALLOCA_H
6254 # include <alloca.h>
6255 # else
6256 # ifdef _AIX
6257 #pragma alloca
6258 # else
6259 # ifndef alloca /* predefined by HP cc +Olibcalls */
6260 void *alloca (size_t);
6261 # endif
6262 # endif
6263 # endif
6264 # endif
6265 #endif
6266
6267 int
6268 main ()
6269 {
6270 char *p = (char *) alloca (1);
6271 if (p) return 0;
6272 ;
6273 return 0;
6274 }
6275 _ACEOF
6276 if ac_fn_c_try_link "$LINENO"; then :
6277 ac_cv_func_alloca_works=yes
6278 else
6279 ac_cv_func_alloca_works=no
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext \
6282 conftest$ac_exeext conftest.$ac_ext
6283 fi
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6285 $as_echo "$ac_cv_func_alloca_works" >&6; }
6286
6287 if test $ac_cv_func_alloca_works = yes; then
6288
6289 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6290
6291 else
6292 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6293 # that cause trouble. Some versions do not even contain alloca or
6294 # contain a buggy version. If you still want to use their alloca,
6295 # use ar to extract alloca.o from them instead of compiling alloca.c.
6296
6297 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6298
6299 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6300
6301
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6303 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6304 if ${ac_cv_os_cray+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 #if defined CRAY && ! defined CRAY2
6310 webecray
6311 #else
6312 wenotbecray
6313 #endif
6314
6315 _ACEOF
6316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6317 $EGREP "webecray" >/dev/null 2>&1; then :
6318 ac_cv_os_cray=yes
6319 else
6320 ac_cv_os_cray=no
6321 fi
6322 rm -f conftest*
6323
6324 fi
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6326 $as_echo "$ac_cv_os_cray" >&6; }
6327 if test $ac_cv_os_cray = yes; then
6328 for ac_func in _getb67 GETB67 getb67; do
6329 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6330 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6331 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6332
6333 cat >>confdefs.h <<_ACEOF
6334 #define CRAY_STACKSEG_END $ac_func
6335 _ACEOF
6336
6337 break
6338 fi
6339
6340 done
6341 fi
6342
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6344 $as_echo_n "checking stack direction for C alloca... " >&6; }
6345 if ${ac_cv_c_stack_direction+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 if test "$cross_compiling" = yes; then :
6349 ac_cv_c_stack_direction=0
6350 else
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 $ac_includes_default
6354 int
6355 find_stack_direction (int *addr, int depth)
6356 {
6357 int dir, dummy = 0;
6358 if (! addr)
6359 addr = &dummy;
6360 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6361 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6362 return dir + dummy;
6363 }
6364
6365 int
6366 main (int argc, char **argv)
6367 {
6368 return find_stack_direction (0, argc + !argv + 20) < 0;
6369 }
6370 _ACEOF
6371 if ac_fn_c_try_run "$LINENO"; then :
6372 ac_cv_c_stack_direction=1
6373 else
6374 ac_cv_c_stack_direction=-1
6375 fi
6376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6377 conftest.$ac_objext conftest.beam conftest.$ac_ext
6378 fi
6379
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6382 $as_echo "$ac_cv_c_stack_direction" >&6; }
6383 cat >>confdefs.h <<_ACEOF
6384 #define STACK_DIRECTION $ac_cv_c_stack_direction
6385 _ACEOF
6386
6387
6388 fi
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6391 $as_echo_n "checking for ANSI C header files... " >&6; }
6392 if ${ac_cv_header_stdc+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397 #include <stdlib.h>
6398 #include <stdarg.h>
6399 #include <string.h>
6400 #include <float.h>
6401
6402 int
6403 main ()
6404 {
6405
6406 ;
6407 return 0;
6408 }
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"; then :
6411 ac_cv_header_stdc=yes
6412 else
6413 ac_cv_header_stdc=no
6414 fi
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416
6417 if test $ac_cv_header_stdc = yes; then
6418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 #include <string.h>
6422
6423 _ACEOF
6424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6425 $EGREP "memchr" >/dev/null 2>&1; then :
6426
6427 else
6428 ac_cv_header_stdc=no
6429 fi
6430 rm -f conftest*
6431
6432 fi
6433
6434 if test $ac_cv_header_stdc = yes; then
6435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 #include <stdlib.h>
6439
6440 _ACEOF
6441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6442 $EGREP "free" >/dev/null 2>&1; then :
6443
6444 else
6445 ac_cv_header_stdc=no
6446 fi
6447 rm -f conftest*
6448
6449 fi
6450
6451 if test $ac_cv_header_stdc = yes; then
6452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6453 if test "$cross_compiling" = yes; then :
6454 :
6455 else
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458 #include <ctype.h>
6459 #include <stdlib.h>
6460 #if ((' ' & 0x0FF) == 0x020)
6461 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6463 #else
6464 # define ISLOWER(c) \
6465 (('a' <= (c) && (c) <= 'i') \
6466 || ('j' <= (c) && (c) <= 'r') \
6467 || ('s' <= (c) && (c) <= 'z'))
6468 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6469 #endif
6470
6471 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6472 int
6473 main ()
6474 {
6475 int i;
6476 for (i = 0; i < 256; i++)
6477 if (XOR (islower (i), ISLOWER (i))
6478 || toupper (i) != TOUPPER (i))
6479 return 2;
6480 return 0;
6481 }
6482 _ACEOF
6483 if ac_fn_c_try_run "$LINENO"; then :
6484
6485 else
6486 ac_cv_header_stdc=no
6487 fi
6488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6489 conftest.$ac_objext conftest.beam conftest.$ac_ext
6490 fi
6491
6492 fi
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6495 $as_echo "$ac_cv_header_stdc" >&6; }
6496 if test $ac_cv_header_stdc = yes; then
6497
6498 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6499
6500 fi
6501
6502
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6504 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6505 if ${am_cv_langinfo_codeset+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #include <langinfo.h>
6511 int
6512 main ()
6513 {
6514 char* cs = nl_langinfo(CODESET);
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_link "$LINENO"; then :
6520 am_cv_langinfo_codeset=yes
6521 else
6522 am_cv_langinfo_codeset=no
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext conftest.$ac_ext
6526
6527 fi
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6529 $as_echo "$am_cv_langinfo_codeset" >&6; }
6530 if test $am_cv_langinfo_codeset = yes; then
6531
6532 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6533
6534 fi
6535
6536 # If we haven't got the data from the intl directory,
6537 # assume NLS is disabled.
6538 USE_NLS=no
6539 LIBINTL=
6540 LIBINTL_DEP=
6541 INCINTL=
6542 XGETTEXT=
6543 GMSGFMT=
6544 POSUB=
6545
6546 if test -f ../intl/config.intl; then
6547 . ../intl/config.intl
6548 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6550 $as_echo_n "checking whether NLS is requested... " >&6; }
6551 if test x"$USE_NLS" != xyes; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6556 $as_echo "yes" >&6; }
6557
6558 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6559
6560
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6562 $as_echo_n "checking for catalogs to be installed... " >&6; }
6563 # Look for .po and .gmo files in the source directory.
6564 CATALOGS=
6565 XLINGUAS=
6566 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6567 # If there aren't any .gmo files the shell will give us the
6568 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6569 # weeded out.
6570 case "$cat" in *\**)
6571 continue;;
6572 esac
6573 # The quadruple backslash is collapsed to a double backslash
6574 # by the backticks, then collapsed again by the double quotes,
6575 # leaving us with one backslash in the sed expression (right
6576 # before the dot that mustn't act as a wildcard).
6577 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6578 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6579 # The user is allowed to set LINGUAS to a list of languages to
6580 # install catalogs for. If it's empty that means "all of them."
6581 if test "x$LINGUAS" = x; then
6582 CATALOGS="$CATALOGS $cat"
6583 XLINGUAS="$XLINGUAS $lang"
6584 else
6585 case "$LINGUAS" in *$lang*)
6586 CATALOGS="$CATALOGS $cat"
6587 XLINGUAS="$XLINGUAS $lang"
6588 ;;
6589 esac
6590 fi
6591 done
6592 LINGUAS="$XLINGUAS"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6594 $as_echo "$LINGUAS" >&6; }
6595
6596
6597 DATADIRNAME=share
6598
6599 INSTOBJEXT=.mo
6600
6601 GENCAT=gencat
6602
6603 CATOBJEXT=.gmo
6604
6605 fi
6606
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6608 $as_echo_n "checking for uchar... " >&6; }
6609 if ${gcc_cv_type_uchar+:} false; then :
6610 $as_echo_n "(cached) " >&6
6611 else
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6614
6615 #include <sys/types.h>
6616
6617 int
6618 main ()
6619 {
6620 if ((uchar *)0) return 0;
6621 if (sizeof(uchar)) return 0;
6622 ;
6623 return 0;
6624 }
6625 _ACEOF
6626 if ac_fn_c_try_compile "$LINENO"; then :
6627 ac_cv_type_uchar=yes
6628 else
6629 ac_cv_type_uchar=no
6630 fi
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632 fi
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6634 $as_echo "$gcc_cv_type_uchar" >&6; }
6635 if test $ac_cv_type_uchar = yes; then
6636
6637 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6638
6639 fi
6640
6641 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6642 # iconv() prototype.
6643 ac_ext=cpp
6644 ac_cpp='$CXXCPP $CPPFLAGS'
6645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6648
6649
6650 if test "X$prefix" = "XNONE"; then
6651 acl_final_prefix="$ac_default_prefix"
6652 else
6653 acl_final_prefix="$prefix"
6654 fi
6655 if test "X$exec_prefix" = "XNONE"; then
6656 acl_final_exec_prefix='${prefix}'
6657 else
6658 acl_final_exec_prefix="$exec_prefix"
6659 fi
6660 acl_save_prefix="$prefix"
6661 prefix="$acl_final_prefix"
6662 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6663 prefix="$acl_save_prefix"
6664
6665
6666 # Check whether --with-gnu-ld was given.
6667 if test "${with_gnu_ld+set}" = set; then :
6668 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6669 else
6670 with_gnu_ld=no
6671 fi
6672
6673 # Prepare PATH_SEPARATOR.
6674 # The user is always right.
6675 if test "${PATH_SEPARATOR+set}" != set; then
6676 echo "#! /bin/sh" >conf$$.sh
6677 echo "exit 0" >>conf$$.sh
6678 chmod +x conf$$.sh
6679 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6680 PATH_SEPARATOR=';'
6681 else
6682 PATH_SEPARATOR=:
6683 fi
6684 rm -f conf$$.sh
6685 fi
6686 ac_prog=ld
6687 if test "$GCC" = yes; then
6688 # Check if gcc -print-prog-name=ld gives a path.
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6690 $as_echo_n "checking for ld used by GCC... " >&6; }
6691 case $host in
6692 *-*-mingw*)
6693 # gcc leaves a trailing carriage return which upsets mingw
6694 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6695 *)
6696 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6697 esac
6698 case $ac_prog in
6699 # Accept absolute paths.
6700 [\\/]* | [A-Za-z]:[\\/]*)
6701 re_direlt='/[^/][^/]*/\.\./'
6702 # Canonicalize the path of ld
6703 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6704 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6705 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6706 done
6707 test -z "$LD" && LD="$ac_prog"
6708 ;;
6709 "")
6710 # If it fails, then pretend we aren't using GCC.
6711 ac_prog=ld
6712 ;;
6713 *)
6714 # If it is relative, then search for the first ld in PATH.
6715 with_gnu_ld=unknown
6716 ;;
6717 esac
6718 elif test "$with_gnu_ld" = yes; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6720 $as_echo_n "checking for GNU ld... " >&6; }
6721 else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6723 $as_echo_n "checking for non-GNU ld... " >&6; }
6724 fi
6725 if ${acl_cv_path_LD+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -z "$LD"; then
6729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6730 for ac_dir in $PATH; do
6731 test -z "$ac_dir" && ac_dir=.
6732 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6733 acl_cv_path_LD="$ac_dir/$ac_prog"
6734 # Check to see if the program is GNU ld. I'd rather use --version,
6735 # but apparently some GNU ld's only accept -v.
6736 # Break only if it was the GNU/non-GNU ld that we prefer.
6737 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6738 test "$with_gnu_ld" != no && break
6739 else
6740 test "$with_gnu_ld" != yes && break
6741 fi
6742 fi
6743 done
6744 IFS="$ac_save_ifs"
6745 else
6746 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6747 fi
6748 fi
6749
6750 LD="$acl_cv_path_LD"
6751 if test -n "$LD"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6753 $as_echo "$LD" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757 fi
6758 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6760 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6761 if ${acl_cv_prog_gnu_ld+:} false; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6765 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6766 acl_cv_prog_gnu_ld=yes
6767 else
6768 acl_cv_prog_gnu_ld=no
6769 fi
6770 fi
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6772 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6773 with_gnu_ld=$acl_cv_prog_gnu_ld
6774
6775
6776
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6778 $as_echo_n "checking for shared library run path origin... " >&6; }
6779 if ${acl_cv_rpath+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782
6783 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6784 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6785 . ./conftest.sh
6786 rm -f ./conftest.sh
6787 acl_cv_rpath=done
6788
6789 fi
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6791 $as_echo "$acl_cv_rpath" >&6; }
6792 wl="$acl_cv_wl"
6793 libext="$acl_cv_libext"
6794 shlibext="$acl_cv_shlibext"
6795 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6796 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6797 hardcode_direct="$acl_cv_hardcode_direct"
6798 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6799 # Check whether --enable-rpath was given.
6800 if test "${enable_rpath+set}" = set; then :
6801 enableval=$enable_rpath; :
6802 else
6803 enable_rpath=yes
6804 fi
6805
6806
6807
6808
6809
6810
6811
6812
6813 use_additional=yes
6814
6815 acl_save_prefix="$prefix"
6816 prefix="$acl_final_prefix"
6817 acl_save_exec_prefix="$exec_prefix"
6818 exec_prefix="$acl_final_exec_prefix"
6819
6820 eval additional_includedir=\"$includedir\"
6821 eval additional_libdir=\"$libdir\"
6822
6823 exec_prefix="$acl_save_exec_prefix"
6824 prefix="$acl_save_prefix"
6825
6826
6827 # Check whether --with-libiconv-prefix was given.
6828 if test "${with_libiconv_prefix+set}" = set; then :
6829 withval=$with_libiconv_prefix;
6830 if test "X$withval" = "Xno"; then
6831 use_additional=no
6832 else
6833 if test "X$withval" = "X"; then
6834
6835 acl_save_prefix="$prefix"
6836 prefix="$acl_final_prefix"
6837 acl_save_exec_prefix="$exec_prefix"
6838 exec_prefix="$acl_final_exec_prefix"
6839
6840 eval additional_includedir=\"$includedir\"
6841 eval additional_libdir=\"$libdir\"
6842
6843 exec_prefix="$acl_save_exec_prefix"
6844 prefix="$acl_save_prefix"
6845
6846 else
6847 additional_includedir="$withval/include"
6848 additional_libdir="$withval/lib"
6849 fi
6850 fi
6851
6852 fi
6853
6854
6855 # Check whether --with-libiconv-type was given.
6856 if test "${with_libiconv_type+set}" = set; then :
6857 withval=$with_libiconv_type; with_libiconv_type=$withval
6858 else
6859 with_libiconv_type=auto
6860 fi
6861
6862 lib_type=`eval echo \$with_libiconv_type`
6863
6864 LIBICONV=
6865 LTLIBICONV=
6866 INCICONV=
6867 rpathdirs=
6868 ltrpathdirs=
6869 names_already_handled=
6870 names_next_round='iconv '
6871 while test -n "$names_next_round"; do
6872 names_this_round="$names_next_round"
6873 names_next_round=
6874 for name in $names_this_round; do
6875 already_handled=
6876 for n in $names_already_handled; do
6877 if test "$n" = "$name"; then
6878 already_handled=yes
6879 break
6880 fi
6881 done
6882 if test -z "$already_handled"; then
6883 names_already_handled="$names_already_handled $name"
6884 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6885 eval value=\"\$HAVE_LIB$uppername\"
6886 if test -n "$value"; then
6887 if test "$value" = yes; then
6888 eval value=\"\$LIB$uppername\"
6889 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6890 eval value=\"\$LTLIB$uppername\"
6891 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6892 else
6893 :
6894 fi
6895 else
6896 found_dir=
6897 found_la=
6898 found_so=
6899 found_a=
6900 if test $use_additional = yes; then
6901 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6902 found_dir="$additional_libdir"
6903 found_so="$additional_libdir/lib$name.$shlibext"
6904 if test -f "$additional_libdir/lib$name.la"; then
6905 found_la="$additional_libdir/lib$name.la"
6906 fi
6907 elif test x$lib_type != xshared; then
6908 if test -f "$additional_libdir/lib$name.$libext"; then
6909 found_dir="$additional_libdir"
6910 found_a="$additional_libdir/lib$name.$libext"
6911 if test -f "$additional_libdir/lib$name.la"; then
6912 found_la="$additional_libdir/lib$name.la"
6913 fi
6914 fi
6915 fi
6916 fi
6917 if test "X$found_dir" = "X"; then
6918 for x in $LDFLAGS $LTLIBICONV; do
6919
6920 acl_save_prefix="$prefix"
6921 prefix="$acl_final_prefix"
6922 acl_save_exec_prefix="$exec_prefix"
6923 exec_prefix="$acl_final_exec_prefix"
6924 eval x=\"$x\"
6925 exec_prefix="$acl_save_exec_prefix"
6926 prefix="$acl_save_prefix"
6927
6928 case "$x" in
6929 -L*)
6930 dir=`echo "X$x" | sed -e 's/^X-L//'`
6931 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6932 found_dir="$dir"
6933 found_so="$dir/lib$name.$shlibext"
6934 if test -f "$dir/lib$name.la"; then
6935 found_la="$dir/lib$name.la"
6936 fi
6937 elif test x$lib_type != xshared; then
6938 if test -f "$dir/lib$name.$libext"; then
6939 found_dir="$dir"
6940 found_a="$dir/lib$name.$libext"
6941 if test -f "$dir/lib$name.la"; then
6942 found_la="$dir/lib$name.la"
6943 fi
6944 fi
6945 fi
6946 ;;
6947 esac
6948 if test "X$found_dir" != "X"; then
6949 break
6950 fi
6951 done
6952 fi
6953 if test "X$found_dir" != "X"; then
6954 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6955 if test "X$found_so" != "X"; then
6956 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6957 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6958 else
6959 haveit=
6960 for x in $ltrpathdirs; do
6961 if test "X$x" = "X$found_dir"; then
6962 haveit=yes
6963 break
6964 fi
6965 done
6966 if test -z "$haveit"; then
6967 ltrpathdirs="$ltrpathdirs $found_dir"
6968 fi
6969 if test "$hardcode_direct" = yes; then
6970 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6971 else
6972 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6973 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6974 haveit=
6975 for x in $rpathdirs; do
6976 if test "X$x" = "X$found_dir"; then
6977 haveit=yes
6978 break
6979 fi
6980 done
6981 if test -z "$haveit"; then
6982 rpathdirs="$rpathdirs $found_dir"
6983 fi
6984 else
6985 haveit=
6986 for x in $LDFLAGS $LIBICONV; do
6987
6988 acl_save_prefix="$prefix"
6989 prefix="$acl_final_prefix"
6990 acl_save_exec_prefix="$exec_prefix"
6991 exec_prefix="$acl_final_exec_prefix"
6992 eval x=\"$x\"
6993 exec_prefix="$acl_save_exec_prefix"
6994 prefix="$acl_save_prefix"
6995
6996 if test "X$x" = "X-L$found_dir"; then
6997 haveit=yes
6998 break
6999 fi
7000 done
7001 if test -z "$haveit"; then
7002 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7003 fi
7004 if test "$hardcode_minus_L" != no; then
7005 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7006 else
7007 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7008 fi
7009 fi
7010 fi
7011 fi
7012 else
7013 if test "X$found_a" != "X"; then
7014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7015 else
7016 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7017 fi
7018 fi
7019 additional_includedir=
7020 case "$found_dir" in
7021 */lib | */lib/)
7022 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7023 additional_includedir="$basedir/include"
7024 ;;
7025 esac
7026 if test "X$additional_includedir" != "X"; then
7027 if test "X$additional_includedir" != "X/usr/include"; then
7028 haveit=
7029 if test "X$additional_includedir" = "X/usr/local/include"; then
7030 if test -n "$GCC"; then
7031 case $host_os in
7032 linux*) haveit=yes;;
7033 esac
7034 fi
7035 fi
7036 if test -z "$haveit"; then
7037 for x in $CPPFLAGS $INCICONV; do
7038
7039 acl_save_prefix="$prefix"
7040 prefix="$acl_final_prefix"
7041 acl_save_exec_prefix="$exec_prefix"
7042 exec_prefix="$acl_final_exec_prefix"
7043 eval x=\"$x\"
7044 exec_prefix="$acl_save_exec_prefix"
7045 prefix="$acl_save_prefix"
7046
7047 if test "X$x" = "X-I$additional_includedir"; then
7048 haveit=yes
7049 break
7050 fi
7051 done
7052 if test -z "$haveit"; then
7053 if test -d "$additional_includedir"; then
7054 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7055 fi
7056 fi
7057 fi
7058 fi
7059 fi
7060 if test -n "$found_la"; then
7061 save_libdir="$libdir"
7062 case "$found_la" in
7063 */* | *\\*) . "$found_la" ;;
7064 *) . "./$found_la" ;;
7065 esac
7066 libdir="$save_libdir"
7067 for dep in $dependency_libs; do
7068 case "$dep" in
7069 -L*)
7070 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7071 if test "X$additional_libdir" != "X/usr/lib"; then
7072 haveit=
7073 if test "X$additional_libdir" = "X/usr/local/lib"; then
7074 if test -n "$GCC"; then
7075 case $host_os in
7076 linux*) haveit=yes;;
7077 esac
7078 fi
7079 fi
7080 if test -z "$haveit"; then
7081 haveit=
7082 for x in $LDFLAGS $LIBICONV; do
7083
7084 acl_save_prefix="$prefix"
7085 prefix="$acl_final_prefix"
7086 acl_save_exec_prefix="$exec_prefix"
7087 exec_prefix="$acl_final_exec_prefix"
7088 eval x=\"$x\"
7089 exec_prefix="$acl_save_exec_prefix"
7090 prefix="$acl_save_prefix"
7091
7092 if test "X$x" = "X-L$additional_libdir"; then
7093 haveit=yes
7094 break
7095 fi
7096 done
7097 if test -z "$haveit"; then
7098 if test -d "$additional_libdir"; then
7099 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7100 fi
7101 fi
7102 haveit=
7103 for x in $LDFLAGS $LTLIBICONV; do
7104
7105 acl_save_prefix="$prefix"
7106 prefix="$acl_final_prefix"
7107 acl_save_exec_prefix="$exec_prefix"
7108 exec_prefix="$acl_final_exec_prefix"
7109 eval x=\"$x\"
7110 exec_prefix="$acl_save_exec_prefix"
7111 prefix="$acl_save_prefix"
7112
7113 if test "X$x" = "X-L$additional_libdir"; then
7114 haveit=yes
7115 break
7116 fi
7117 done
7118 if test -z "$haveit"; then
7119 if test -d "$additional_libdir"; then
7120 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7121 fi
7122 fi
7123 fi
7124 fi
7125 ;;
7126 -R*)
7127 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7128 if test "$enable_rpath" != no; then
7129 haveit=
7130 for x in $rpathdirs; do
7131 if test "X$x" = "X$dir"; then
7132 haveit=yes
7133 break
7134 fi
7135 done
7136 if test -z "$haveit"; then
7137 rpathdirs="$rpathdirs $dir"
7138 fi
7139 haveit=
7140 for x in $ltrpathdirs; do
7141 if test "X$x" = "X$dir"; then
7142 haveit=yes
7143 break
7144 fi
7145 done
7146 if test -z "$haveit"; then
7147 ltrpathdirs="$ltrpathdirs $dir"
7148 fi
7149 fi
7150 ;;
7151 -l*)
7152 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7153 ;;
7154 *.la)
7155 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7156 ;;
7157 *)
7158 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7159 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7160 ;;
7161 esac
7162 done
7163 fi
7164 else
7165 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7166 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7167 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7168 else
7169 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7170 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7171 fi
7172 fi
7173 fi
7174 fi
7175 done
7176 done
7177 if test "X$rpathdirs" != "X"; then
7178 if test -n "$hardcode_libdir_separator"; then
7179 alldirs=
7180 for found_dir in $rpathdirs; do
7181 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7182 done
7183 acl_save_libdir="$libdir"
7184 libdir="$alldirs"
7185 eval flag=\"$hardcode_libdir_flag_spec\"
7186 libdir="$acl_save_libdir"
7187 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7188 else
7189 for found_dir in $rpathdirs; do
7190 acl_save_libdir="$libdir"
7191 libdir="$found_dir"
7192 eval flag=\"$hardcode_libdir_flag_spec\"
7193 libdir="$acl_save_libdir"
7194 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7195 done
7196 fi
7197 fi
7198 if test "X$ltrpathdirs" != "X"; then
7199 for found_dir in $ltrpathdirs; do
7200 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7201 done
7202 fi
7203
7204
7205
7206
7207
7208
7209
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7211 $as_echo_n "checking for iconv... " >&6; }
7212 if ${am_cv_func_iconv+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7215
7216 am_cv_func_iconv="no, consider installing GNU libiconv"
7217 am_cv_lib_iconv=no
7218 am_save_CPPFLAGS="$CPPFLAGS"
7219 CPPFLAGS="$CPPFLAGS $INCICONV"
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 #include <stdlib.h>
7223 #include <iconv.h>
7224 int
7225 main ()
7226 {
7227 iconv_t cd = iconv_open("","");
7228 iconv(cd,NULL,NULL,NULL,NULL);
7229 iconv_close(cd);
7230 ;
7231 return 0;
7232 }
7233 _ACEOF
7234 if ac_fn_cxx_try_link "$LINENO"; then :
7235 am_cv_func_iconv=yes
7236 fi
7237 rm -f core conftest.err conftest.$ac_objext \
7238 conftest$ac_exeext conftest.$ac_ext
7239 CPPFLAGS="$am_save_CPPFLAGS"
7240
7241 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
7242 for _libs in .libs _libs; do
7243 am_save_CPPFLAGS="$CPPFLAGS"
7244 am_save_LIBS="$LIBS"
7245 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
7246 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249 #include <stdlib.h>
7250 #include <iconv.h>
7251 int
7252 main ()
7253 {
7254 iconv_t cd = iconv_open("","");
7255 iconv(cd,NULL,NULL,NULL,NULL);
7256 iconv_close(cd);
7257 ;
7258 return 0;
7259 }
7260 _ACEOF
7261 if ac_fn_cxx_try_link "$LINENO"; then :
7262 INCICONV="-I../libiconv/include"
7263 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
7264 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
7265 am_cv_lib_iconv=yes
7266 am_cv_func_iconv=yes
7267 fi
7268 rm -f core conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7270 CPPFLAGS="$am_save_CPPFLAGS"
7271 LIBS="$am_save_LIBS"
7272 if test "$am_cv_func_iconv" = "yes"; then
7273 break
7274 fi
7275 done
7276 fi
7277
7278 if test "$am_cv_func_iconv" != yes; then
7279 am_save_CPPFLAGS="$CPPFLAGS"
7280 am_save_LIBS="$LIBS"
7281 CPPFLAGS="$CPPFLAGS $INCICONV"
7282 LIBS="$LIBS $LIBICONV"
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 #include <stdlib.h>
7286 #include <iconv.h>
7287 int
7288 main ()
7289 {
7290 iconv_t cd = iconv_open("","");
7291 iconv(cd,NULL,NULL,NULL,NULL);
7292 iconv_close(cd);
7293 ;
7294 return 0;
7295 }
7296 _ACEOF
7297 if ac_fn_cxx_try_link "$LINENO"; then :
7298 am_cv_lib_iconv=yes
7299 am_cv_func_iconv=yes
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext \
7302 conftest$ac_exeext conftest.$ac_ext
7303 CPPFLAGS="$am_save_CPPFLAGS"
7304 LIBS="$am_save_LIBS"
7305 fi
7306
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7309 $as_echo "$am_cv_func_iconv" >&6; }
7310 if test "$am_cv_func_iconv" = yes; then
7311
7312 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7313
7314 fi
7315 if test "$am_cv_lib_iconv" = yes; then
7316
7317 for element in $INCICONV; do
7318 haveit=
7319 for x in $CPPFLAGS; do
7320
7321 acl_save_prefix="$prefix"
7322 prefix="$acl_final_prefix"
7323 acl_save_exec_prefix="$exec_prefix"
7324 exec_prefix="$acl_final_exec_prefix"
7325 eval x=\"$x\"
7326 exec_prefix="$acl_save_exec_prefix"
7327 prefix="$acl_save_prefix"
7328
7329 if test "X$x" = "X$element"; then
7330 haveit=yes
7331 break
7332 fi
7333 done
7334 if test -z "$haveit"; then
7335 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7336 fi
7337 done
7338
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7340 $as_echo_n "checking how to link with libiconv... " >&6; }
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7342 $as_echo "$LIBICONV" >&6; }
7343 else
7344 LIBICONV=
7345 LTLIBICONV=
7346 fi
7347
7348
7349
7350 if test "$am_cv_func_iconv" = yes; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7352 $as_echo_n "checking for iconv declaration... " >&6; }
7353 if ${am_cv_proto_iconv+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7359
7360 #include <stdlib.h>
7361 #include <iconv.h>
7362 extern
7363 #ifdef __cplusplus
7364 "C"
7365 #endif
7366 #if defined(__STDC__) || defined(__cplusplus)
7367 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7368 #else
7369 size_t iconv();
7370 #endif
7371
7372 int
7373 main ()
7374 {
7375
7376 ;
7377 return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_cxx_try_compile "$LINENO"; then :
7381 am_cv_proto_iconv_arg1=""
7382 else
7383 am_cv_proto_iconv_arg1="const"
7384 fi
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7387 fi
7388
7389 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7391 }$am_cv_proto_iconv" >&5
7392 $as_echo "${ac_t:-
7393 }$am_cv_proto_iconv" >&6; }
7394
7395 cat >>confdefs.h <<_ACEOF
7396 #define ICONV_CONST $am_cv_proto_iconv_arg1
7397 _ACEOF
7398
7399 fi
7400
7401 ac_ext=c
7402 ac_cpp='$CPP $CPPFLAGS'
7403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406
7407
7408 # More defines and substitutions.
7409 PACKAGE="$PACKAGE_TARNAME"
7410
7411 cat >>confdefs.h <<_ACEOF
7412 #define PACKAGE "$PACKAGE"
7413 _ACEOF
7414
7415
7416
7417 if test "x$enable_nls" != xno; then
7418 USED_CATALOGS='$(CATALOGS)'
7419 else
7420 USED_CATALOGS=
7421 fi
7422
7423
7424 # Check whether --enable-maintainer-mode was given.
7425 if test "${enable_maintainer_mode+set}" = set; then :
7426 enableval=$enable_maintainer_mode;
7427 else
7428 enable_maintainer_mode=no
7429 fi
7430
7431
7432 if test "x$enable_maintainer_mode" = xno; then
7433 MAINT='#'
7434 else
7435 MAINT=
7436 fi
7437
7438
7439 # Enable expensive internal checks
7440 is_release=
7441 if test -f $srcdir/../gcc/DEV-PHASE \
7442 && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then
7443 is_release=yes
7444 fi
7445
7446 # Check whether --enable-checking was given.
7447 if test "${enable_checking+set}" = set; then :
7448 enableval=$enable_checking; ac_checking_flags="${enableval}"
7449 else
7450
7451 # Determine the default checks.
7452 if test x$is_release = x ; then
7453 ac_checking_flags=yes
7454 else
7455 ac_checking_flags=release
7456 fi
7457 fi
7458
7459 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7460 for check in release $ac_checking_flags
7461 do
7462 case $check in
7463 # these set all the flags to specific states
7464 yes|all) ac_checking=1 ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
7465 no|none) ac_checking= ; ac_assert_checking= ; ac_valgrind_checking= ;;
7466 release) ac_checking= ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
7467 # these enable particular checks
7468 assert) ac_assert_checking=1 ;;
7469 misc) ac_checking=1 ;;
7470 valgrind) ac_valgrind_checking=1 ;;
7471 # accept
7472 *) ;;
7473 esac
7474 done
7475 IFS="$ac_save_IFS"
7476
7477 if test x$ac_checking != x ; then
7478
7479 $as_echo "#define CHECKING_P 1" >>confdefs.h
7480
7481 else
7482 $as_echo "#define CHECKING_P 0" >>confdefs.h
7483
7484 fi
7485
7486 if test x$ac_assert_checking != x ; then
7487
7488 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7489
7490 fi
7491
7492 if test x$ac_valgrind_checking != x ; then
7493
7494 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7495
7496 fi
7497
7498 # Check whether --enable-canonical-system-headers was given.
7499 if test "${enable_canonical_system_headers+set}" = set; then :
7500 enableval=$enable_canonical_system_headers;
7501 else
7502 enable_canonical_system_headers=yes
7503 fi
7504
7505 if test $enable_canonical_system_headers != no; then
7506
7507 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7508
7509 fi
7510
7511 case $target in
7512 i?86-* | x86_64-*)
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515
7516 int
7517 main ()
7518 {
7519 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7520 ;
7521 return 0;
7522 }
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7525
7526 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7527
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 esac
7531
7532 # Enable --enable-host-shared.
7533 # Check whether --enable-host-shared was given.
7534 if test "${enable_host_shared+set}" = set; then :
7535 enableval=$enable_host_shared; PICFLAG=-fPIC
7536 else
7537 PICFLAG=
7538 fi
7539
7540
7541
7542 # Enable Intel CET on Intel CET enabled host if jit is enabled.
7543 # Check whether --enable-cet was given.
7544 if test "${enable_cet+set}" = set; then :
7545 enableval=$enable_cet;
7546 case "$enableval" in
7547 yes|no|auto) ;;
7548 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
7549 esac
7550
7551 else
7552 enable_cet=auto
7553 fi
7554
7555
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
7557 $as_echo_n "checking for CET support... " >&6; }
7558
7559 case "$host" in
7560 i[34567]86-*-linux* | x86_64-*-linux*)
7561 may_have_cet=yes
7562 cet_save_CFLAGS="$CFLAGS"
7563 CFLAGS="$CFLAGS -fcf-protection"
7564 case "$enable_cet" in
7565 auto)
7566 # Check if target supports multi-byte NOPs
7567 # and if assembler supports CET insn.
7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7570
7571 int
7572 main ()
7573 {
7574
7575 #if !defined(__SSE2__)
7576 #error target does not support multi-byte NOPs
7577 #else
7578 asm ("setssbsy");
7579 #endif
7580
7581 ;
7582 return 0;
7583 }
7584 _ACEOF
7585 if ac_fn_c_try_compile "$LINENO"; then :
7586 enable_cet=yes
7587 else
7588 enable_cet=no
7589 fi
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591 ;;
7592 yes)
7593 # Check if assembler supports CET.
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7596
7597 int
7598 main ()
7599 {
7600 asm ("setssbsy");
7601 ;
7602 return 0;
7603 }
7604 _ACEOF
7605 if ac_fn_c_try_compile "$LINENO"; then :
7606
7607 else
7608 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
7609 fi
7610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611 ;;
7612 esac
7613 CFLAGS="$cet_save_CFLAGS"
7614 ;;
7615 *)
7616 may_have_cet=no
7617 enable_cet=no
7618 ;;
7619 esac
7620
7621 cet_save_CFLAGS="$CFLAGS"
7622 CFLAGS="$CFLAGS -fcf-protection=none"
7623 cet_save_LDFLAGS="$LDFLAGS"
7624 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
7625 if test x$may_have_cet = xyes; then
7626 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629
7630 int
7631 main ()
7632 {
7633 return 0;
7634 ;
7635 return 0;
7636 }
7637 _ACEOF
7638 if ac_fn_c_try_link "$LINENO"; then :
7639 may_have_cet=yes
7640 else
7641 may_have_cet=no
7642 fi
7643 rm -f core conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
7645 fi
7646
7647 if test x$may_have_cet = xyes; then
7648 if test x$cross_compiling = xno; then
7649 if test "$cross_compiling" = yes; then :
7650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7652 as_fn_error $? "cannot run test program while cross compiling
7653 See \`config.log' for more details" "$LINENO" 5; }
7654 else
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657
7658 static void
7659 foo (void)
7660 {
7661 }
7662
7663 static void
7664 __attribute__ ((noinline, noclone))
7665 xxx (void (*f) (void))
7666 {
7667 f ();
7668 }
7669
7670 static void
7671 __attribute__ ((noinline, noclone))
7672 bar (void)
7673 {
7674 xxx (foo);
7675 }
7676
7677 int
7678 main ()
7679 {
7680 bar ();
7681 return 0;
7682 }
7683
7684 _ACEOF
7685 if ac_fn_c_try_run "$LINENO"; then :
7686 have_cet=no
7687 else
7688 have_cet=yes
7689 fi
7690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7691 conftest.$ac_objext conftest.beam conftest.$ac_ext
7692 fi
7693
7694 if test x$enable_cet = xno -a x$have_cet = xyes; then
7695 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
7696 fi
7697 fi
7698 else
7699 # Enable CET in cross compiler if possible so that it will run on both
7700 # CET and non-CET hosts.
7701 have_cet=yes
7702 fi
7703 if test x$enable_cet = xyes; then
7704 CET_HOST_FLAGS="-fcf-protection"
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7706 $as_echo "yes" >&6; }
7707 else
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7710 fi
7711 CFLAGS="$cet_save_CFLAGS"
7712 LDFLAGS="$cet_save_LDFLAGS"
7713
7714 case x$enable_languages in
7715 *jit*)
7716 ;;
7717 *)
7718 CET_HOST_FLAGS=
7719 ;;
7720 esac
7721
7722
7723 # Check whether --enable-valgrind-annotations was given.
7724 if test "${enable_valgrind_annotations+set}" = set; then :
7725 enableval=$enable_valgrind_annotations;
7726 else
7727 enable_valgrind_annotations=no
7728 fi
7729
7730 if test x$enable_valgrind_annotations != xno \
7731 || test x$ac_valgrind_checking != x; then
7732 if (test $have_valgrind_h = no \
7733 && test $gcc_cv_header_memcheck_h = no \
7734 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7735 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7736 fi
7737
7738 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7739
7740 fi
7741
7742 # Output.
7743
7744 ac_config_headers="$ac_config_headers config.h:config.in"
7745
7746 ac_config_files="$ac_config_files Makefile"
7747
7748 cat >confcache <<\_ACEOF
7749 # This file is a shell script that caches the results of configure
7750 # tests run on this system so they can be shared between configure
7751 # scripts and configure runs, see configure's option --config-cache.
7752 # It is not useful on other systems. If it contains results you don't
7753 # want to keep, you may remove or edit it.
7754 #
7755 # config.status only pays attention to the cache file if you give it
7756 # the --recheck option to rerun configure.
7757 #
7758 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7759 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7760 # following values.
7761
7762 _ACEOF
7763
7764 # The following way of writing the cache mishandles newlines in values,
7765 # but we know of no workaround that is simple, portable, and efficient.
7766 # So, we kill variables containing newlines.
7767 # Ultrix sh set writes to stderr and can't be redirected directly,
7768 # and sets the high bit in the cache file unless we assign to the vars.
7769 (
7770 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7771 eval ac_val=\$$ac_var
7772 case $ac_val in #(
7773 *${as_nl}*)
7774 case $ac_var in #(
7775 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7776 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7777 esac
7778 case $ac_var in #(
7779 _ | IFS | as_nl) ;; #(
7780 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7781 *) { eval $ac_var=; unset $ac_var;} ;;
7782 esac ;;
7783 esac
7784 done
7785
7786 (set) 2>&1 |
7787 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7788 *${as_nl}ac_space=\ *)
7789 # `set' does not quote correctly, so add quotes: double-quote
7790 # substitution turns \\\\ into \\, and sed turns \\ into \.
7791 sed -n \
7792 "s/'/'\\\\''/g;
7793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7794 ;; #(
7795 *)
7796 # `set' quotes correctly as required by POSIX, so do not add quotes.
7797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7798 ;;
7799 esac |
7800 sort
7801 ) |
7802 sed '
7803 /^ac_cv_env_/b end
7804 t clear
7805 :clear
7806 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7807 t end
7808 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7809 :end' >>confcache
7810 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7811 if test -w "$cache_file"; then
7812 if test "x$cache_file" != "x/dev/null"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7814 $as_echo "$as_me: updating cache $cache_file" >&6;}
7815 if test ! -f "$cache_file" || test -h "$cache_file"; then
7816 cat confcache >"$cache_file"
7817 else
7818 case $cache_file in #(
7819 */* | ?:*)
7820 mv -f confcache "$cache_file"$$ &&
7821 mv -f "$cache_file"$$ "$cache_file" ;; #(
7822 *)
7823 mv -f confcache "$cache_file" ;;
7824 esac
7825 fi
7826 fi
7827 else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7829 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7830 fi
7831 fi
7832 rm -f confcache
7833
7834 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7835 # Let make expand exec_prefix.
7836 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7837
7838 DEFS=-DHAVE_CONFIG_H
7839
7840 ac_libobjs=
7841 ac_ltlibobjs=
7842 U=
7843 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7844 # 1. Remove the extension, and $U if already installed.
7845 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7846 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7847 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7848 # will be set to the directory where LIBOBJS objects are built.
7849 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7850 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7851 done
7852 LIBOBJS=$ac_libobjs
7853
7854 LTLIBOBJS=$ac_ltlibobjs
7855
7856
7857
7858
7859 : "${CONFIG_STATUS=./config.status}"
7860 ac_write_fail=0
7861 ac_clean_files_save=$ac_clean_files
7862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7864 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7865 as_write_fail=0
7866 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7867 #! $SHELL
7868 # Generated by $as_me.
7869 # Run this file to recreate the current configuration.
7870 # Compiler output produced by configure, useful for debugging
7871 # configure, is in config.log if it exists.
7872
7873 debug=false
7874 ac_cs_recheck=false
7875 ac_cs_silent=false
7876
7877 SHELL=\${CONFIG_SHELL-$SHELL}
7878 export SHELL
7879 _ASEOF
7880 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7881 ## -------------------- ##
7882 ## M4sh Initialization. ##
7883 ## -------------------- ##
7884
7885 # Be more Bourne compatible
7886 DUALCASE=1; export DUALCASE # for MKS sh
7887 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7888 emulate sh
7889 NULLCMD=:
7890 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7891 # is contrary to our usage. Disable this feature.
7892 alias -g '${1+"$@"}'='"$@"'
7893 setopt NO_GLOB_SUBST
7894 else
7895 case `(set -o) 2>/dev/null` in #(
7896 *posix*) :
7897 set -o posix ;; #(
7898 *) :
7899 ;;
7900 esac
7901 fi
7902
7903
7904 as_nl='
7905 '
7906 export as_nl
7907 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7908 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7909 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7911 # Prefer a ksh shell builtin over an external printf program on Solaris,
7912 # but without wasting forks for bash or zsh.
7913 if test -z "$BASH_VERSION$ZSH_VERSION" \
7914 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7915 as_echo='print -r --'
7916 as_echo_n='print -rn --'
7917 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7918 as_echo='printf %s\n'
7919 as_echo_n='printf %s'
7920 else
7921 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7922 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7923 as_echo_n='/usr/ucb/echo -n'
7924 else
7925 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7926 as_echo_n_body='eval
7927 arg=$1;
7928 case $arg in #(
7929 *"$as_nl"*)
7930 expr "X$arg" : "X\\(.*\\)$as_nl";
7931 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7932 esac;
7933 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7934 '
7935 export as_echo_n_body
7936 as_echo_n='sh -c $as_echo_n_body as_echo'
7937 fi
7938 export as_echo_body
7939 as_echo='sh -c $as_echo_body as_echo'
7940 fi
7941
7942 # The user is always right.
7943 if test "${PATH_SEPARATOR+set}" != set; then
7944 PATH_SEPARATOR=:
7945 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7946 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7947 PATH_SEPARATOR=';'
7948 }
7949 fi
7950
7951
7952 # IFS
7953 # We need space, tab and new line, in precisely that order. Quoting is
7954 # there to prevent editors from complaining about space-tab.
7955 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7956 # splitting by setting IFS to empty value.)
7957 IFS=" "" $as_nl"
7958
7959 # Find who we are. Look in the path if we contain no directory separator.
7960 as_myself=
7961 case $0 in #((
7962 *[\\/]* ) as_myself=$0 ;;
7963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7969 done
7970 IFS=$as_save_IFS
7971
7972 ;;
7973 esac
7974 # We did not find ourselves, most probably we were run as `sh COMMAND'
7975 # in which case we are not to be found in the path.
7976 if test "x$as_myself" = x; then
7977 as_myself=$0
7978 fi
7979 if test ! -f "$as_myself"; then
7980 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7981 exit 1
7982 fi
7983
7984 # Unset variables that we do not need and which cause bugs (e.g. in
7985 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7986 # suppresses any "Segmentation fault" message there. '((' could
7987 # trigger a bug in pdksh 5.2.14.
7988 for as_var in BASH_ENV ENV MAIL MAILPATH
7989 do eval test x\${$as_var+set} = xset \
7990 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7991 done
7992 PS1='$ '
7993 PS2='> '
7994 PS4='+ '
7995
7996 # NLS nuisances.
7997 LC_ALL=C
7998 export LC_ALL
7999 LANGUAGE=C
8000 export LANGUAGE
8001
8002 # CDPATH.
8003 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8004
8005
8006 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8007 # ----------------------------------------
8008 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8009 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8010 # script with STATUS, using 1 if that was 0.
8011 as_fn_error ()
8012 {
8013 as_status=$1; test $as_status -eq 0 && as_status=1
8014 if test "$4"; then
8015 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8016 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8017 fi
8018 $as_echo "$as_me: error: $2" >&2
8019 as_fn_exit $as_status
8020 } # as_fn_error
8021
8022
8023 # as_fn_set_status STATUS
8024 # -----------------------
8025 # Set $? to STATUS, without forking.
8026 as_fn_set_status ()
8027 {
8028 return $1
8029 } # as_fn_set_status
8030
8031 # as_fn_exit STATUS
8032 # -----------------
8033 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8034 as_fn_exit ()
8035 {
8036 set +e
8037 as_fn_set_status $1
8038 exit $1
8039 } # as_fn_exit
8040
8041 # as_fn_unset VAR
8042 # ---------------
8043 # Portably unset VAR.
8044 as_fn_unset ()
8045 {
8046 { eval $1=; unset $1;}
8047 }
8048 as_unset=as_fn_unset
8049 # as_fn_append VAR VALUE
8050 # ----------------------
8051 # Append the text in VALUE to the end of the definition contained in VAR. Take
8052 # advantage of any shell optimizations that allow amortized linear growth over
8053 # repeated appends, instead of the typical quadratic growth present in naive
8054 # implementations.
8055 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8056 eval 'as_fn_append ()
8057 {
8058 eval $1+=\$2
8059 }'
8060 else
8061 as_fn_append ()
8062 {
8063 eval $1=\$$1\$2
8064 }
8065 fi # as_fn_append
8066
8067 # as_fn_arith ARG...
8068 # ------------------
8069 # Perform arithmetic evaluation on the ARGs, and store the result in the
8070 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8071 # must be portable across $(()) and expr.
8072 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8073 eval 'as_fn_arith ()
8074 {
8075 as_val=$(( $* ))
8076 }'
8077 else
8078 as_fn_arith ()
8079 {
8080 as_val=`expr "$@" || test $? -eq 1`
8081 }
8082 fi # as_fn_arith
8083
8084
8085 if expr a : '\(a\)' >/dev/null 2>&1 &&
8086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8087 as_expr=expr
8088 else
8089 as_expr=false
8090 fi
8091
8092 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8093 as_basename=basename
8094 else
8095 as_basename=false
8096 fi
8097
8098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8099 as_dirname=dirname
8100 else
8101 as_dirname=false
8102 fi
8103
8104 as_me=`$as_basename -- "$0" ||
8105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8106 X"$0" : 'X\(//\)$' \| \
8107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8108 $as_echo X/"$0" |
8109 sed '/^.*\/\([^/][^/]*\)\/*$/{
8110 s//\1/
8111 q
8112 }
8113 /^X\/\(\/\/\)$/{
8114 s//\1/
8115 q
8116 }
8117 /^X\/\(\/\).*/{
8118 s//\1/
8119 q
8120 }
8121 s/.*/./; q'`
8122
8123 # Avoid depending upon Character Ranges.
8124 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8125 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8126 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8127 as_cr_digits='0123456789'
8128 as_cr_alnum=$as_cr_Letters$as_cr_digits
8129
8130 ECHO_C= ECHO_N= ECHO_T=
8131 case `echo -n x` in #(((((
8132 -n*)
8133 case `echo 'xy\c'` in
8134 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8135 xy) ECHO_C='\c';;
8136 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8137 ECHO_T=' ';;
8138 esac;;
8139 *)
8140 ECHO_N='-n';;
8141 esac
8142
8143 rm -f conf$$ conf$$.exe conf$$.file
8144 if test -d conf$$.dir; then
8145 rm -f conf$$.dir/conf$$.file
8146 else
8147 rm -f conf$$.dir
8148 mkdir conf$$.dir 2>/dev/null
8149 fi
8150 if (echo >conf$$.file) 2>/dev/null; then
8151 if ln -s conf$$.file conf$$ 2>/dev/null; then
8152 as_ln_s='ln -s'
8153 # ... but there are two gotchas:
8154 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8155 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8156 # In both cases, we have to default to `cp -pR'.
8157 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8158 as_ln_s='cp -pR'
8159 elif ln conf$$.file conf$$ 2>/dev/null; then
8160 as_ln_s=ln
8161 else
8162 as_ln_s='cp -pR'
8163 fi
8164 else
8165 as_ln_s='cp -pR'
8166 fi
8167 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8168 rmdir conf$$.dir 2>/dev/null
8169
8170
8171 # as_fn_mkdir_p
8172 # -------------
8173 # Create "$as_dir" as a directory, including parents if necessary.
8174 as_fn_mkdir_p ()
8175 {
8176
8177 case $as_dir in #(
8178 -*) as_dir=./$as_dir;;
8179 esac
8180 test -d "$as_dir" || eval $as_mkdir_p || {
8181 as_dirs=
8182 while :; do
8183 case $as_dir in #(
8184 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8185 *) as_qdir=$as_dir;;
8186 esac
8187 as_dirs="'$as_qdir' $as_dirs"
8188 as_dir=`$as_dirname -- "$as_dir" ||
8189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8190 X"$as_dir" : 'X\(//\)[^/]' \| \
8191 X"$as_dir" : 'X\(//\)$' \| \
8192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8193 $as_echo X"$as_dir" |
8194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8195 s//\1/
8196 q
8197 }
8198 /^X\(\/\/\)[^/].*/{
8199 s//\1/
8200 q
8201 }
8202 /^X\(\/\/\)$/{
8203 s//\1/
8204 q
8205 }
8206 /^X\(\/\).*/{
8207 s//\1/
8208 q
8209 }
8210 s/.*/./; q'`
8211 test -d "$as_dir" && break
8212 done
8213 test -z "$as_dirs" || eval "mkdir $as_dirs"
8214 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8215
8216
8217 } # as_fn_mkdir_p
8218 if mkdir -p . 2>/dev/null; then
8219 as_mkdir_p='mkdir -p "$as_dir"'
8220 else
8221 test -d ./-p && rmdir ./-p
8222 as_mkdir_p=false
8223 fi
8224
8225
8226 # as_fn_executable_p FILE
8227 # -----------------------
8228 # Test if FILE is an executable regular file.
8229 as_fn_executable_p ()
8230 {
8231 test -f "$1" && test -x "$1"
8232 } # as_fn_executable_p
8233 as_test_x='test -x'
8234 as_executable_p=as_fn_executable_p
8235
8236 # Sed expression to map a string onto a valid CPP name.
8237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8238
8239 # Sed expression to map a string onto a valid variable name.
8240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8241
8242
8243 exec 6>&1
8244 ## ----------------------------------- ##
8245 ## Main body of $CONFIG_STATUS script. ##
8246 ## ----------------------------------- ##
8247 _ASEOF
8248 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8249
8250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8251 # Save the log message, to keep $0 and so on meaningful, and to
8252 # report actual input values of CONFIG_FILES etc. instead of their
8253 # values after options handling.
8254 ac_log="
8255 This file was extended by cpplib $as_me , which was
8256 generated by GNU Autoconf 2.69. Invocation command line was
8257
8258 CONFIG_FILES = $CONFIG_FILES
8259 CONFIG_HEADERS = $CONFIG_HEADERS
8260 CONFIG_LINKS = $CONFIG_LINKS
8261 CONFIG_COMMANDS = $CONFIG_COMMANDS
8262 $ $0 $@
8263
8264 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8265 "
8266
8267 _ACEOF
8268
8269 case $ac_config_files in *"
8270 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8271 esac
8272
8273 case $ac_config_headers in *"
8274 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8275 esac
8276
8277
8278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8279 # Files that config.status was made for.
8280 config_files="$ac_config_files"
8281 config_headers="$ac_config_headers"
8282 config_commands="$ac_config_commands"
8283
8284 _ACEOF
8285
8286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8287 ac_cs_usage="\
8288 \`$as_me' instantiates files and other configuration actions
8289 from templates according to the current configuration. Unless the files
8290 and actions are specified as TAGs, all are instantiated by default.
8291
8292 Usage: $0 [OPTION]... [TAG]...
8293
8294 -h, --help print this help, then exit
8295 -V, --version print version number and configuration settings, then exit
8296 --config print configuration, then exit
8297 -q, --quiet, --silent
8298 do not print progress messages
8299 -d, --debug don't remove temporary files
8300 --recheck update $as_me by reconfiguring in the same conditions
8301 --file=FILE[:TEMPLATE]
8302 instantiate the configuration file FILE
8303 --header=FILE[:TEMPLATE]
8304 instantiate the configuration header FILE
8305
8306 Configuration files:
8307 $config_files
8308
8309 Configuration headers:
8310 $config_headers
8311
8312 Configuration commands:
8313 $config_commands
8314
8315 Report bugs to <gcc-bugs@gcc.gnu.org>."
8316
8317 _ACEOF
8318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8319 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8320 ac_cs_version="\\
8321 cpplib config.status
8322 configured by $0, generated by GNU Autoconf 2.69,
8323 with options \\"\$ac_cs_config\\"
8324
8325 Copyright (C) 2012 Free Software Foundation, Inc.
8326 This config.status script is free software; the Free Software Foundation
8327 gives unlimited permission to copy, distribute and modify it."
8328
8329 ac_pwd='$ac_pwd'
8330 srcdir='$srcdir'
8331 INSTALL='$INSTALL'
8332 test -n "\$AWK" || AWK=awk
8333 _ACEOF
8334
8335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8336 # The default lists apply if the user does not specify any file.
8337 ac_need_defaults=:
8338 while test $# != 0
8339 do
8340 case $1 in
8341 --*=?*)
8342 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8343 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8344 ac_shift=:
8345 ;;
8346 --*=)
8347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8348 ac_optarg=
8349 ac_shift=:
8350 ;;
8351 *)
8352 ac_option=$1
8353 ac_optarg=$2
8354 ac_shift=shift
8355 ;;
8356 esac
8357
8358 case $ac_option in
8359 # Handling of the options.
8360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8361 ac_cs_recheck=: ;;
8362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8363 $as_echo "$ac_cs_version"; exit ;;
8364 --config | --confi | --conf | --con | --co | --c )
8365 $as_echo "$ac_cs_config"; exit ;;
8366 --debug | --debu | --deb | --de | --d | -d )
8367 debug=: ;;
8368 --file | --fil | --fi | --f )
8369 $ac_shift
8370 case $ac_optarg in
8371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8372 '') as_fn_error $? "missing file argument" ;;
8373 esac
8374 as_fn_append CONFIG_FILES " '$ac_optarg'"
8375 ac_need_defaults=false;;
8376 --header | --heade | --head | --hea )
8377 $ac_shift
8378 case $ac_optarg in
8379 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8380 esac
8381 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8382 ac_need_defaults=false;;
8383 --he | --h)
8384 # Conflict between --help and --header
8385 as_fn_error $? "ambiguous option: \`$1'
8386 Try \`$0 --help' for more information.";;
8387 --help | --hel | -h )
8388 $as_echo "$ac_cs_usage"; exit ;;
8389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8390 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8391 ac_cs_silent=: ;;
8392
8393 # This is an error.
8394 -*) as_fn_error $? "unrecognized option: \`$1'
8395 Try \`$0 --help' for more information." ;;
8396
8397 *) as_fn_append ac_config_targets " $1"
8398 ac_need_defaults=false ;;
8399
8400 esac
8401 shift
8402 done
8403
8404 ac_configure_extra_args=
8405
8406 if $ac_cs_silent; then
8407 exec 6>/dev/null
8408 ac_configure_extra_args="$ac_configure_extra_args --silent"
8409 fi
8410
8411 _ACEOF
8412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8413 if \$ac_cs_recheck; then
8414 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8415 shift
8416 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8417 CONFIG_SHELL='$SHELL'
8418 export CONFIG_SHELL
8419 exec "\$@"
8420 fi
8421
8422 _ACEOF
8423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8424 exec 5>>config.log
8425 {
8426 echo
8427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8428 ## Running $as_me. ##
8429 _ASBOX
8430 $as_echo "$ac_log"
8431 } >&5
8432
8433 _ACEOF
8434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8435 #
8436 # INIT-COMMANDS
8437 #
8438 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8439
8440 _ACEOF
8441
8442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8443
8444 # Handling of arguments.
8445 for ac_config_target in $ac_config_targets
8446 do
8447 case $ac_config_target in
8448 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
8449 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8450 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8451
8452 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8453 esac
8454 done
8455
8456
8457 # If the user did not use the arguments to specify the items to instantiate,
8458 # then the envvar interface is used. Set only those that are not.
8459 # We use the long form for the default assignment because of an extremely
8460 # bizarre bug on SunOS 4.1.3.
8461 if $ac_need_defaults; then
8462 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8463 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8464 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8465 fi
8466
8467 # Have a temporary directory for convenience. Make it in the build tree
8468 # simply because there is no reason against having it here, and in addition,
8469 # creating and moving files from /tmp can sometimes cause problems.
8470 # Hook for its removal unless debugging.
8471 # Note that there is a small window in which the directory will not be cleaned:
8472 # after its creation but before its name has been assigned to `$tmp'.
8473 $debug ||
8474 {
8475 tmp= ac_tmp=
8476 trap 'exit_status=$?
8477 : "${ac_tmp:=$tmp}"
8478 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8479 ' 0
8480 trap 'as_fn_exit 1' 1 2 13 15
8481 }
8482 # Create a (secure) tmp directory for tmp files.
8483
8484 {
8485 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8486 test -d "$tmp"
8487 } ||
8488 {
8489 tmp=./conf$$-$RANDOM
8490 (umask 077 && mkdir "$tmp")
8491 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8492 ac_tmp=$tmp
8493
8494 # Set up the scripts for CONFIG_FILES section.
8495 # No need to generate them if there are no CONFIG_FILES.
8496 # This happens for instance with `./config.status config.h'.
8497 if test -n "$CONFIG_FILES"; then
8498
8499
8500 ac_cr=`echo X | tr X '\015'`
8501 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8502 # But we know of no other shell where ac_cr would be empty at this
8503 # point, so we can use a bashism as a fallback.
8504 if test "x$ac_cr" = x; then
8505 eval ac_cr=\$\'\\r\'
8506 fi
8507 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8508 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8509 ac_cs_awk_cr='\\r'
8510 else
8511 ac_cs_awk_cr=$ac_cr
8512 fi
8513
8514 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8515 _ACEOF
8516
8517
8518 {
8519 echo "cat >conf$$subs.awk <<_ACEOF" &&
8520 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8521 echo "_ACEOF"
8522 } >conf$$subs.sh ||
8523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8524 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8525 ac_delim='%!_!# '
8526 for ac_last_try in false false false false false :; do
8527 . ./conf$$subs.sh ||
8528 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8529
8530 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8531 if test $ac_delim_n = $ac_delim_num; then
8532 break
8533 elif $ac_last_try; then
8534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8535 else
8536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8537 fi
8538 done
8539 rm -f conf$$subs.sh
8540
8541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8542 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8543 _ACEOF
8544 sed -n '
8545 h
8546 s/^/S["/; s/!.*/"]=/
8547 p
8548 g
8549 s/^[^!]*!//
8550 :repl
8551 t repl
8552 s/'"$ac_delim"'$//
8553 t delim
8554 :nl
8555 h
8556 s/\(.\{148\}\)..*/\1/
8557 t more1
8558 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8559 p
8560 n
8561 b repl
8562 :more1
8563 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8564 p
8565 g
8566 s/.\{148\}//
8567 t nl
8568 :delim
8569 h
8570 s/\(.\{148\}\)..*/\1/
8571 t more2
8572 s/["\\]/\\&/g; s/^/"/; s/$/"/
8573 p
8574 b
8575 :more2
8576 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8577 p
8578 g
8579 s/.\{148\}//
8580 t delim
8581 ' <conf$$subs.awk | sed '
8582 /^[^""]/{
8583 N
8584 s/\n//
8585 }
8586 ' >>$CONFIG_STATUS || ac_write_fail=1
8587 rm -f conf$$subs.awk
8588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8589 _ACAWK
8590 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8591 for (key in S) S_is_set[key] = 1
8592 FS = "\a"
8593
8594 }
8595 {
8596 line = $ 0
8597 nfields = split(line, field, "@")
8598 substed = 0
8599 len = length(field[1])
8600 for (i = 2; i < nfields; i++) {
8601 key = field[i]
8602 keylen = length(key)
8603 if (S_is_set[key]) {
8604 value = S[key]
8605 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8606 len += length(value) + length(field[++i])
8607 substed = 1
8608 } else
8609 len += 1 + keylen
8610 }
8611
8612 print line
8613 }
8614
8615 _ACAWK
8616 _ACEOF
8617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8618 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8619 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8620 else
8621 cat
8622 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8623 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8624 _ACEOF
8625
8626 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8627 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8628 # trailing colons and then remove the whole line if VPATH becomes empty
8629 # (actually we leave an empty line to preserve line numbers).
8630 if test "x$srcdir" = x.; then
8631 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8632 h
8633 s///
8634 s/^/:/
8635 s/[ ]*$/:/
8636 s/:\$(srcdir):/:/g
8637 s/:\${srcdir}:/:/g
8638 s/:@srcdir@:/:/g
8639 s/^:*//
8640 s/:*$//
8641 x
8642 s/\(=[ ]*\).*/\1/
8643 G
8644 s/\n//
8645 s/^[^=]*=[ ]*$//
8646 }'
8647 fi
8648
8649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8650 fi # test -n "$CONFIG_FILES"
8651
8652 # Set up the scripts for CONFIG_HEADERS section.
8653 # No need to generate them if there are no CONFIG_HEADERS.
8654 # This happens for instance with `./config.status Makefile'.
8655 if test -n "$CONFIG_HEADERS"; then
8656 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8657 BEGIN {
8658 _ACEOF
8659
8660 # Transform confdefs.h into an awk script `defines.awk', embedded as
8661 # here-document in config.status, that substitutes the proper values into
8662 # config.h.in to produce config.h.
8663
8664 # Create a delimiter string that does not exist in confdefs.h, to ease
8665 # handling of long lines.
8666 ac_delim='%!_!# '
8667 for ac_last_try in false false :; do
8668 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8669 if test -z "$ac_tt"; then
8670 break
8671 elif $ac_last_try; then
8672 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8673 else
8674 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8675 fi
8676 done
8677
8678 # For the awk script, D is an array of macro values keyed by name,
8679 # likewise P contains macro parameters if any. Preserve backslash
8680 # newline sequences.
8681
8682 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8683 sed -n '
8684 s/.\{148\}/&'"$ac_delim"'/g
8685 t rset
8686 :rset
8687 s/^[ ]*#[ ]*define[ ][ ]*/ /
8688 t def
8689 d
8690 :def
8691 s/\\$//
8692 t bsnl
8693 s/["\\]/\\&/g
8694 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8695 D["\1"]=" \3"/p
8696 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8697 d
8698 :bsnl
8699 s/["\\]/\\&/g
8700 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8701 D["\1"]=" \3\\\\\\n"\\/p
8702 t cont
8703 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8704 t cont
8705 d
8706 :cont
8707 n
8708 s/.\{148\}/&'"$ac_delim"'/g
8709 t clear
8710 :clear
8711 s/\\$//
8712 t bsnlc
8713 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8714 d
8715 :bsnlc
8716 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8717 b cont
8718 ' <confdefs.h | sed '
8719 s/'"$ac_delim"'/"\\\
8720 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8721
8722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8723 for (key in D) D_is_set[key] = 1
8724 FS = "\a"
8725 }
8726 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8727 line = \$ 0
8728 split(line, arg, " ")
8729 if (arg[1] == "#") {
8730 defundef = arg[2]
8731 mac1 = arg[3]
8732 } else {
8733 defundef = substr(arg[1], 2)
8734 mac1 = arg[2]
8735 }
8736 split(mac1, mac2, "(") #)
8737 macro = mac2[1]
8738 prefix = substr(line, 1, index(line, defundef) - 1)
8739 if (D_is_set[macro]) {
8740 # Preserve the white space surrounding the "#".
8741 print prefix "define", macro P[macro] D[macro]
8742 next
8743 } else {
8744 # Replace #undef with comments. This is necessary, for example,
8745 # in the case of _POSIX_SOURCE, which is predefined and required
8746 # on some systems where configure will not decide to define it.
8747 if (defundef == "undef") {
8748 print "/*", prefix defundef, macro, "*/"
8749 next
8750 }
8751 }
8752 }
8753 { print }
8754 _ACAWK
8755 _ACEOF
8756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8757 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8758 fi # test -n "$CONFIG_HEADERS"
8759
8760
8761 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8762 shift
8763 for ac_tag
8764 do
8765 case $ac_tag in
8766 :[FHLC]) ac_mode=$ac_tag; continue;;
8767 esac
8768 case $ac_mode$ac_tag in
8769 :[FHL]*:*);;
8770 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8771 :[FH]-) ac_tag=-:-;;
8772 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8773 esac
8774 ac_save_IFS=$IFS
8775 IFS=:
8776 set x $ac_tag
8777 IFS=$ac_save_IFS
8778 shift
8779 ac_file=$1
8780 shift
8781
8782 case $ac_mode in
8783 :L) ac_source=$1;;
8784 :[FH])
8785 ac_file_inputs=
8786 for ac_f
8787 do
8788 case $ac_f in
8789 -) ac_f="$ac_tmp/stdin";;
8790 *) # Look for the file first in the build tree, then in the source tree
8791 # (if the path is not absolute). The absolute path cannot be DOS-style,
8792 # because $ac_f cannot contain `:'.
8793 test -f "$ac_f" ||
8794 case $ac_f in
8795 [\\/$]*) false;;
8796 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8797 esac ||
8798 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8799 esac
8800 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8801 as_fn_append ac_file_inputs " '$ac_f'"
8802 done
8803
8804 # Let's still pretend it is `configure' which instantiates (i.e., don't
8805 # use $as_me), people would be surprised to read:
8806 # /* config.h. Generated by config.status. */
8807 configure_input='Generated from '`
8808 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8809 `' by configure.'
8810 if test x"$ac_file" != x-; then
8811 configure_input="$ac_file. $configure_input"
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8813 $as_echo "$as_me: creating $ac_file" >&6;}
8814 fi
8815 # Neutralize special characters interpreted by sed in replacement strings.
8816 case $configure_input in #(
8817 *\&* | *\|* | *\\* )
8818 ac_sed_conf_input=`$as_echo "$configure_input" |
8819 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8820 *) ac_sed_conf_input=$configure_input;;
8821 esac
8822
8823 case $ac_tag in
8824 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8826 esac
8827 ;;
8828 esac
8829
8830 ac_dir=`$as_dirname -- "$ac_file" ||
8831 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8832 X"$ac_file" : 'X\(//\)[^/]' \| \
8833 X"$ac_file" : 'X\(//\)$' \| \
8834 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8835 $as_echo X"$ac_file" |
8836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8837 s//\1/
8838 q
8839 }
8840 /^X\(\/\/\)[^/].*/{
8841 s//\1/
8842 q
8843 }
8844 /^X\(\/\/\)$/{
8845 s//\1/
8846 q
8847 }
8848 /^X\(\/\).*/{
8849 s//\1/
8850 q
8851 }
8852 s/.*/./; q'`
8853 as_dir="$ac_dir"; as_fn_mkdir_p
8854 ac_builddir=.
8855
8856 case "$ac_dir" in
8857 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8858 *)
8859 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8860 # A ".." for each directory in $ac_dir_suffix.
8861 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8862 case $ac_top_builddir_sub in
8863 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8864 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8865 esac ;;
8866 esac
8867 ac_abs_top_builddir=$ac_pwd
8868 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8869 # for backward compatibility:
8870 ac_top_builddir=$ac_top_build_prefix
8871
8872 case $srcdir in
8873 .) # We are building in place.
8874 ac_srcdir=.
8875 ac_top_srcdir=$ac_top_builddir_sub
8876 ac_abs_top_srcdir=$ac_pwd ;;
8877 [\\/]* | ?:[\\/]* ) # Absolute name.
8878 ac_srcdir=$srcdir$ac_dir_suffix;
8879 ac_top_srcdir=$srcdir
8880 ac_abs_top_srcdir=$srcdir ;;
8881 *) # Relative name.
8882 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8883 ac_top_srcdir=$ac_top_build_prefix$srcdir
8884 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8885 esac
8886 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8887
8888
8889 case $ac_mode in
8890 :F)
8891 #
8892 # CONFIG_FILE
8893 #
8894
8895 case $INSTALL in
8896 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8897 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8898 esac
8899 _ACEOF
8900
8901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8902 # If the template does not know about datarootdir, expand it.
8903 # FIXME: This hack should be removed a few years after 2.60.
8904 ac_datarootdir_hack=; ac_datarootdir_seen=
8905 ac_sed_dataroot='
8906 /datarootdir/ {
8907 p
8908 q
8909 }
8910 /@datadir@/p
8911 /@docdir@/p
8912 /@infodir@/p
8913 /@localedir@/p
8914 /@mandir@/p'
8915 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8916 *datarootdir*) ac_datarootdir_seen=yes;;
8917 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8919 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8920 _ACEOF
8921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8922 ac_datarootdir_hack='
8923 s&@datadir@&$datadir&g
8924 s&@docdir@&$docdir&g
8925 s&@infodir@&$infodir&g
8926 s&@localedir@&$localedir&g
8927 s&@mandir@&$mandir&g
8928 s&\\\${datarootdir}&$datarootdir&g' ;;
8929 esac
8930 _ACEOF
8931
8932 # Neutralize VPATH when `$srcdir' = `.'.
8933 # Shell code in configure.ac might set extrasub.
8934 # FIXME: do we really want to maintain this feature?
8935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8936 ac_sed_extra="$ac_vpsub
8937 $extrasub
8938 _ACEOF
8939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8940 :t
8941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8942 s|@configure_input@|$ac_sed_conf_input|;t t
8943 s&@top_builddir@&$ac_top_builddir_sub&;t t
8944 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8945 s&@srcdir@&$ac_srcdir&;t t
8946 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8947 s&@top_srcdir@&$ac_top_srcdir&;t t
8948 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8949 s&@builddir@&$ac_builddir&;t t
8950 s&@abs_builddir@&$ac_abs_builddir&;t t
8951 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8952 s&@INSTALL@&$ac_INSTALL&;t t
8953 $ac_datarootdir_hack
8954 "
8955 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8956 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8957
8958 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8959 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8960 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8961 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8963 which seems to be undefined. Please make sure it is defined" >&5
8964 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8965 which seems to be undefined. Please make sure it is defined" >&2;}
8966
8967 rm -f "$ac_tmp/stdin"
8968 case $ac_file in
8969 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8970 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8971 esac \
8972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8973 ;;
8974 :H)
8975 #
8976 # CONFIG_HEADER
8977 #
8978 if test x"$ac_file" != x-; then
8979 {
8980 $as_echo "/* $configure_input */" \
8981 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8982 } >"$ac_tmp/config.h" \
8983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8984 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8986 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8987 else
8988 rm -f "$ac_file"
8989 mv "$ac_tmp/config.h" "$ac_file" \
8990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8991 fi
8992 else
8993 $as_echo "/* $configure_input */" \
8994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8995 || as_fn_error $? "could not create -" "$LINENO" 5
8996 fi
8997 ;;
8998
8999 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9000 $as_echo "$as_me: executing $ac_file commands" >&6;}
9001 ;;
9002 esac
9003
9004
9005 case $ac_file$ac_mode in
9006 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9007 "config.h":H) echo timestamp > stamp-h1 ;;
9008
9009 esac
9010 done # for ac_tag
9011
9012
9013 as_fn_exit 0
9014 _ACEOF
9015 ac_clean_files=$ac_clean_files_save
9016
9017 test $ac_write_fail = 0 ||
9018 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9019
9020
9021 # configure is writing to config.log, and then calls config.status.
9022 # config.status does its own redirection, appending to config.log.
9023 # Unfortunately, on DOS this fails, as config.log is still kept open
9024 # by configure, so config.status won't be able to write to it; its
9025 # output is simply discarded. So we exec the FD to /dev/null,
9026 # effectively closing config.log, so it can be properly (re)opened and
9027 # appended to by config.status. When coming back to configure, we
9028 # need to make the FD available again.
9029 if test "$no_create" != yes; then
9030 ac_cs_success=:
9031 ac_config_status_args=
9032 test "$silent" = yes &&
9033 ac_config_status_args="$ac_config_status_args --quiet"
9034 exec 5>/dev/null
9035 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9036 exec 5>>config.log
9037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9038 # would make configure fail if this is the last instruction.
9039 $ac_cs_success || as_fn_exit 1
9040 fi
9041 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9043 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9044 fi
9045