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