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