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