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