*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / 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="main.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 gl_header_list=
592 gl_func_list=
593 enable_option_checking=no
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 gltests_LTLIBOBJS
597 gltests_LIBOBJS
598 gl_LTLIBOBJS
599 gl_LIBOBJS
600 LTLIBOBJS
601 LIBOBJS
602 GDB_NM_FILE
603 frags
604 target_subdir
605 CONFIG_UNINSTALL
606 CONFIG_INSTALL
607 CONFIG_CLEAN
608 CONFIG_ALL
609 CONFIG_SRCS
610 CONFIG_DEPS
611 CONFIG_OBS
612 PROFILE_CFLAGS
613 ENABLE_CFLAGS
614 SIM_OBS
615 SIM
616 XMKMF
617 GDBTK_SRC_DIR
618 GDBTK_CFLAGS
619 GDBTKLIBS
620 X_LIBS
621 X_LDFLAGS
622 X_CFLAGS
623 TK_XINCLUDES
624 TK_DEPS
625 TK_LIBRARY
626 TK_INCLUDE
627 TK_STUB_LIB_SPEC
628 TK_STUB_LIB_FLAG
629 TK_STUB_LIB_FILE
630 TK_LIB_SPEC
631 TK_LIB_FLAG
632 TK_LIB_FILE
633 TK_SRC_DIR
634 TK_BIN_DIR
635 TK_VERSION
636 TCL_DEPS
637 TCL_LIBRARY
638 TCL_INCLUDE
639 TCL_STUB_LIB_SPEC
640 TCL_STUB_LIB_FLAG
641 TCL_STUB_LIB_FILE
642 TCL_LIB_SPEC
643 TCL_LIB_FLAG
644 TCL_LIB_FILE
645 TCL_SRC_DIR
646 TCL_BIN_DIR
647 TCL_PATCH_LEVEL
648 TCL_VERSION
649 WIN32LDAPP
650 GUI_CFLAGS_X
651 LIBGUI
652 WIN32LIBS
653 SER_HARDWIRE
654 WERROR_CFLAGS
655 WARN_CFLAGS
656 SYSTEM_GDBINIT
657 TARGET_SYSTEM_ROOT_DEFINE
658 TARGET_SYSTEM_ROOT
659 CONFIG_LDFLAGS
660 RDYNAMIC
661 ALLOCA
662 PYTHON_LIBS
663 PYTHON_CPPFLAGS
664 PYTHON_CFLAGS
665 python_prog_path
666 LTLIBEXPAT
667 LIBEXPAT
668 HAVE_LIBEXPAT
669 READLINE_TEXI_INCFLAG
670 READLINE_CFLAGS
671 READLINE_DEPS
672 READLINE
673 MIG
674 WINDRES
675 DLLTOOL
676 AR
677 YFLAGS
678 YACC
679 LN_S
680 REPORT_BUGS_TEXI
681 REPORT_BUGS_TO
682 PKGVERSION
683 TARGET_OBS
684 subdirs
685 GDB_DATADIR
686 DEBUGDIR
687 am__fastdepCC_FALSE
688 am__fastdepCC_TRUE
689 AMDEPBACKSLASH
690 AMDEP_FALSE
691 AMDEP_TRUE
692 am__quote
693 am__include
694 am__untar
695 am__tar
696 AMTAR
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 MAKEINFO_EXTRA_FLAGS
714 MAKEINFOFLAGS
715 MAKEINFO
716 PACKAGE
717 GNULIB_STDINT_H
718 LIBGNU_LTLIBDEPS
719 LIBGNU_LIBDEPS
720 gltests_WITNESS
721 HAVE_WINT_T
722 HAVE_WCHAR_H
723 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
724 NEXT_WCHAR_H
725 REPLACE_WCWIDTH
726 REPLACE_WCSNRTOMBS
727 REPLACE_WCSRTOMBS
728 REPLACE_WCRTOMB
729 REPLACE_MBSNRTOWCS
730 REPLACE_MBSRTOWCS
731 REPLACE_MBRLEN
732 REPLACE_MBRTOWC
733 REPLACE_MBSINIT
734 REPLACE_WCTOB
735 REPLACE_BTOWC
736 REPLACE_MBSTATE_T
737 HAVE_DECL_WCWIDTH
738 HAVE_DECL_WCTOB
739 HAVE_WCSNRTOMBS
740 HAVE_WCSRTOMBS
741 HAVE_WCRTOMB
742 HAVE_MBSNRTOWCS
743 HAVE_MBSRTOWCS
744 HAVE_MBRLEN
745 HAVE_MBRTOWC
746 HAVE_MBSINIT
747 HAVE_BTOWC
748 GNULIB_WCWIDTH
749 GNULIB_WCSNRTOMBS
750 GNULIB_WCSRTOMBS
751 GNULIB_WCRTOMB
752 GNULIB_MBSNRTOWCS
753 GNULIB_MBSRTOWCS
754 GNULIB_MBRLEN
755 GNULIB_MBRTOWC
756 GNULIB_MBSINIT
757 GNULIB_WCTOB
758 GNULIB_BTOWC
759 NEXT_AS_FIRST_DIRECTIVE_STRING_H
760 NEXT_STRING_H
761 STDINT_H
762 WINT_T_SUFFIX
763 WCHAR_T_SUFFIX
764 SIG_ATOMIC_T_SUFFIX
765 SIZE_T_SUFFIX
766 PTRDIFF_T_SUFFIX
767 HAVE_SIGNED_WINT_T
768 HAVE_SIGNED_WCHAR_T
769 HAVE_SIGNED_SIG_ATOMIC_T
770 BITSIZEOF_WINT_T
771 BITSIZEOF_WCHAR_T
772 BITSIZEOF_SIG_ATOMIC_T
773 BITSIZEOF_SIZE_T
774 BITSIZEOF_PTRDIFF_T
775 HAVE_SYS_BITYPES_H
776 HAVE_SYS_INTTYPES_H
777 HAVE_STDINT_H
778 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
779 NEXT_STDINT_H
780 HAVE_SYS_TYPES_H
781 HAVE_INTTYPES_H
782 HAVE_UNSIGNED_LONG_LONG_INT
783 HAVE_LONG_LONG_INT
784 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
785 NEXT_STDDEF_H
786 PRAGMA_SYSTEM_HEADER
787 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
788 INCLUDE_NEXT
789 STDDEF_H
790 HAVE_WCHAR_T
791 REPLACE_NULL
792 APPLE_UNIVERSAL_BUILD
793 UNDEFINE_STRTOK_R
794 REPLACE_STRTOK_R
795 REPLACE_STRSIGNAL
796 REPLACE_STRNLEN
797 REPLACE_STRNDUP
798 REPLACE_STRNCAT
799 REPLACE_STRERROR
800 REPLACE_STRCASESTR
801 REPLACE_STRSTR
802 REPLACE_STRDUP
803 REPLACE_STPNCPY
804 REPLACE_MEMMEM
805 REPLACE_MEMCHR
806 HAVE_STRVERSCMP
807 HAVE_DECL_STRSIGNAL
808 HAVE_DECL_STRTOK_R
809 HAVE_STRCASESTR
810 HAVE_STRSEP
811 HAVE_STRPBRK
812 HAVE_DECL_STRNLEN
813 HAVE_DECL_STRNDUP
814 HAVE_DECL_STRDUP
815 HAVE_STRCHRNUL
816 HAVE_STPNCPY
817 HAVE_STPCPY
818 HAVE_RAWMEMCHR
819 HAVE_DECL_MEMRCHR
820 HAVE_MEMPCPY
821 HAVE_DECL_MEMMEM
822 HAVE_MEMCHR
823 HAVE_MBSLEN
824 GNULIB_STRVERSCMP
825 GNULIB_STRSIGNAL
826 GNULIB_STRERROR
827 GNULIB_MBSTOK_R
828 GNULIB_MBSSEP
829 GNULIB_MBSSPN
830 GNULIB_MBSPBRK
831 GNULIB_MBSCSPN
832 GNULIB_MBSCASESTR
833 GNULIB_MBSPCASECMP
834 GNULIB_MBSNCASECMP
835 GNULIB_MBSCASECMP
836 GNULIB_MBSSTR
837 GNULIB_MBSRCHR
838 GNULIB_MBSCHR
839 GNULIB_MBSNLEN
840 GNULIB_MBSLEN
841 GNULIB_STRTOK_R
842 GNULIB_STRCASESTR
843 GNULIB_STRSTR
844 GNULIB_STRSEP
845 GNULIB_STRPBRK
846 GNULIB_STRNLEN
847 GNULIB_STRNDUP
848 GNULIB_STRNCAT
849 GNULIB_STRDUP
850 GNULIB_STRCHRNUL
851 GNULIB_STPNCPY
852 GNULIB_STPCPY
853 GNULIB_RAWMEMCHR
854 GNULIB_MEMRCHR
855 GNULIB_MEMPCPY
856 GNULIB_MEMMEM
857 GNULIB_MEMCHR
858 GL_COND_LIBTOOL_FALSE
859 GL_COND_LIBTOOL_TRUE
860 CATOBJEXT
861 GENCAT
862 INSTOBJEXT
863 DATADIRNAME
864 CATALOGS
865 POSUB
866 GMSGFMT
867 XGETTEXT
868 INCINTL
869 LIBINTL_DEP
870 LIBINTL
871 USE_NLS
872 SET_MAKE
873 GMAKE_FALSE
874 GMAKE_TRUE
875 MAKE
876 CCDEPMODE
877 DEPDIR
878 am__leading_dot
879 target_os
880 target_vendor
881 target_cpu
882 target
883 RANLIB
884 EGREP
885 GREP
886 CPP
887 host_os
888 host_vendor
889 host_cpu
890 host
891 build_os
892 build_vendor
893 build_cpu
894 build
895 OBJEXT
896 EXEEXT
897 ac_ct_CC
898 CPPFLAGS
899 LDFLAGS
900 CFLAGS
901 CC
902 MAINT
903 MAINTAINER_MODE_FALSE
904 MAINTAINER_MODE_TRUE
905 target_alias
906 host_alias
907 build_alias
908 LIBS
909 ECHO_T
910 ECHO_N
911 ECHO_C
912 DEFS
913 mandir
914 localedir
915 libdir
916 psdir
917 pdfdir
918 dvidir
919 htmldir
920 infodir
921 docdir
922 oldincludedir
923 includedir
924 localstatedir
925 sharedstatedir
926 sysconfdir
927 datadir
928 datarootdir
929 libexecdir
930 sbindir
931 bindir
932 program_transform_name
933 prefix
934 exec_prefix
935 PACKAGE_URL
936 PACKAGE_BUGREPORT
937 PACKAGE_STRING
938 PACKAGE_VERSION
939 PACKAGE_TARNAME
940 PACKAGE_NAME
941 PATH_SEPARATOR
942 SHELL'
943 ac_subst_files='host_makefile_frag'
944 ac_user_opts='
945 enable_option_checking
946 enable_maintainer_mode
947 enable_plugins
948 enable_largefile
949 enable_dependency_tracking
950 with_separate_debug_dir
951 with_gdb_datadir
952 with_relocated_sources
953 enable_targets
954 enable_64_bit_bfd
955 enable_gdbcli
956 enable_gdbmi
957 enable_tui
958 enable_gdbtk
959 with_libunwind
960 with_curses
961 enable_profiling
962 with_pkgversion
963 with_bugurl
964 with_zlib
965 with_libiconv_prefix
966 with_iconv_bin
967 with_system_readline
968 with_expat
969 with_gnu_ld
970 enable_rpath
971 with_libexpat_prefix
972 with_python
973 with_included_regex
974 with_sysroot
975 with_system_gdbinit
976 enable_werror
977 enable_build_warnings
978 enable_gdb_build_warnings
979 with_tcl
980 with_tk
981 with_x
982 enable_sim
983 enable_multi_ice
984 enable_gdbserver
985 '
986 ac_precious_vars='build_alias
987 host_alias
988 target_alias
989 CC
990 CFLAGS
991 LDFLAGS
992 LIBS
993 CPPFLAGS
994 CPP
995 YACC
996 YFLAGS
997 XMKMF'
998 ac_subdirs_all='testsuite
999 gdbtk
1000 multi-ice
1001 gdbserver'
1002
1003 # Initialize some variables set by options.
1004 ac_init_help=
1005 ac_init_version=false
1006 ac_unrecognized_opts=
1007 ac_unrecognized_sep=
1008 # The variables have the same names as the options, with
1009 # dashes changed to underlines.
1010 cache_file=/dev/null
1011 exec_prefix=NONE
1012 no_create=
1013 no_recursion=
1014 prefix=NONE
1015 program_prefix=NONE
1016 program_suffix=NONE
1017 program_transform_name=s,x,x,
1018 silent=
1019 site=
1020 srcdir=
1021 verbose=
1022 x_includes=NONE
1023 x_libraries=NONE
1024
1025 # Installation directory options.
1026 # These are left unexpanded so users can "make install exec_prefix=/foo"
1027 # and all the variables that are supposed to be based on exec_prefix
1028 # by default will actually change.
1029 # Use braces instead of parens because sh, perl, etc. also accept them.
1030 # (The list follows the same order as the GNU Coding Standards.)
1031 bindir='${exec_prefix}/bin'
1032 sbindir='${exec_prefix}/sbin'
1033 libexecdir='${exec_prefix}/libexec'
1034 datarootdir='${prefix}/share'
1035 datadir='${datarootdir}'
1036 sysconfdir='${prefix}/etc'
1037 sharedstatedir='${prefix}/com'
1038 localstatedir='${prefix}/var'
1039 includedir='${prefix}/include'
1040 oldincludedir='/usr/include'
1041 docdir='${datarootdir}/doc/${PACKAGE}'
1042 infodir='${datarootdir}/info'
1043 htmldir='${docdir}'
1044 dvidir='${docdir}'
1045 pdfdir='${docdir}'
1046 psdir='${docdir}'
1047 libdir='${exec_prefix}/lib'
1048 localedir='${datarootdir}/locale'
1049 mandir='${datarootdir}/man'
1050
1051 ac_prev=
1052 ac_dashdash=
1053 for ac_option
1054 do
1055 # If the previous option needs an argument, assign it.
1056 if test -n "$ac_prev"; then
1057 eval $ac_prev=\$ac_option
1058 ac_prev=
1059 continue
1060 fi
1061
1062 case $ac_option in
1063 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064 *) ac_optarg=yes ;;
1065 esac
1066
1067 # Accept the important Cygnus configure options, so we can diagnose typos.
1068
1069 case $ac_dashdash$ac_option in
1070 --)
1071 ac_dashdash=yes ;;
1072
1073 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1074 ac_prev=bindir ;;
1075 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1076 bindir=$ac_optarg ;;
1077
1078 -build | --build | --buil | --bui | --bu)
1079 ac_prev=build_alias ;;
1080 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1081 build_alias=$ac_optarg ;;
1082
1083 -cache-file | --cache-file | --cache-fil | --cache-fi \
1084 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1085 ac_prev=cache_file ;;
1086 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1087 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1088 cache_file=$ac_optarg ;;
1089
1090 --config-cache | -C)
1091 cache_file=config.cache ;;
1092
1093 -datadir | --datadir | --datadi | --datad)
1094 ac_prev=datadir ;;
1095 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1096 datadir=$ac_optarg ;;
1097
1098 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1099 | --dataroo | --dataro | --datar)
1100 ac_prev=datarootdir ;;
1101 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1102 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1103 datarootdir=$ac_optarg ;;
1104
1105 -disable-* | --disable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error "invalid feature name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114 "enable_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval enable_$ac_useropt=no ;;
1120
1121 -docdir | --docdir | --docdi | --doc | --do)
1122 ac_prev=docdir ;;
1123 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1124 docdir=$ac_optarg ;;
1125
1126 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1127 ac_prev=dvidir ;;
1128 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1129 dvidir=$ac_optarg ;;
1130
1131 -enable-* | --enable-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error "invalid feature name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "enable_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval enable_$ac_useropt=\$ac_optarg ;;
1146
1147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1149 | --exec | --exe | --ex)
1150 ac_prev=exec_prefix ;;
1151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1153 | --exec=* | --exe=* | --ex=*)
1154 exec_prefix=$ac_optarg ;;
1155
1156 -gas | --gas | --ga | --g)
1157 # Obsolete; use --with-gas.
1158 with_gas=yes ;;
1159
1160 -help | --help | --hel | --he | -h)
1161 ac_init_help=long ;;
1162 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1163 ac_init_help=recursive ;;
1164 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1165 ac_init_help=short ;;
1166
1167 -host | --host | --hos | --ho)
1168 ac_prev=host_alias ;;
1169 -host=* | --host=* | --hos=* | --ho=*)
1170 host_alias=$ac_optarg ;;
1171
1172 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1173 ac_prev=htmldir ;;
1174 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1175 | --ht=*)
1176 htmldir=$ac_optarg ;;
1177
1178 -includedir | --includedir | --includedi | --included | --include \
1179 | --includ | --inclu | --incl | --inc)
1180 ac_prev=includedir ;;
1181 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1182 | --includ=* | --inclu=* | --incl=* | --inc=*)
1183 includedir=$ac_optarg ;;
1184
1185 -infodir | --infodir | --infodi | --infod | --info | --inf)
1186 ac_prev=infodir ;;
1187 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1188 infodir=$ac_optarg ;;
1189
1190 -libdir | --libdir | --libdi | --libd)
1191 ac_prev=libdir ;;
1192 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1193 libdir=$ac_optarg ;;
1194
1195 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1196 | --libexe | --libex | --libe)
1197 ac_prev=libexecdir ;;
1198 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1199 | --libexe=* | --libex=* | --libe=*)
1200 libexecdir=$ac_optarg ;;
1201
1202 -localedir | --localedir | --localedi | --localed | --locale)
1203 ac_prev=localedir ;;
1204 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1205 localedir=$ac_optarg ;;
1206
1207 -localstatedir | --localstatedir | --localstatedi | --localstated \
1208 | --localstate | --localstat | --localsta | --localst | --locals)
1209 ac_prev=localstatedir ;;
1210 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1211 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1212 localstatedir=$ac_optarg ;;
1213
1214 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1215 ac_prev=mandir ;;
1216 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1217 mandir=$ac_optarg ;;
1218
1219 -nfp | --nfp | --nf)
1220 # Obsolete; use --without-fp.
1221 with_fp=no ;;
1222
1223 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1224 | --no-cr | --no-c | -n)
1225 no_create=yes ;;
1226
1227 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1228 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1229 no_recursion=yes ;;
1230
1231 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1232 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1233 | --oldin | --oldi | --old | --ol | --o)
1234 ac_prev=oldincludedir ;;
1235 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1236 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1237 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1238 oldincludedir=$ac_optarg ;;
1239
1240 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1241 ac_prev=prefix ;;
1242 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1243 prefix=$ac_optarg ;;
1244
1245 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1246 | --program-pre | --program-pr | --program-p)
1247 ac_prev=program_prefix ;;
1248 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1249 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1250 program_prefix=$ac_optarg ;;
1251
1252 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1253 | --program-suf | --program-su | --program-s)
1254 ac_prev=program_suffix ;;
1255 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1256 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1257 program_suffix=$ac_optarg ;;
1258
1259 -program-transform-name | --program-transform-name \
1260 | --program-transform-nam | --program-transform-na \
1261 | --program-transform-n | --program-transform- \
1262 | --program-transform | --program-transfor \
1263 | --program-transfo | --program-transf \
1264 | --program-trans | --program-tran \
1265 | --progr-tra | --program-tr | --program-t)
1266 ac_prev=program_transform_name ;;
1267 -program-transform-name=* | --program-transform-name=* \
1268 | --program-transform-nam=* | --program-transform-na=* \
1269 | --program-transform-n=* | --program-transform-=* \
1270 | --program-transform=* | --program-transfor=* \
1271 | --program-transfo=* | --program-transf=* \
1272 | --program-trans=* | --program-tran=* \
1273 | --progr-tra=* | --program-tr=* | --program-t=*)
1274 program_transform_name=$ac_optarg ;;
1275
1276 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1277 ac_prev=pdfdir ;;
1278 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1279 pdfdir=$ac_optarg ;;
1280
1281 -psdir | --psdir | --psdi | --psd | --ps)
1282 ac_prev=psdir ;;
1283 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1284 psdir=$ac_optarg ;;
1285
1286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287 | -silent | --silent | --silen | --sile | --sil)
1288 silent=yes ;;
1289
1290 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291 ac_prev=sbindir ;;
1292 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293 | --sbi=* | --sb=*)
1294 sbindir=$ac_optarg ;;
1295
1296 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298 | --sharedst | --shareds | --shared | --share | --shar \
1299 | --sha | --sh)
1300 ac_prev=sharedstatedir ;;
1301 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304 | --sha=* | --sh=*)
1305 sharedstatedir=$ac_optarg ;;
1306
1307 -site | --site | --sit)
1308 ac_prev=site ;;
1309 -site=* | --site=* | --sit=*)
1310 site=$ac_optarg ;;
1311
1312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313 ac_prev=srcdir ;;
1314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315 srcdir=$ac_optarg ;;
1316
1317 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318 | --syscon | --sysco | --sysc | --sys | --sy)
1319 ac_prev=sysconfdir ;;
1320 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322 sysconfdir=$ac_optarg ;;
1323
1324 -target | --target | --targe | --targ | --tar | --ta | --t)
1325 ac_prev=target_alias ;;
1326 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327 target_alias=$ac_optarg ;;
1328
1329 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330 verbose=yes ;;
1331
1332 -version | --version | --versio | --versi | --vers | -V)
1333 ac_init_version=: ;;
1334
1335 -with-* | --with-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 as_fn_error "invalid package name: $ac_useropt"
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1343 *"
1344 "with_$ac_useropt"
1345 "*) ;;
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1348 esac
1349 eval with_$ac_useropt=\$ac_optarg ;;
1350
1351 -without-* | --without-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355 as_fn_error "invalid package name: $ac_useropt"
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1359 *"
1360 "with_$ac_useropt"
1361 "*) ;;
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1364 esac
1365 eval with_$ac_useropt=no ;;
1366
1367 --x)
1368 # Obsolete; use --with-x.
1369 with_x=yes ;;
1370
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1377
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1384
1385 -*) as_fn_error "unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information."
1387 ;;
1388
1389 *=*)
1390 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391 # Reject names that are not valid shell variable names.
1392 case $ac_envvar in #(
1393 '' | [0-9]* | *[!_$as_cr_alnum]* )
1394 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1395 esac
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1398
1399 *)
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1405 ;;
1406
1407 esac
1408 done
1409
1410 if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 as_fn_error "missing argument to $ac_option"
1413 fi
1414
1415 if test -n "$ac_unrecognized_opts"; then
1416 case $enable_option_checking in
1417 no) ;;
1418 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1419 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420 esac
1421 fi
1422
1423 # Check all directory arguments for consistency.
1424 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425 datadir sysconfdir sharedstatedir localstatedir includedir \
1426 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427 libdir localedir mandir
1428 do
1429 eval ac_val=\$$ac_var
1430 # Remove trailing slashes.
1431 case $ac_val in
1432 */ )
1433 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434 eval $ac_var=\$ac_val;;
1435 esac
1436 # Be sure to have absolute directory names.
1437 case $ac_val in
1438 [\\/$]* | ?:[\\/]* ) continue;;
1439 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1440 esac
1441 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1442 done
1443
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1447 build=$build_alias
1448 host=$host_alias
1449 target=$target_alias
1450
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x; then
1453 if test "x$build_alias" = x; then
1454 cross_compiling=maybe
1455 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1456 If a cross compiler is detected then cross compile mode will be used." >&2
1457 elif test "x$build_alias" != "x$host_alias"; then
1458 cross_compiling=yes
1459 fi
1460 fi
1461
1462 ac_tool_prefix=
1463 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1464
1465 test "$silent" = yes && exec 6>/dev/null
1466
1467
1468 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1469 ac_ls_di=`ls -di .` &&
1470 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1471 as_fn_error "working directory cannot be determined"
1472 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1473 as_fn_error "pwd does not report name of working directory"
1474
1475
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478 ac_srcdir_defaulted=yes
1479 # Try the directory containing this script, then the parent directory.
1480 ac_confdir=`$as_dirname -- "$as_myself" ||
1481 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482 X"$as_myself" : 'X\(//\)[^/]' \| \
1483 X"$as_myself" : 'X\(//\)$' \| \
1484 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1485 $as_echo X"$as_myself" |
1486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1487 s//\1/
1488 q
1489 }
1490 /^X\(\/\/\)[^/].*/{
1491 s//\1/
1492 q
1493 }
1494 /^X\(\/\/\)$/{
1495 s//\1/
1496 q
1497 }
1498 /^X\(\/\).*/{
1499 s//\1/
1500 q
1501 }
1502 s/.*/./; q'`
1503 srcdir=$ac_confdir
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1505 srcdir=..
1506 fi
1507 else
1508 ac_srcdir_defaulted=no
1509 fi
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1512 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1513 fi
1514 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1515 ac_abs_confdir=`(
1516 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1517 pwd)`
1518 # When building in place, set srcdir=.
1519 if test "$ac_abs_confdir" = "$ac_pwd"; then
1520 srcdir=.
1521 fi
1522 # Remove unnecessary trailing slashes from srcdir.
1523 # Double slashes in file names in object file debugging info
1524 # mess up M-x gdb in Emacs.
1525 case $srcdir in
1526 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1527 esac
1528 for ac_var in $ac_precious_vars; do
1529 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_env_${ac_var}_value=\$${ac_var}
1531 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1532 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1533 done
1534
1535 #
1536 # Report the --help message.
1537 #
1538 if test "$ac_init_help" = "long"; then
1539 # Omit some internal or obsolete options to make the list less imposing.
1540 # This message is too long to be a string in the A/UX 3.1 sh.
1541 cat <<_ACEOF
1542 \`configure' configures this package to adapt to many kinds of systems.
1543
1544 Usage: $0 [OPTION]... [VAR=VALUE]...
1545
1546 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1547 VAR=VALUE. See below for descriptions of some of the useful variables.
1548
1549 Defaults for the options are specified in brackets.
1550
1551 Configuration:
1552 -h, --help display this help and exit
1553 --help=short display options specific to this package
1554 --help=recursive display the short help of all the included packages
1555 -V, --version display version information and exit
1556 -q, --quiet, --silent do not print \`checking...' messages
1557 --cache-file=FILE cache test results in FILE [disabled]
1558 -C, --config-cache alias for \`--cache-file=config.cache'
1559 -n, --no-create do not create output files
1560 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1561
1562 Installation directories:
1563 --prefix=PREFIX install architecture-independent files in PREFIX
1564 [$ac_default_prefix]
1565 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1566 [PREFIX]
1567
1568 By default, \`make install' will install all the files in
1569 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1570 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1571 for instance \`--prefix=\$HOME'.
1572
1573 For better control, use the options below.
1574
1575 Fine tuning of the installation directories:
1576 --bindir=DIR user executables [EPREFIX/bin]
1577 --sbindir=DIR system admin executables [EPREFIX/sbin]
1578 --libexecdir=DIR program executables [EPREFIX/libexec]
1579 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1580 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1581 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1582 --libdir=DIR object code libraries [EPREFIX/lib]
1583 --includedir=DIR C header files [PREFIX/include]
1584 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1585 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1586 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1587 --infodir=DIR info documentation [DATAROOTDIR/info]
1588 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1589 --mandir=DIR man documentation [DATAROOTDIR/man]
1590 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1591 --htmldir=DIR html documentation [DOCDIR]
1592 --dvidir=DIR dvi documentation [DOCDIR]
1593 --pdfdir=DIR pdf documentation [DOCDIR]
1594 --psdir=DIR ps documentation [DOCDIR]
1595 _ACEOF
1596
1597 cat <<\_ACEOF
1598
1599 Program names:
1600 --program-prefix=PREFIX prepend PREFIX to installed program names
1601 --program-suffix=SUFFIX append SUFFIX to installed program names
1602 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1603
1604 X features:
1605 --x-includes=DIR X include files are in DIR
1606 --x-libraries=DIR X library files are in DIR
1607
1608 System types:
1609 --build=BUILD configure for building on BUILD [guessed]
1610 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1611 --target=TARGET configure for building compilers for TARGET [HOST]
1612 _ACEOF
1613 fi
1614
1615 if test -n "$ac_init_help"; then
1616
1617 cat <<\_ACEOF
1618
1619 Optional Features:
1620 --disable-option-checking ignore unrecognized --enable/--with options
1621 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1622 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1623 --enable-maintainer-mode enable make rules and dependencies not useful
1624 (and sometimes confusing) to the casual installer
1625 --enable-plugins Enable support for plugins (defaults no)
1626 --disable-largefile omit support for large files
1627 --disable-dependency-tracking speeds up one-time build
1628 --enable-dependency-tracking do not reject slow dependency extractors
1629 --enable-targets=TARGETS
1630 alternative target configurations
1631 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1632 --disable-gdbcli disable command-line interface (CLI)
1633 --disable-gdbmi disable machine-interface (MI)
1634 --enable-tui enable full-screen terminal user interface (TUI)
1635 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1636 --enable-profiling enable profiling of GDB
1637 --disable-rpath do not hardcode runtime library paths
1638 --enable-werror treat compile warnings as errors
1639 --enable-build-warnings enable build-time compiler warnings if gcc is used
1640 --enable-gdb-build-warnings
1641 enable GDB specific build-time compiler warnings if
1642 gcc is used
1643 --enable-sim link gdb with simulator
1644 --enable-multi-ice build the multi-ice-gdb-server
1645 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1646 is auto)
1647
1648 Optional Packages:
1649 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1650 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1651 --with-separate-debug-dir=PATH
1652 look for global separate debug info in this path
1653 [LIBDIR/debug]
1654 --with-gdb-datadir=PATH look for global separate data files in this path
1655 [DATADIR/gdb]
1656 --with-relocated-sources=PATH
1657 automatically relocate this path for source files
1658 --with-libunwind use libunwind frame unwinding support
1659 --with-curses use the curses library instead of the termcap
1660 library
1661 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1662 --with-bugurl=URL Direct users to URL to report a bug
1663 --with-zlib include zlib support (auto/yes/no) default=auto
1664 --with-libiconv-prefix=DIR
1665 search for libiconv in DIR/include and DIR/lib
1666 --with-iconv-bin=PATH specify where to find the iconv program
1667 --with-system-readline use installed readline library
1668 --with-expat include expat support (auto/yes/no)
1669 --with-gnu-ld assume the C compiler uses GNU ld default=no
1670 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1671 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1672 --with-python[=PYTHON] include python support
1673 (auto/yes/no/<python-program>)
1674 --without-included-regex
1675 don't use included regex; this is the default on
1676 systems with version 2 of the GNU C library (use
1677 with caution on other system)
1678 --with-sysroot[=DIR] search for usr/lib et al within DIR
1679 --with-system-gdbinit=PATH
1680 automatically load a system-wide gdbinit file
1681 --with-tcl directory containing tcl configuration (tclConfig.sh)
1682 --with-tk directory containing tk configuration (tkConfig.sh)
1683 --with-x use the X Window System
1684
1685 Some influential environment variables:
1686 CC C compiler command
1687 CFLAGS C compiler flags
1688 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1689 nonstandard directory <lib dir>
1690 LIBS libraries to pass to the linker, e.g. -l<library>
1691 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1692 you have headers in a nonstandard directory <include dir>
1693 CPP C preprocessor
1694 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1695 the first program found out of: `bison -y', `byacc', `yacc'.
1696 YFLAGS The list of arguments that will be passed by default to $YACC.
1697 This script will default YFLAGS to the empty string to avoid a
1698 default value of `-d' given by some make applications.
1699 XMKMF Path to xmkmf, Makefile generator for X Window System
1700
1701 Use these variables to override the choices made by `configure' or to help
1702 it to find libraries and programs with nonstandard names/locations.
1703
1704 Report bugs to the package provider.
1705 _ACEOF
1706 ac_status=$?
1707 fi
1708
1709 if test "$ac_init_help" = "recursive"; then
1710 # If there are subdirs, report their specific --help.
1711 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1712 test -d "$ac_dir" ||
1713 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1714 continue
1715 ac_builddir=.
1716
1717 case "$ac_dir" in
1718 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 *)
1720 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1721 # A ".." for each directory in $ac_dir_suffix.
1722 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1723 case $ac_top_builddir_sub in
1724 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1725 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1726 esac ;;
1727 esac
1728 ac_abs_top_builddir=$ac_pwd
1729 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1730 # for backward compatibility:
1731 ac_top_builddir=$ac_top_build_prefix
1732
1733 case $srcdir in
1734 .) # We are building in place.
1735 ac_srcdir=.
1736 ac_top_srcdir=$ac_top_builddir_sub
1737 ac_abs_top_srcdir=$ac_pwd ;;
1738 [\\/]* | ?:[\\/]* ) # Absolute name.
1739 ac_srcdir=$srcdir$ac_dir_suffix;
1740 ac_top_srcdir=$srcdir
1741 ac_abs_top_srcdir=$srcdir ;;
1742 *) # Relative name.
1743 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1744 ac_top_srcdir=$ac_top_build_prefix$srcdir
1745 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1746 esac
1747 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1748
1749 cd "$ac_dir" || { ac_status=$?; continue; }
1750 # Check for guested configure.
1751 if test -f "$ac_srcdir/configure.gnu"; then
1752 echo &&
1753 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1754 elif test -f "$ac_srcdir/configure"; then
1755 echo &&
1756 $SHELL "$ac_srcdir/configure" --help=recursive
1757 else
1758 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1759 fi || ac_status=$?
1760 cd "$ac_pwd" || { ac_status=$?; break; }
1761 done
1762 fi
1763
1764 test -n "$ac_init_help" && exit $ac_status
1765 if $ac_init_version; then
1766 cat <<\_ACEOF
1767 configure
1768 generated by GNU Autoconf 2.64
1769
1770 Copyright (C) 2009 Free Software Foundation, Inc.
1771 This configure script is free software; the Free Software Foundation
1772 gives unlimited permission to copy, distribute and modify it.
1773 _ACEOF
1774 exit
1775 fi
1776
1777 ## ------------------------ ##
1778 ## Autoconf initialization. ##
1779 ## ------------------------ ##
1780
1781 # ac_fn_c_try_compile LINENO
1782 # --------------------------
1783 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_compile ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext
1788 if { { ac_try="$ac_compile"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_compile") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1801 fi
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest.$ac_objext; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=1
1813 fi
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 return $ac_retval
1816
1817 } # ac_fn_c_try_compile
1818
1819 # ac_fn_c_try_cpp LINENO
1820 # ----------------------
1821 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_cpp ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { { ac_try="$ac_cpp conftest.$ac_ext"
1826 case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1833 ac_status=$?
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1838 fi
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } >/dev/null && {
1841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 }; then :
1844 ac_retval=0
1845 else
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=1
1850 fi
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 return $ac_retval
1853
1854 } # ac_fn_c_try_cpp
1855
1856 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1857 # -------------------------------------------------------
1858 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1859 # the include files in INCLUDES and setting the cache variable VAR
1860 # accordingly.
1861 ac_fn_c_check_header_mongrel ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1869 fi
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 else
1874 # Is the header compilable?
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1876 $as_echo_n "checking $2 usability... " >&6; }
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 $4
1880 #include <$2>
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 ac_header_compiler=yes
1884 else
1885 ac_header_compiler=no
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1889 $as_echo "$ac_header_compiler" >&6; }
1890
1891 # Is the header present?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1893 $as_echo_n "checking $2 presence... " >&6; }
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1896 #include <$2>
1897 _ACEOF
1898 if ac_fn_c_try_cpp "$LINENO"; then :
1899 ac_header_preproc=yes
1900 else
1901 ac_header_preproc=no
1902 fi
1903 rm -f conftest.err conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1905 $as_echo "$ac_header_preproc" >&6; }
1906
1907 # So? What about this header?
1908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1909 yes:no: )
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1911 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914 ;;
1915 no:yes:* )
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1917 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1919 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1921 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1923 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1925 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1926 ;;
1927 esac
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 eval "$3=\$ac_header_compiler"
1934 fi
1935 eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 fi
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940
1941 } # ac_fn_c_check_header_mongrel
1942
1943 # ac_fn_c_try_run LINENO
1944 # ----------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1946 # that executables *can* be run.
1947 ac_fn_c_try_run ()
1948 {
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_link"
1951 case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>&5
1958 ac_status=$?
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1961 { { case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_try") 2>&5
1968 ac_status=$?
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; }; }; then :
1971 ac_retval=0
1972 else
1973 $as_echo "$as_me: program exited with status $ac_status" >&5
1974 $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1976
1977 ac_retval=$ac_status
1978 fi
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 return $ac_retval
1982
1983 } # ac_fn_c_try_run
1984
1985 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1986 # -------------------------------------------------------
1987 # Tests whether HEADER exists and can be compiled using the include files in
1988 # INCLUDES, setting the cache variable VAR accordingly.
1989 ac_fn_c_check_header_compile ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1996 else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 $4
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 eval "$3=yes"
2004 else
2005 eval "$3=no"
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013
2014 } # ac_fn_c_check_header_compile
2015
2016 # ac_fn_c_try_link LINENO
2017 # -----------------------
2018 # Try to link conftest.$ac_ext, and return whether this succeeded.
2019 ac_fn_c_try_link ()
2020 {
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 rm -f conftest.$ac_objext conftest$ac_exeext
2023 if { { ac_try="$ac_link"
2024 case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_link") 2>conftest.err
2031 ac_status=$?
2032 if test -s conftest.err; then
2033 grep -v '^ *+' conftest.err >conftest.er1
2034 cat conftest.er1 >&5
2035 mv -f conftest.er1 conftest.err
2036 fi
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; } && {
2039 test -z "$ac_c_werror_flag" ||
2040 test ! -s conftest.err
2041 } && test -s conftest$ac_exeext && {
2042 test "$cross_compiling" = yes ||
2043 $as_test_x conftest$ac_exeext
2044 }; then :
2045 ac_retval=0
2046 else
2047 $as_echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2049
2050 ac_retval=1
2051 fi
2052 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2053 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2054 # interfere with the next link command; also delete a directory that is
2055 # left behind by Apple's compiler. We do this before executing the actions.
2056 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 return $ac_retval
2059
2060 } # ac_fn_c_try_link
2061
2062 # ac_fn_c_check_func LINENO FUNC VAR
2063 # ----------------------------------
2064 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2065 ac_fn_c_check_func ()
2066 {
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071 $as_echo_n "(cached) " >&6
2072 else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2077 #define $2 innocuous_$2
2078
2079 /* System header to define __stub macros and hopefully few prototypes,
2080 which can conflict with char $2 (); below.
2081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2082 <limits.h> exists even on freestanding compilers. */
2083
2084 #ifdef __STDC__
2085 # include <limits.h>
2086 #else
2087 # include <assert.h>
2088 #endif
2089
2090 #undef $2
2091
2092 /* Override any GCC internal prototype to avoid an error.
2093 Use char because int might match the return type of a GCC
2094 builtin and then its argument prototype would still apply. */
2095 #ifdef __cplusplus
2096 extern "C"
2097 #endif
2098 char $2 ();
2099 /* The GNU C library defines this for functions which it implements
2100 to always fail with ENOSYS. Some functions are actually named
2101 something starting with __ and the normal name is an alias. */
2102 #if defined __stub_$2 || defined __stub___$2
2103 choke me
2104 #endif
2105
2106 int
2107 main ()
2108 {
2109 return $2 ();
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_link "$LINENO"; then :
2115 eval "$3=yes"
2116 else
2117 eval "$3=no"
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext \
2120 conftest$ac_exeext conftest.$ac_ext
2121 fi
2122 eval ac_res=\$$3
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2126
2127 } # ac_fn_c_check_func
2128
2129 # ac_fn_c_check_decl LINENO SYMBOL VAR
2130 # ------------------------------------
2131 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2132 ac_fn_c_check_decl ()
2133 {
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 as_decl_name=`echo $2|sed 's/ *(.*//'`
2136 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2138 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2139 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2140 $as_echo_n "(cached) " >&6
2141 else
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 $4
2145 int
2146 main ()
2147 {
2148 #ifndef $as_decl_name
2149 #ifdef __cplusplus
2150 (void) $as_decl_use;
2151 #else
2152 (void) $as_decl_name;
2153 #endif
2154 #endif
2155
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 eval "$3=yes"
2162 else
2163 eval "$3=no"
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 fi
2167 eval ac_res=\$$3
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2171
2172 } # ac_fn_c_check_decl
2173
2174 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2175 # --------------------------------------------
2176 # Tries to find the compile-time value of EXPR in a program that includes
2177 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2178 # computed
2179 ac_fn_c_compute_int ()
2180 {
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 if test "$cross_compiling" = yes; then
2183 # Depending upon the size, compute the lo and hi bounds.
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 $4
2187 int
2188 main ()
2189 {
2190 static int test_array [1 - 2 * !(($2) >= 0)];
2191 test_array [0] = 0
2192
2193 ;
2194 return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 ac_lo=0 ac_mid=0
2199 while :; do
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 $4
2203 int
2204 main ()
2205 {
2206 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207 test_array [0] = 0
2208
2209 ;
2210 return 0;
2211 }
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214 ac_hi=$ac_mid; break
2215 else
2216 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2217 if test $ac_lo -le $ac_mid; then
2218 ac_lo= ac_hi=
2219 break
2220 fi
2221 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2222 fi
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 done
2225 else
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 $4
2229 int
2230 main ()
2231 {
2232 static int test_array [1 - 2 * !(($2) < 0)];
2233 test_array [0] = 0
2234
2235 ;
2236 return 0;
2237 }
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240 ac_hi=-1 ac_mid=-1
2241 while :; do
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2244 $4
2245 int
2246 main ()
2247 {
2248 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2249 test_array [0] = 0
2250
2251 ;
2252 return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256 ac_lo=$ac_mid; break
2257 else
2258 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2259 if test $ac_mid -le $ac_hi; then
2260 ac_lo= ac_hi=
2261 break
2262 fi
2263 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 done
2267 else
2268 ac_lo= ac_hi=
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 # Binary search between lo and hi bounds.
2274 while test "x$ac_lo" != "x$ac_hi"; do
2275 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2278 $4
2279 int
2280 main ()
2281 {
2282 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2283 test_array [0] = 0
2284
2285 ;
2286 return 0;
2287 }
2288 _ACEOF
2289 if ac_fn_c_try_compile "$LINENO"; then :
2290 ac_hi=$ac_mid
2291 else
2292 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2293 fi
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 done
2296 case $ac_lo in #((
2297 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2298 '') ac_retval=1 ;;
2299 esac
2300 else
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2303 $4
2304 static long int longval () { return $2; }
2305 static unsigned long int ulongval () { return $2; }
2306 #include <stdio.h>
2307 #include <stdlib.h>
2308 int
2309 main ()
2310 {
2311
2312 FILE *f = fopen ("conftest.val", "w");
2313 if (! f)
2314 return 1;
2315 if (($2) < 0)
2316 {
2317 long int i = longval ();
2318 if (i != ($2))
2319 return 1;
2320 fprintf (f, "%ld", i);
2321 }
2322 else
2323 {
2324 unsigned long int i = ulongval ();
2325 if (i != ($2))
2326 return 1;
2327 fprintf (f, "%lu", i);
2328 }
2329 /* Do not output a trailing newline, as this causes \r\n confusion
2330 on some platforms. */
2331 return ferror (f) || fclose (f) != 0;
2332
2333 ;
2334 return 0;
2335 }
2336 _ACEOF
2337 if ac_fn_c_try_run "$LINENO"; then :
2338 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2339 else
2340 ac_retval=1
2341 fi
2342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2343 conftest.$ac_objext conftest.beam conftest.$ac_ext
2344 rm -f conftest.val
2345
2346 fi
2347 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2348 return $ac_retval
2349
2350 } # ac_fn_c_compute_int
2351
2352 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2353 # ----------------------------------------------------
2354 # Tries to find if the field MEMBER exists in type AGGR, after including
2355 # INCLUDES, setting cache variable VAR accordingly.
2356 ac_fn_c_check_member ()
2357 {
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2360 $as_echo_n "checking for $2.$3... " >&6; }
2361 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2362 $as_echo_n "(cached) " >&6
2363 else
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2366 $5
2367 int
2368 main ()
2369 {
2370 static $2 ac_aggr;
2371 if (ac_aggr.$3)
2372 return 0;
2373 ;
2374 return 0;
2375 }
2376 _ACEOF
2377 if ac_fn_c_try_compile "$LINENO"; then :
2378 eval "$4=yes"
2379 else
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2382 $5
2383 int
2384 main ()
2385 {
2386 static $2 ac_aggr;
2387 if (sizeof ac_aggr.$3)
2388 return 0;
2389 ;
2390 return 0;
2391 }
2392 _ACEOF
2393 if ac_fn_c_try_compile "$LINENO"; then :
2394 eval "$4=yes"
2395 else
2396 eval "$4=no"
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 fi
2402 eval ac_res=\$$4
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2406
2407 } # ac_fn_c_check_member
2408
2409 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2410 # -------------------------------------------
2411 # Tests whether TYPE exists after having included INCLUDES, setting cache
2412 # variable VAR accordingly.
2413 ac_fn_c_check_type ()
2414 {
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417 $as_echo_n "checking for $2... " >&6; }
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 eval "$3=no"
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2424 $4
2425 int
2426 main ()
2427 {
2428 if (sizeof ($2))
2429 return 0;
2430 ;
2431 return 0;
2432 }
2433 _ACEOF
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2437 $4
2438 int
2439 main ()
2440 {
2441 if (sizeof (($2)))
2442 return 0;
2443 ;
2444 return 0;
2445 }
2446 _ACEOF
2447 if ac_fn_c_try_compile "$LINENO"; then :
2448
2449 else
2450 eval "$3=yes"
2451 fi
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 fi
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 fi
2456 eval ac_res=\$$3
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2460
2461 } # ac_fn_c_check_type
2462 cat >config.log <<_ACEOF
2463 This file contains any messages produced by compilers while
2464 running configure, to aid debugging if configure makes a mistake.
2465
2466 It was created by $as_me, which was
2467 generated by GNU Autoconf 2.64. Invocation command line was
2468
2469 $ $0 $@
2470
2471 _ACEOF
2472 exec 5>>config.log
2473 {
2474 cat <<_ASUNAME
2475 ## --------- ##
2476 ## Platform. ##
2477 ## --------- ##
2478
2479 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2480 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2481 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2482 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2483 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2484
2485 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2486 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2487
2488 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2489 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2490 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2491 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2492 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2493 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2494 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2495
2496 _ASUNAME
2497
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 $as_echo "PATH: $as_dir"
2504 done
2505 IFS=$as_save_IFS
2506
2507 } >&5
2508
2509 cat >&5 <<_ACEOF
2510
2511
2512 ## ----------- ##
2513 ## Core tests. ##
2514 ## ----------- ##
2515
2516 _ACEOF
2517
2518
2519 # Keep a trace of the command line.
2520 # Strip out --no-create and --no-recursion so they do not pile up.
2521 # Strip out --silent because we don't want to record it for future runs.
2522 # Also quote any args containing shell meta-characters.
2523 # Make two passes to allow for proper duplicate-argument suppression.
2524 ac_configure_args=
2525 ac_configure_args0=
2526 ac_configure_args1=
2527 ac_must_keep_next=false
2528 for ac_pass in 1 2
2529 do
2530 for ac_arg
2531 do
2532 case $ac_arg in
2533 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2535 | -silent | --silent | --silen | --sile | --sil)
2536 continue ;;
2537 *\'*)
2538 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2539 esac
2540 case $ac_pass in
2541 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2542 2)
2543 as_fn_append ac_configure_args1 " '$ac_arg'"
2544 if test $ac_must_keep_next = true; then
2545 ac_must_keep_next=false # Got value, back to normal.
2546 else
2547 case $ac_arg in
2548 *=* | --config-cache | -C | -disable-* | --disable-* \
2549 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2550 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2551 | -with-* | --with-* | -without-* | --without-* | --x)
2552 case "$ac_configure_args0 " in
2553 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2554 esac
2555 ;;
2556 -* ) ac_must_keep_next=true ;;
2557 esac
2558 fi
2559 as_fn_append ac_configure_args " '$ac_arg'"
2560 ;;
2561 esac
2562 done
2563 done
2564 { ac_configure_args0=; unset ac_configure_args0;}
2565 { ac_configure_args1=; unset ac_configure_args1;}
2566
2567 # When interrupted or exit'd, cleanup temporary files, and complete
2568 # config.log. We remove comments because anyway the quotes in there
2569 # would cause problems or look ugly.
2570 # WARNING: Use '\'' to represent an apostrophe within the trap.
2571 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2572 trap 'exit_status=$?
2573 # Save into config.log some information that might help in debugging.
2574 {
2575 echo
2576
2577 cat <<\_ASBOX
2578 ## ---------------- ##
2579 ## Cache variables. ##
2580 ## ---------------- ##
2581 _ASBOX
2582 echo
2583 # The following way of writing the cache mishandles newlines in values,
2584 (
2585 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2586 eval ac_val=\$$ac_var
2587 case $ac_val in #(
2588 *${as_nl}*)
2589 case $ac_var in #(
2590 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2591 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2592 esac
2593 case $ac_var in #(
2594 _ | IFS | as_nl) ;; #(
2595 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2596 *) { eval $ac_var=; unset $ac_var;} ;;
2597 esac ;;
2598 esac
2599 done
2600 (set) 2>&1 |
2601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2602 *${as_nl}ac_space=\ *)
2603 sed -n \
2604 "s/'\''/'\''\\\\'\'''\''/g;
2605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2606 ;; #(
2607 *)
2608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2609 ;;
2610 esac |
2611 sort
2612 )
2613 echo
2614
2615 cat <<\_ASBOX
2616 ## ----------------- ##
2617 ## Output variables. ##
2618 ## ----------------- ##
2619 _ASBOX
2620 echo
2621 for ac_var in $ac_subst_vars
2622 do
2623 eval ac_val=\$$ac_var
2624 case $ac_val in
2625 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2626 esac
2627 $as_echo "$ac_var='\''$ac_val'\''"
2628 done | sort
2629 echo
2630
2631 if test -n "$ac_subst_files"; then
2632 cat <<\_ASBOX
2633 ## ------------------- ##
2634 ## File substitutions. ##
2635 ## ------------------- ##
2636 _ASBOX
2637 echo
2638 for ac_var in $ac_subst_files
2639 do
2640 eval ac_val=\$$ac_var
2641 case $ac_val in
2642 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2643 esac
2644 $as_echo "$ac_var='\''$ac_val'\''"
2645 done | sort
2646 echo
2647 fi
2648
2649 if test -s confdefs.h; then
2650 cat <<\_ASBOX
2651 ## ----------- ##
2652 ## confdefs.h. ##
2653 ## ----------- ##
2654 _ASBOX
2655 echo
2656 cat confdefs.h
2657 echo
2658 fi
2659 test "$ac_signal" != 0 &&
2660 $as_echo "$as_me: caught signal $ac_signal"
2661 $as_echo "$as_me: exit $exit_status"
2662 } >&5
2663 rm -f core *.core core.conftest.* &&
2664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2665 exit $exit_status
2666 ' 0
2667 for ac_signal in 1 2 13 15; do
2668 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2669 done
2670 ac_signal=0
2671
2672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2673 rm -f -r conftest* confdefs.h
2674
2675 $as_echo "/* confdefs.h */" > confdefs.h
2676
2677 # Predefined preprocessor variables.
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_NAME "$PACKAGE_NAME"
2681 _ACEOF
2682
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2685 _ACEOF
2686
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2689 _ACEOF
2690
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_STRING "$PACKAGE_STRING"
2693 _ACEOF
2694
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2697 _ACEOF
2698
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_URL "$PACKAGE_URL"
2701 _ACEOF
2702
2703
2704 # Let the site file select an alternate cache file if it wants to.
2705 # Prefer an explicitly selected file to automatically selected ones.
2706 ac_site_file1=NONE
2707 ac_site_file2=NONE
2708 if test -n "$CONFIG_SITE"; then
2709 ac_site_file1=$CONFIG_SITE
2710 elif test "x$prefix" != xNONE; then
2711 ac_site_file1=$prefix/share/config.site
2712 ac_site_file2=$prefix/etc/config.site
2713 else
2714 ac_site_file1=$ac_default_prefix/share/config.site
2715 ac_site_file2=$ac_default_prefix/etc/config.site
2716 fi
2717 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2718 do
2719 test "x$ac_site_file" = xNONE && continue
2720 if test -r "$ac_site_file"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2722 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2723 sed 's/^/| /' "$ac_site_file" >&5
2724 . "$ac_site_file"
2725 fi
2726 done
2727
2728 if test -r "$cache_file"; then
2729 # Some versions of bash will fail to source /dev/null (special
2730 # files actually), so we avoid doing that.
2731 if test -f "$cache_file"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2733 $as_echo "$as_me: loading cache $cache_file" >&6;}
2734 case $cache_file in
2735 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2736 *) . "./$cache_file";;
2737 esac
2738 fi
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2741 $as_echo "$as_me: creating cache $cache_file" >&6;}
2742 >$cache_file
2743 fi
2744
2745 gl_header_list="$gl_header_list sys/mman.h"
2746 gl_func_list="$gl_func_list mprotect"
2747 gl_func_list="$gl_func_list memchr"
2748 gl_header_list="$gl_header_list stddef.h"
2749 gl_header_list="$gl_header_list stdint.h"
2750 gl_header_list="$gl_header_list wchar.h"
2751 gl_header_list="$gl_header_list string.h"
2752 # Check that the precious variables saved in the cache have kept the same
2753 # value.
2754 ac_cache_corrupted=false
2755 for ac_var in $ac_precious_vars; do
2756 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2757 eval ac_new_set=\$ac_env_${ac_var}_set
2758 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2759 eval ac_new_val=\$ac_env_${ac_var}_value
2760 case $ac_old_set,$ac_new_set in
2761 set,)
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2763 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2764 ac_cache_corrupted=: ;;
2765 ,set)
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2767 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2768 ac_cache_corrupted=: ;;
2769 ,);;
2770 *)
2771 if test "x$ac_old_val" != "x$ac_new_val"; then
2772 # differences in whitespace do not lead to failure.
2773 ac_old_val_w=`echo x $ac_old_val`
2774 ac_new_val_w=`echo x $ac_new_val`
2775 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2777 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2778 ac_cache_corrupted=:
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2781 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2782 eval $ac_var=\$ac_old_val
2783 fi
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2785 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2787 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2788 fi;;
2789 esac
2790 # Pass precious variables to config.status.
2791 if test "$ac_new_set" = set; then
2792 case $ac_new_val in
2793 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2794 *) ac_arg=$ac_var=$ac_new_val ;;
2795 esac
2796 case " $ac_configure_args " in
2797 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2798 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2799 esac
2800 fi
2801 done
2802 if $ac_cache_corrupted; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2806 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2807 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2808 fi
2809 ## -------------------- ##
2810 ## Main body of script. ##
2811 ## -------------------- ##
2812
2813 ac_ext=c
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
2819
2820
2821
2822
2823 ac_config_headers="$ac_config_headers config.h:config.in"
2824
2825
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2827 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2828 # Check whether --enable-maintainer-mode was given.
2829 if test "${enable_maintainer_mode+set}" = set; then :
2830 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2831 else
2832 USE_MAINTAINER_MODE=no
2833 fi
2834
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2836 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2837 if test $USE_MAINTAINER_MODE = yes; then
2838 MAINTAINER_MODE_TRUE=
2839 MAINTAINER_MODE_FALSE='#'
2840 else
2841 MAINTAINER_MODE_TRUE='#'
2842 MAINTAINER_MODE_FALSE=
2843 fi
2844
2845 MAINT=$MAINTAINER_MODE_TRUE
2846
2847
2848
2849 ac_ext=c
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892 fi
2893 if test -z "$ac_cv_prog_CC"; then
2894 ac_ct_CC=$CC
2895 # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_ac_ct_CC="gcc"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931 if test "x$ac_ct_CC" = x; then
2932 CC=""
2933 else
2934 case $cross_compiling:$ac_tool_warned in
2935 yes:)
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938 ac_tool_warned=yes ;;
2939 esac
2940 CC=$ac_ct_CC
2941 fi
2942 else
2943 CC="$ac_cv_prog_CC"
2944 fi
2945
2946 if test -z "$CC"; then
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}cc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if test "${ac_cv_prog_CC+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_CC="${ac_tool_prefix}cc"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969 done
2970 done
2971 IFS=$as_save_IFS
2972
2973 fi
2974 fi
2975 CC=$ac_cv_prog_CC
2976 if test -n "$CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984
2985 fi
2986 fi
2987 if test -z "$CC"; then
2988 # Extract the first word of "cc", so it can be a program name with args.
2989 set dummy cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if test "${ac_cv_prog_CC+set}" = set; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998 ac_prog_rejected=no
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007 ac_prog_rejected=yes
3008 continue
3009 fi
3010 ac_cv_prog_CC="cc"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 if test $ac_prog_rejected = yes; then
3019 # We found a bogon in the path, so make sure we never use it.
3020 set dummy $ac_cv_prog_CC
3021 shift
3022 if test $# != 0; then
3023 # We chose a different compiler from the bogus one.
3024 # However, it has the same basename, so the bogon will be chosen
3025 # first if we set CC to just the basename; use the full file name.
3026 shift
3027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3028 fi
3029 fi
3030 fi
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042 fi
3043 if test -z "$CC"; then
3044 if test -n "$ac_tool_prefix"; then
3045 for ac_prog in cl.exe
3046 do
3047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_CC+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068 done
3069 done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3078 else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084 test -n "$CC" && break
3085 done
3086 fi
3087 if test -z "$CC"; then
3088 ac_ct_CC=$CC
3089 for ac_prog in cl.exe
3090 do
3091 # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_ac_ct_CC="$ac_prog"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112 done
3113 done
3114 IFS=$as_save_IFS
3115
3116 fi
3117 fi
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3122 else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 fi
3126
3127
3128 test -n "$ac_ct_CC" && break
3129 done
3130
3131 if test "x$ac_ct_CC" = x; then
3132 CC=""
3133 else
3134 case $cross_compiling:$ac_tool_warned in
3135 yes:)
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3139 esac
3140 CC=$ac_ct_CC
3141 fi
3142 fi
3143
3144 fi
3145
3146
3147 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error "no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details." "$LINENO" 5; }
3151
3152 # Provide some information about the compiler.
3153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3154 set X $ac_compile
3155 ac_compiler=$2
3156 for ac_option in --version -v -V -qversion; do
3157 { { ac_try="$ac_compiler $ac_option >&5"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3165 ac_status=$?
3166 if test -s conftest.err; then
3167 sed '10a\
3168 ... rest of stderr output deleted ...
3169 10q' conftest.err >conftest.er1
3170 cat conftest.er1 >&5
3171 rm -f conftest.er1 conftest.err
3172 fi
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }
3175 done
3176
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3179
3180 int
3181 main ()
3182 {
3183
3184 ;
3185 return 0;
3186 }
3187 _ACEOF
3188 ac_clean_files_save=$ac_clean_files
3189 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3190 # Try to create an executable without -o first, disregard a.out.
3191 # It will help us diagnose broken compilers, and finding out an intuition
3192 # of exeext.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3194 $as_echo_n "checking for C compiler default output file name... " >&6; }
3195 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3196
3197 # The possible output files:
3198 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3199
3200 ac_rmfiles=
3201 for ac_file in $ac_files
3202 do
3203 case $ac_file in
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3206 esac
3207 done
3208 rm -f $ac_rmfiles
3209
3210 if { { ac_try="$ac_link_default"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link_default") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3224 # so that the user can short-circuit this test for compilers unknown to
3225 # Autoconf.
3226 for ac_file in $ac_files ''
3227 do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3231 ;;
3232 [ab].out )
3233 # We found the default executable, but exeext='' is most
3234 # certainly right.
3235 break;;
3236 *.* )
3237 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3238 then :; else
3239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240 fi
3241 # We set ac_cv_exeext here because the later test for it is not
3242 # safe: cross compilers may not add the suffix if given an `-o'
3243 # argument, so we may need to know it at that point already.
3244 # Even if this section looks crufty: it has the advantage of
3245 # actually working.
3246 break;;
3247 * )
3248 break;;
3249 esac
3250 done
3251 test "$ac_cv_exeext" = no && ac_cv_exeext=
3252
3253 else
3254 ac_file=''
3255 fi
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3257 $as_echo "$ac_file" >&6; }
3258 if test -z "$ac_file"; then :
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 { as_fn_set_status 77
3265 as_fn_error "C compiler cannot create executables
3266 See \`config.log' for more details." "$LINENO" 5; }; }
3267 fi
3268 ac_exeext=$ac_cv_exeext
3269
3270 # Check that the compiler produces executables we can run. If not, either
3271 # the compiler is broken, or we cross compile.
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3273 $as_echo_n "checking whether the C compiler works... " >&6; }
3274 # If not cross compiling, check that we can run a simple program.
3275 if test "$cross_compiling" != yes; then
3276 if { ac_try='./$ac_file'
3277 { { case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_try") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; }; then
3287 cross_compiling=no
3288 else
3289 if test "$cross_compiling" = maybe; then
3290 cross_compiling=yes
3291 else
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error "cannot run C compiled programs.
3295 If you meant to cross compile, use \`--host'.
3296 See \`config.log' for more details." "$LINENO" 5; }
3297 fi
3298 fi
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3301 $as_echo "yes" >&6; }
3302
3303 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3304 ac_clean_files=$ac_clean_files_save
3305 # Check that the compiler produces executables we can run. If not, either
3306 # the compiler is broken, or we cross compile.
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3308 $as_echo_n "checking whether we are cross compiling... " >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3310 $as_echo "$cross_compiling" >&6; }
3311
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3313 $as_echo_n "checking for suffix of executables... " >&6; }
3314 if { { ac_try="$ac_link"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link") 2>&5
3322 ac_status=$?
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }; then :
3325 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3327 # work properly (i.e., refer to `conftest.exe'), while it won't with
3328 # `rm'.
3329 for ac_file in conftest.exe conftest conftest.*; do
3330 test -f "$ac_file" || continue
3331 case $ac_file in
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334 break;;
3335 * ) break;;
3336 esac
3337 done
3338 else
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error "cannot compute suffix of executables: cannot compile and link
3342 See \`config.log' for more details." "$LINENO" 5; }
3343 fi
3344 rm -f conftest$ac_cv_exeext
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3346 $as_echo "$ac_cv_exeext" >&6; }
3347
3348 rm -f conftest.$ac_ext
3349 EXEEXT=$ac_cv_exeext
3350 ac_exeext=$EXEEXT
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3352 $as_echo_n "checking for suffix of object files... " >&6; }
3353 if test "${ac_cv_objext+set}" = set; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358
3359 int
3360 main ()
3361 {
3362
3363 ;
3364 return 0;
3365 }
3366 _ACEOF
3367 rm -f conftest.o conftest.obj
3368 if { { ac_try="$ac_compile"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_compile") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; then :
3379 for ac_file in conftest.o conftest.obj conftest.*; do
3380 test -f "$ac_file" || continue;
3381 case $ac_file in
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3384 break;;
3385 esac
3386 done
3387 else
3388 $as_echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error "cannot compute suffix of object files: cannot compile
3394 See \`config.log' for more details." "$LINENO" 5; }
3395 fi
3396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3397 fi
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3399 $as_echo "$ac_cv_objext" >&6; }
3400 OBJEXT=$ac_cv_objext
3401 ac_objext=$OBJEXT
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3403 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3404 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409
3410 int
3411 main ()
3412 {
3413 #ifndef __GNUC__
3414 choke me
3415 #endif
3416
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 if ac_fn_c_try_compile "$LINENO"; then :
3422 ac_compiler_gnu=yes
3423 else
3424 ac_compiler_gnu=no
3425 fi
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3428
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3431 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3432 if test $ac_compiler_gnu = yes; then
3433 GCC=yes
3434 else
3435 GCC=
3436 fi
3437 ac_test_CFLAGS=${CFLAGS+set}
3438 ac_save_CFLAGS=$CFLAGS
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3440 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3441 if test "${ac_cv_prog_cc_g+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 ac_save_c_werror_flag=$ac_c_werror_flag
3445 ac_c_werror_flag=yes
3446 ac_cv_prog_cc_g=no
3447 CFLAGS="-g"
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3450
3451 int
3452 main ()
3453 {
3454
3455 ;
3456 return 0;
3457 }
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460 ac_cv_prog_cc_g=yes
3461 else
3462 CFLAGS=""
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3465
3466 int
3467 main ()
3468 {
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475
3476 else
3477 ac_c_werror_flag=$ac_save_c_werror_flag
3478 CFLAGS="-g"
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481
3482 int
3483 main ()
3484 {
3485
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 if ac_fn_c_try_compile "$LINENO"; then :
3491 ac_cv_prog_cc_g=yes
3492 fi
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 fi
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 fi
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_c_werror_flag=$ac_save_c_werror_flag
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3501 $as_echo "$ac_cv_prog_cc_g" >&6; }
3502 if test "$ac_test_CFLAGS" = set; then
3503 CFLAGS=$ac_save_CFLAGS
3504 elif test $ac_cv_prog_cc_g = yes; then
3505 if test "$GCC" = yes; then
3506 CFLAGS="-g -O2"
3507 else
3508 CFLAGS="-g"
3509 fi
3510 else
3511 if test "$GCC" = yes; then
3512 CFLAGS="-O2"
3513 else
3514 CFLAGS=
3515 fi
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3518 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3519 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 ac_cv_prog_cc_c89=no
3523 ac_save_CC=$CC
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526 #include <stdarg.h>
3527 #include <stdio.h>
3528 #include <sys/types.h>
3529 #include <sys/stat.h>
3530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3531 struct buf { int x; };
3532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3533 static char *e (p, i)
3534 char **p;
3535 int i;
3536 {
3537 return p[i];
3538 }
3539 static char *f (char * (*g) (char **, int), char **p, ...)
3540 {
3541 char *s;
3542 va_list v;
3543 va_start (v,p);
3544 s = g (p, va_arg (v,int));
3545 va_end (v);
3546 return s;
3547 }
3548
3549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3550 function prototypes and stuff, but not '\xHH' hex character constants.
3551 These don't provoke an error unfortunately, instead are silently treated
3552 as 'x'. The following induces an error, until -std is added to get
3553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3554 array size at least. It's necessary to write '\x00'==0 to get something
3555 that's true only with -std. */
3556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3557
3558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3559 inside strings and character constants. */
3560 #define FOO(x) 'x'
3561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3562
3563 int test (int i, double x);
3564 struct s1 {int (*f) (int a);};
3565 struct s2 {int (*f) (double a);};
3566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3567 int argc;
3568 char **argv;
3569 int
3570 main ()
3571 {
3572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3573 ;
3574 return 0;
3575 }
3576 _ACEOF
3577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3579 do
3580 CC="$ac_save_CC $ac_arg"
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_cv_prog_cc_c89=$ac_arg
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext
3585 test "x$ac_cv_prog_cc_c89" != "xno" && break
3586 done
3587 rm -f conftest.$ac_ext
3588 CC=$ac_save_CC
3589
3590 fi
3591 # AC_CACHE_VAL
3592 case "x$ac_cv_prog_cc_c89" in
3593 x)
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595 $as_echo "none needed" >&6; } ;;
3596 xno)
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3598 $as_echo "unsupported" >&6; } ;;
3599 *)
3600 CC="$CC $ac_cv_prog_cc_c89"
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3602 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3603 esac
3604 if test "x$ac_cv_prog_cc_c89" != xno; then :
3605
3606 fi
3607
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614 ac_aux_dir=
3615 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3616 for ac_t in install-sh install.sh shtool; do
3617 if test -f "$ac_dir/$ac_t"; then
3618 ac_aux_dir=$ac_dir
3619 ac_install_sh="$ac_aux_dir/$ac_t -c"
3620 break 2
3621 fi
3622 done
3623 done
3624 if test -z "$ac_aux_dir"; then
3625 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3626 fi
3627
3628 # These three variables are undocumented and unsupported,
3629 # and are intended to be withdrawn in a future Autoconf release.
3630 # They can cause serious problems if a builder's source tree is in a directory
3631 # whose full name contains unusual characters.
3632 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3633 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3634 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3635
3636
3637 # Make sure we can run config.sub.
3638 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3639 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3640
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3642 $as_echo_n "checking build system type... " >&6; }
3643 if test "${ac_cv_build+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 ac_build_alias=$build_alias
3647 test "x$ac_build_alias" = x &&
3648 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3649 test "x$ac_build_alias" = x &&
3650 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3651 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3652 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3653
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3656 $as_echo "$ac_cv_build" >&6; }
3657 case $ac_cv_build in
3658 *-*-*) ;;
3659 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3660 esac
3661 build=$ac_cv_build
3662 ac_save_IFS=$IFS; IFS='-'
3663 set x $ac_cv_build
3664 shift
3665 build_cpu=$1
3666 build_vendor=$2
3667 shift; shift
3668 # Remember, the first character of IFS is used to create $*,
3669 # except with old shells:
3670 build_os=$*
3671 IFS=$ac_save_IFS
3672 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3673
3674
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3676 $as_echo_n "checking host system type... " >&6; }
3677 if test "${ac_cv_host+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if test "x$host_alias" = x; then
3681 ac_cv_host=$ac_cv_build
3682 else
3683 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3684 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3685 fi
3686
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3689 $as_echo "$ac_cv_host" >&6; }
3690 case $ac_cv_host in
3691 *-*-*) ;;
3692 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3693 esac
3694 host=$ac_cv_host
3695 ac_save_IFS=$IFS; IFS='-'
3696 set x $ac_cv_host
3697 shift
3698 host_cpu=$1
3699 host_vendor=$2
3700 shift; shift
3701 # Remember, the first character of IFS is used to create $*,
3702 # except with old shells:
3703 host_os=$*
3704 IFS=$ac_save_IFS
3705 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3706
3707
3708
3709 ac_ext=c
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3715 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3716 # On Suns, sometimes $CPP names a directory.
3717 if test -n "$CPP" && test -d "$CPP"; then
3718 CPP=
3719 fi
3720 if test -z "$CPP"; then
3721 if test "${ac_cv_prog_CPP+set}" = set; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 # Double quotes because CPP needs to be expanded
3725 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3726 do
3727 ac_preproc_ok=false
3728 for ac_c_preproc_warn_flag in '' yes
3729 do
3730 # Use a header file that comes with gcc, so configuring glibc
3731 # with a fresh cross-compiler works.
3732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3733 # <limits.h> exists even on freestanding compilers.
3734 # On the NeXT, cc -E runs the code through the compiler's parser,
3735 # not just through cpp. "Syntax error" is here to catch this case.
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738 #ifdef __STDC__
3739 # include <limits.h>
3740 #else
3741 # include <assert.h>
3742 #endif
3743 Syntax error
3744 _ACEOF
3745 if ac_fn_c_try_cpp "$LINENO"; then :
3746
3747 else
3748 # Broken: fails on valid input.
3749 continue
3750 fi
3751 rm -f conftest.err conftest.$ac_ext
3752
3753 # OK, works on sane cases. Now check whether nonexistent headers
3754 # can be detected and how.
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <ac_nonexistent.h>
3758 _ACEOF
3759 if ac_fn_c_try_cpp "$LINENO"; then :
3760 # Broken: success on invalid input.
3761 continue
3762 else
3763 # Passes both tests.
3764 ac_preproc_ok=:
3765 break
3766 fi
3767 rm -f conftest.err conftest.$ac_ext
3768
3769 done
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.$ac_ext
3772 if $ac_preproc_ok; then :
3773 break
3774 fi
3775
3776 done
3777 ac_cv_prog_CPP=$CPP
3778
3779 fi
3780 CPP=$ac_cv_prog_CPP
3781 else
3782 ac_cv_prog_CPP=$CPP
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3785 $as_echo "$CPP" >&6; }
3786 ac_preproc_ok=false
3787 for ac_c_preproc_warn_flag in '' yes
3788 do
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797 #ifdef __STDC__
3798 # include <limits.h>
3799 #else
3800 # include <assert.h>
3801 #endif
3802 Syntax error
3803 _ACEOF
3804 if ac_fn_c_try_cpp "$LINENO"; then :
3805
3806 else
3807 # Broken: fails on valid input.
3808 continue
3809 fi
3810 rm -f conftest.err conftest.$ac_ext
3811
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816 #include <ac_nonexistent.h>
3817 _ACEOF
3818 if ac_fn_c_try_cpp "$LINENO"; then :
3819 # Broken: success on invalid input.
3820 continue
3821 else
3822 # Passes both tests.
3823 ac_preproc_ok=:
3824 break
3825 fi
3826 rm -f conftest.err conftest.$ac_ext
3827
3828 done
3829 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3830 rm -f conftest.err conftest.$ac_ext
3831 if $ac_preproc_ok; then :
3832
3833 else
3834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3837 See \`config.log' for more details." "$LINENO" 5; }
3838 fi
3839
3840 ac_ext=c
3841 ac_cpp='$CPP $CPPFLAGS'
3842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3848 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3849 if test "${ac_cv_path_GREP+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 if test -z "$GREP"; then
3853 ac_path_GREP_found=false
3854 # Loop through the user's path and test for each of PROGNAME-LIST
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3857 do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in grep ggrep; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3863 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3864 # Check for GNU ac_path_GREP and select it if it is found.
3865 # Check for GNU $ac_path_GREP
3866 case `"$ac_path_GREP" --version 2>&1` in
3867 *GNU*)
3868 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3869 *)
3870 ac_count=0
3871 $as_echo_n 0123456789 >"conftest.in"
3872 while :
3873 do
3874 cat "conftest.in" "conftest.in" >"conftest.tmp"
3875 mv "conftest.tmp" "conftest.in"
3876 cp "conftest.in" "conftest.nl"
3877 $as_echo 'GREP' >> "conftest.nl"
3878 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3880 as_fn_arith $ac_count + 1 && ac_count=$as_val
3881 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3882 # Best one so far, save it but keep looking for a better one
3883 ac_cv_path_GREP="$ac_path_GREP"
3884 ac_path_GREP_max=$ac_count
3885 fi
3886 # 10*(2^10) chars as input seems more than enough
3887 test $ac_count -gt 10 && break
3888 done
3889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3890 esac
3891
3892 $ac_path_GREP_found && break 3
3893 done
3894 done
3895 done
3896 IFS=$as_save_IFS
3897 if test -z "$ac_cv_path_GREP"; then
3898 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3899 fi
3900 else
3901 ac_cv_path_GREP=$GREP
3902 fi
3903
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3906 $as_echo "$ac_cv_path_GREP" >&6; }
3907 GREP="$ac_cv_path_GREP"
3908
3909
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3911 $as_echo_n "checking for egrep... " >&6; }
3912 if test "${ac_cv_path_EGREP+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3916 then ac_cv_path_EGREP="$GREP -E"
3917 else
3918 if test -z "$EGREP"; then
3919 ac_path_EGREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3923 do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_prog in egrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3930 # Check for GNU ac_path_EGREP and select it if it is found.
3931 # Check for GNU $ac_path_EGREP
3932 case `"$ac_path_EGREP" --version 2>&1` in
3933 *GNU*)
3934 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3935 *)
3936 ac_count=0
3937 $as_echo_n 0123456789 >"conftest.in"
3938 while :
3939 do
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
3943 $as_echo 'EGREP' >> "conftest.nl"
3944 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946 as_fn_arith $ac_count + 1 && ac_count=$as_val
3947 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_EGREP="$ac_path_EGREP"
3950 ac_path_EGREP_max=$ac_count
3951 fi
3952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3954 done
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956 esac
3957
3958 $ac_path_EGREP_found && break 3
3959 done
3960 done
3961 done
3962 IFS=$as_save_IFS
3963 if test -z "$ac_cv_path_EGREP"; then
3964 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3965 fi
3966 else
3967 ac_cv_path_EGREP=$EGREP
3968 fi
3969
3970 fi
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3973 $as_echo "$ac_cv_path_EGREP" >&6; }
3974 EGREP="$ac_cv_path_EGREP"
3975
3976
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3978 $as_echo_n "checking for ANSI C header files... " >&6; }
3979 if test "${ac_cv_header_stdc+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3984 #include <stdlib.h>
3985 #include <stdarg.h>
3986 #include <string.h>
3987 #include <float.h>
3988
3989 int
3990 main ()
3991 {
3992
3993 ;
3994 return 0;
3995 }
3996 _ACEOF
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998 ac_cv_header_stdc=yes
3999 else
4000 ac_cv_header_stdc=no
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003
4004 if test $ac_cv_header_stdc = yes; then
4005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008 #include <string.h>
4009
4010 _ACEOF
4011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4012 $EGREP "memchr" >/dev/null 2>&1; then :
4013
4014 else
4015 ac_cv_header_stdc=no
4016 fi
4017 rm -f conftest*
4018
4019 fi
4020
4021 if test $ac_cv_header_stdc = yes; then
4022 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025 #include <stdlib.h>
4026
4027 _ACEOF
4028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4029 $EGREP "free" >/dev/null 2>&1; then :
4030
4031 else
4032 ac_cv_header_stdc=no
4033 fi
4034 rm -f conftest*
4035
4036 fi
4037
4038 if test $ac_cv_header_stdc = yes; then
4039 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4040 if test "$cross_compiling" = yes; then :
4041 :
4042 else
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045 #include <ctype.h>
4046 #include <stdlib.h>
4047 #if ((' ' & 0x0FF) == 0x020)
4048 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4049 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4050 #else
4051 # define ISLOWER(c) \
4052 (('a' <= (c) && (c) <= 'i') \
4053 || ('j' <= (c) && (c) <= 'r') \
4054 || ('s' <= (c) && (c) <= 'z'))
4055 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4056 #endif
4057
4058 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4059 int
4060 main ()
4061 {
4062 int i;
4063 for (i = 0; i < 256; i++)
4064 if (XOR (islower (i), ISLOWER (i))
4065 || toupper (i) != TOUPPER (i))
4066 return 2;
4067 return 0;
4068 }
4069 _ACEOF
4070 if ac_fn_c_try_run "$LINENO"; then :
4071
4072 else
4073 ac_cv_header_stdc=no
4074 fi
4075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4076 conftest.$ac_objext conftest.beam conftest.$ac_ext
4077 fi
4078
4079 fi
4080 fi
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4082 $as_echo "$ac_cv_header_stdc" >&6; }
4083 if test $ac_cv_header_stdc = yes; then
4084
4085 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4086
4087 fi
4088
4089 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4090 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4091 inttypes.h stdint.h unistd.h
4092 do :
4093 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4094 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4095 "
4096 eval as_val=\$$as_ac_Header
4097 if test "x$as_val" = x""yes; then :
4098 cat >>confdefs.h <<_ACEOF
4099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4100 _ACEOF
4101
4102 fi
4103
4104 done
4105
4106
4107
4108
4109
4110 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4111 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4112 MINIX=yes
4113 else
4114 MINIX=
4115 fi
4116
4117
4118 if test "$MINIX" = yes; then
4119
4120 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4121
4122
4123 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4124
4125
4126 $as_echo "#define _MINIX 1" >>confdefs.h
4127
4128 fi
4129
4130 case "$host_os" in
4131 hpux*)
4132
4133 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4134
4135 ;;
4136 esac
4137
4138
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4140 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4141 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146
4147 # define __EXTENSIONS__ 1
4148 $ac_includes_default
4149 int
4150 main ()
4151 {
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_cv_safe_to_define___extensions__=yes
4159 else
4160 ac_cv_safe_to_define___extensions__=no
4161 fi
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4165 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4166 test $ac_cv_safe_to_define___extensions__ = yes &&
4167 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4168
4169 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4170
4171 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4172
4173 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4174
4175 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4176
4177
4178 if test -n "$ac_tool_prefix"; then
4179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -n "$RANLIB"; then
4187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4199 fi
4200 done
4201 done
4202 IFS=$as_save_IFS
4203
4204 fi
4205 fi
4206 RANLIB=$ac_cv_prog_RANLIB
4207 if test -n "$RANLIB"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4209 $as_echo "$RANLIB" >&6; }
4210 else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4213 fi
4214
4215
4216 fi
4217 if test -z "$ac_cv_prog_RANLIB"; then
4218 ac_ct_RANLIB=$RANLIB
4219 # Extract the first word of "ranlib", so it can be a program name with args.
4220 set dummy ranlib; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 if test -n "$ac_ct_RANLIB"; then
4227 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_prog_ac_ct_RANLIB="ranlib"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 break 2
4239 fi
4240 done
4241 done
4242 IFS=$as_save_IFS
4243
4244 fi
4245 fi
4246 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4247 if test -n "$ac_ct_RANLIB"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4249 $as_echo "$ac_ct_RANLIB" >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4253 fi
4254
4255 if test "x$ac_ct_RANLIB" = x; then
4256 RANLIB=":"
4257 else
4258 case $cross_compiling:$ac_tool_warned in
4259 yes:)
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4262 ac_tool_warned=yes ;;
4263 esac
4264 RANLIB=$ac_ct_RANLIB
4265 fi
4266 else
4267 RANLIB="$ac_cv_prog_RANLIB"
4268 fi
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278 # Code from module arg-nonnull:
4279 # Code from module c++defs:
4280 # Code from module extensions:
4281
4282 # Code from module include_next:
4283 # Code from module memchr:
4284 # Code from module memmem:
4285 # Code from module memmem-simple:
4286 # Code from module multiarch:
4287 # Code from module stddef:
4288 # Code from module stdint:
4289 # Code from module string:
4290 # Code from module warn-on-use:
4291 # Code from module wchar:
4292
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4294 $as_echo_n "checking target system type... " >&6; }
4295 if test "${ac_cv_target+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 if test "x$target_alias" = x; then
4299 ac_cv_target=$ac_cv_host
4300 else
4301 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4302 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4303 fi
4304
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4307 $as_echo "$ac_cv_target" >&6; }
4308 case $ac_cv_target in
4309 *-*-*) ;;
4310 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4311 esac
4312 target=$ac_cv_target
4313 ac_save_IFS=$IFS; IFS='-'
4314 set x $ac_cv_target
4315 shift
4316 target_cpu=$1
4317 target_vendor=$2
4318 shift; shift
4319 # Remember, the first character of IFS is used to create $*,
4320 # except with old shells:
4321 target_os=$*
4322 IFS=$ac_save_IFS
4323 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4324
4325
4326 # The aliases save the names the user supplied, while $host etc.
4327 # will get canonicalized.
4328 test -n "$target_alias" &&
4329 test "$program_prefix$program_suffix$program_transform_name" = \
4330 NONENONEs,x,x, &&
4331 program_prefix=${target_alias}-
4332
4333 # The tests for host and target for $enable_largefile require
4334 # canonical names.
4335
4336
4337
4338 # As the $enable_largefile decision depends on --enable-plugins we must set it
4339 # even in directories otherwise not depending on the $plugins option.
4340
4341
4342 # Check whether --enable-plugins was given.
4343 if test "${enable_plugins+set}" = set; then :
4344 enableval=$enable_plugins; case "${enableval}" in
4345 yes | "") plugins=yes ;;
4346 no) plugins=no ;;
4347 *) plugins=yes ;;
4348 esac
4349 else
4350 plugins=no
4351 fi
4352
4353
4354
4355 case "${host}" in
4356 sparc-*-solaris*|i[3-7]86-*-solaris*)
4357 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4358 # are mutually exclusive; and without procfs support, the bfd/ elf module
4359 # cannot provide certain routines such as elfcore_write_prpsinfo
4360 # or elfcore_write_prstatus. So unless the user explicitly requested
4361 # large-file support through the --enable-largefile switch, disable
4362 # large-file support in favor of procfs support.
4363 test "${target}" = "${host}" -a "x$plugins" = xno \
4364 && : ${enable_largefile="no"}
4365 ;;
4366 esac
4367
4368 # Check whether --enable-largefile was given.
4369 if test "${enable_largefile+set}" = set; then :
4370 enableval=$enable_largefile;
4371 fi
4372
4373 if test "$enable_largefile" != no; then
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4376 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4377 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 ac_cv_sys_largefile_CC=no
4381 if test "$GCC" != yes; then
4382 ac_save_CC=$CC
4383 while :; do
4384 # IRIX 6.2 and later do not support large files by default,
4385 # so use the C compiler's -n32 option if that helps.
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 #include <sys/types.h>
4389 /* Check that off_t can represent 2**63 - 1 correctly.
4390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4391 since some C++ compilers masquerading as C compilers
4392 incorrectly reject 9223372036854775807. */
4393 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4395 && LARGE_OFF_T % 2147483647 == 1)
4396 ? 1 : -1];
4397 int
4398 main ()
4399 {
4400
4401 ;
4402 return 0;
4403 }
4404 _ACEOF
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406 break
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext
4409 CC="$CC -n32"
4410 if ac_fn_c_try_compile "$LINENO"; then :
4411 ac_cv_sys_largefile_CC=' -n32'; break
4412 fi
4413 rm -f core conftest.err conftest.$ac_objext
4414 break
4415 done
4416 CC=$ac_save_CC
4417 rm -f conftest.$ac_ext
4418 fi
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4421 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4422 if test "$ac_cv_sys_largefile_CC" != no; then
4423 CC=$CC$ac_cv_sys_largefile_CC
4424 fi
4425
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4427 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4428 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 while :; do
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 #include <sys/types.h>
4435 /* Check that off_t can represent 2**63 - 1 correctly.
4436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4437 since some C++ compilers masquerading as C compilers
4438 incorrectly reject 9223372036854775807. */
4439 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4441 && LARGE_OFF_T % 2147483647 == 1)
4442 ? 1 : -1];
4443 int
4444 main ()
4445 {
4446
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 if ac_fn_c_try_compile "$LINENO"; then :
4452 ac_cv_sys_file_offset_bits=no; break
4453 fi
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4457 #define _FILE_OFFSET_BITS 64
4458 #include <sys/types.h>
4459 /* Check that off_t can represent 2**63 - 1 correctly.
4460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4461 since some C++ compilers masquerading as C compilers
4462 incorrectly reject 9223372036854775807. */
4463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4465 && LARGE_OFF_T % 2147483647 == 1)
4466 ? 1 : -1];
4467 int
4468 main ()
4469 {
4470
4471 ;
4472 return 0;
4473 }
4474 _ACEOF
4475 if ac_fn_c_try_compile "$LINENO"; then :
4476 ac_cv_sys_file_offset_bits=64; break
4477 fi
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 ac_cv_sys_file_offset_bits=unknown
4480 break
4481 done
4482 fi
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4484 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4485 case $ac_cv_sys_file_offset_bits in #(
4486 no | unknown) ;;
4487 *)
4488 cat >>confdefs.h <<_ACEOF
4489 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4490 _ACEOF
4491 ;;
4492 esac
4493 rm -rf conftest*
4494 if test $ac_cv_sys_file_offset_bits = unknown; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4496 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4497 if test "${ac_cv_sys_large_files+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 while :; do
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503 #include <sys/types.h>
4504 /* Check that off_t can represent 2**63 - 1 correctly.
4505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4506 since some C++ compilers masquerading as C compilers
4507 incorrectly reject 9223372036854775807. */
4508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4510 && LARGE_OFF_T % 2147483647 == 1)
4511 ? 1 : -1];
4512 int
4513 main ()
4514 {
4515
4516 ;
4517 return 0;
4518 }
4519 _ACEOF
4520 if ac_fn_c_try_compile "$LINENO"; then :
4521 ac_cv_sys_large_files=no; break
4522 fi
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #define _LARGE_FILES 1
4527 #include <sys/types.h>
4528 /* Check that off_t can represent 2**63 - 1 correctly.
4529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4530 since some C++ compilers masquerading as C compilers
4531 incorrectly reject 9223372036854775807. */
4532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4534 && LARGE_OFF_T % 2147483647 == 1)
4535 ? 1 : -1];
4536 int
4537 main ()
4538 {
4539
4540 ;
4541 return 0;
4542 }
4543 _ACEOF
4544 if ac_fn_c_try_compile "$LINENO"; then :
4545 ac_cv_sys_large_files=1; break
4546 fi
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 ac_cv_sys_large_files=unknown
4549 break
4550 done
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4553 $as_echo "$ac_cv_sys_large_files" >&6; }
4554 case $ac_cv_sys_large_files in #(
4555 no | unknown) ;;
4556 *)
4557 cat >>confdefs.h <<_ACEOF
4558 #define _LARGE_FILES $ac_cv_sys_large_files
4559 _ACEOF
4560 ;;
4561 esac
4562 rm -rf conftest*
4563 fi
4564 fi
4565
4566
4567
4568
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4571 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4572 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 am_cv_prog_cc_stdc=no
4576 ac_save_CC="$CC"
4577 # Don't try gcc -ansi; that turns off useful extensions and
4578 # breaks some systems' header files.
4579 # AIX -qlanglvl=ansi
4580 # Ultrix and OSF/1 -std1
4581 # HP-UX 10.20 and later -Ae
4582 # HP-UX older versions -Aa -D_HPUX_SOURCE
4583 # SVR4 -Xc -D__EXTENSIONS__
4584 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4585 do
4586 CC="$ac_save_CC $ac_arg"
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #include <stdarg.h>
4590 #include <stdio.h>
4591 #include <sys/types.h>
4592 #include <sys/stat.h>
4593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4594 struct buf { int x; };
4595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4596 static char *e (p, i)
4597 char **p;
4598 int i;
4599 {
4600 return p[i];
4601 }
4602 static char *f (char * (*g) (char **, int), char **p, ...)
4603 {
4604 char *s;
4605 va_list v;
4606 va_start (v,p);
4607 s = g (p, va_arg (v,int));
4608 va_end (v);
4609 return s;
4610 }
4611 int test (int i, double x);
4612 struct s1 {int (*f) (int a);};
4613 struct s2 {int (*f) (double a);};
4614 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4615 int argc;
4616 char **argv;
4617
4618 int
4619 main ()
4620 {
4621
4622 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4623
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_c_try_compile "$LINENO"; then :
4629 am_cv_prog_cc_stdc="$ac_arg"; break
4630 fi
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 done
4633 CC="$ac_save_CC"
4634
4635 fi
4636
4637 if test -z "$am_cv_prog_cc_stdc"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4639 $as_echo "none needed" >&6; }
4640 else
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4642 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4643 fi
4644 case "x$am_cv_prog_cc_stdc" in
4645 x|xno) ;;
4646 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4647 esac
4648
4649
4650 ac_aux_dir=
4651 for ac_dir in .. "$srcdir"/..; do
4652 for ac_t in install-sh install.sh shtool; do
4653 if test -f "$ac_dir/$ac_t"; then
4654 ac_aux_dir=$ac_dir
4655 ac_install_sh="$ac_aux_dir/$ac_t -c"
4656 break 2
4657 fi
4658 done
4659 done
4660 if test -z "$ac_aux_dir"; then
4661 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4662 fi
4663
4664 # These three variables are undocumented and unsupported,
4665 # and are intended to be withdrawn in a future Autoconf release.
4666 # They can cause serious problems if a builder's source tree is in a directory
4667 # whose full name contains unusual characters.
4668 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4669 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4670 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4671
4672
4673
4674
4675 # Dependency checking.
4676 rm -rf .tst 2>/dev/null
4677 mkdir .tst 2>/dev/null
4678 if test -d .tst; then
4679 am__leading_dot=.
4680 else
4681 am__leading_dot=_
4682 fi
4683 rmdir .tst 2>/dev/null
4684
4685 DEPDIR="${am__leading_dot}deps"
4686
4687 ac_config_commands="$ac_config_commands depdir"
4688
4689
4690 depcc="$CC" am_compiler_list=
4691
4692 am_depcomp=$ac_aux_dir/depcomp
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4694 $as_echo_n "checking dependency style of $depcc... " >&6; }
4695 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -f "$am_depcomp"; then
4699 # We make a subdir and do the tests there. Otherwise we can end up
4700 # making bogus files that we don't know about and never remove. For
4701 # instance it was reported that on HP-UX the gcc test will end up
4702 # making a dummy file named `D' -- because `-MD' means `put the output
4703 # in D'.
4704 mkdir conftest.dir
4705 # Copy depcomp to subdir because otherwise we won't find it if we're
4706 # using a relative directory.
4707 cp "$am_depcomp" conftest.dir
4708 cd conftest.dir
4709 # We will build objects and dependencies in a subdirectory because
4710 # it helps to detect inapplicable dependency modes. For instance
4711 # both Tru64's cc and ICC support -MD to output dependencies as a
4712 # side effect of compilation, but ICC will put the dependencies in
4713 # the current directory while Tru64 will put them in the object
4714 # directory.
4715 mkdir sub
4716
4717 am_cv_CC_dependencies_compiler_type=none
4718 if test "$am_compiler_list" = ""; then
4719 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4720 fi
4721 for depmode in $am_compiler_list; do
4722 if test $depmode = none; then break; fi
4723
4724 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4725 # Setup a source with many dependencies, because some compilers
4726 # like to wrap large dependency lists on column 80 (with \), and
4727 # we should not choose a depcomp mode which is confused by this.
4728 #
4729 # We need to recreate these files for each test, as the compiler may
4730 # overwrite some of them when testing with obscure command lines.
4731 # This happens at least with the AIX C compiler.
4732 : > sub/conftest.c
4733 for i in 1 2 3 4 5 6; do
4734 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4736 # Solaris 8's {/usr,}/bin/sh.
4737 touch sub/conftst$i.h
4738 done
4739 echo "include sub/conftest.Po" > confmf
4740
4741 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4742 # mode. It turns out that the SunPro C++ compiler does not properly
4743 # handle `-M -o', and we need to detect this.
4744 depcmd="depmode=$depmode \
4745 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4746 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4747 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4748 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4749 if env $depcmd > conftest.err 2>&1 &&
4750 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4751 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4752 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4753 # icc doesn't choke on unknown options, it will just issue warnings
4754 # or remarks (even with -Werror). So we grep stderr for any message
4755 # that says an option was ignored or not supported.
4756 # When given -MP, icc 7.0 and 7.1 complain thusly:
4757 # icc: Command line warning: ignoring option '-M'; no argument required
4758 # The diagnosis changed in icc 8.0:
4759 # icc: Command line remark: option '-MP' not supported
4760 if (grep 'ignoring option' conftest.err ||
4761 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4762 am_cv_CC_dependencies_compiler_type=$depmode
4763 $as_echo "$as_me:$LINENO: success" >&5
4764 break
4765 fi
4766 fi
4767 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4768 sed -e 's/^/| /' < conftest.err >&5
4769 done
4770
4771 cd ..
4772 rm -rf conftest.dir
4773 else
4774 am_cv_CC_dependencies_compiler_type=none
4775 fi
4776
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4779 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4780 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4781 then as_fn_error "no usable dependency style found" "$LINENO" 5
4782 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4783
4784 fi
4785
4786
4787 # Check for the 'make' the user wants to use.
4788 for ac_prog in make
4789 do
4790 # Extract the first word of "$ac_prog", so it can be a program name with args.
4791 set dummy $ac_prog; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_MAKE+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$MAKE"; then
4798 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_MAKE="$ac_prog"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4810 fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 MAKE=$ac_cv_prog_MAKE
4818 if test -n "$MAKE"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4820 $as_echo "$MAKE" >&6; }
4821 else
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4824 fi
4825
4826
4827 test -n "$MAKE" && break
4828 done
4829
4830 MAKE_IS_GNU=
4831 case "`$MAKE --version 2>&1 | sed 1q`" in
4832 *GNU*)
4833 MAKE_IS_GNU=yes
4834 ;;
4835 esac
4836 if test "$MAKE_IS_GNU" = yes; then
4837 GMAKE_TRUE=
4838 GMAKE_FALSE='#'
4839 else
4840 GMAKE_TRUE='#'
4841 GMAKE_FALSE=
4842 fi
4843
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4845 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4846 set x ${MAKE-make}
4847 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4848 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 cat >conftest.make <<\_ACEOF
4852 SHELL = /bin/sh
4853 all:
4854 @echo '@@@%%%=$(MAKE)=@@@%%%'
4855 _ACEOF
4856 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4857 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4858 *@@@%%%=?*=@@@%%%*)
4859 eval ac_cv_prog_make_${ac_make}_set=yes;;
4860 *)
4861 eval ac_cv_prog_make_${ac_make}_set=no;;
4862 esac
4863 rm -f conftest.make
4864 fi
4865 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4867 $as_echo "yes" >&6; }
4868 SET_MAKE=
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4872 SET_MAKE="MAKE=${MAKE-make}"
4873 fi
4874
4875
4876
4877 CONFIG_OBS=
4878 CONFIG_DEPS=
4879 CONFIG_SRCS=
4880 ENABLE_CFLAGS=
4881
4882 CONFIG_ALL=
4883 CONFIG_CLEAN=
4884 CONFIG_INSTALL=
4885 CONFIG_UNINSTALL=
4886
4887 # If we haven't got the data from the intl directory,
4888 # assume NLS is disabled.
4889 USE_NLS=no
4890 LIBINTL=
4891 LIBINTL_DEP=
4892 INCINTL=
4893 XGETTEXT=
4894 GMSGFMT=
4895 POSUB=
4896
4897 if test -f ../intl/config.intl; then
4898 . ../intl/config.intl
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4901 $as_echo_n "checking whether NLS is requested... " >&6; }
4902 if test x"$USE_NLS" != xyes; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4907 $as_echo "yes" >&6; }
4908
4909 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4910
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4913 $as_echo_n "checking for catalogs to be installed... " >&6; }
4914 # Look for .po and .gmo files in the source directory.
4915 CATALOGS=
4916 XLINGUAS=
4917 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4918 # If there aren't any .gmo files the shell will give us the
4919 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4920 # weeded out.
4921 case "$cat" in *\**)
4922 continue;;
4923 esac
4924 # The quadruple backslash is collapsed to a double backslash
4925 # by the backticks, then collapsed again by the double quotes,
4926 # leaving us with one backslash in the sed expression (right
4927 # before the dot that mustn't act as a wildcard).
4928 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4929 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4930 # The user is allowed to set LINGUAS to a list of languages to
4931 # install catalogs for. If it's empty that means "all of them."
4932 if test "x$LINGUAS" = x; then
4933 CATALOGS="$CATALOGS $cat"
4934 XLINGUAS="$XLINGUAS $lang"
4935 else
4936 case "$LINGUAS" in *$lang*)
4937 CATALOGS="$CATALOGS $cat"
4938 XLINGUAS="$XLINGUAS $lang"
4939 ;;
4940 esac
4941 fi
4942 done
4943 LINGUAS="$XLINGUAS"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4945 $as_echo "$LINGUAS" >&6; }
4946
4947
4948 DATADIRNAME=share
4949
4950 INSTOBJEXT=.mo
4951
4952 GENCAT=gencat
4953
4954 CATOBJEXT=.gmo
4955
4956 fi
4957
4958 localedir='${datadir}/locale'
4959
4960
4961 if test x"$USE_NLS" = xyes; then
4962 CONFIG_ALL="$CONFIG_ALL all-po"
4963 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4964 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4965 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4966 fi
4967
4968
4969
4970
4971
4972 LIBC_FATAL_STDERR_=1
4973 export LIBC_FATAL_STDERR_
4974
4975
4976
4977
4978
4979 for ac_header in $gl_header_list
4980 do :
4981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4982 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4983 eval as_val=\$$as_ac_Header
4984 if test "x$as_val" = x""yes; then :
4985 cat >>confdefs.h <<_ACEOF
4986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4987 _ACEOF
4988
4989 fi
4990
4991 done
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001 for ac_func in $gl_func_list
5002 do :
5003 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5004 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5005 eval as_val=\$$as_ac_var
5006 if test "x$as_val" = x""yes; then :
5007 cat >>confdefs.h <<_ACEOF
5008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5009 _ACEOF
5010
5011 fi
5012 done
5013
5014
5015
5016
5017
5018
5019 GNULIB_MEMCHR=0;
5020 GNULIB_MEMMEM=0;
5021 GNULIB_MEMPCPY=0;
5022 GNULIB_MEMRCHR=0;
5023 GNULIB_RAWMEMCHR=0;
5024 GNULIB_STPCPY=0;
5025 GNULIB_STPNCPY=0;
5026 GNULIB_STRCHRNUL=0;
5027 GNULIB_STRDUP=0;
5028 GNULIB_STRNCAT=0;
5029 GNULIB_STRNDUP=0;
5030 GNULIB_STRNLEN=0;
5031 GNULIB_STRPBRK=0;
5032 GNULIB_STRSEP=0;
5033 GNULIB_STRSTR=0;
5034 GNULIB_STRCASESTR=0;
5035 GNULIB_STRTOK_R=0;
5036 GNULIB_MBSLEN=0;
5037 GNULIB_MBSNLEN=0;
5038 GNULIB_MBSCHR=0;
5039 GNULIB_MBSRCHR=0;
5040 GNULIB_MBSSTR=0;
5041 GNULIB_MBSCASECMP=0;
5042 GNULIB_MBSNCASECMP=0;
5043 GNULIB_MBSPCASECMP=0;
5044 GNULIB_MBSCASESTR=0;
5045 GNULIB_MBSCSPN=0;
5046 GNULIB_MBSPBRK=0;
5047 GNULIB_MBSSPN=0;
5048 GNULIB_MBSSEP=0;
5049 GNULIB_MBSTOK_R=0;
5050 GNULIB_STRERROR=0;
5051 GNULIB_STRSIGNAL=0;
5052 GNULIB_STRVERSCMP=0;
5053 HAVE_MBSLEN=0;
5054 HAVE_MEMCHR=1;
5055 HAVE_DECL_MEMMEM=1;
5056 HAVE_MEMPCPY=1;
5057 HAVE_DECL_MEMRCHR=1;
5058 HAVE_RAWMEMCHR=1;
5059 HAVE_STPCPY=1;
5060 HAVE_STPNCPY=1;
5061 HAVE_STRCHRNUL=1;
5062 HAVE_DECL_STRDUP=1;
5063 HAVE_DECL_STRNDUP=1;
5064 HAVE_DECL_STRNLEN=1;
5065 HAVE_STRPBRK=1;
5066 HAVE_STRSEP=1;
5067 HAVE_STRCASESTR=1;
5068 HAVE_DECL_STRTOK_R=1;
5069 HAVE_DECL_STRSIGNAL=1;
5070 HAVE_STRVERSCMP=1;
5071 REPLACE_MEMCHR=0;
5072 REPLACE_MEMMEM=0;
5073 REPLACE_STPNCPY=0;
5074 REPLACE_STRDUP=0;
5075 REPLACE_STRSTR=0;
5076 REPLACE_STRCASESTR=0;
5077 REPLACE_STRERROR=0;
5078 REPLACE_STRNCAT=0;
5079 REPLACE_STRNDUP=0;
5080 REPLACE_STRNLEN=0;
5081 REPLACE_STRSIGNAL=0;
5082 REPLACE_STRTOK_R=0;
5083 UNDEFINE_STRTOK_R=0;
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5098 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5099 # irrelevant for anonymous mappings.
5100 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5101 if test "x$ac_cv_func_mmap" = x""yes; then :
5102 gl_have_mmap=yes
5103 else
5104 gl_have_mmap=no
5105 fi
5106
5107
5108 # Try to allow MAP_ANONYMOUS.
5109 gl_have_mmap_anonymous=no
5110 if test $gl_have_mmap = yes; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5112 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115
5116 #include <sys/mman.h>
5117 #ifdef MAP_ANONYMOUS
5118 I cant identify this map.
5119 #endif
5120
5121 _ACEOF
5122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5123 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5124 gl_have_mmap_anonymous=yes
5125 fi
5126 rm -f conftest*
5127
5128 if test $gl_have_mmap_anonymous != yes; then
5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5131
5132 #include <sys/mman.h>
5133 #ifdef MAP_ANON
5134 I cant identify this map.
5135 #endif
5136
5137 _ACEOF
5138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5139 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5140
5141 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5142
5143 gl_have_mmap_anonymous=yes
5144 fi
5145 rm -f conftest*
5146
5147 fi
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5149 $as_echo "$gl_have_mmap_anonymous" >&6; }
5150 if test $gl_have_mmap_anonymous = yes; then
5151
5152 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5153
5154 fi
5155 fi
5156
5157
5158 :
5159
5160
5161
5162
5163
5164
5165 :
5166
5167
5168
5169
5170
5171
5172
5173
5174 :
5175
5176
5177
5178
5179
5180 if test $ac_cv_func_memchr = yes; then
5181 # Detect platform-specific bugs in some versions of glibc:
5182 # memchr should not dereference anything with length 0
5183 # http://bugzilla.redhat.com/499689
5184 # memchr should not dereference overestimated length after a match
5185 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5186 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5187 # Assume that memchr works on platforms that lack mprotect.
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5189 $as_echo_n "checking whether memchr works... " >&6; }
5190 if test "${gl_cv_func_memchr_works+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test "$cross_compiling" = yes; then :
5194 gl_cv_func_memchr_works="guessing no"
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199 #include <string.h>
5200 #if HAVE_SYS_MMAN_H
5201 # include <fcntl.h>
5202 # include <unistd.h>
5203 # include <sys/types.h>
5204 # include <sys/mman.h>
5205 # ifndef MAP_FILE
5206 # define MAP_FILE 0
5207 # endif
5208 #endif
5209
5210 int
5211 main ()
5212 {
5213
5214 char *fence = NULL;
5215 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5216 # if HAVE_MAP_ANONYMOUS
5217 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5218 const int fd = -1;
5219 # else /* !HAVE_MAP_ANONYMOUS */
5220 const int flags = MAP_FILE | MAP_PRIVATE;
5221 int fd = open ("/dev/zero", O_RDONLY, 0666);
5222 if (fd >= 0)
5223 # endif
5224 {
5225 int pagesize = getpagesize ();
5226 char *two_pages =
5227 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5228 flags, fd, 0);
5229 if (two_pages != (char *)(-1)
5230 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5231 fence = two_pages + pagesize;
5232 }
5233 #endif
5234 if (fence)
5235 {
5236 if (memchr (fence, 0, 0))
5237 return 1;
5238 strcpy (fence - 9, "12345678");
5239 if (memchr (fence - 9, 0, 79) != fence - 1)
5240 return 2;
5241 }
5242 return 0;
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_c_try_run "$LINENO"; then :
5249 gl_cv_func_memchr_works=yes
5250 else
5251 gl_cv_func_memchr_works=no
5252 fi
5253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5254 conftest.$ac_objext conftest.beam conftest.$ac_ext
5255 fi
5256
5257 fi
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5259 $as_echo "$gl_cv_func_memchr_works" >&6; }
5260 if test "$gl_cv_func_memchr_works" != yes; then
5261 REPLACE_MEMCHR=1
5262 fi
5263 else
5264 HAVE_MEMCHR=0
5265 fi
5266 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5267
5268
5269
5270
5271
5272
5273
5274
5275 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5276
5277
5278 for ac_header in bp-sym.h
5279 do :
5280 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5281 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5282 cat >>confdefs.h <<_ACEOF
5283 #define HAVE_BP_SYM_H 1
5284 _ACEOF
5285
5286 fi
5287
5288 done
5289
5290
5291 fi
5292
5293
5294 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5295 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5296 ac_have_decl=1
5297 else
5298 ac_have_decl=0
5299 fi
5300
5301 cat >>confdefs.h <<_ACEOF
5302 #define HAVE_DECL_MEMMEM $ac_have_decl
5303 _ACEOF
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318 for ac_func in memmem
5319 do :
5320 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5321 if test "x$ac_cv_func_memmem" = x""yes; then :
5322 cat >>confdefs.h <<_ACEOF
5323 #define HAVE_MEMMEM 1
5324 _ACEOF
5325
5326 else
5327
5328 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5329
5330 fi
5331 done
5332
5333
5334
5335 :
5336
5337
5338
5339
5340
5341 if test $ac_cv_have_decl_memmem = no; then
5342 HAVE_DECL_MEMMEM=0
5343 fi
5344 :
5345
5346
5347 gl_cv_c_multiarch=no
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #ifndef __APPLE_CC__
5351 not a universal capable compiler
5352 #endif
5353 typedef int dummy;
5354
5355 _ACEOF
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357
5358 arch=
5359 prev=
5360 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5361 if test -n "$prev"; then
5362 case $word in
5363 i?86 | x86_64 | ppc | ppc64)
5364 if test -z "$arch" || test "$arch" = "$word"; then
5365 arch="$word"
5366 else
5367 gl_cv_c_multiarch=yes
5368 fi
5369 ;;
5370 esac
5371 prev=
5372 else
5373 if test "x$word" = "x-arch"; then
5374 prev=arch
5375 fi
5376 fi
5377 done
5378
5379 fi
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 if test $gl_cv_c_multiarch = yes; then
5382
5383 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5384
5385 APPLE_UNIVERSAL_BUILD=1
5386 else
5387 APPLE_UNIVERSAL_BUILD=0
5388 fi
5389
5390
5391
5392 REPLACE_NULL=0;
5393 HAVE_WCHAR_T=1;
5394 STDDEF_H='';
5395
5396
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5398 $as_echo_n "checking for wchar_t... " >&6; }
5399 if test "${gt_cv_c_wchar_t+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <stddef.h>
5405 wchar_t foo = (wchar_t)'\0';
5406 int
5407 main ()
5408 {
5409
5410 ;
5411 return 0;
5412 }
5413 _ACEOF
5414 if ac_fn_c_try_compile "$LINENO"; then :
5415 gt_cv_c_wchar_t=yes
5416 else
5417 gt_cv_c_wchar_t=no
5418 fi
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 fi
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5422 $as_echo "$gt_cv_c_wchar_t" >&6; }
5423 if test $gt_cv_c_wchar_t = yes; then
5424
5425 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5426
5427 fi
5428
5429
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5432 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5433 if test "${gl_cv_have_include_next+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 rm -rf conftestd1a conftestd1b conftestd2
5437 mkdir conftestd1a conftestd1b conftestd2
5438 cat <<EOF > conftestd1a/conftest.h
5439 #define DEFINED_IN_CONFTESTD1
5440 #include_next <conftest.h>
5441 #ifdef DEFINED_IN_CONFTESTD2
5442 int foo;
5443 #else
5444 #error "include_next doesn't work"
5445 #endif
5446 EOF
5447 cat <<EOF > conftestd1b/conftest.h
5448 #define DEFINED_IN_CONFTESTD1
5449 #include <stdio.h>
5450 #include_next <conftest.h>
5451 #ifdef DEFINED_IN_CONFTESTD2
5452 int foo;
5453 #else
5454 #error "include_next doesn't work"
5455 #endif
5456 EOF
5457 cat <<EOF > conftestd2/conftest.h
5458 #ifndef DEFINED_IN_CONFTESTD1
5459 #error "include_next test doesn't work"
5460 #endif
5461 #define DEFINED_IN_CONFTESTD2
5462 EOF
5463 gl_save_CPPFLAGS="$CPPFLAGS"
5464 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #include <conftest.h>
5468 _ACEOF
5469 if ac_fn_c_try_compile "$LINENO"; then :
5470 gl_cv_have_include_next=yes
5471 else
5472 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #include <conftest.h>
5476 _ACEOF
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478 gl_cv_have_include_next=buggy
5479 else
5480 gl_cv_have_include_next=no
5481 fi
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 CPPFLAGS="$gl_save_CPPFLAGS"
5487 rm -rf conftestd1a conftestd1b conftestd2
5488
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5491 $as_echo "$gl_cv_have_include_next" >&6; }
5492 PRAGMA_SYSTEM_HEADER=
5493 if test $gl_cv_have_include_next = yes; then
5494 INCLUDE_NEXT=include_next
5495 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5496 if test -n "$GCC"; then
5497 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5498 fi
5499 else
5500 if test $gl_cv_have_include_next = buggy; then
5501 INCLUDE_NEXT=include
5502 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5503 else
5504 INCLUDE_NEXT=include
5505 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5506 fi
5507 fi
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5519 $as_echo_n "checking for long long int... " >&6; }
5520 if test "${ac_cv_type_long_long_int+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525
5526 /* For now, do not test the preprocessor; as of 2007 there are too many
5527 implementations with broken preprocessors. Perhaps this can
5528 be revisited in 2012. In the meantime, code should not expect
5529 #if to work with literals wider than 32 bits. */
5530 /* Test literals. */
5531 long long int ll = 9223372036854775807ll;
5532 long long int nll = -9223372036854775807LL;
5533 unsigned long long int ull = 18446744073709551615ULL;
5534 /* Test constant expressions. */
5535 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5536 ? 1 : -1)];
5537 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5538 ? 1 : -1)];
5539 int i = 63;
5540 int
5541 main ()
5542 {
5543 /* Test availability of runtime routines for shift and division. */
5544 long long int llmax = 9223372036854775807ll;
5545 unsigned long long int ullmax = 18446744073709551615ull;
5546 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5547 | (llmax / ll) | (llmax % ll)
5548 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5549 | (ullmax / ull) | (ullmax % ull));
5550 ;
5551 return 0;
5552 }
5553
5554 _ACEOF
5555 if ac_fn_c_try_link "$LINENO"; then :
5556 if test "$cross_compiling" = yes; then :
5557 ac_cv_type_long_long_int=yes
5558 else
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 #include <limits.h>
5562 #ifndef LLONG_MAX
5563 # define HALF \
5564 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5565 # define LLONG_MAX (HALF - 1 + HALF)
5566 #endif
5567 int
5568 main ()
5569 {
5570 long long int n = 1;
5571 int i;
5572 for (i = 0; ; i++)
5573 {
5574 long long int m = n << i;
5575 if (m >> i != n)
5576 return 1;
5577 if (LLONG_MAX / 2 < m)
5578 break;
5579 }
5580 return 0;
5581 ;
5582 return 0;
5583 }
5584 _ACEOF
5585 if ac_fn_c_try_run "$LINENO"; then :
5586 ac_cv_type_long_long_int=yes
5587 else
5588 ac_cv_type_long_long_int=no
5589 fi
5590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5591 conftest.$ac_objext conftest.beam conftest.$ac_ext
5592 fi
5593
5594 else
5595 ac_cv_type_long_long_int=no
5596 fi
5597 rm -f core conftest.err conftest.$ac_objext \
5598 conftest$ac_exeext conftest.$ac_ext
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5601 $as_echo "$ac_cv_type_long_long_int" >&6; }
5602 if test $ac_cv_type_long_long_int = yes; then
5603
5604 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5605
5606 fi
5607
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5610 $as_echo_n "checking for unsigned long long int... " >&6; }
5611 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616
5617 /* For now, do not test the preprocessor; as of 2007 there are too many
5618 implementations with broken preprocessors. Perhaps this can
5619 be revisited in 2012. In the meantime, code should not expect
5620 #if to work with literals wider than 32 bits. */
5621 /* Test literals. */
5622 long long int ll = 9223372036854775807ll;
5623 long long int nll = -9223372036854775807LL;
5624 unsigned long long int ull = 18446744073709551615ULL;
5625 /* Test constant expressions. */
5626 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5627 ? 1 : -1)];
5628 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5629 ? 1 : -1)];
5630 int i = 63;
5631 int
5632 main ()
5633 {
5634 /* Test availability of runtime routines for shift and division. */
5635 long long int llmax = 9223372036854775807ll;
5636 unsigned long long int ullmax = 18446744073709551615ull;
5637 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5638 | (llmax / ll) | (llmax % ll)
5639 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5640 | (ullmax / ull) | (ullmax % ull));
5641 ;
5642 return 0;
5643 }
5644
5645 _ACEOF
5646 if ac_fn_c_try_link "$LINENO"; then :
5647 ac_cv_type_unsigned_long_long_int=yes
5648 else
5649 ac_cv_type_unsigned_long_long_int=no
5650 fi
5651 rm -f core conftest.err conftest.$ac_objext \
5652 conftest$ac_exeext conftest.$ac_ext
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5655 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5656 if test $ac_cv_type_unsigned_long_long_int = yes; then
5657
5658 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5659
5660 fi
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5673 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5674 if test "${ac_cv_c_restrict+set}" = set; then :
5675 $as_echo_n "(cached) " >&6
5676 else
5677 ac_cv_c_restrict=no
5678 # The order here caters to the fact that C++ does not require restrict.
5679 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 typedef int * int_ptr;
5683 int foo (int_ptr $ac_kw ip) {
5684 return ip[0];
5685 }
5686 int
5687 main ()
5688 {
5689 int s[1];
5690 int * $ac_kw t = s;
5691 t[0] = 0;
5692 return foo(t)
5693 ;
5694 return 0;
5695 }
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698 ac_cv_c_restrict=$ac_kw
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 test "$ac_cv_c_restrict" != no && break
5702 done
5703
5704 fi
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5706 $as_echo "$ac_cv_c_restrict" >&6; }
5707
5708 case $ac_cv_c_restrict in
5709 restrict) ;;
5710 no) $as_echo "#define restrict /**/" >>confdefs.h
5711 ;;
5712 *) cat >>confdefs.h <<_ACEOF
5713 #define restrict $ac_cv_c_restrict
5714 _ACEOF
5715 ;;
5716 esac
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730 :
5731
5732
5733
5734
5735
5736
5737
5738 if test $gl_cv_have_include_next = yes; then
5739 gl_cv_next_string_h='<'string.h'>'
5740 else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5742 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5743 if test "${gl_cv_next_string_h+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746
5747 if test $ac_cv_header_string_h = yes; then
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #include <string.h>
5751
5752 _ACEOF
5753 case "$host_os" in
5754 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5755 *) gl_absname_cpp="$ac_cpp" ;;
5756 esac
5757 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5758 sed -n '\#/string.h#{
5759 s#.*"\(.*/string.h\)".*#\1#
5760 s#^/[^/]#//&#
5761 p
5762 q
5763 }'`'"'
5764 else
5765 gl_cv_next_string_h='<'string.h'>'
5766 fi
5767
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5770 $as_echo "$gl_cv_next_string_h" >&6; }
5771 fi
5772 NEXT_STRING_H=$gl_cv_next_string_h
5773
5774 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5775 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5776 gl_next_as_first_directive='<'string.h'>'
5777 else
5778 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5779 gl_next_as_first_directive=$gl_cv_next_string_h
5780 fi
5781 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5782
5783
5784
5785
5786
5787 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
5788 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5790 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5791 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 #include <string.h>
5797
5798 int
5799 main ()
5800 {
5801 #undef $gl_func
5802 (void) $gl_func;
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 if ac_fn_c_try_compile "$LINENO"; then :
5808 eval "$as_gl_Symbol=yes"
5809 else
5810 eval "$as_gl_Symbol=no"
5811 fi
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 fi
5814 eval ac_res=\$$as_gl_Symbol
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5816 $as_echo "$ac_res" >&6; }
5817 eval as_val=\$$as_gl_Symbol
5818 if test "x$as_val" = x""yes; then :
5819 cat >>confdefs.h <<_ACEOF
5820 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5821 _ACEOF
5822
5823 eval ac_cv_have_decl_$gl_func=yes
5824 fi
5825 done
5826
5827
5828
5829 GNULIB_BTOWC=0;
5830 GNULIB_WCTOB=0;
5831 GNULIB_MBSINIT=0;
5832 GNULIB_MBRTOWC=0;
5833 GNULIB_MBRLEN=0;
5834 GNULIB_MBSRTOWCS=0;
5835 GNULIB_MBSNRTOWCS=0;
5836 GNULIB_WCRTOMB=0;
5837 GNULIB_WCSRTOMBS=0;
5838 GNULIB_WCSNRTOMBS=0;
5839 GNULIB_WCWIDTH=0;
5840 HAVE_BTOWC=1;
5841 HAVE_MBSINIT=1;
5842 HAVE_MBRTOWC=1;
5843 HAVE_MBRLEN=1;
5844 HAVE_MBSRTOWCS=1;
5845 HAVE_MBSNRTOWCS=1;
5846 HAVE_WCRTOMB=1;
5847 HAVE_WCSRTOMBS=1;
5848 HAVE_WCSNRTOMBS=1;
5849 HAVE_DECL_WCTOB=1;
5850 HAVE_DECL_WCWIDTH=1;
5851 REPLACE_MBSTATE_T=0;
5852 REPLACE_BTOWC=0;
5853 REPLACE_WCTOB=0;
5854 REPLACE_MBSINIT=0;
5855 REPLACE_MBRTOWC=0;
5856 REPLACE_MBRLEN=0;
5857 REPLACE_MBSRTOWCS=0;
5858 REPLACE_MBSNRTOWCS=0;
5859 REPLACE_WCRTOMB=0;
5860 REPLACE_WCSRTOMBS=0;
5861 REPLACE_WCSNRTOMBS=0;
5862 REPLACE_WCWIDTH=0;
5863
5864
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5866 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5867 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 gl_cv_header_wchar_h_correct_inline=yes
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873
5874 #define wcstod renamed_wcstod
5875 #include <wchar.h>
5876 extern int zero (void);
5877 int main () { return zero(); }
5878
5879 _ACEOF
5880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5881 (eval $ac_compile) 2>&5
5882 ac_status=$?
5883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884 test $ac_status = 0; }; then
5885 mv conftest.$ac_objext conftest1.$ac_objext
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5888
5889 #define wcstod renamed_wcstod
5890 #include <wchar.h>
5891 int zero (void) { return 0; }
5892
5893 _ACEOF
5894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5895 (eval $ac_compile) 2>&5
5896 ac_status=$?
5897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898 test $ac_status = 0; }; then
5899 mv conftest.$ac_objext conftest2.$ac_objext
5900 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5901 :
5902 else
5903 gl_cv_header_wchar_h_correct_inline=no
5904 fi
5905 fi
5906 fi
5907 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5908
5909 fi
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5911 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5912 if test $gl_cv_header_wchar_h_correct_inline = no; then
5913 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5914 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5915 C99 mode. You have four options:
5916 - Add the flag -fgnu89-inline to CC and reconfigure, or
5917 - Fix your include files, using parts of
5918 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5919 - Use a gcc version older than 4.3, or
5920 - Don't use the flags -std=c99 or -std=gnu99.
5921 Configuration aborted." "$LINENO" 5
5922 fi
5923
5924
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5926 $as_echo_n "checking for wint_t... " >&6; }
5927 if test "${gt_cv_c_wint_t+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932
5933 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5934 <wchar.h>.
5935 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5936 before <wchar.h>. */
5937 #include <stddef.h>
5938 #include <stdio.h>
5939 #include <time.h>
5940 #include <wchar.h>
5941 wint_t foo = (wchar_t)'\0';
5942 int
5943 main ()
5944 {
5945
5946 ;
5947 return 0;
5948 }
5949 _ACEOF
5950 if ac_fn_c_try_compile "$LINENO"; then :
5951 gt_cv_c_wint_t=yes
5952 else
5953 gt_cv_c_wint_t=no
5954 fi
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 fi
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5958 $as_echo "$gt_cv_c_wint_t" >&6; }
5959 if test $gt_cv_c_wint_t = yes; then
5960
5961 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5962
5963 fi
5964
5965
5966 if false; then
5967 GL_COND_LIBTOOL_TRUE=
5968 GL_COND_LIBTOOL_FALSE='#'
5969 else
5970 GL_COND_LIBTOOL_TRUE='#'
5971 GL_COND_LIBTOOL_FALSE=
5972 fi
5973
5974 gl_cond_libtool=false
5975 gl_libdeps=
5976 gl_ltlibdeps=
5977 gl_m4_base='gnulib/m4'
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987 gl_source_base='gnulib'
5988 # Code from module arg-nonnull:
5989 # Code from module c++defs:
5990 # Code from module extensions:
5991 # Code from module include_next:
5992 # Code from module memchr:
5993
5994
5995
5996
5997 GNULIB_MEMCHR=1
5998
5999
6000
6001 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6002
6003
6004
6005 # Code from module memmem:
6006
6007
6008 if test $ac_cv_have_decl_memmem = yes; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6010 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6011 if test "${gl_cv_func_memmem_works+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 if test "$cross_compiling" = yes; then :
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6017
6018 #include <features.h>
6019 #ifdef __GNU_LIBRARY__
6020 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6021 Lucky user
6022 #endif
6023 #endif
6024 #ifdef __CYGWIN__
6025 #include <cygwin/version.h>
6026 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6027 Lucky user
6028 #endif
6029 #endif
6030
6031 _ACEOF
6032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6033 $EGREP "Lucky user" >/dev/null 2>&1; then :
6034 gl_cv_func_memmem_works=yes
6035 else
6036 gl_cv_func_memmem_works="guessing no"
6037 fi
6038 rm -f conftest*
6039
6040
6041 else
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044
6045 #include <signal.h> /* for signal */
6046 #include <string.h> /* for memmem */
6047 #include <stdlib.h> /* for malloc */
6048 #include <unistd.h> /* for alarm */
6049
6050 int
6051 main ()
6052 {
6053 size_t m = 1000000;
6054 char *haystack = (char *) malloc (2 * m + 1);
6055 char *needle = (char *) malloc (m + 1);
6056 void *result = 0;
6057 /* Failure to compile this test due to missing alarm is okay,
6058 since all such platforms (mingw) also lack memmem. */
6059 signal (SIGALRM, SIG_DFL);
6060 alarm (5);
6061 /* Check for quadratic performance. */
6062 if (haystack && needle)
6063 {
6064 memset (haystack, 'A', 2 * m);
6065 haystack[2 * m] = 'B';
6066 memset (needle, 'A', m);
6067 needle[m] = 'B';
6068 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6069 }
6070 /* Check for empty needle behavior. */
6071 return !result || !memmem ("a", 1, 0, 0);
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 if ac_fn_c_try_run "$LINENO"; then :
6077 gl_cv_func_memmem_works=yes
6078 else
6079 gl_cv_func_memmem_works=no
6080 fi
6081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6082 conftest.$ac_objext conftest.beam conftest.$ac_ext
6083 fi
6084
6085
6086 fi
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6088 $as_echo "$gl_cv_func_memmem_works" >&6; }
6089 if test "$gl_cv_func_memmem_works" != yes; then
6090 REPLACE_MEMMEM=1
6091
6092
6093
6094
6095
6096
6097
6098
6099 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6100
6101 fi
6102 fi
6103
6104 # Code from module memmem-simple:
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117 for ac_func in memmem
6118 do :
6119 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6120 if test "x$ac_cv_func_memmem" = x""yes; then :
6121 cat >>confdefs.h <<_ACEOF
6122 #define HAVE_MEMMEM 1
6123 _ACEOF
6124
6125 else
6126
6127 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6128
6129 fi
6130 done
6131
6132
6133
6134 :
6135
6136
6137
6138
6139
6140 if test $ac_cv_have_decl_memmem = no; then
6141 HAVE_DECL_MEMMEM=0
6142 fi
6143 :
6144
6145
6146
6147
6148 GNULIB_MEMMEM=1
6149
6150
6151
6152 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6153
6154
6155
6156 # Code from module multiarch:
6157
6158 # Code from module stddef:
6159
6160
6161
6162 if test $gt_cv_c_wchar_t = no; then
6163 HAVE_WCHAR_T=0
6164 STDDEF_H=stddef.h
6165 fi
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6167 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6168 if test "${gl_cv_decl_null_works+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173 #include <stddef.h>
6174 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6175
6176 int
6177 main ()
6178 {
6179
6180 ;
6181 return 0;
6182 }
6183 _ACEOF
6184 if ac_fn_c_try_compile "$LINENO"; then :
6185 gl_cv_decl_null_works=yes
6186 else
6187 gl_cv_decl_null_works=no
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6192 $as_echo "$gl_cv_decl_null_works" >&6; }
6193 if test $gl_cv_decl_null_works = no; then
6194 REPLACE_NULL=1
6195 STDDEF_H=stddef.h
6196 fi
6197 if test -n "$STDDEF_H"; then
6198
6199
6200
6201
6202 :
6203
6204
6205
6206
6207
6208
6209
6210 if test $gl_cv_have_include_next = yes; then
6211 gl_cv_next_stddef_h='<'stddef.h'>'
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6214 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6215 if test "${gl_cv_next_stddef_h+set}" = set; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218
6219 if test $ac_cv_header_stddef_h = yes; then
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #include <stddef.h>
6223
6224 _ACEOF
6225 case "$host_os" in
6226 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6227 *) gl_absname_cpp="$ac_cpp" ;;
6228 esac
6229 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6230 sed -n '\#/stddef.h#{
6231 s#.*"\(.*/stddef.h\)".*#\1#
6232 s#^/[^/]#//&#
6233 p
6234 q
6235 }'`'"'
6236 else
6237 gl_cv_next_stddef_h='<'stddef.h'>'
6238 fi
6239
6240 fi
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6242 $as_echo "$gl_cv_next_stddef_h" >&6; }
6243 fi
6244 NEXT_STDDEF_H=$gl_cv_next_stddef_h
6245
6246 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6247 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6248 gl_next_as_first_directive='<'stddef.h'>'
6249 else
6250 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6251 gl_next_as_first_directive=$gl_cv_next_stddef_h
6252 fi
6253 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6254
6255
6256
6257 fi
6258
6259 # Code from module stdint:
6260
6261
6262
6263 if test $ac_cv_type_long_long_int = yes; then
6264 HAVE_LONG_LONG_INT=1
6265 else
6266 HAVE_LONG_LONG_INT=0
6267 fi
6268
6269
6270 if test $ac_cv_type_unsigned_long_long_int = yes; then
6271 HAVE_UNSIGNED_LONG_LONG_INT=1
6272 else
6273 HAVE_UNSIGNED_LONG_LONG_INT=0
6274 fi
6275
6276
6277 if test $ac_cv_header_inttypes_h = yes; then
6278 HAVE_INTTYPES_H=1
6279 else
6280 HAVE_INTTYPES_H=0
6281 fi
6282
6283
6284 if test $ac_cv_header_sys_types_h = yes; then
6285 HAVE_SYS_TYPES_H=1
6286 else
6287 HAVE_SYS_TYPES_H=0
6288 fi
6289
6290
6291
6292
6293
6294
6295 :
6296
6297
6298
6299
6300
6301
6302
6303 if test $gl_cv_have_include_next = yes; then
6304 gl_cv_next_stdint_h='<'stdint.h'>'
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6307 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6308 if test "${gl_cv_next_stdint_h+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311
6312 if test $ac_cv_header_stdint_h = yes; then
6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 #include <stdint.h>
6316
6317 _ACEOF
6318 case "$host_os" in
6319 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6320 *) gl_absname_cpp="$ac_cpp" ;;
6321 esac
6322 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6323 sed -n '\#/stdint.h#{
6324 s#.*"\(.*/stdint.h\)".*#\1#
6325 s#^/[^/]#//&#
6326 p
6327 q
6328 }'`'"'
6329 else
6330 gl_cv_next_stdint_h='<'stdint.h'>'
6331 fi
6332
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6335 $as_echo "$gl_cv_next_stdint_h" >&6; }
6336 fi
6337 NEXT_STDINT_H=$gl_cv_next_stdint_h
6338
6339 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6340 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6341 gl_next_as_first_directive='<'stdint.h'>'
6342 else
6343 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6344 gl_next_as_first_directive=$gl_cv_next_stdint_h
6345 fi
6346 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6347
6348
6349
6350 if test $ac_cv_header_stdint_h = yes; then
6351 HAVE_STDINT_H=1
6352 else
6353 HAVE_STDINT_H=0
6354 fi
6355
6356
6357 if test $ac_cv_header_stdint_h = yes; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6359 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6360 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 gl_cv_header_working_stdint_h=no
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366
6367
6368 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6369 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6370 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6371 #include <stdint.h>
6372 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6373 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6374 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6375 #endif
6376
6377
6378 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6379 included before <wchar.h>. */
6380 #include <stddef.h>
6381 #include <signal.h>
6382 #if HAVE_WCHAR_H
6383 # include <stdio.h>
6384 # include <time.h>
6385 # include <wchar.h>
6386 #endif
6387
6388
6389 #ifdef INT8_MAX
6390 int8_t a1 = INT8_MAX;
6391 int8_t a1min = INT8_MIN;
6392 #endif
6393 #ifdef INT16_MAX
6394 int16_t a2 = INT16_MAX;
6395 int16_t a2min = INT16_MIN;
6396 #endif
6397 #ifdef INT32_MAX
6398 int32_t a3 = INT32_MAX;
6399 int32_t a3min = INT32_MIN;
6400 #endif
6401 #ifdef INT64_MAX
6402 int64_t a4 = INT64_MAX;
6403 int64_t a4min = INT64_MIN;
6404 #endif
6405 #ifdef UINT8_MAX
6406 uint8_t b1 = UINT8_MAX;
6407 #else
6408 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6409 #endif
6410 #ifdef UINT16_MAX
6411 uint16_t b2 = UINT16_MAX;
6412 #endif
6413 #ifdef UINT32_MAX
6414 uint32_t b3 = UINT32_MAX;
6415 #endif
6416 #ifdef UINT64_MAX
6417 uint64_t b4 = UINT64_MAX;
6418 #endif
6419 int_least8_t c1 = INT8_C (0x7f);
6420 int_least8_t c1max = INT_LEAST8_MAX;
6421 int_least8_t c1min = INT_LEAST8_MIN;
6422 int_least16_t c2 = INT16_C (0x7fff);
6423 int_least16_t c2max = INT_LEAST16_MAX;
6424 int_least16_t c2min = INT_LEAST16_MIN;
6425 int_least32_t c3 = INT32_C (0x7fffffff);
6426 int_least32_t c3max = INT_LEAST32_MAX;
6427 int_least32_t c3min = INT_LEAST32_MIN;
6428 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6429 int_least64_t c4max = INT_LEAST64_MAX;
6430 int_least64_t c4min = INT_LEAST64_MIN;
6431 uint_least8_t d1 = UINT8_C (0xff);
6432 uint_least8_t d1max = UINT_LEAST8_MAX;
6433 uint_least16_t d2 = UINT16_C (0xffff);
6434 uint_least16_t d2max = UINT_LEAST16_MAX;
6435 uint_least32_t d3 = UINT32_C (0xffffffff);
6436 uint_least32_t d3max = UINT_LEAST32_MAX;
6437 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6438 uint_least64_t d4max = UINT_LEAST64_MAX;
6439 int_fast8_t e1 = INT_FAST8_MAX;
6440 int_fast8_t e1min = INT_FAST8_MIN;
6441 int_fast16_t e2 = INT_FAST16_MAX;
6442 int_fast16_t e2min = INT_FAST16_MIN;
6443 int_fast32_t e3 = INT_FAST32_MAX;
6444 int_fast32_t e3min = INT_FAST32_MIN;
6445 int_fast64_t e4 = INT_FAST64_MAX;
6446 int_fast64_t e4min = INT_FAST64_MIN;
6447 uint_fast8_t f1 = UINT_FAST8_MAX;
6448 uint_fast16_t f2 = UINT_FAST16_MAX;
6449 uint_fast32_t f3 = UINT_FAST32_MAX;
6450 uint_fast64_t f4 = UINT_FAST64_MAX;
6451 #ifdef INTPTR_MAX
6452 intptr_t g = INTPTR_MAX;
6453 intptr_t gmin = INTPTR_MIN;
6454 #endif
6455 #ifdef UINTPTR_MAX
6456 uintptr_t h = UINTPTR_MAX;
6457 #endif
6458 intmax_t i = INTMAX_MAX;
6459 uintmax_t j = UINTMAX_MAX;
6460
6461 #include <limits.h> /* for CHAR_BIT */
6462 #define TYPE_MINIMUM(t) \
6463 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6464 #define TYPE_MAXIMUM(t) \
6465 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6466 struct s {
6467 int check_PTRDIFF:
6468 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6469 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6470 ? 1 : -1;
6471 /* Detect bug in FreeBSD 6.0 / ia64. */
6472 int check_SIG_ATOMIC:
6473 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6474 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6475 ? 1 : -1;
6476 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6477 int check_WCHAR:
6478 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6479 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6480 ? 1 : -1;
6481 /* Detect bug in mingw. */
6482 int check_WINT:
6483 WINT_MIN == TYPE_MINIMUM (wint_t)
6484 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6485 ? 1 : -1;
6486
6487 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6488 int check_UINT8_C:
6489 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6490 int check_UINT16_C:
6491 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6492
6493 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6494 #ifdef UINT8_MAX
6495 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6496 #endif
6497 #ifdef UINT16_MAX
6498 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6499 #endif
6500 #ifdef UINT32_MAX
6501 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6502 #endif
6503 #ifdef UINT64_MAX
6504 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6505 #endif
6506 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6507 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6508 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6509 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6510 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6511 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6512 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6513 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6514 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6515 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6516 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6517 };
6518
6519 int
6520 main ()
6521 {
6522
6523 ;
6524 return 0;
6525 }
6526 _ACEOF
6527 if ac_fn_c_try_compile "$LINENO"; then :
6528 if test "$cross_compiling" = yes; then :
6529 gl_cv_header_working_stdint_h=yes
6530
6531 else
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534
6535
6536 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6537 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6538 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6539 #include <stdint.h>
6540
6541
6542 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6543 included before <wchar.h>. */
6544 #include <stddef.h>
6545 #include <signal.h>
6546 #if HAVE_WCHAR_H
6547 # include <stdio.h>
6548 # include <time.h>
6549 # include <wchar.h>
6550 #endif
6551
6552
6553 #include <stdio.h>
6554 #include <string.h>
6555 #define MVAL(macro) MVAL1(macro)
6556 #define MVAL1(expression) #expression
6557 static const char *macro_values[] =
6558 {
6559 #ifdef INT8_MAX
6560 MVAL (INT8_MAX),
6561 #endif
6562 #ifdef INT16_MAX
6563 MVAL (INT16_MAX),
6564 #endif
6565 #ifdef INT32_MAX
6566 MVAL (INT32_MAX),
6567 #endif
6568 #ifdef INT64_MAX
6569 MVAL (INT64_MAX),
6570 #endif
6571 #ifdef UINT8_MAX
6572 MVAL (UINT8_MAX),
6573 #endif
6574 #ifdef UINT16_MAX
6575 MVAL (UINT16_MAX),
6576 #endif
6577 #ifdef UINT32_MAX
6578 MVAL (UINT32_MAX),
6579 #endif
6580 #ifdef UINT64_MAX
6581 MVAL (UINT64_MAX),
6582 #endif
6583 NULL
6584 };
6585
6586 int
6587 main ()
6588 {
6589
6590 const char **mv;
6591 for (mv = macro_values; *mv != NULL; mv++)
6592 {
6593 const char *value = *mv;
6594 /* Test whether it looks like a cast expression. */
6595 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6596 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6597 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6598 || strncmp (value, "((int)"/*)*/, 6) == 0
6599 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6600 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6601 return 1;
6602 }
6603 return 0;
6604
6605 ;
6606 return 0;
6607 }
6608 _ACEOF
6609 if ac_fn_c_try_run "$LINENO"; then :
6610 gl_cv_header_working_stdint_h=yes
6611 fi
6612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6613 conftest.$ac_objext conftest.beam conftest.$ac_ext
6614 fi
6615
6616
6617 fi
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619
6620 fi
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6622 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6623 fi
6624 if test "$gl_cv_header_working_stdint_h" = yes; then
6625 STDINT_H=
6626 else
6627 for ac_header in sys/inttypes.h sys/bitypes.h
6628 do :
6629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6630 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6631 eval as_val=\$$as_ac_Header
6632 if test "x$as_val" = x""yes; then :
6633 cat >>confdefs.h <<_ACEOF
6634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6635 _ACEOF
6636
6637 fi
6638
6639 done
6640
6641 if test $ac_cv_header_sys_inttypes_h = yes; then
6642 HAVE_SYS_INTTYPES_H=1
6643 else
6644 HAVE_SYS_INTTYPES_H=0
6645 fi
6646
6647 if test $ac_cv_header_sys_bitypes_h = yes; then
6648 HAVE_SYS_BITYPES_H=1
6649 else
6650 HAVE_SYS_BITYPES_H=0
6651 fi
6652
6653
6654
6655 :
6656
6657
6658
6659
6660
6661
6662
6663
6664 if test $APPLE_UNIVERSAL_BUILD = 0; then
6665
6666
6667 for gltype in ptrdiff_t size_t ; do
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6669 $as_echo_n "checking for bit size of $gltype... " >&6; }
6670 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6674 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6675 included before <wchar.h>. */
6676 #include <stddef.h>
6677 #include <signal.h>
6678 #if HAVE_WCHAR_H
6679 # include <stdio.h>
6680 # include <time.h>
6681 # include <wchar.h>
6682 #endif
6683
6684 #include <limits.h>"; then :
6685
6686 else
6687 result=unknown
6688 fi
6689
6690 eval gl_cv_bitsizeof_${gltype}=\$result
6691
6692 fi
6693 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6695 $as_echo "$ac_res" >&6; }
6696 eval result=\$gl_cv_bitsizeof_${gltype}
6697 if test $result = unknown; then
6698 result=0
6699 fi
6700 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6701 cat >>confdefs.h <<_ACEOF
6702 #define BITSIZEOF_${GLTYPE} $result
6703 _ACEOF
6704
6705 eval BITSIZEOF_${GLTYPE}=\$result
6706 done
6707
6708
6709 fi
6710
6711
6712 for gltype in sig_atomic_t wchar_t wint_t ; do
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6714 $as_echo_n "checking for bit size of $gltype... " >&6; }
6715 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6719 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6720 included before <wchar.h>. */
6721 #include <stddef.h>
6722 #include <signal.h>
6723 #if HAVE_WCHAR_H
6724 # include <stdio.h>
6725 # include <time.h>
6726 # include <wchar.h>
6727 #endif
6728
6729 #include <limits.h>"; then :
6730
6731 else
6732 result=unknown
6733 fi
6734
6735 eval gl_cv_bitsizeof_${gltype}=\$result
6736
6737 fi
6738 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6740 $as_echo "$ac_res" >&6; }
6741 eval result=\$gl_cv_bitsizeof_${gltype}
6742 if test $result = unknown; then
6743 result=0
6744 fi
6745 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6746 cat >>confdefs.h <<_ACEOF
6747 #define BITSIZEOF_${GLTYPE} $result
6748 _ACEOF
6749
6750 eval BITSIZEOF_${GLTYPE}=\$result
6751 done
6752
6753
6754
6755
6756 for gltype in sig_atomic_t wchar_t wint_t ; do
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6758 $as_echo_n "checking whether $gltype is signed... " >&6; }
6759 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6764
6765 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6766 included before <wchar.h>. */
6767 #include <stddef.h>
6768 #include <signal.h>
6769 #if HAVE_WCHAR_H
6770 # include <stdio.h>
6771 # include <time.h>
6772 # include <wchar.h>
6773 #endif
6774
6775 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6776 int
6777 main ()
6778 {
6779
6780 ;
6781 return 0;
6782 }
6783 _ACEOF
6784 if ac_fn_c_try_compile "$LINENO"; then :
6785 result=yes
6786 else
6787 result=no
6788 fi
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 eval gl_cv_type_${gltype}_signed=\$result
6791
6792 fi
6793 eval ac_res=\$gl_cv_type_${gltype}_signed
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6795 $as_echo "$ac_res" >&6; }
6796 eval result=\$gl_cv_type_${gltype}_signed
6797 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6798 if test "$result" = yes; then
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_SIGNED_${GLTYPE} 1
6801 _ACEOF
6802
6803 eval HAVE_SIGNED_${GLTYPE}=1
6804 else
6805 eval HAVE_SIGNED_${GLTYPE}=0
6806 fi
6807 done
6808
6809
6810 gl_cv_type_ptrdiff_t_signed=yes
6811 gl_cv_type_size_t_signed=no
6812 if test $APPLE_UNIVERSAL_BUILD = 0; then
6813
6814
6815 for gltype in ptrdiff_t size_t ; do
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6817 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6818 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 eval gl_cv_type_${gltype}_suffix=no
6822 eval result=\$gl_cv_type_${gltype}_signed
6823 if test "$result" = yes; then
6824 glsufu=
6825 else
6826 glsufu=u
6827 fi
6828 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6829 case $glsuf in
6830 '') gltype1='int';;
6831 l) gltype1='long int';;
6832 ll) gltype1='long long int';;
6833 i64) gltype1='__int64';;
6834 u) gltype1='unsigned int';;
6835 ul) gltype1='unsigned long int';;
6836 ull) gltype1='unsigned long long int';;
6837 ui64)gltype1='unsigned __int64';;
6838 esac
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6841
6842 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6843 included before <wchar.h>. */
6844 #include <stddef.h>
6845 #include <signal.h>
6846 #if HAVE_WCHAR_H
6847 # include <stdio.h>
6848 # include <time.h>
6849 # include <wchar.h>
6850 #endif
6851
6852 extern $gltype foo;
6853 extern $gltype1 foo;
6854 int
6855 main ()
6856 {
6857
6858 ;
6859 return 0;
6860 }
6861 _ACEOF
6862 if ac_fn_c_try_compile "$LINENO"; then :
6863 eval gl_cv_type_${gltype}_suffix=\$glsuf
6864 fi
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 eval result=\$gl_cv_type_${gltype}_suffix
6867 test "$result" != no && break
6868 done
6869 fi
6870 eval ac_res=\$gl_cv_type_${gltype}_suffix
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6872 $as_echo "$ac_res" >&6; }
6873 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6874 eval result=\$gl_cv_type_${gltype}_suffix
6875 test "$result" = no && result=
6876 eval ${GLTYPE}_SUFFIX=\$result
6877 cat >>confdefs.h <<_ACEOF
6878 #define ${GLTYPE}_SUFFIX $result
6879 _ACEOF
6880
6881 done
6882
6883
6884 fi
6885
6886
6887 for gltype in sig_atomic_t wchar_t wint_t ; do
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6889 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6890 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 eval gl_cv_type_${gltype}_suffix=no
6894 eval result=\$gl_cv_type_${gltype}_signed
6895 if test "$result" = yes; then
6896 glsufu=
6897 else
6898 glsufu=u
6899 fi
6900 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6901 case $glsuf in
6902 '') gltype1='int';;
6903 l) gltype1='long int';;
6904 ll) gltype1='long long int';;
6905 i64) gltype1='__int64';;
6906 u) gltype1='unsigned int';;
6907 ul) gltype1='unsigned long int';;
6908 ull) gltype1='unsigned long long int';;
6909 ui64)gltype1='unsigned __int64';;
6910 esac
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913
6914 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6915 included before <wchar.h>. */
6916 #include <stddef.h>
6917 #include <signal.h>
6918 #if HAVE_WCHAR_H
6919 # include <stdio.h>
6920 # include <time.h>
6921 # include <wchar.h>
6922 #endif
6923
6924 extern $gltype foo;
6925 extern $gltype1 foo;
6926 int
6927 main ()
6928 {
6929
6930 ;
6931 return 0;
6932 }
6933 _ACEOF
6934 if ac_fn_c_try_compile "$LINENO"; then :
6935 eval gl_cv_type_${gltype}_suffix=\$glsuf
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938 eval result=\$gl_cv_type_${gltype}_suffix
6939 test "$result" != no && break
6940 done
6941 fi
6942 eval ac_res=\$gl_cv_type_${gltype}_suffix
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6944 $as_echo "$ac_res" >&6; }
6945 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6946 eval result=\$gl_cv_type_${gltype}_suffix
6947 test "$result" = no && result=
6948 eval ${GLTYPE}_SUFFIX=\$result
6949 cat >>confdefs.h <<_ACEOF
6950 #define ${GLTYPE}_SUFFIX $result
6951 _ACEOF
6952
6953 done
6954
6955
6956
6957 STDINT_H=stdint.h
6958 fi
6959
6960
6961 # Code from module string:
6962
6963
6964
6965 # Code from module warn-on-use:
6966 # Code from module wchar:
6967
6968
6969
6970
6971 :
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981 :
6982
6983
6984
6985
6986
6987
6988
6989 if test $gl_cv_have_include_next = yes; then
6990 gl_cv_next_wchar_h='<'wchar.h'>'
6991 else
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6993 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6994 if test "${gl_cv_next_wchar_h+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997
6998 if test $ac_cv_header_wchar_h = yes; then
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7001 #include <wchar.h>
7002
7003 _ACEOF
7004 case "$host_os" in
7005 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7006 *) gl_absname_cpp="$ac_cpp" ;;
7007 esac
7008 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7009 sed -n '\#/wchar.h#{
7010 s#.*"\(.*/wchar.h\)".*#\1#
7011 s#^/[^/]#//&#
7012 p
7013 q
7014 }'`'"'
7015 else
7016 gl_cv_next_wchar_h='<'wchar.h'>'
7017 fi
7018
7019 fi
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7021 $as_echo "$gl_cv_next_wchar_h" >&6; }
7022 fi
7023 NEXT_WCHAR_H=$gl_cv_next_wchar_h
7024
7025 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7027 gl_next_as_first_directive='<'wchar.h'>'
7028 else
7029 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7030 gl_next_as_first_directive=$gl_cv_next_wchar_h
7031 fi
7032 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7033
7034
7035
7036 if test $ac_cv_header_wchar_h = yes; then
7037 HAVE_WCHAR_H=1
7038 else
7039 HAVE_WCHAR_H=0
7040 fi
7041
7042
7043
7044 if test $gt_cv_c_wint_t = yes; then
7045 HAVE_WINT_T=1
7046 else
7047 HAVE_WINT_T=0
7048 fi
7049
7050
7051
7052 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
7053 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7055 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7056 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7061
7062 /* Some systems require additional headers. */
7063 #ifndef __GLIBC__
7064 # include <stddef.h>
7065 # include <stdio.h>
7066 # include <time.h>
7067 #endif
7068 #include <wchar.h>
7069
7070 int
7071 main ()
7072 {
7073 #undef $gl_func
7074 (void) $gl_func;
7075 ;
7076 return 0;
7077 }
7078 _ACEOF
7079 if ac_fn_c_try_compile "$LINENO"; then :
7080 eval "$as_gl_Symbol=yes"
7081 else
7082 eval "$as_gl_Symbol=no"
7083 fi
7084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7085 fi
7086 eval ac_res=\$$as_gl_Symbol
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7088 $as_echo "$ac_res" >&6; }
7089 eval as_val=\$$as_gl_Symbol
7090 if test "x$as_val" = x""yes; then :
7091 cat >>confdefs.h <<_ACEOF
7092 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7093 _ACEOF
7094
7095 eval ac_cv_have_decl_$gl_func=yes
7096 fi
7097 done
7098
7099
7100 # Code from module dummy:
7101 # End of code from modules
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111 gltests_libdeps=
7112 gltests_ltlibdeps=
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122 gl_source_base='tests'
7123 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
7124
7125 gl_module_indicator_condition=$gltests_WITNESS
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135 LIBGNU_LIBDEPS="$gl_libdeps"
7136
7137 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7138
7139
7140
7141 # For Makefile dependencies.
7142 GNULIB_STDINT_H=
7143 if test x"$STDINT_H" != x; then
7144 GNULIB_STDINT_H=gnulib/$STDINT_H
7145 fi
7146
7147
7148 PACKAGE=gdb
7149
7150 cat >>confdefs.h <<_ACEOF
7151 #define PACKAGE "$PACKAGE"
7152 _ACEOF
7153
7154
7155
7156 # Do we have a single-tree copy of texinfo? Even if we do, we can't
7157 # rely on it - libiberty is built before texinfo.
7158 # Extract the first word of "makeinfo", so it can be a program name with args.
7159 set dummy makeinfo; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 if test -n "$MAKEINFO"; then
7166 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175 ac_cv_prog_MAKEINFO="makeinfo"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7178 fi
7179 done
7180 done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 MAKEINFO=$ac_cv_prog_MAKEINFO
7186 if test -n "$MAKEINFO"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7188 $as_echo "$MAKEINFO" >&6; }
7189 else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193
7194
7195 if test "x$MAKEINFO" = "x"; then
7196 as_fn_error "makeinfo is required for compilation" "$LINENO" 5
7197 else
7198 case "$MAKEINFO" in
7199 */missing\ makeinfo*)
7200 as_fn_error "makeinfo is required for compilation" "$LINENO" 5
7201 ;;
7202 esac
7203 fi
7204
7205
7206 # --split-size=5000000 may be already in $MAKEINFO from parent configure.
7207 # Re-running configure in gdb/ would lose it so ensure it stays present.
7208 MAKEINFOFLAGS=${MAKEINFOFLAGS---split-size=5000000}
7209
7210
7211 MAKEINFO_EXTRA_FLAGS=""
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
7213 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
7214 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 echo '@clicksequence{a @click{} b}' >conftest.texinfo
7218 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
7219 gdb_cv_have_makeinfo_click=yes
7220 else
7221 gdb_cv_have_makeinfo_click=no
7222 fi
7223 fi
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
7225 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
7226 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
7227 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
7228 fi
7229
7230
7231 # GDB does not use automake, but gnulib does. This line lets us
7232 # generate its Makefile.in.
7233 am__api_version='1.11'
7234
7235 # Find a good install program. We prefer a C program (faster),
7236 # so one script is as good as another. But avoid the broken or
7237 # incompatible versions:
7238 # SysV /etc/install, /usr/sbin/install
7239 # SunOS /usr/etc/install
7240 # IRIX /sbin/install
7241 # AIX /bin/install
7242 # AmigaOS /C/install, which installs bootblocks on floppy discs
7243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7246 # OS/2's system install, which has a completely different semantic
7247 # ./install, which can be erroneously created by make from ./install.sh.
7248 # Reject install programs that cannot install multiple files.
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7250 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7251 if test -z "$INSTALL"; then
7252 if test "${ac_cv_path_install+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 # Account for people who put trailing slashes in PATH elements.
7261 case $as_dir/ in #((
7262 ./ | .// | /[cC]/* | \
7263 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7264 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7265 /usr/ucb/* ) ;;
7266 *)
7267 # OSF1 and SCO ODT 3.0 have their own names for install.
7268 # Don't use installbsd from OSF since it installs stuff as root
7269 # by default.
7270 for ac_prog in ginstall scoinst install; do
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7273 if test $ac_prog = install &&
7274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7275 # AIX install. It has an incompatible calling convention.
7276 :
7277 elif test $ac_prog = install &&
7278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7279 # program-specific install script used by HP pwplus--don't use.
7280 :
7281 else
7282 rm -rf conftest.one conftest.two conftest.dir
7283 echo one > conftest.one
7284 echo two > conftest.two
7285 mkdir conftest.dir
7286 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7287 test -s conftest.one && test -s conftest.two &&
7288 test -s conftest.dir/conftest.one &&
7289 test -s conftest.dir/conftest.two
7290 then
7291 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7292 break 3
7293 fi
7294 fi
7295 fi
7296 done
7297 done
7298 ;;
7299 esac
7300
7301 done
7302 IFS=$as_save_IFS
7303
7304 rm -rf conftest.one conftest.two conftest.dir
7305
7306 fi
7307 if test "${ac_cv_path_install+set}" = set; then
7308 INSTALL=$ac_cv_path_install
7309 else
7310 # As a last resort, use the slow shell script. Don't cache a
7311 # value for INSTALL within a source directory, because that will
7312 # break other packages using the cache if that directory is
7313 # removed, or if the value is a relative name.
7314 INSTALL=$ac_install_sh
7315 fi
7316 fi
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7318 $as_echo "$INSTALL" >&6; }
7319
7320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7321 # It thinks the first close brace ends the variable substitution.
7322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7323
7324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7325
7326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7327
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7329 $as_echo_n "checking whether build environment is sane... " >&6; }
7330 # Just in case
7331 sleep 1
7332 echo timestamp > conftest.file
7333 # Reject unsafe characters in $srcdir or the absolute working directory
7334 # name. Accept space and tab only in the latter.
7335 am_lf='
7336 '
7337 case `pwd` in
7338 *[\\\"\#\$\&\'\`$am_lf]*)
7339 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7340 esac
7341 case $srcdir in
7342 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7343 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7344 esac
7345
7346 # Do `set' in a subshell so we don't clobber the current shell's
7347 # arguments. Must try -L first in case configure is actually a
7348 # symlink; some systems play weird games with the mod time of symlinks
7349 # (eg FreeBSD returns the mod time of the symlink's containing
7350 # directory).
7351 if (
7352 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7353 if test "$*" = "X"; then
7354 # -L didn't work.
7355 set X `ls -t "$srcdir/configure" conftest.file`
7356 fi
7357 rm -f conftest.file
7358 if test "$*" != "X $srcdir/configure conftest.file" \
7359 && test "$*" != "X conftest.file $srcdir/configure"; then
7360
7361 # If neither matched, then we have a broken ls. This can happen
7362 # if, for instance, CONFIG_SHELL is bash and it inherits a
7363 # broken ls alias from the environment. This has actually
7364 # happened. Such a system could not be considered "sane".
7365 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7366 alias in your environment" "$LINENO" 5
7367 fi
7368
7369 test "$2" = conftest.file
7370 )
7371 then
7372 # Ok.
7373 :
7374 else
7375 as_fn_error "newly created file is older than distributed files!
7376 Check your system clock" "$LINENO" 5
7377 fi
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7379 $as_echo "yes" >&6; }
7380 test "$program_prefix" != NONE &&
7381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
7382 # Use a double $ so make ignores it.
7383 test "$program_suffix" != NONE &&
7384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7385 # Double any \ or $.
7386 # By default was `s,x,x', remove it if useless.
7387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7389
7390 # expand $ac_aux_dir to an absolute path
7391 am_aux_dir=`cd $ac_aux_dir && pwd`
7392
7393 if test x"${MISSING+set}" != xset; then
7394 case $am_aux_dir in
7395 *\ * | *\ *)
7396 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7397 *)
7398 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7399 esac
7400 fi
7401 # Use eval to expand $SHELL
7402 if eval "$MISSING --run true"; then
7403 am_missing_run="$MISSING --run "
7404 else
7405 am_missing_run=
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7407 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7408 fi
7409
7410 if test x"${install_sh}" != xset; then
7411 case $am_aux_dir in
7412 *\ * | *\ *)
7413 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7414 *)
7415 install_sh="\${SHELL} $am_aux_dir/install-sh"
7416 esac
7417 fi
7418
7419 # Installed binaries are usually stripped using `strip' when the user
7420 # run `make install-strip'. However `strip' might not be the right
7421 # tool to use in cross-compilation environments, therefore Automake
7422 # will honor the `STRIP' environment variable to overrule this program.
7423 if test "$cross_compiling" != no; then
7424 if test -n "$ac_tool_prefix"; then
7425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7426 set dummy ${ac_tool_prefix}strip; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if test "${ac_cv_prog_STRIP+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 if test -n "$STRIP"; then
7433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446 done
7447 done
7448 IFS=$as_save_IFS
7449
7450 fi
7451 fi
7452 STRIP=$ac_cv_prog_STRIP
7453 if test -n "$STRIP"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7455 $as_echo "$STRIP" >&6; }
7456 else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459 fi
7460
7461
7462 fi
7463 if test -z "$ac_cv_prog_STRIP"; then
7464 ac_ct_STRIP=$STRIP
7465 # Extract the first word of "strip", so it can be a program name with args.
7466 set dummy strip; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 if test -n "$ac_ct_STRIP"; then
7473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_prog_ac_ct_STRIP="strip"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486 done
7487 done
7488 IFS=$as_save_IFS
7489
7490 fi
7491 fi
7492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7493 if test -n "$ac_ct_STRIP"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7495 $as_echo "$ac_ct_STRIP" >&6; }
7496 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 fi
7500
7501 if test "x$ac_ct_STRIP" = x; then
7502 STRIP=":"
7503 else
7504 case $cross_compiling:$ac_tool_warned in
7505 yes:)
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508 ac_tool_warned=yes ;;
7509 esac
7510 STRIP=$ac_ct_STRIP
7511 fi
7512 else
7513 STRIP="$ac_cv_prog_STRIP"
7514 fi
7515
7516 fi
7517 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7518
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7520 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7521 if test -z "$MKDIR_P"; then
7522 if test "${ac_cv_path_mkdir+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7527 do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_prog in mkdir gmkdir; do
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7533 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7534 'mkdir (GNU coreutils) '* | \
7535 'mkdir (coreutils) '* | \
7536 'mkdir (fileutils) '4.1*)
7537 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7538 break 3;;
7539 esac
7540 done
7541 done
7542 done
7543 IFS=$as_save_IFS
7544
7545 fi
7546
7547 if test "${ac_cv_path_mkdir+set}" = set; then
7548 MKDIR_P="$ac_cv_path_mkdir -p"
7549 else
7550 # As a last resort, use the slow shell script. Don't cache a
7551 # value for MKDIR_P within a source directory, because that will
7552 # break other packages using the cache if that directory is
7553 # removed, or if the value is a relative name.
7554 test -d ./--version && rmdir ./--version
7555 MKDIR_P="$ac_install_sh -d"
7556 fi
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7559 $as_echo "$MKDIR_P" >&6; }
7560
7561
7562 mkdir_p="$MKDIR_P"
7563 case $mkdir_p in
7564 [\\/$]* | ?:[\\/]*) ;;
7565 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7566 esac
7567
7568 for ac_prog in gawk mawk nawk awk
7569 do
7570 # Extract the first word of "$ac_prog", so it can be a program name with args.
7571 set dummy $ac_prog; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if test "${ac_cv_prog_AWK+set}" = set; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 if test -n "$AWK"; then
7578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7587 ac_cv_prog_AWK="$ac_prog"
7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7590 fi
7591 done
7592 done
7593 IFS=$as_save_IFS
7594
7595 fi
7596 fi
7597 AWK=$ac_cv_prog_AWK
7598 if test -n "$AWK"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7600 $as_echo "$AWK" >&6; }
7601 else
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605
7606
7607 test -n "$AWK" && break
7608 done
7609
7610 ac_config_commands="$ac_config_commands depfiles"
7611
7612
7613 am_make=${MAKE-make}
7614 cat > confinc << 'END'
7615 am__doit:
7616 @echo this is the am__doit target
7617 .PHONY: am__doit
7618 END
7619 # If we don't find an include directive, just comment out the code.
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7621 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7622 am__include="#"
7623 am__quote=
7624 _am_result=none
7625 # First try GNU make style include.
7626 echo "include confinc" > confmf
7627 # Ignore all kinds of additional output from `make'.
7628 case `$am_make -s -f confmf 2> /dev/null` in #(
7629 *the\ am__doit\ target*)
7630 am__include=include
7631 am__quote=
7632 _am_result=GNU
7633 ;;
7634 esac
7635 # Now try BSD make style include.
7636 if test "$am__include" = "#"; then
7637 echo '.include "confinc"' > confmf
7638 case `$am_make -s -f confmf 2> /dev/null` in #(
7639 *the\ am__doit\ target*)
7640 am__include=.include
7641 am__quote="\""
7642 _am_result=BSD
7643 ;;
7644 esac
7645 fi
7646
7647
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7649 $as_echo "$_am_result" >&6; }
7650 rm -f confinc confmf
7651
7652 # Check whether --enable-dependency-tracking was given.
7653 if test "${enable_dependency_tracking+set}" = set; then :
7654 enableval=$enable_dependency_tracking;
7655 fi
7656
7657 if test "x$enable_dependency_tracking" != xno; then
7658 am_depcomp="$ac_aux_dir/depcomp"
7659 AMDEPBACKSLASH='\'
7660 fi
7661 if test "x$enable_dependency_tracking" != xno; then
7662 AMDEP_TRUE=
7663 AMDEP_FALSE='#'
7664 else
7665 AMDEP_TRUE='#'
7666 AMDEP_FALSE=
7667 fi
7668
7669
7670 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7671 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7672 # is not polluted with repeated "-I."
7673 am__isrc=' -I$(srcdir)'
7674 # test to see if srcdir already configured
7675 if test -f $srcdir/config.status; then
7676 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7677 fi
7678 fi
7679
7680 # test whether we have cygpath
7681 if test -z "$CYGPATH_W"; then
7682 if (cygpath --version) >/dev/null 2>/dev/null; then
7683 CYGPATH_W='cygpath -w'
7684 else
7685 CYGPATH_W=echo
7686 fi
7687 fi
7688
7689
7690 # Define the identity of the package.
7691 PACKAGE=gdb
7692 VERSION=UNUSED-VERSION
7693
7694
7695 # Some tools Automake needs.
7696
7697 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7698
7699
7700 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7701
7702
7703 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7704
7705
7706 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7707
7708
7709 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7710
7711 # We need awk for the "check" target. The system "awk" is bad on
7712 # some platforms.
7713 # Always define AMTAR for backward compatibility.
7714
7715 AMTAR=${AMTAR-"${am_missing_run}tar"}
7716
7717 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7718
7719
7720
7721
7722 depcc="$CC" am_compiler_list=
7723
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7725 $as_echo_n "checking dependency style of $depcc... " >&6; }
7726 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7730 # We make a subdir and do the tests there. Otherwise we can end up
7731 # making bogus files that we don't know about and never remove. For
7732 # instance it was reported that on HP-UX the gcc test will end up
7733 # making a dummy file named `D' -- because `-MD' means `put the output
7734 # in D'.
7735 mkdir conftest.dir
7736 # Copy depcomp to subdir because otherwise we won't find it if we're
7737 # using a relative directory.
7738 cp "$am_depcomp" conftest.dir
7739 cd conftest.dir
7740 # We will build objects and dependencies in a subdirectory because
7741 # it helps to detect inapplicable dependency modes. For instance
7742 # both Tru64's cc and ICC support -MD to output dependencies as a
7743 # side effect of compilation, but ICC will put the dependencies in
7744 # the current directory while Tru64 will put them in the object
7745 # directory.
7746 mkdir sub
7747
7748 am_cv_CC_dependencies_compiler_type=none
7749 if test "$am_compiler_list" = ""; then
7750 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7751 fi
7752 am__universal=false
7753 case " $depcc " in #(
7754 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7755 esac
7756
7757 for depmode in $am_compiler_list; do
7758 # Setup a source with many dependencies, because some compilers
7759 # like to wrap large dependency lists on column 80 (with \), and
7760 # we should not choose a depcomp mode which is confused by this.
7761 #
7762 # We need to recreate these files for each test, as the compiler may
7763 # overwrite some of them when testing with obscure command lines.
7764 # This happens at least with the AIX C compiler.
7765 : > sub/conftest.c
7766 for i in 1 2 3 4 5 6; do
7767 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7768 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7769 # Solaris 8's {/usr,}/bin/sh.
7770 touch sub/conftst$i.h
7771 done
7772 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7773
7774 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7775 # mode. It turns out that the SunPro C++ compiler does not properly
7776 # handle `-M -o', and we need to detect this. Also, some Intel
7777 # versions had trouble with output in subdirs
7778 am__obj=sub/conftest.${OBJEXT-o}
7779 am__minus_obj="-o $am__obj"
7780 case $depmode in
7781 gcc)
7782 # This depmode causes a compiler race in universal mode.
7783 test "$am__universal" = false || continue
7784 ;;
7785 nosideeffect)
7786 # after this tag, mechanisms are not by side-effect, so they'll
7787 # only be used when explicitly requested
7788 if test "x$enable_dependency_tracking" = xyes; then
7789 continue
7790 else
7791 break
7792 fi
7793 ;;
7794 msvisualcpp | msvcmsys)
7795 # This compiler won't grok `-c -o', but also, the minuso test has
7796 # not run yet. These depmodes are late enough in the game, and
7797 # so weak that their functioning should not be impacted.
7798 am__obj=conftest.${OBJEXT-o}
7799 am__minus_obj=
7800 ;;
7801 none) break ;;
7802 esac
7803 if depmode=$depmode \
7804 source=sub/conftest.c object=$am__obj \
7805 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7806 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7807 >/dev/null 2>conftest.err &&
7808 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7809 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7810 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7811 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7812 # icc doesn't choke on unknown options, it will just issue warnings
7813 # or remarks (even with -Werror). So we grep stderr for any message
7814 # that says an option was ignored or not supported.
7815 # When given -MP, icc 7.0 and 7.1 complain thusly:
7816 # icc: Command line warning: ignoring option '-M'; no argument required
7817 # The diagnosis changed in icc 8.0:
7818 # icc: Command line remark: option '-MP' not supported
7819 if (grep 'ignoring option' conftest.err ||
7820 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7821 am_cv_CC_dependencies_compiler_type=$depmode
7822 break
7823 fi
7824 fi
7825 done
7826
7827 cd ..
7828 rm -rf conftest.dir
7829 else
7830 am_cv_CC_dependencies_compiler_type=none
7831 fi
7832
7833 fi
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7835 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7836 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7837
7838 if
7839 test "x$enable_dependency_tracking" != xno \
7840 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7841 am__fastdepCC_TRUE=
7842 am__fastdepCC_FALSE='#'
7843 else
7844 am__fastdepCC_TRUE='#'
7845 am__fastdepCC_FALSE=
7846 fi
7847
7848
7849
7850
7851
7852
7853 # Check whether --with-separate-debug-dir was given.
7854 if test "${with_separate_debug_dir+set}" = set; then :
7855 withval=$with_separate_debug_dir;
7856 DEBUGDIR=$withval
7857 else
7858 DEBUGDIR=${libdir}/debug
7859 fi
7860
7861
7862 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7863 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7864 ac_define_dir=`eval echo $DEBUGDIR`
7865 ac_define_dir=`eval echo $ac_define_dir`
7866
7867 cat >>confdefs.h <<_ACEOF
7868 #define DEBUGDIR "$ac_define_dir"
7869 _ACEOF
7870
7871
7872
7873
7874 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7875 if test "x$prefix" = xNONE; then
7876 test_prefix=/usr/local
7877 else
7878 test_prefix=$prefix
7879 fi
7880 else
7881 test_prefix=$exec_prefix
7882 fi
7883 value=0
7884 case ${ac_define_dir} in
7885 "${test_prefix}"|"${test_prefix}/"*|\
7886 '${exec_prefix}'|'${exec_prefix}/'*)
7887 value=1
7888 ;;
7889 esac
7890
7891 cat >>confdefs.h <<_ACEOF
7892 #define DEBUGDIR_RELOCATABLE $value
7893 _ACEOF
7894
7895
7896
7897
7898 # GDB's datadir relocation
7899
7900
7901
7902 # Check whether --with-gdb-datadir was given.
7903 if test "${with_gdb_datadir+set}" = set; then :
7904 withval=$with_gdb_datadir;
7905 GDB_DATADIR=$withval
7906 else
7907 GDB_DATADIR=${datadir}/gdb
7908 fi
7909
7910
7911 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7913 ac_define_dir=`eval echo $GDB_DATADIR`
7914 ac_define_dir=`eval echo $ac_define_dir`
7915
7916 cat >>confdefs.h <<_ACEOF
7917 #define GDB_DATADIR "$ac_define_dir"
7918 _ACEOF
7919
7920
7921
7922
7923 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7924 if test "x$prefix" = xNONE; then
7925 test_prefix=/usr/local
7926 else
7927 test_prefix=$prefix
7928 fi
7929 else
7930 test_prefix=$exec_prefix
7931 fi
7932 value=0
7933 case ${ac_define_dir} in
7934 "${test_prefix}"|"${test_prefix}/"*|\
7935 '${exec_prefix}'|'${exec_prefix}/'*)
7936 value=1
7937 ;;
7938 esac
7939
7940 cat >>confdefs.h <<_ACEOF
7941 #define GDB_DATADIR_RELOCATABLE $value
7942 _ACEOF
7943
7944
7945
7946
7947
7948 # Check whether --with-relocated-sources was given.
7949 if test "${with_relocated_sources+set}" = set; then :
7950 withval=$with_relocated_sources; reloc_srcdir="${withval}"
7951
7952 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7954 ac_define_dir=`eval echo $reloc_srcdir`
7955 ac_define_dir=`eval echo $ac_define_dir`
7956
7957 cat >>confdefs.h <<_ACEOF
7958 #define RELOC_SRCDIR "$ac_define_dir"
7959 _ACEOF
7960
7961
7962
7963 fi
7964
7965
7966
7967
7968 subdirs="$subdirs testsuite"
7969
7970
7971 # Check whether to support alternative target configurations
7972 # Check whether --enable-targets was given.
7973 if test "${enable_targets+set}" = set; then :
7974 enableval=$enable_targets; case "${enableval}" in
7975 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7976 ;;
7977 no) enable_targets= ;;
7978 *) enable_targets=$enableval ;;
7979 esac
7980 fi
7981
7982
7983 # Check whether to enable 64-bit support on 32-bit hosts
7984 # Check whether --enable-64-bit-bfd was given.
7985 if test "${enable_64_bit_bfd+set}" = set; then :
7986 enableval=$enable_64_bit_bfd; case "${enableval}" in
7987 yes) want64=true ;;
7988 no) want64=false ;;
7989 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7990 esac
7991 else
7992 want64=false
7993 fi
7994
7995 # Provide defaults for some variables set by the per-host and per-target
7996 # configuration.
7997 gdb_host_obs=posix-hdep.o
7998
7999 if test "${target}" = "${host}"; then
8000 gdb_native=yes
8001 else
8002 gdb_native=no
8003 fi
8004
8005 . $srcdir/configure.host
8006
8007 # Accumulate some settings from configure.tgt over all enabled targets
8008
8009 TARGET_OBS=
8010 all_targets=
8011
8012 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
8013 do
8014 if test "$targ_alias" = "all"; then
8015 all_targets=true
8016 else
8017 # Canonicalize the secondary target names.
8018 result=`$ac_config_sub $targ_alias 2>/dev/null`
8019 if test -n "$result"; then
8020 targ=$result
8021 else
8022 targ=$targ_alias
8023 fi
8024
8025 . ${srcdir}/configure.tgt
8026
8027 if test -z "${gdb_target_obs}"; then :
8028 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
8029 fi
8030
8031 # Target-specific object files
8032 for i in ${gdb_target_obs}; do
8033 case " $TARGET_OBS " in
8034 *" ${i} "*) ;;
8035 *)
8036 TARGET_OBS="$TARGET_OBS ${i}"
8037 ;;
8038 esac
8039 done
8040
8041 # Check whether this target needs 64-bit CORE_ADDR
8042 if test x${want64} = xfalse; then
8043 . ${srcdir}/../bfd/config.bfd
8044 fi
8045 fi
8046 done
8047
8048 if test x${all_targets} = xtrue; then
8049
8050 # We want all 64-bit targets if we either:
8051 # - run on a 64-bit host or
8052 # - already require 64-bit support for some other target or
8053 # - the --enable-64-bit-bfd option was supplied
8054 # Otherwise we only support all 32-bit targets.
8055 #
8056 # NOTE: This test must be in sync with the corresponding
8057 # tests in BFD!
8058
8059 if test x${want64} = xfalse; then
8060 # The cast to long int works around a bug in the HP C Compiler
8061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8063 # This bug is HP SR number 8606223364.
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8065 $as_echo_n "checking size of long... " >&6; }
8066 if test "${ac_cv_sizeof_long+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8070
8071 else
8072 if test "$ac_cv_type_long" = yes; then
8073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8075 { as_fn_set_status 77
8076 as_fn_error "cannot compute sizeof (long)
8077 See \`config.log' for more details." "$LINENO" 5; }; }
8078 else
8079 ac_cv_sizeof_long=0
8080 fi
8081 fi
8082
8083 fi
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8085 $as_echo "$ac_cv_sizeof_long" >&6; }
8086
8087
8088
8089 cat >>confdefs.h <<_ACEOF
8090 #define SIZEOF_LONG $ac_cv_sizeof_long
8091 _ACEOF
8092
8093
8094 if test "x${ac_cv_sizeof_long}" = "x8"; then
8095 want64=true
8096 fi
8097 fi
8098 if test x${want64} = xtrue; then
8099 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8100 else
8101 TARGET_OBS='$(ALL_TARGET_OBS)'
8102 fi
8103 fi
8104
8105
8106
8107 # For other settings, only the main target counts.
8108 gdb_sim=
8109 gdb_osabi=
8110 build_gdbserver=
8111 targ=$target; . ${srcdir}/configure.tgt
8112
8113 # Fetch the default architecture and default target vector from BFD.
8114 targ=$target; . $srcdir/../bfd/config.bfd
8115
8116 # We only want the first architecture, so strip off the others if
8117 # there is more than one.
8118 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8119
8120 if test "x$targ_archs" != x; then
8121
8122 cat >>confdefs.h <<_ACEOF
8123 #define DEFAULT_BFD_ARCH $targ_archs
8124 _ACEOF
8125
8126 fi
8127 if test "x$targ_defvec" != x; then
8128
8129 cat >>confdefs.h <<_ACEOF
8130 #define DEFAULT_BFD_VEC $targ_defvec
8131 _ACEOF
8132
8133 fi
8134
8135 # The CLI cannot be disabled yet, but may be in the future.
8136
8137 # Enable CLI.
8138 # Check whether --enable-gdbcli was given.
8139 if test "${enable_gdbcli+set}" = set; then :
8140 enableval=$enable_gdbcli; case $enableval in
8141 yes)
8142 ;;
8143 no)
8144 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8145 *)
8146 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8147 esac
8148 else
8149 enable_gdbcli=yes
8150 fi
8151
8152 if test x"$enable_gdbcli" = xyes; then
8153 if test -d $srcdir/cli; then
8154 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8155 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8156 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8157 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8158 fi
8159 fi
8160
8161 # Enable MI.
8162 # Check whether --enable-gdbmi was given.
8163 if test "${enable_gdbmi+set}" = set; then :
8164 enableval=$enable_gdbmi; case $enableval in
8165 yes | no)
8166 ;;
8167 *)
8168 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8169 esac
8170 else
8171 enable_gdbmi=yes
8172 fi
8173
8174 if test x"$enable_gdbmi" = xyes; then
8175 if test -d $srcdir/mi; then
8176 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8177 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8178 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8179 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8180 fi
8181 fi
8182
8183 # Enable TUI.
8184 # Check whether --enable-tui was given.
8185 if test "${enable_tui+set}" = set; then :
8186 enableval=$enable_tui; case $enableval in
8187 yes | no | auto)
8188 ;;
8189 *)
8190 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8191 esac
8192 else
8193 enable_tui=auto
8194 fi
8195
8196
8197 # Enable gdbtk.
8198 # Check whether --enable-gdbtk was given.
8199 if test "${enable_gdbtk+set}" = set; then :
8200 enableval=$enable_gdbtk; case $enableval in
8201 yes | no)
8202 ;;
8203 *)
8204 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8205 esac
8206 else
8207 if test -d $srcdir/gdbtk; then
8208 enable_gdbtk=yes
8209 else
8210 enable_gdbtk=no
8211 fi
8212 fi
8213
8214 # We unconditionally disable gdbtk tests on selected platforms.
8215 case $host_os in
8216 go32* | windows*)
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8218 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8219 enable_gdbtk=no ;;
8220 esac
8221
8222 # Libunwind support.
8223
8224 # Check whether --with-libunwind was given.
8225 if test "${with_libunwind+set}" = set; then :
8226 withval=$with_libunwind; case "${withval}" in
8227 yes) enable_libunwind=yes ;;
8228 no) enable_libunwind=no ;;
8229 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8230 esac
8231 else
8232
8233 for ac_header in libunwind.h libunwind-ia64.h
8234 do :
8235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8236 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8237 eval as_val=\$$as_ac_Header
8238 if test "x$as_val" = x""yes; then :
8239 cat >>confdefs.h <<_ACEOF
8240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8241 _ACEOF
8242
8243 fi
8244
8245 done
8246
8247 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8248 enable_libunwind=yes;
8249 fi
8250
8251 fi
8252
8253
8254 if test x"$enable_libunwind" = xyes; then
8255 for ac_header in libunwind.h libunwind-ia64.h
8256 do :
8257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8258 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8259 eval as_val=\$$as_ac_Header
8260 if test "x$as_val" = x""yes; then :
8261 cat >>confdefs.h <<_ACEOF
8262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8263 _ACEOF
8264
8265 fi
8266
8267 done
8268
8269
8270 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8271
8272 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8273 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8274 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8275 fi
8276
8277 opt_curses=no
8278
8279 # Check whether --with-curses was given.
8280 if test "${with_curses+set}" = set; then :
8281 withval=$with_curses; opt_curses=$withval
8282 fi
8283
8284
8285 prefer_curses=no
8286 if test "$opt_curses" = "yes"; then
8287 prefer_curses=yes
8288 fi
8289
8290 # Profiling support.
8291 # Check whether --enable-profiling was given.
8292 if test "${enable_profiling+set}" = set; then :
8293 enableval=$enable_profiling; case $enableval in
8294 yes | no)
8295 ;;
8296 *)
8297 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8298 esac
8299 else
8300 enable_profiling=no
8301 fi
8302
8303
8304 for ac_func in monstartup _mcleanup
8305 do :
8306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8308 eval as_val=\$$as_ac_var
8309 if test "x$as_val" = x""yes; then :
8310 cat >>confdefs.h <<_ACEOF
8311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8312 _ACEOF
8313
8314 fi
8315 done
8316
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8318 $as_echo_n "checking for _etext... " >&6; }
8319 if test "${ac_cv_var__etext+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 #include <stdlib.h>
8325 extern char _etext;
8326
8327 int
8328 main ()
8329 {
8330 free (&_etext);
8331 ;
8332 return 0;
8333 }
8334 _ACEOF
8335 if ac_fn_c_try_link "$LINENO"; then :
8336 ac_cv_var__etext=yes
8337 else
8338 ac_cv_var__etext=no
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext conftest.$ac_ext
8342 fi
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8344 $as_echo "$ac_cv_var__etext" >&6; }
8345 if test $ac_cv_var__etext = yes; then
8346
8347 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8348
8349 fi
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8351 $as_echo_n "checking for etext... " >&6; }
8352 if test "${ac_cv_var_etext+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 #include <stdlib.h>
8358 extern char etext;
8359
8360 int
8361 main ()
8362 {
8363 free (&etext);
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 if ac_fn_c_try_link "$LINENO"; then :
8369 ac_cv_var_etext=yes
8370 else
8371 ac_cv_var_etext=no
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375 fi
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8377 $as_echo "$ac_cv_var_etext" >&6; }
8378 if test $ac_cv_var_etext = yes; then
8379
8380 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8381
8382 fi
8383 if test "$enable_profiling" = yes ; then
8384 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8385 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8386 fi
8387 PROFILE_CFLAGS=-pg
8388 OLD_CFLAGS="$CFLAGS"
8389 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8390
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8392 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8393 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398
8399 int
8400 main ()
8401 {
8402 int x;
8403 ;
8404 return 0;
8405 }
8406 _ACEOF
8407 if ac_fn_c_try_compile "$LINENO"; then :
8408 ac_cv_cc_supports_pg=yes
8409 else
8410 ac_cv_cc_supports_pg=no
8411 fi
8412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8413 fi
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8415 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8416
8417 if test $ac_cv_cc_supports_pg = no; then
8418 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8419 fi
8420
8421 CFLAGS="$OLD_CFLAGS"
8422 fi
8423
8424
8425
8426 # Check whether --with-pkgversion was given.
8427 if test "${with_pkgversion+set}" = set; then :
8428 withval=$with_pkgversion; case "$withval" in
8429 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8430 no) PKGVERSION= ;;
8431 *) PKGVERSION="($withval) " ;;
8432 esac
8433 else
8434 PKGVERSION="(GDB) "
8435
8436 fi
8437
8438
8439
8440
8441
8442 # Check whether --with-bugurl was given.
8443 if test "${with_bugurl+set}" = set; then :
8444 withval=$with_bugurl; case "$withval" in
8445 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8446 no) BUGURL=
8447 ;;
8448 *) BUGURL="$withval"
8449 ;;
8450 esac
8451 else
8452 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8453
8454 fi
8455
8456 case ${BUGURL} in
8457 "")
8458 REPORT_BUGS_TO=
8459 REPORT_BUGS_TEXI=
8460 ;;
8461 *)
8462 REPORT_BUGS_TO="<$BUGURL>"
8463 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8464 ;;
8465 esac;
8466
8467
8468
8469
8470 cat >>confdefs.h <<_ACEOF
8471 #define PKGVERSION "$PKGVERSION"
8472 _ACEOF
8473
8474
8475 cat >>confdefs.h <<_ACEOF
8476 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8477 _ACEOF
8478
8479
8480 # --------------------- #
8481 # Checks for programs. #
8482 # --------------------- #
8483
8484 for ac_prog in gawk mawk nawk awk
8485 do
8486 # Extract the first word of "$ac_prog", so it can be a program name with args.
8487 set dummy $ac_prog; ac_word=$2
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489 $as_echo_n "checking for $ac_word... " >&6; }
8490 if test "${ac_cv_prog_AWK+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 if test -n "$AWK"; then
8494 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8498 do
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8503 ac_cv_prog_AWK="$ac_prog"
8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8506 fi
8507 done
8508 done
8509 IFS=$as_save_IFS
8510
8511 fi
8512 fi
8513 AWK=$ac_cv_prog_AWK
8514 if test -n "$AWK"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8516 $as_echo "$AWK" >&6; }
8517 else
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8520 fi
8521
8522
8523 test -n "$AWK" && break
8524 done
8525
8526
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8528 $as_echo_n "checking whether ln -s works... " >&6; }
8529 LN_S=$as_ln_s
8530 if test "$LN_S" = "ln -s"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8532 $as_echo "yes" >&6; }
8533 else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8535 $as_echo "no, using $LN_S" >&6; }
8536 fi
8537
8538 if test -n "$ac_tool_prefix"; then
8539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8540 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 if test -n "$RANLIB"; then
8547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8548 else
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8551 do
8552 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2
8559 fi
8560 done
8561 done
8562 IFS=$as_save_IFS
8563
8564 fi
8565 fi
8566 RANLIB=$ac_cv_prog_RANLIB
8567 if test -n "$RANLIB"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8569 $as_echo "$RANLIB" >&6; }
8570 else
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8573 fi
8574
8575
8576 fi
8577 if test -z "$ac_cv_prog_RANLIB"; then
8578 ac_ct_RANLIB=$RANLIB
8579 # Extract the first word of "ranlib", so it can be a program name with args.
8580 set dummy ranlib; ac_word=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 if test -n "$ac_ct_RANLIB"; then
8587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8588 else
8589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 for as_dir in $PATH
8591 do
8592 IFS=$as_save_IFS
8593 test -z "$as_dir" && as_dir=.
8594 for ac_exec_ext in '' $ac_executable_extensions; do
8595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8596 ac_cv_prog_ac_ct_RANLIB="ranlib"
8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8598 break 2
8599 fi
8600 done
8601 done
8602 IFS=$as_save_IFS
8603
8604 fi
8605 fi
8606 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8607 if test -n "$ac_ct_RANLIB"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8609 $as_echo "$ac_ct_RANLIB" >&6; }
8610 else
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8613 fi
8614
8615 if test "x$ac_ct_RANLIB" = x; then
8616 RANLIB=":"
8617 else
8618 case $cross_compiling:$ac_tool_warned in
8619 yes:)
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8622 ac_tool_warned=yes ;;
8623 esac
8624 RANLIB=$ac_ct_RANLIB
8625 fi
8626 else
8627 RANLIB="$ac_cv_prog_RANLIB"
8628 fi
8629
8630 for ac_prog in 'bison -y' byacc
8631 do
8632 # Extract the first word of "$ac_prog", so it can be a program name with args.
8633 set dummy $ac_prog; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if test "${ac_cv_prog_YACC+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 if test -n "$YACC"; then
8640 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8641 else
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8644 do
8645 IFS=$as_save_IFS
8646 test -z "$as_dir" && as_dir=.
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8649 ac_cv_prog_YACC="$ac_prog"
8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 break 2
8652 fi
8653 done
8654 done
8655 IFS=$as_save_IFS
8656
8657 fi
8658 fi
8659 YACC=$ac_cv_prog_YACC
8660 if test -n "$YACC"; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8662 $as_echo "$YACC" >&6; }
8663 else
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8666 fi
8667
8668
8669 test -n "$YACC" && break
8670 done
8671 test -n "$YACC" || YACC="yacc"
8672
8673
8674 if test -n "$ac_tool_prefix"; then
8675 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8676 set dummy ${ac_tool_prefix}ar; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if test "${ac_cv_prog_AR+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 if test -n "$AR"; then
8683 ac_cv_prog_AR="$AR" # Let the user override the test.
8684 else
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8687 do
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_prog_AR="${ac_tool_prefix}ar"
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 break 2
8695 fi
8696 done
8697 done
8698 IFS=$as_save_IFS
8699
8700 fi
8701 fi
8702 AR=$ac_cv_prog_AR
8703 if test -n "$AR"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8705 $as_echo "$AR" >&6; }
8706 else
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8709 fi
8710
8711
8712 fi
8713 if test -z "$ac_cv_prog_AR"; then
8714 ac_ct_AR=$AR
8715 # Extract the first word of "ar", so it can be a program name with args.
8716 set dummy ar; ac_word=$2
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 $as_echo_n "checking for $ac_word... " >&6; }
8719 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 if test -n "$ac_ct_AR"; then
8723 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8724 else
8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 for as_dir in $PATH
8727 do
8728 IFS=$as_save_IFS
8729 test -z "$as_dir" && as_dir=.
8730 for ac_exec_ext in '' $ac_executable_extensions; do
8731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8732 ac_cv_prog_ac_ct_AR="ar"
8733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 break 2
8735 fi
8736 done
8737 done
8738 IFS=$as_save_IFS
8739
8740 fi
8741 fi
8742 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8743 if test -n "$ac_ct_AR"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8745 $as_echo "$ac_ct_AR" >&6; }
8746 else
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8749 fi
8750
8751 if test "x$ac_ct_AR" = x; then
8752 AR=""
8753 else
8754 case $cross_compiling:$ac_tool_warned in
8755 yes:)
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8758 ac_tool_warned=yes ;;
8759 esac
8760 AR=$ac_ct_AR
8761 fi
8762 else
8763 AR="$ac_cv_prog_AR"
8764 fi
8765
8766 if test -n "$ac_tool_prefix"; then
8767 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8768 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 if test -n "$DLLTOOL"; then
8775 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8776 else
8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778 for as_dir in $PATH
8779 do
8780 IFS=$as_save_IFS
8781 test -z "$as_dir" && as_dir=.
8782 for ac_exec_ext in '' $ac_executable_extensions; do
8783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8784 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8786 break 2
8787 fi
8788 done
8789 done
8790 IFS=$as_save_IFS
8791
8792 fi
8793 fi
8794 DLLTOOL=$ac_cv_prog_DLLTOOL
8795 if test -n "$DLLTOOL"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8797 $as_echo "$DLLTOOL" >&6; }
8798 else
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8801 fi
8802
8803
8804 fi
8805 if test -z "$ac_cv_prog_DLLTOOL"; then
8806 ac_ct_DLLTOOL=$DLLTOOL
8807 # Extract the first word of "dlltool", so it can be a program name with args.
8808 set dummy dlltool; ac_word=$2
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810 $as_echo_n "checking for $ac_word... " >&6; }
8811 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 if test -n "$ac_ct_DLLTOOL"; then
8815 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8816 else
8817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 for as_dir in $PATH
8819 do
8820 IFS=$as_save_IFS
8821 test -z "$as_dir" && as_dir=.
8822 for ac_exec_ext in '' $ac_executable_extensions; do
8823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8824 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8826 break 2
8827 fi
8828 done
8829 done
8830 IFS=$as_save_IFS
8831
8832 fi
8833 fi
8834 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8835 if test -n "$ac_ct_DLLTOOL"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8837 $as_echo "$ac_ct_DLLTOOL" >&6; }
8838 else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8841 fi
8842
8843 if test "x$ac_ct_DLLTOOL" = x; then
8844 DLLTOOL=""
8845 else
8846 case $cross_compiling:$ac_tool_warned in
8847 yes:)
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8850 ac_tool_warned=yes ;;
8851 esac
8852 DLLTOOL=$ac_ct_DLLTOOL
8853 fi
8854 else
8855 DLLTOOL="$ac_cv_prog_DLLTOOL"
8856 fi
8857
8858 if test -n "$ac_tool_prefix"; then
8859 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8860 set dummy ${ac_tool_prefix}windres; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 if test -n "$WINDRES"; then
8867 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 break 2
8879 fi
8880 done
8881 done
8882 IFS=$as_save_IFS
8883
8884 fi
8885 fi
8886 WINDRES=$ac_cv_prog_WINDRES
8887 if test -n "$WINDRES"; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8889 $as_echo "$WINDRES" >&6; }
8890 else
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8893 fi
8894
8895
8896 fi
8897 if test -z "$ac_cv_prog_WINDRES"; then
8898 ac_ct_WINDRES=$WINDRES
8899 # Extract the first word of "windres", so it can be a program name with args.
8900 set dummy windres; ac_word=$2
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8902 $as_echo_n "checking for $ac_word... " >&6; }
8903 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 if test -n "$ac_ct_WINDRES"; then
8907 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8908 else
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 for as_dir in $PATH
8911 do
8912 IFS=$as_save_IFS
8913 test -z "$as_dir" && as_dir=.
8914 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8916 ac_cv_prog_ac_ct_WINDRES="windres"
8917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8918 break 2
8919 fi
8920 done
8921 done
8922 IFS=$as_save_IFS
8923
8924 fi
8925 fi
8926 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8927 if test -n "$ac_ct_WINDRES"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8929 $as_echo "$ac_ct_WINDRES" >&6; }
8930 else
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8933 fi
8934
8935 if test "x$ac_ct_WINDRES" = x; then
8936 WINDRES=""
8937 else
8938 case $cross_compiling:$ac_tool_warned in
8939 yes:)
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8942 ac_tool_warned=yes ;;
8943 esac
8944 WINDRES=$ac_ct_WINDRES
8945 fi
8946 else
8947 WINDRES="$ac_cv_prog_WINDRES"
8948 fi
8949
8950
8951 # Needed for GNU/Hurd.
8952 if test -n "$ac_tool_prefix"; then
8953 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8954 set dummy ${ac_tool_prefix}mig; ac_word=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if test "${ac_cv_prog_MIG+set}" = set; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 if test -n "$MIG"; then
8961 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8962 else
8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 for as_dir in $PATH
8965 do
8966 IFS=$as_save_IFS
8967 test -z "$as_dir" && as_dir=.
8968 for ac_exec_ext in '' $ac_executable_extensions; do
8969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8970 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8972 break 2
8973 fi
8974 done
8975 done
8976 IFS=$as_save_IFS
8977
8978 fi
8979 fi
8980 MIG=$ac_cv_prog_MIG
8981 if test -n "$MIG"; then
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8983 $as_echo "$MIG" >&6; }
8984 else
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8986 $as_echo "no" >&6; }
8987 fi
8988
8989
8990 fi
8991 if test -z "$ac_cv_prog_MIG"; then
8992 ac_ct_MIG=$MIG
8993 # Extract the first word of "mig", so it can be a program name with args.
8994 set dummy mig; ac_word=$2
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996 $as_echo_n "checking for $ac_word... " >&6; }
8997 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 if test -n "$ac_ct_MIG"; then
9001 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9002 else
9003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 for as_dir in $PATH
9005 do
9006 IFS=$as_save_IFS
9007 test -z "$as_dir" && as_dir=.
9008 for ac_exec_ext in '' $ac_executable_extensions; do
9009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9010 ac_cv_prog_ac_ct_MIG="mig"
9011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 break 2
9013 fi
9014 done
9015 done
9016 IFS=$as_save_IFS
9017
9018 fi
9019 fi
9020 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9021 if test -n "$ac_ct_MIG"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
9023 $as_echo "$ac_ct_MIG" >&6; }
9024 else
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9027 fi
9028
9029 if test "x$ac_ct_MIG" = x; then
9030 MIG=""
9031 else
9032 case $cross_compiling:$ac_tool_warned in
9033 yes:)
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9036 ac_tool_warned=yes ;;
9037 esac
9038 MIG=$ac_ct_MIG
9039 fi
9040 else
9041 MIG="$ac_cv_prog_MIG"
9042 fi
9043
9044
9045 # ---------------------- #
9046 # Checks for libraries. #
9047 # ---------------------- #
9048
9049 # We might need to link with -lm; most simulators need it.
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
9051 $as_echo_n "checking for main in -lm... " >&6; }
9052 if test "${ac_cv_lib_m_main+set}" = set; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 ac_check_lib_save_LIBS=$LIBS
9056 LIBS="-lm $LIBS"
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9059
9060
9061 int
9062 main ()
9063 {
9064 return main ();
9065 ;
9066 return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_link "$LINENO"; then :
9070 ac_cv_lib_m_main=yes
9071 else
9072 ac_cv_lib_m_main=no
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9076 LIBS=$ac_check_lib_save_LIBS
9077 fi
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9079 $as_echo "$ac_cv_lib_m_main" >&6; }
9080 if test "x$ac_cv_lib_m_main" = x""yes; then :
9081 cat >>confdefs.h <<_ACEOF
9082 #define HAVE_LIBM 1
9083 _ACEOF
9084
9085 LIBS="-lm $LIBS"
9086
9087 fi
9088
9089
9090 # We need to link with -lw to get `wctype' on Solaris before Solaris
9091 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9092 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9093 # is known to have this problem). Therefore we avoid libw if we can.
9094 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9095 if test "x$ac_cv_func_wctype" = x""yes; then :
9096
9097 else
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9099 $as_echo_n "checking for wctype in -lw... " >&6; }
9100 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 ac_check_lib_save_LIBS=$LIBS
9104 LIBS="-lw $LIBS"
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9107
9108 /* Override any GCC internal prototype to avoid an error.
9109 Use char because int might match the return type of a GCC
9110 builtin and then its argument prototype would still apply. */
9111 #ifdef __cplusplus
9112 extern "C"
9113 #endif
9114 char wctype ();
9115 int
9116 main ()
9117 {
9118 return wctype ();
9119 ;
9120 return 0;
9121 }
9122 _ACEOF
9123 if ac_fn_c_try_link "$LINENO"; then :
9124 ac_cv_lib_w_wctype=yes
9125 else
9126 ac_cv_lib_w_wctype=no
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9130 LIBS=$ac_check_lib_save_LIBS
9131 fi
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9133 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9134 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9135 cat >>confdefs.h <<_ACEOF
9136 #define HAVE_LIBW 1
9137 _ACEOF
9138
9139 LIBS="-lw $LIBS"
9140
9141 fi
9142
9143 fi
9144
9145
9146 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9148 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9149 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 ac_func_search_save_LIBS=$LIBS
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155
9156 /* Override any GCC internal prototype to avoid an error.
9157 Use char because int might match the return type of a GCC
9158 builtin and then its argument prototype would still apply. */
9159 #ifdef __cplusplus
9160 extern "C"
9161 #endif
9162 char gethostbyname ();
9163 int
9164 main ()
9165 {
9166 return gethostbyname ();
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 for ac_lib in '' nsl; do
9172 if test -z "$ac_lib"; then
9173 ac_res="none required"
9174 else
9175 ac_res=-l$ac_lib
9176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9177 fi
9178 if ac_fn_c_try_link "$LINENO"; then :
9179 ac_cv_search_gethostbyname=$ac_res
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext
9183 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9184 break
9185 fi
9186 done
9187 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9188
9189 else
9190 ac_cv_search_gethostbyname=no
9191 fi
9192 rm conftest.$ac_ext
9193 LIBS=$ac_func_search_save_LIBS
9194 fi
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9196 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9197 ac_res=$ac_cv_search_gethostbyname
9198 if test "$ac_res" != no; then :
9199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9200
9201 fi
9202
9203
9204 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9206 $as_echo_n "checking for library containing socketpair... " >&6; }
9207 if test "${ac_cv_search_socketpair+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
9209 else
9210 ac_func_search_save_LIBS=$LIBS
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213
9214 /* Override any GCC internal prototype to avoid an error.
9215 Use char because int might match the return type of a GCC
9216 builtin and then its argument prototype would still apply. */
9217 #ifdef __cplusplus
9218 extern "C"
9219 #endif
9220 char socketpair ();
9221 int
9222 main ()
9223 {
9224 return socketpair ();
9225 ;
9226 return 0;
9227 }
9228 _ACEOF
9229 for ac_lib in '' socket; do
9230 if test -z "$ac_lib"; then
9231 ac_res="none required"
9232 else
9233 ac_res=-l$ac_lib
9234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9235 fi
9236 if ac_fn_c_try_link "$LINENO"; then :
9237 ac_cv_search_socketpair=$ac_res
9238 fi
9239 rm -f core conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext
9241 if test "${ac_cv_search_socketpair+set}" = set; then :
9242 break
9243 fi
9244 done
9245 if test "${ac_cv_search_socketpair+set}" = set; then :
9246
9247 else
9248 ac_cv_search_socketpair=no
9249 fi
9250 rm conftest.$ac_ext
9251 LIBS=$ac_func_search_save_LIBS
9252 fi
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9254 $as_echo "$ac_cv_search_socketpair" >&6; }
9255 ac_res=$ac_cv_search_socketpair
9256 if test "$ac_res" != no; then :
9257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9258
9259 fi
9260
9261
9262 # Link in zlib if we can. This allows us to read compressed debug sections.
9263
9264 # See if the user specified whether he wants zlib support or not.
9265
9266 # Check whether --with-zlib was given.
9267 if test "${with_zlib+set}" = set; then :
9268 withval=$with_zlib;
9269 else
9270 with_zlib=auto
9271 fi
9272
9273
9274 if test "$with_zlib" != "no"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9276 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9277 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 ac_func_search_save_LIBS=$LIBS
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283
9284 /* Override any GCC internal prototype to avoid an error.
9285 Use char because int might match the return type of a GCC
9286 builtin and then its argument prototype would still apply. */
9287 #ifdef __cplusplus
9288 extern "C"
9289 #endif
9290 char zlibVersion ();
9291 int
9292 main ()
9293 {
9294 return zlibVersion ();
9295 ;
9296 return 0;
9297 }
9298 _ACEOF
9299 for ac_lib in '' z; do
9300 if test -z "$ac_lib"; then
9301 ac_res="none required"
9302 else
9303 ac_res=-l$ac_lib
9304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9305 fi
9306 if ac_fn_c_try_link "$LINENO"; then :
9307 ac_cv_search_zlibVersion=$ac_res
9308 fi
9309 rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext
9311 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9312 break
9313 fi
9314 done
9315 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9316
9317 else
9318 ac_cv_search_zlibVersion=no
9319 fi
9320 rm conftest.$ac_ext
9321 LIBS=$ac_func_search_save_LIBS
9322 fi
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9324 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9325 ac_res=$ac_cv_search_zlibVersion
9326 if test "$ac_res" != no; then :
9327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9328 for ac_header in zlib.h
9329 do :
9330 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9331 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9332 cat >>confdefs.h <<_ACEOF
9333 #define HAVE_ZLIB_H 1
9334 _ACEOF
9335
9336 fi
9337
9338 done
9339
9340 fi
9341
9342 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9343 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9344 fi
9345 fi
9346
9347
9348 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9350 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9351 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 ac_func_search_save_LIBS=$LIBS
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357
9358 /* Override any GCC internal prototype to avoid an error.
9359 Use char because int might match the return type of a GCC
9360 builtin and then its argument prototype would still apply. */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 char dlgetmodinfo ();
9365 int
9366 main ()
9367 {
9368 return dlgetmodinfo ();
9369 ;
9370 return 0;
9371 }
9372 _ACEOF
9373 for ac_lib in '' dl xpdl; do
9374 if test -z "$ac_lib"; then
9375 ac_res="none required"
9376 else
9377 ac_res=-l$ac_lib
9378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9379 fi
9380 if ac_fn_c_try_link "$LINENO"; then :
9381 ac_cv_search_dlgetmodinfo=$ac_res
9382 fi
9383 rm -f core conftest.err conftest.$ac_objext \
9384 conftest$ac_exeext
9385 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9386 break
9387 fi
9388 done
9389 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9390
9391 else
9392 ac_cv_search_dlgetmodinfo=no
9393 fi
9394 rm conftest.$ac_ext
9395 LIBS=$ac_func_search_save_LIBS
9396 fi
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9398 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9399 ac_res=$ac_cv_search_dlgetmodinfo
9400 if test "$ac_res" != no; then :
9401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9402
9403 fi
9404
9405
9406
9407
9408
9409 # Check whether --with-libiconv-prefix was given.
9410 if test "${with_libiconv_prefix+set}" = set; then :
9411 withval=$with_libiconv_prefix;
9412 for dir in `echo "$withval" | tr : ' '`; do
9413 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9414 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9415 done
9416
9417 fi
9418
9419
9420 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9421 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9422
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9424 $as_echo_n "checking for iconv... " >&6; }
9425 if test "${am_cv_func_iconv+set}" = set; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428
9429 am_cv_func_iconv="no, consider installing GNU libiconv"
9430 am_cv_lib_iconv=no
9431 am_cv_use_build_libiconv=no
9432 am_cv_build_libiconv_path=
9433
9434 # If libiconv is part of the build tree, then try using it over
9435 # any system iconv.
9436 if test -d ../libiconv; then
9437 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9438 am_save_LIBS="$LIBS"
9439 am_save_CPPFLAGS="$CPPFLAGS"
9440 LIBS="$LIBS $lib_dir/libiconv.a"
9441 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 #include <stdlib.h>
9445 #include <iconv.h>
9446 int
9447 main ()
9448 {
9449 iconv_t cd = iconv_open("","");
9450 iconv(cd,NULL,NULL,NULL,NULL);
9451 iconv_close(cd);
9452 ;
9453 return 0;
9454 }
9455 _ACEOF
9456 if ac_fn_c_try_link "$LINENO"; then :
9457 am_cv_use_build_libiconv=yes
9458 am_cv_build_libiconv_path=$lib_dir/libiconv.a
9459 am_cv_lib_iconv=yes
9460 am_cv_func_iconv=yes
9461 fi
9462 rm -f core conftest.err conftest.$ac_objext \
9463 conftest$ac_exeext conftest.$ac_ext
9464 LIBS="$am_save_LIBS"
9465 CPPFLAGS="$am_save_CPPFLAGS"
9466 if test "$am_cv_use_build_libiconv" = "yes"; then
9467 break
9468 fi
9469 done
9470 fi
9471
9472 # Next, try to find iconv in libc.
9473 if test "$am_cv_func_iconv" != yes; then
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 #include <stdlib.h>
9477 #include <iconv.h>
9478 int
9479 main ()
9480 {
9481 iconv_t cd = iconv_open("","");
9482 iconv(cd,NULL,NULL,NULL,NULL);
9483 iconv_close(cd);
9484 ;
9485 return 0;
9486 }
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489 am_cv_func_iconv=yes
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9493 fi
9494
9495 # If iconv was not in libc, try -liconv. In this case, arrange to
9496 # look in the libiconv prefix, if it was specified by the user.
9497 if test "$am_cv_func_iconv" != yes; then
9498 am_save_CPPFLAGS="$CPPFLAGS"
9499 am_save_LIBS="$LIBS"
9500 if test -n "$LIBICONV_INCLUDE"; then
9501 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9502 LIBS="$LIBS $LIBICONV_LIBDIR"
9503 fi
9504 LIBS="$LIBS -liconv"
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9507 #include <stdlib.h>
9508 #include <iconv.h>
9509 int
9510 main ()
9511 {
9512 iconv_t cd = iconv_open("","");
9513 iconv(cd,NULL,NULL,NULL,NULL);
9514 iconv_close(cd);
9515 ;
9516 return 0;
9517 }
9518 _ACEOF
9519 if ac_fn_c_try_link "$LINENO"; then :
9520 am_cv_lib_iconv=yes
9521 am_cv_func_iconv=yes
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
9525 LIBS="$am_save_LIBS"
9526 CPPFLAGS="$am_save_CPPFLAGS"
9527 fi
9528
9529 fi
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9531 $as_echo "$am_cv_func_iconv" >&6; }
9532
9533 # Set the various flags based on the cache variables. We can't rely
9534 # on the flags to remain set from the above code, due to caching.
9535 LIBICONV=
9536 if test "$am_cv_lib_iconv" = yes; then
9537 LIBICONV="-liconv"
9538 else
9539 LIBICONV_LIBDIR=
9540 LIBICONV_INCLUDE=
9541 fi
9542 if test "$am_cv_use_build_libiconv" = yes; then
9543 LIBICONV="$am_cv_build_libiconv_path"
9544 LIBICONV_LIBDIR=""
9545 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9546 fi
9547 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9548 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9549
9550 if test "$am_cv_func_iconv" = yes; then
9551
9552 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9553
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9555 $as_echo_n "checking for iconv declaration... " >&6; }
9556 if test "${am_cv_proto_iconv+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562
9563 #include <stdlib.h>
9564 #include <iconv.h>
9565 extern
9566 #ifdef __cplusplus
9567 "C"
9568 #endif
9569 #if defined(__STDC__) || defined(__cplusplus)
9570 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9571 #else
9572 size_t iconv();
9573 #endif
9574
9575 int
9576 main ()
9577 {
9578
9579 ;
9580 return 0;
9581 }
9582 _ACEOF
9583 if ac_fn_c_try_compile "$LINENO"; then :
9584 am_cv_proto_iconv_arg1=""
9585 else
9586 am_cv_proto_iconv_arg1="const"
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9590 fi
9591
9592 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9594 }$am_cv_proto_iconv" >&5
9595 $as_echo "${ac_t:-
9596 }$am_cv_proto_iconv" >&6; }
9597
9598 cat >>confdefs.h <<_ACEOF
9599 #define ICONV_CONST $am_cv_proto_iconv_arg1
9600 _ACEOF
9601
9602 fi
9603
9604
9605 # GDB may fork/exec the iconv program to get the list of supported character
9606 # sets. Allow the user to specify where to find it.
9607 # There are several factors affecting the choice of option name:
9608 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9609 # the build-time location of libiconv files.
9610 # - The program we need to find is iconv, which comes with glibc. The user
9611 # doesn't necessarily have libiconv installed. Therefore naming this
9612 # --with-libiconv-foo feels wrong.
9613 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9614 # defined to work on directories not files (though it really doesn't know
9615 # the difference).
9616 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9617 # with --with-libiconv-prefix.
9618 # Putting these together is why the option name is --with-iconv-bin.
9619
9620
9621 # Check whether --with-iconv-bin was given.
9622 if test "${with_iconv_bin+set}" = set; then :
9623 withval=$with_iconv_bin; iconv_bin="${withval}"
9624
9625 cat >>confdefs.h <<_ACEOF
9626 #define ICONV_BIN "${iconv_bin}"
9627 _ACEOF
9628
9629
9630 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9631 if test "x$prefix" = xNONE; then
9632 test_prefix=/usr/local
9633 else
9634 test_prefix=$prefix
9635 fi
9636 else
9637 test_prefix=$exec_prefix
9638 fi
9639 value=0
9640 case ${iconv_bin} in
9641 "${test_prefix}"|"${test_prefix}/"*|\
9642 '${exec_prefix}'|'${exec_prefix}/'*)
9643 value=1
9644 ;;
9645 esac
9646
9647 cat >>confdefs.h <<_ACEOF
9648 #define ICONV_BIN_RELOCATABLE $value
9649 _ACEOF
9650
9651
9652
9653 fi
9654
9655
9656 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9657 # There is a very specific comment in /usr/include/curses.h explaining that
9658 # termcap routines built into libcurses must not be used.
9659 #
9660 # The symptoms we observed so far is GDB unexpectedly changing
9661 # the terminal settings when tgetent is called - this is particularly
9662 # visible as the output is missing carriage returns, and so rapidly
9663 # becomes very hard to read.
9664 #
9665 # The readline configure script has already decided that libtermcap
9666 # was enough for its purposes, and so decided to build readline using
9667 # libtermcap. Since the TUI mode requires curses, building GDB with
9668 # TUI enabled results in both libraries to be used at the same time,
9669 # which is not allowed. This basically means that GDB with TUI is
9670 # broken on alpha-osf.
9671
9672 case $host_os in
9673 osf* )
9674 if test x"$enable_tui" = xyes; then
9675 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9676 fi
9677 if test x"$enable_tui" = xauto; then
9678 enable_tui=no
9679 fi
9680 ;;
9681 esac
9682
9683 # For the TUI, we need enhanced curses functionality.
9684 if test x"$enable_tui" != xno; then
9685 prefer_curses=yes
9686 fi
9687
9688 curses_found=no
9689 if test x"$prefer_curses" = xyes; then
9690 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9691 # curses library because the latter might not provide all the
9692 # functionality we need. However, this leads to problems on systems
9693 # where the linker searches /usr/local/lib, but the compiler doesn't
9694 # search /usr/local/include, if ncurses is installed in /usr/local. A
9695 # default installation of ncurses on alpha*-dec-osf* will lead to such
9696 # a situation.
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9698 $as_echo_n "checking for library containing waddstr... " >&6; }
9699 if test "${ac_cv_search_waddstr+set}" = set; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 ac_func_search_save_LIBS=$LIBS
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705
9706 /* Override any GCC internal prototype to avoid an error.
9707 Use char because int might match the return type of a GCC
9708 builtin and then its argument prototype would still apply. */
9709 #ifdef __cplusplus
9710 extern "C"
9711 #endif
9712 char waddstr ();
9713 int
9714 main ()
9715 {
9716 return waddstr ();
9717 ;
9718 return 0;
9719 }
9720 _ACEOF
9721 for ac_lib in '' ncurses cursesX curses; do
9722 if test -z "$ac_lib"; then
9723 ac_res="none required"
9724 else
9725 ac_res=-l$ac_lib
9726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9727 fi
9728 if ac_fn_c_try_link "$LINENO"; then :
9729 ac_cv_search_waddstr=$ac_res
9730 fi
9731 rm -f core conftest.err conftest.$ac_objext \
9732 conftest$ac_exeext
9733 if test "${ac_cv_search_waddstr+set}" = set; then :
9734 break
9735 fi
9736 done
9737 if test "${ac_cv_search_waddstr+set}" = set; then :
9738
9739 else
9740 ac_cv_search_waddstr=no
9741 fi
9742 rm conftest.$ac_ext
9743 LIBS=$ac_func_search_save_LIBS
9744 fi
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9746 $as_echo "$ac_cv_search_waddstr" >&6; }
9747 ac_res=$ac_cv_search_waddstr
9748 if test "$ac_res" != no; then :
9749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9750
9751 fi
9752
9753
9754 if test "$ac_cv_search_waddstr" != no; then
9755 curses_found=yes
9756 fi
9757 fi
9758
9759 # Check whether we should enable the TUI, but only do so if we really
9760 # can.
9761 if test x"$enable_tui" != xno; then
9762 if test -d $srcdir/tui; then
9763 if test "$curses_found" != no; then
9764 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9765 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9766 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9767 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9768 CONFIG_ALL="${CONFIG_ALL} all-tui"
9769 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9770 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9771 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9772 else
9773 if test x"$enable_tui" = xyes; then
9774 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9775 else
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9777 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9778 fi
9779 fi
9780 fi
9781 fi
9782
9783 # Since GDB uses Readline, we need termcap functionality. In many
9784 # cases this will be provided by the curses library, but some systems
9785 # have a seperate termcap library, or no curses library at all.
9786
9787 case $host_os in
9788 cygwin*)
9789 if test -d $srcdir/libtermcap; then
9790 LIBS="../libtermcap/libtermcap.a $LIBS"
9791 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9792 fi ;;
9793 go32* | *djgpp*)
9794 ac_cv_search_tgetent="none required"
9795 ;;
9796 *mingw32*)
9797 ac_cv_search_tgetent="none required"
9798 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9799 ;;
9800 esac
9801
9802 # These are the libraries checked by Readline.
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9804 $as_echo_n "checking for library containing tgetent... " >&6; }
9805 if test "${ac_cv_search_tgetent+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 ac_func_search_save_LIBS=$LIBS
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811
9812 /* Override any GCC internal prototype to avoid an error.
9813 Use char because int might match the return type of a GCC
9814 builtin and then its argument prototype would still apply. */
9815 #ifdef __cplusplus
9816 extern "C"
9817 #endif
9818 char tgetent ();
9819 int
9820 main ()
9821 {
9822 return tgetent ();
9823 ;
9824 return 0;
9825 }
9826 _ACEOF
9827 for ac_lib in '' termcap tinfo curses ncurses; do
9828 if test -z "$ac_lib"; then
9829 ac_res="none required"
9830 else
9831 ac_res=-l$ac_lib
9832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9833 fi
9834 if ac_fn_c_try_link "$LINENO"; then :
9835 ac_cv_search_tgetent=$ac_res
9836 fi
9837 rm -f core conftest.err conftest.$ac_objext \
9838 conftest$ac_exeext
9839 if test "${ac_cv_search_tgetent+set}" = set; then :
9840 break
9841 fi
9842 done
9843 if test "${ac_cv_search_tgetent+set}" = set; then :
9844
9845 else
9846 ac_cv_search_tgetent=no
9847 fi
9848 rm conftest.$ac_ext
9849 LIBS=$ac_func_search_save_LIBS
9850 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9852 $as_echo "$ac_cv_search_tgetent" >&6; }
9853 ac_res=$ac_cv_search_tgetent
9854 if test "$ac_res" != no; then :
9855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9856
9857 fi
9858
9859
9860 if test "$ac_cv_search_tgetent" = no; then
9861 as_fn_error "no termcap library found" "$LINENO" 5
9862 fi
9863
9864
9865 # Check whether --with-system-readline was given.
9866 if test "${with_system_readline+set}" = set; then :
9867 withval=$with_system_readline;
9868 fi
9869
9870
9871 if test "$with_system_readline" = yes; then
9872 READLINE=-lreadline
9873 READLINE_DEPS=
9874 READLINE_CFLAGS=
9875 READLINE_TEXI_INCFLAG=
9876 else
9877 READLINE='$(READLINE_DIR)/libreadline.a'
9878 READLINE_DEPS='$(READLINE)'
9879 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9880 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9881 fi
9882
9883
9884
9885
9886
9887
9888 # Check whether --with-expat was given.
9889 if test "${with_expat+set}" = set; then :
9890 withval=$with_expat;
9891 else
9892 with_expat=auto
9893 fi
9894
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9896 $as_echo_n "checking whether to use expat... " >&6; }
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9898 $as_echo "$with_expat" >&6; }
9899
9900 if test "${with_expat}" = no; then
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9902 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9903 HAVE_LIBEXPAT=no
9904 else
9905
9906 if test "X$prefix" = "XNONE"; then
9907 acl_final_prefix="$ac_default_prefix"
9908 else
9909 acl_final_prefix="$prefix"
9910 fi
9911 if test "X$exec_prefix" = "XNONE"; then
9912 acl_final_exec_prefix='${prefix}'
9913 else
9914 acl_final_exec_prefix="$exec_prefix"
9915 fi
9916 acl_save_prefix="$prefix"
9917 prefix="$acl_final_prefix"
9918 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9919 prefix="$acl_save_prefix"
9920
9921
9922 # Check whether --with-gnu-ld was given.
9923 if test "${with_gnu_ld+set}" = set; then :
9924 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9925 else
9926 with_gnu_ld=no
9927 fi
9928
9929 # Prepare PATH_SEPARATOR.
9930 # The user is always right.
9931 if test "${PATH_SEPARATOR+set}" != set; then
9932 echo "#! /bin/sh" >conf$$.sh
9933 echo "exit 0" >>conf$$.sh
9934 chmod +x conf$$.sh
9935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9936 PATH_SEPARATOR=';'
9937 else
9938 PATH_SEPARATOR=:
9939 fi
9940 rm -f conf$$.sh
9941 fi
9942 ac_prog=ld
9943 if test "$GCC" = yes; then
9944 # Check if gcc -print-prog-name=ld gives a path.
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9946 $as_echo_n "checking for ld used by GCC... " >&6; }
9947 case $host in
9948 *-*-mingw*)
9949 # gcc leaves a trailing carriage return which upsets mingw
9950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9951 *)
9952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9953 esac
9954 case $ac_prog in
9955 # Accept absolute paths.
9956 [\\/]* | [A-Za-z]:[\\/]*)
9957 re_direlt='/[^/][^/]*/\.\./'
9958 # Canonicalize the path of ld
9959 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9960 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9961 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9962 done
9963 test -z "$LD" && LD="$ac_prog"
9964 ;;
9965 "")
9966 # If it fails, then pretend we aren't using GCC.
9967 ac_prog=ld
9968 ;;
9969 *)
9970 # If it is relative, then search for the first ld in PATH.
9971 with_gnu_ld=unknown
9972 ;;
9973 esac
9974 elif test "$with_gnu_ld" = yes; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9976 $as_echo_n "checking for GNU ld... " >&6; }
9977 else
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9979 $as_echo_n "checking for non-GNU ld... " >&6; }
9980 fi
9981 if test "${acl_cv_path_LD+set}" = set; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9984 if test -z "$LD"; then
9985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9986 for ac_dir in $PATH; do
9987 test -z "$ac_dir" && ac_dir=.
9988 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9989 acl_cv_path_LD="$ac_dir/$ac_prog"
9990 # Check to see if the program is GNU ld. I'd rather use --version,
9991 # but apparently some GNU ld's only accept -v.
9992 # Break only if it was the GNU/non-GNU ld that we prefer.
9993 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9994 test "$with_gnu_ld" != no && break
9995 else
9996 test "$with_gnu_ld" != yes && break
9997 fi
9998 fi
9999 done
10000 IFS="$ac_save_ifs"
10001 else
10002 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10003 fi
10004 fi
10005
10006 LD="$acl_cv_path_LD"
10007 if test -n "$LD"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10009 $as_echo "$LD" >&6; }
10010 else
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10013 fi
10014 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10016 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10017 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10021 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10022 acl_cv_prog_gnu_ld=yes
10023 else
10024 acl_cv_prog_gnu_ld=no
10025 fi
10026 fi
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10028 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10029 with_gnu_ld=$acl_cv_prog_gnu_ld
10030
10031
10032
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10034 $as_echo_n "checking for shared library run path origin... " >&6; }
10035 if test "${acl_cv_rpath+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038
10039 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10040 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10041 . ./conftest.sh
10042 rm -f ./conftest.sh
10043 acl_cv_rpath=done
10044
10045 fi
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10047 $as_echo "$acl_cv_rpath" >&6; }
10048 wl="$acl_cv_wl"
10049 libext="$acl_cv_libext"
10050 shlibext="$acl_cv_shlibext"
10051 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10052 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10053 hardcode_direct="$acl_cv_hardcode_direct"
10054 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10055 # Check whether --enable-rpath was given.
10056 if test "${enable_rpath+set}" = set; then :
10057 enableval=$enable_rpath; :
10058 else
10059 enable_rpath=yes
10060 fi
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071 use_additional=yes
10072
10073 acl_save_prefix="$prefix"
10074 prefix="$acl_final_prefix"
10075 acl_save_exec_prefix="$exec_prefix"
10076 exec_prefix="$acl_final_exec_prefix"
10077
10078 eval additional_includedir=\"$includedir\"
10079 eval additional_libdir=\"$libdir\"
10080
10081 exec_prefix="$acl_save_exec_prefix"
10082 prefix="$acl_save_prefix"
10083
10084
10085 # Check whether --with-libexpat-prefix was given.
10086 if test "${with_libexpat_prefix+set}" = set; then :
10087 withval=$with_libexpat_prefix;
10088 if test "X$withval" = "Xno"; then
10089 use_additional=no
10090 else
10091 if test "X$withval" = "X"; then
10092
10093 acl_save_prefix="$prefix"
10094 prefix="$acl_final_prefix"
10095 acl_save_exec_prefix="$exec_prefix"
10096 exec_prefix="$acl_final_exec_prefix"
10097
10098 eval additional_includedir=\"$includedir\"
10099 eval additional_libdir=\"$libdir\"
10100
10101 exec_prefix="$acl_save_exec_prefix"
10102 prefix="$acl_save_prefix"
10103
10104 else
10105 additional_includedir="$withval/include"
10106 additional_libdir="$withval/lib"
10107 fi
10108 fi
10109
10110 fi
10111
10112 LIBEXPAT=
10113 LTLIBEXPAT=
10114 INCEXPAT=
10115 rpathdirs=
10116 ltrpathdirs=
10117 names_already_handled=
10118 names_next_round='expat '
10119 while test -n "$names_next_round"; do
10120 names_this_round="$names_next_round"
10121 names_next_round=
10122 for name in $names_this_round; do
10123 already_handled=
10124 for n in $names_already_handled; do
10125 if test "$n" = "$name"; then
10126 already_handled=yes
10127 break
10128 fi
10129 done
10130 if test -z "$already_handled"; then
10131 names_already_handled="$names_already_handled $name"
10132 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10133 eval value=\"\$HAVE_LIB$uppername\"
10134 if test -n "$value"; then
10135 if test "$value" = yes; then
10136 eval value=\"\$LIB$uppername\"
10137 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10138 eval value=\"\$LTLIB$uppername\"
10139 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10140 else
10141 :
10142 fi
10143 else
10144 found_dir=
10145 found_la=
10146 found_so=
10147 found_a=
10148 if test $use_additional = yes; then
10149 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10150 found_dir="$additional_libdir"
10151 found_so="$additional_libdir/lib$name.$shlibext"
10152 if test -f "$additional_libdir/lib$name.la"; then
10153 found_la="$additional_libdir/lib$name.la"
10154 fi
10155 else
10156 if test -f "$additional_libdir/lib$name.$libext"; then
10157 found_dir="$additional_libdir"
10158 found_a="$additional_libdir/lib$name.$libext"
10159 if test -f "$additional_libdir/lib$name.la"; then
10160 found_la="$additional_libdir/lib$name.la"
10161 fi
10162 fi
10163 fi
10164 fi
10165 if test "X$found_dir" = "X"; then
10166 for x in $LDFLAGS $LTLIBEXPAT; do
10167
10168 acl_save_prefix="$prefix"
10169 prefix="$acl_final_prefix"
10170 acl_save_exec_prefix="$exec_prefix"
10171 exec_prefix="$acl_final_exec_prefix"
10172 eval x=\"$x\"
10173 exec_prefix="$acl_save_exec_prefix"
10174 prefix="$acl_save_prefix"
10175
10176 case "$x" in
10177 -L*)
10178 dir=`echo "X$x" | sed -e 's/^X-L//'`
10179 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10180 found_dir="$dir"
10181 found_so="$dir/lib$name.$shlibext"
10182 if test -f "$dir/lib$name.la"; then
10183 found_la="$dir/lib$name.la"
10184 fi
10185 else
10186 if test -f "$dir/lib$name.$libext"; then
10187 found_dir="$dir"
10188 found_a="$dir/lib$name.$libext"
10189 if test -f "$dir/lib$name.la"; then
10190 found_la="$dir/lib$name.la"
10191 fi
10192 fi
10193 fi
10194 ;;
10195 esac
10196 if test "X$found_dir" != "X"; then
10197 break
10198 fi
10199 done
10200 fi
10201 if test "X$found_dir" != "X"; then
10202 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10203 if test "X$found_so" != "X"; then
10204 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10205 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10206 else
10207 haveit=
10208 for x in $ltrpathdirs; do
10209 if test "X$x" = "X$found_dir"; then
10210 haveit=yes
10211 break
10212 fi
10213 done
10214 if test -z "$haveit"; then
10215 ltrpathdirs="$ltrpathdirs $found_dir"
10216 fi
10217 if test "$hardcode_direct" = yes; then
10218 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10219 else
10220 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10221 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10222 haveit=
10223 for x in $rpathdirs; do
10224 if test "X$x" = "X$found_dir"; then
10225 haveit=yes
10226 break
10227 fi
10228 done
10229 if test -z "$haveit"; then
10230 rpathdirs="$rpathdirs $found_dir"
10231 fi
10232 else
10233 haveit=
10234 for x in $LDFLAGS $LIBEXPAT; do
10235
10236 acl_save_prefix="$prefix"
10237 prefix="$acl_final_prefix"
10238 acl_save_exec_prefix="$exec_prefix"
10239 exec_prefix="$acl_final_exec_prefix"
10240 eval x=\"$x\"
10241 exec_prefix="$acl_save_exec_prefix"
10242 prefix="$acl_save_prefix"
10243
10244 if test "X$x" = "X-L$found_dir"; then
10245 haveit=yes
10246 break
10247 fi
10248 done
10249 if test -z "$haveit"; then
10250 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10251 fi
10252 if test "$hardcode_minus_L" != no; then
10253 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10254 else
10255 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10256 fi
10257 fi
10258 fi
10259 fi
10260 else
10261 if test "X$found_a" != "X"; then
10262 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10263 else
10264 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10265 fi
10266 fi
10267 additional_includedir=
10268 case "$found_dir" in
10269 */lib | */lib/)
10270 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10271 additional_includedir="$basedir/include"
10272 ;;
10273 esac
10274 if test "X$additional_includedir" != "X"; then
10275 if test "X$additional_includedir" != "X/usr/include"; then
10276 haveit=
10277 if test "X$additional_includedir" = "X/usr/local/include"; then
10278 if test -n "$GCC"; then
10279 case $host_os in
10280 linux*) haveit=yes;;
10281 esac
10282 fi
10283 fi
10284 if test -z "$haveit"; then
10285 for x in $CPPFLAGS $INCEXPAT; do
10286
10287 acl_save_prefix="$prefix"
10288 prefix="$acl_final_prefix"
10289 acl_save_exec_prefix="$exec_prefix"
10290 exec_prefix="$acl_final_exec_prefix"
10291 eval x=\"$x\"
10292 exec_prefix="$acl_save_exec_prefix"
10293 prefix="$acl_save_prefix"
10294
10295 if test "X$x" = "X-I$additional_includedir"; then
10296 haveit=yes
10297 break
10298 fi
10299 done
10300 if test -z "$haveit"; then
10301 if test -d "$additional_includedir"; then
10302 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10303 fi
10304 fi
10305 fi
10306 fi
10307 fi
10308 if test -n "$found_la"; then
10309 save_libdir="$libdir"
10310 case "$found_la" in
10311 */* | *\\*) . "$found_la" ;;
10312 *) . "./$found_la" ;;
10313 esac
10314 libdir="$save_libdir"
10315 for dep in $dependency_libs; do
10316 case "$dep" in
10317 -L*)
10318 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10319 if test "X$additional_libdir" != "X/usr/lib"; then
10320 haveit=
10321 if test "X$additional_libdir" = "X/usr/local/lib"; then
10322 if test -n "$GCC"; then
10323 case $host_os in
10324 linux*) haveit=yes;;
10325 esac
10326 fi
10327 fi
10328 if test -z "$haveit"; then
10329 haveit=
10330 for x in $LDFLAGS $LIBEXPAT; do
10331
10332 acl_save_prefix="$prefix"
10333 prefix="$acl_final_prefix"
10334 acl_save_exec_prefix="$exec_prefix"
10335 exec_prefix="$acl_final_exec_prefix"
10336 eval x=\"$x\"
10337 exec_prefix="$acl_save_exec_prefix"
10338 prefix="$acl_save_prefix"
10339
10340 if test "X$x" = "X-L$additional_libdir"; then
10341 haveit=yes
10342 break
10343 fi
10344 done
10345 if test -z "$haveit"; then
10346 if test -d "$additional_libdir"; then
10347 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10348 fi
10349 fi
10350 haveit=
10351 for x in $LDFLAGS $LTLIBEXPAT; do
10352
10353 acl_save_prefix="$prefix"
10354 prefix="$acl_final_prefix"
10355 acl_save_exec_prefix="$exec_prefix"
10356 exec_prefix="$acl_final_exec_prefix"
10357 eval x=\"$x\"
10358 exec_prefix="$acl_save_exec_prefix"
10359 prefix="$acl_save_prefix"
10360
10361 if test "X$x" = "X-L$additional_libdir"; then
10362 haveit=yes
10363 break
10364 fi
10365 done
10366 if test -z "$haveit"; then
10367 if test -d "$additional_libdir"; then
10368 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10369 fi
10370 fi
10371 fi
10372 fi
10373 ;;
10374 -R*)
10375 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10376 if test "$enable_rpath" != no; then
10377 haveit=
10378 for x in $rpathdirs; do
10379 if test "X$x" = "X$dir"; then
10380 haveit=yes
10381 break
10382 fi
10383 done
10384 if test -z "$haveit"; then
10385 rpathdirs="$rpathdirs $dir"
10386 fi
10387 haveit=
10388 for x in $ltrpathdirs; do
10389 if test "X$x" = "X$dir"; then
10390 haveit=yes
10391 break
10392 fi
10393 done
10394 if test -z "$haveit"; then
10395 ltrpathdirs="$ltrpathdirs $dir"
10396 fi
10397 fi
10398 ;;
10399 -l*)
10400 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10401 ;;
10402 *.la)
10403 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10404 ;;
10405 *)
10406 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10407 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10408 ;;
10409 esac
10410 done
10411 fi
10412 else
10413 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10414 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10415 fi
10416 fi
10417 fi
10418 done
10419 done
10420 if test "X$rpathdirs" != "X"; then
10421 if test -n "$hardcode_libdir_separator"; then
10422 alldirs=
10423 for found_dir in $rpathdirs; do
10424 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10425 done
10426 acl_save_libdir="$libdir"
10427 libdir="$alldirs"
10428 eval flag=\"$hardcode_libdir_flag_spec\"
10429 libdir="$acl_save_libdir"
10430 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10431 else
10432 for found_dir in $rpathdirs; do
10433 acl_save_libdir="$libdir"
10434 libdir="$found_dir"
10435 eval flag=\"$hardcode_libdir_flag_spec\"
10436 libdir="$acl_save_libdir"
10437 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10438 done
10439 fi
10440 fi
10441 if test "X$ltrpathdirs" != "X"; then
10442 for found_dir in $ltrpathdirs; do
10443 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10444 done
10445 fi
10446
10447
10448 ac_save_CPPFLAGS="$CPPFLAGS"
10449
10450 for element in $INCEXPAT; do
10451 haveit=
10452 for x in $CPPFLAGS; do
10453
10454 acl_save_prefix="$prefix"
10455 prefix="$acl_final_prefix"
10456 acl_save_exec_prefix="$exec_prefix"
10457 exec_prefix="$acl_final_exec_prefix"
10458 eval x=\"$x\"
10459 exec_prefix="$acl_save_exec_prefix"
10460 prefix="$acl_save_prefix"
10461
10462 if test "X$x" = "X$element"; then
10463 haveit=yes
10464 break
10465 fi
10466 done
10467 if test -z "$haveit"; then
10468 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10469 fi
10470 done
10471
10472
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10474 $as_echo_n "checking for libexpat... " >&6; }
10475 if test "${ac_cv_libexpat+set}" = set; then :
10476 $as_echo_n "(cached) " >&6
10477 else
10478
10479 ac_save_LIBS="$LIBS"
10480 LIBS="$LIBS $LIBEXPAT"
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483 #include "expat.h"
10484 int
10485 main ()
10486 {
10487 XML_Parser p = XML_ParserCreate (0);
10488 ;
10489 return 0;
10490 }
10491 _ACEOF
10492 if ac_fn_c_try_link "$LINENO"; then :
10493 ac_cv_libexpat=yes
10494 else
10495 ac_cv_libexpat=no
10496 fi
10497 rm -f core conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 LIBS="$ac_save_LIBS"
10500
10501 fi
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10503 $as_echo "$ac_cv_libexpat" >&6; }
10504 if test "$ac_cv_libexpat" = yes; then
10505 HAVE_LIBEXPAT=yes
10506
10507 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10508
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10510 $as_echo_n "checking how to link with libexpat... " >&6; }
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10512 $as_echo "$LIBEXPAT" >&6; }
10513 else
10514 HAVE_LIBEXPAT=no
10515 CPPFLAGS="$ac_save_CPPFLAGS"
10516 LIBEXPAT=
10517 LTLIBEXPAT=
10518 fi
10519
10520
10521
10522
10523
10524
10525 if test "$HAVE_LIBEXPAT" != yes; then
10526 if test "$with_expat" = yes; then
10527 as_fn_error "expat is missing or unusable" "$LINENO" 5
10528 else
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10530 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10531 fi
10532 else
10533 save_LIBS=$LIBS
10534 LIBS="$LIBS $LIBEXPAT"
10535 for ac_func in XML_StopParser
10536 do :
10537 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10538 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10539 cat >>confdefs.h <<_ACEOF
10540 #define HAVE_XML_STOPPARSER 1
10541 _ACEOF
10542
10543 fi
10544 done
10545
10546 LIBS=$save_LIBS
10547 fi
10548 fi
10549
10550
10551
10552
10553
10554
10555 # Check whether --with-python was given.
10556 if test "${with_python+set}" = set; then :
10557 withval=$with_python;
10558 else
10559 with_python=auto
10560 fi
10561
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10563 $as_echo_n "checking whether to use python... " >&6; }
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10565 $as_echo "$with_python" >&6; }
10566
10567 if test "${with_python}" = no; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10569 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10570 have_libpython=no
10571 else
10572 case "${with_python}" in
10573 /*)
10574 if test -d ${with_python}; then
10575 # Assume the python binary is ${with_python}/bin/python.
10576 python_prog="${with_python}/bin/python"
10577 python_prefix=
10578 # If python does not exit ${with_python}/bin, then try in
10579 # ${with_python}. On Windows/MinGW, this is where the Python
10580 # executable is.
10581 if test ! -x "${python_prog}"; then
10582 python_prog="${with_python}/python"
10583 python_prefix=
10584 fi
10585 if test ! -x "${python_prog}"; then
10586 # Fall back to gdb 7.0/7.1 behaviour.
10587 python_prog=missing
10588 python_prefix=${with_python}
10589 fi
10590 elif test -x "${with_python}"; then
10591 # While we can't run python compiled for $host (unless host == build),
10592 # the user could write a script that provides the needed information,
10593 # so we support that.
10594 python_prog=${with_python}
10595 python_prefix=
10596 else
10597 as_fn_error "invalid value for --with-python" "$LINENO" 5
10598 fi
10599 ;;
10600 */*)
10601 # Disallow --with-python=foo/bar.
10602 as_fn_error "invalid value for --with-python" "$LINENO" 5
10603 ;;
10604 *)
10605 # The user has either specified auto, yes, or the name of the python
10606 # program assumed to be in $PATH.
10607 python_prefix=
10608 case "${with_python}" in
10609 yes | auto)
10610 if test ${build} = ${host}; then
10611 # Extract the first word of "python", so it can be a program name with args.
10612 set dummy python; ac_word=$2
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10614 $as_echo_n "checking for $ac_word... " >&6; }
10615 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 case $python_prog_path in
10619 [\\/]* | ?:[\\/]*)
10620 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10621 ;;
10622 *)
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH
10625 do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10630 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634 done
10635 done
10636 IFS=$as_save_IFS
10637
10638 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10639 ;;
10640 esac
10641 fi
10642 python_prog_path=$ac_cv_path_python_prog_path
10643 if test -n "$python_prog_path"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10645 $as_echo "$python_prog_path" >&6; }
10646 else
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
10649 fi
10650
10651
10652 if test "${python_prog_path}" = missing; then
10653 python_prog=missing
10654 else
10655 python_prog=${python_prog_path}
10656 fi
10657 else
10658 # Not much we can do except assume the cross-compiler will find the
10659 # right files.
10660 python_prog=missing
10661 fi
10662 ;;
10663 *)
10664 # While we can't run python compiled for $host (unless host == build),
10665 # the user could write a script that provides the needed information,
10666 # so we support that.
10667 python_prog="${with_python}"
10668 # Extract the first word of "${python_prog}", so it can be a program name with args.
10669 set dummy ${python_prog}; ac_word=$2
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10671 $as_echo_n "checking for $ac_word... " >&6; }
10672 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10673 $as_echo_n "(cached) " >&6
10674 else
10675 case $python_prog_path in
10676 [\\/]* | ?:[\\/]*)
10677 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10678 ;;
10679 *)
10680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681 for as_dir in $PATH
10682 do
10683 IFS=$as_save_IFS
10684 test -z "$as_dir" && as_dir=.
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10687 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10689 break 2
10690 fi
10691 done
10692 done
10693 IFS=$as_save_IFS
10694
10695 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10696 ;;
10697 esac
10698 fi
10699 python_prog_path=$ac_cv_path_python_prog_path
10700 if test -n "$python_prog_path"; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10702 $as_echo "$python_prog_path" >&6; }
10703 else
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; }
10706 fi
10707
10708
10709 if test "${python_prog_path}" = missing; then
10710 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10711 fi
10712 ;;
10713 esac
10714 esac
10715
10716 if test "${python_prog}" != missing; then
10717 # We have a python program to use, but it may be too old.
10718 # Don't flag an error for --with-python=auto (the default).
10719 have_python_config=yes
10720 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10721 if test $? != 0; then
10722 have_python_config=failed
10723 if test "${with_python}" != auto; then
10724 as_fn_error "failure running python-config --includes" "$LINENO" 5
10725 fi
10726 fi
10727 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10728 if test $? != 0; then
10729 have_python_config=failed
10730 if test "${with_python}" != auto; then
10731 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10732 fi
10733 fi
10734 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10735 if test $? != 0; then
10736 have_python_config=failed
10737 if test "${with_python}" != auto; then
10738 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10739 fi
10740 fi
10741 else
10742 # We do not have a python executable we can use to determine where
10743 # to find the Python headers and libs. We cannot guess the include
10744 # path from the python_prefix either, because that include path
10745 # depends on the Python version. So, there is nothing much we can
10746 # do except assume that the compiler will be able to find those files.
10747 python_includes=
10748 python_libs=
10749 have_python_config=no
10750 fi
10751
10752 # If we have python-config, only try the configuration it provides.
10753 # Otherwise fallback on the old way of trying different versions of
10754 # python in turn.
10755
10756 have_libpython=no
10757 if test "${have_python_config}" = yes; then
10758 # Determine the Python version by extracting "-lpython<version>"
10759 # part of the python_libs. <version> is usually X.Y with X and Y
10760 # being decimal numbers, but can also be XY (seen on Windows).
10761 #
10762 # The extraction is performed using sed with a regular expression.
10763 # Initially, the regexp used was using the '?' quantifier to make
10764 # the dot in the version number optional. Unfortunately, this
10765 # does not work with non-GNU versions of sed because, because of
10766 # what looks like a limitation (the '?' quantifier does not work
10767 # with back-references). We work around this limitation by using
10768 # the '*' quantifier instead. It means that, in theory, we might
10769 # match unexpected version strings such as "-lpython2..7", but
10770 # this seems unlikely in practice. And even if that happens,
10771 # an error will be triggered later on, when checking that version
10772 # number.
10773 python_version=`echo " ${python_libs} " \
10774 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10775 case "${python_version}" in
10776 python*)
10777
10778 version=${python_version}
10779
10780 new_CPPFLAGS=${python_includes}
10781 new_LIBS=${python_libs}
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10783 $as_echo_n "checking for ${version}... " >&6; }
10784 save_CPPFLAGS=$CPPFLAGS
10785 save_LIBS=$LIBS
10786 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10787 LIBS="$LIBS $new_LIBS"
10788 found_usable_python=no
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791 #include "Python.h"
10792 int
10793 main ()
10794 {
10795 Py_Initialize ();
10796 ;
10797 return 0;
10798 }
10799 _ACEOF
10800 if ac_fn_c_try_link "$LINENO"; then :
10801 have_libpython=${version}
10802 found_usable_python=yes
10803 PYTHON_CPPFLAGS=$new_CPPFLAGS
10804 PYTHON_LIBS=$new_LIBS
10805 fi
10806 rm -f core conftest.err conftest.$ac_objext \
10807 conftest$ac_exeext conftest.$ac_ext
10808 CPPFLAGS=$save_CPPFLAGS
10809 LIBS=$save_LIBS
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10811 $as_echo "${found_usable_python}" >&6; }
10812
10813 ;;
10814 *)
10815 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
10816 ;;
10817 esac
10818 elif test "${have_python_config}" != failed; then
10819 if test "${have_libpython}" = no; then
10820
10821 version=python2.7
10822
10823 new_CPPFLAGS=${python_includes}
10824 new_LIBS="${python_libs} -lpython2.7"
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10826 $as_echo_n "checking for ${version}... " >&6; }
10827 save_CPPFLAGS=$CPPFLAGS
10828 save_LIBS=$LIBS
10829 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10830 LIBS="$LIBS $new_LIBS"
10831 found_usable_python=no
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834 #include "Python.h"
10835 int
10836 main ()
10837 {
10838 Py_Initialize ();
10839 ;
10840 return 0;
10841 }
10842 _ACEOF
10843 if ac_fn_c_try_link "$LINENO"; then :
10844 have_libpython=${version}
10845 found_usable_python=yes
10846 PYTHON_CPPFLAGS=$new_CPPFLAGS
10847 PYTHON_LIBS=$new_LIBS
10848 fi
10849 rm -f core conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851 CPPFLAGS=$save_CPPFLAGS
10852 LIBS=$save_LIBS
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10854 $as_echo "${found_usable_python}" >&6; }
10855
10856 fi
10857 if test "${have_libpython}" = no; then
10858
10859 version=python2.6
10860
10861 new_CPPFLAGS=${python_includes}
10862 new_LIBS="${python_libs} -lpython2.6"
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10864 $as_echo_n "checking for ${version}... " >&6; }
10865 save_CPPFLAGS=$CPPFLAGS
10866 save_LIBS=$LIBS
10867 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10868 LIBS="$LIBS $new_LIBS"
10869 found_usable_python=no
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872 #include "Python.h"
10873 int
10874 main ()
10875 {
10876 Py_Initialize ();
10877 ;
10878 return 0;
10879 }
10880 _ACEOF
10881 if ac_fn_c_try_link "$LINENO"; then :
10882 have_libpython=${version}
10883 found_usable_python=yes
10884 PYTHON_CPPFLAGS=$new_CPPFLAGS
10885 PYTHON_LIBS=$new_LIBS
10886 fi
10887 rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
10889 CPPFLAGS=$save_CPPFLAGS
10890 LIBS=$save_LIBS
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10892 $as_echo "${found_usable_python}" >&6; }
10893
10894 fi
10895 if test ${have_libpython} = no; then
10896
10897 version=python2.5
10898
10899 new_CPPFLAGS=${python_includes}
10900 new_LIBS="${python_libs} -lpython2.5"
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10902 $as_echo_n "checking for ${version}... " >&6; }
10903 save_CPPFLAGS=$CPPFLAGS
10904 save_LIBS=$LIBS
10905 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10906 LIBS="$LIBS $new_LIBS"
10907 found_usable_python=no
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10910 #include "Python.h"
10911 int
10912 main ()
10913 {
10914 Py_Initialize ();
10915 ;
10916 return 0;
10917 }
10918 _ACEOF
10919 if ac_fn_c_try_link "$LINENO"; then :
10920 have_libpython=${version}
10921 found_usable_python=yes
10922 PYTHON_CPPFLAGS=$new_CPPFLAGS
10923 PYTHON_LIBS=$new_LIBS
10924 fi
10925 rm -f core conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
10927 CPPFLAGS=$save_CPPFLAGS
10928 LIBS=$save_LIBS
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10930 $as_echo "${found_usable_python}" >&6; }
10931
10932 fi
10933 if test ${have_libpython} = no; then
10934
10935 version=python2.4
10936
10937 new_CPPFLAGS=${python_includes}
10938 new_LIBS="${python_libs} -lpython2.4"
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10940 $as_echo_n "checking for ${version}... " >&6; }
10941 save_CPPFLAGS=$CPPFLAGS
10942 save_LIBS=$LIBS
10943 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10944 LIBS="$LIBS $new_LIBS"
10945 found_usable_python=no
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #include "Python.h"
10949 int
10950 main ()
10951 {
10952 Py_Initialize ();
10953 ;
10954 return 0;
10955 }
10956 _ACEOF
10957 if ac_fn_c_try_link "$LINENO"; then :
10958 have_libpython=${version}
10959 found_usable_python=yes
10960 PYTHON_CPPFLAGS=$new_CPPFLAGS
10961 PYTHON_LIBS=$new_LIBS
10962 fi
10963 rm -f core conftest.err conftest.$ac_objext \
10964 conftest$ac_exeext conftest.$ac_ext
10965 CPPFLAGS=$save_CPPFLAGS
10966 LIBS=$save_LIBS
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10968 $as_echo "${found_usable_python}" >&6; }
10969
10970 fi
10971 fi
10972 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
10973
10974 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10975
10976 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
10977
10978 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10979
10980 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
10981
10982 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10983
10984 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
10985
10986 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10987
10988 fi
10989
10990 if test "${have_libpython}" = no; then
10991 case "${with_python}" in
10992 yes)
10993 as_fn_error "python is missing or unusable" "$LINENO" 5
10994 ;;
10995 auto)
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10997 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10998 ;;
10999 *)
11000 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
11001 ;;
11002 esac
11003 else
11004 if test -n "${python_prefix}"; then
11005
11006 cat >>confdefs.h <<_ACEOF
11007 #define WITH_PYTHON_PATH "${python_prefix}"
11008 _ACEOF
11009
11010
11011 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
11012 if test "x$prefix" = xNONE; then
11013 test_prefix=/usr/local
11014 else
11015 test_prefix=$prefix
11016 fi
11017 else
11018 test_prefix=$exec_prefix
11019 fi
11020 value=0
11021 case ${python_prefix} in
11022 "${test_prefix}"|"${test_prefix}/"*|\
11023 '${exec_prefix}'|'${exec_prefix}/'*)
11024 value=1
11025 ;;
11026 esac
11027
11028 cat >>confdefs.h <<_ACEOF
11029 #define PYTHON_PATH_RELOCATABLE $value
11030 _ACEOF
11031
11032
11033 fi
11034 fi
11035 fi
11036
11037 if test "${have_libpython}" != no; then
11038
11039 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11040
11041 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11042 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11043 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11044 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
11045 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11046
11047 # Flags needed to compile Python code (taken from python-config --cflags).
11048 # We cannot call python-config directly because it will output whatever was
11049 # used when compiling the Python interpreter itself, including flags which
11050 # would make the python-related objects be compiled differently from the
11051 # rest of GDB (e.g., -O2 and -fPIC).
11052 if test "${GCC}" = yes; then
11053 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11054 fi
11055
11056 if test "x${tentative_python_cflags}" != x; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11058 $as_echo_n "checking compiler flags for python code... " >&6; }
11059 for flag in ${tentative_python_cflags}; do
11060 # Check that the compiler accepts it
11061 saved_CFLAGS="$CFLAGS"
11062 CFLAGS="$CFLAGS $flag"
11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h. */
11065
11066 int
11067 main ()
11068 {
11069
11070 ;
11071 return 0;
11072 }
11073 _ACEOF
11074 if ac_fn_c_try_compile "$LINENO"; then :
11075 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11076 fi
11077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11078 CFLAGS="$saved_CFLAGS"
11079 done
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11081 $as_echo "${PYTHON_CFLAGS}" >&6; }
11082 fi
11083
11084 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
11085 # #if _SGIAPI
11086 # #define siginfo __siginfo
11087 # #endif
11088 # The problem is that including Python causes some XOPEN macros to be
11089 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
11090 # to false. So, we work around this issue by defining siginfo ourself
11091 # though the command-line.
11092 case "$gdb_host" in
11093 irix*) if test "${GCC}" = yes; then
11094 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
11095 fi
11096 ;;
11097 esac
11098 else
11099 # Even if Python support is not compiled in, we need to have these files
11100 # included.
11101 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
11102 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
11103 python/py-prettyprint.c python/py-auto-load.c"
11104 fi
11105
11106
11107
11108
11109 # ------------------------- #
11110 # Checks for header files. #
11111 # ------------------------- #
11112
11113 ac_header_dirent=no
11114 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11115 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11117 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11119 $as_echo_n "(cached) " >&6
11120 else
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11123 #include <sys/types.h>
11124 #include <$ac_hdr>
11125
11126 int
11127 main ()
11128 {
11129 if ((DIR *) 0)
11130 return 0;
11131 ;
11132 return 0;
11133 }
11134 _ACEOF
11135 if ac_fn_c_try_compile "$LINENO"; then :
11136 eval "$as_ac_Header=yes"
11137 else
11138 eval "$as_ac_Header=no"
11139 fi
11140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11141 fi
11142 eval ac_res=\$$as_ac_Header
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11144 $as_echo "$ac_res" >&6; }
11145 eval as_val=\$$as_ac_Header
11146 if test "x$as_val" = x""yes; then :
11147 cat >>confdefs.h <<_ACEOF
11148 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11149 _ACEOF
11150
11151 ac_header_dirent=$ac_hdr; break
11152 fi
11153
11154 done
11155 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11156 if test $ac_header_dirent = dirent.h; then
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11158 $as_echo_n "checking for library containing opendir... " >&6; }
11159 if test "${ac_cv_search_opendir+set}" = set; then :
11160 $as_echo_n "(cached) " >&6
11161 else
11162 ac_func_search_save_LIBS=$LIBS
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11165
11166 /* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11169 #ifdef __cplusplus
11170 extern "C"
11171 #endif
11172 char opendir ();
11173 int
11174 main ()
11175 {
11176 return opendir ();
11177 ;
11178 return 0;
11179 }
11180 _ACEOF
11181 for ac_lib in '' dir; do
11182 if test -z "$ac_lib"; then
11183 ac_res="none required"
11184 else
11185 ac_res=-l$ac_lib
11186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11187 fi
11188 if ac_fn_c_try_link "$LINENO"; then :
11189 ac_cv_search_opendir=$ac_res
11190 fi
11191 rm -f core conftest.err conftest.$ac_objext \
11192 conftest$ac_exeext
11193 if test "${ac_cv_search_opendir+set}" = set; then :
11194 break
11195 fi
11196 done
11197 if test "${ac_cv_search_opendir+set}" = set; then :
11198
11199 else
11200 ac_cv_search_opendir=no
11201 fi
11202 rm conftest.$ac_ext
11203 LIBS=$ac_func_search_save_LIBS
11204 fi
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11206 $as_echo "$ac_cv_search_opendir" >&6; }
11207 ac_res=$ac_cv_search_opendir
11208 if test "$ac_res" != no; then :
11209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11210
11211 fi
11212
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11215 $as_echo_n "checking for library containing opendir... " >&6; }
11216 if test "${ac_cv_search_opendir+set}" = set; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 ac_func_search_save_LIBS=$LIBS
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11222
11223 /* Override any GCC internal prototype to avoid an error.
11224 Use char because int might match the return type of a GCC
11225 builtin and then its argument prototype would still apply. */
11226 #ifdef __cplusplus
11227 extern "C"
11228 #endif
11229 char opendir ();
11230 int
11231 main ()
11232 {
11233 return opendir ();
11234 ;
11235 return 0;
11236 }
11237 _ACEOF
11238 for ac_lib in '' x; do
11239 if test -z "$ac_lib"; then
11240 ac_res="none required"
11241 else
11242 ac_res=-l$ac_lib
11243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11244 fi
11245 if ac_fn_c_try_link "$LINENO"; then :
11246 ac_cv_search_opendir=$ac_res
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext
11250 if test "${ac_cv_search_opendir+set}" = set; then :
11251 break
11252 fi
11253 done
11254 if test "${ac_cv_search_opendir+set}" = set; then :
11255
11256 else
11257 ac_cv_search_opendir=no
11258 fi
11259 rm conftest.$ac_ext
11260 LIBS=$ac_func_search_save_LIBS
11261 fi
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11263 $as_echo "$ac_cv_search_opendir" >&6; }
11264 ac_res=$ac_cv_search_opendir
11265 if test "$ac_res" != no; then :
11266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11267
11268 fi
11269
11270 fi
11271
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11273 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11274 if test "${ac_cv_header_stat_broken+set}" = set; then :
11275 $as_echo_n "(cached) " >&6
11276 else
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11279 #include <sys/types.h>
11280 #include <sys/stat.h>
11281
11282 #if defined S_ISBLK && defined S_IFDIR
11283 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11284 #endif
11285
11286 #if defined S_ISBLK && defined S_IFCHR
11287 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11288 #endif
11289
11290 #if defined S_ISLNK && defined S_IFREG
11291 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11292 #endif
11293
11294 #if defined S_ISSOCK && defined S_IFREG
11295 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11296 #endif
11297
11298 _ACEOF
11299 if ac_fn_c_try_compile "$LINENO"; then :
11300 ac_cv_header_stat_broken=no
11301 else
11302 ac_cv_header_stat_broken=yes
11303 fi
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11305 fi
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11307 $as_echo "$ac_cv_header_stat_broken" >&6; }
11308 if test $ac_cv_header_stat_broken = yes; then
11309
11310 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11311
11312 fi
11313
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11315 $as_echo_n "checking for ANSI C header files... " >&6; }
11316 if test "${ac_cv_header_stdc+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11321 #include <stdlib.h>
11322 #include <stdarg.h>
11323 #include <string.h>
11324 #include <float.h>
11325
11326 int
11327 main ()
11328 {
11329
11330 ;
11331 return 0;
11332 }
11333 _ACEOF
11334 if ac_fn_c_try_compile "$LINENO"; then :
11335 ac_cv_header_stdc=yes
11336 else
11337 ac_cv_header_stdc=no
11338 fi
11339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11340
11341 if test $ac_cv_header_stdc = yes; then
11342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345 #include <string.h>
11346
11347 _ACEOF
11348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11349 $EGREP "memchr" >/dev/null 2>&1; then :
11350
11351 else
11352 ac_cv_header_stdc=no
11353 fi
11354 rm -f conftest*
11355
11356 fi
11357
11358 if test $ac_cv_header_stdc = yes; then
11359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11362 #include <stdlib.h>
11363
11364 _ACEOF
11365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11366 $EGREP "free" >/dev/null 2>&1; then :
11367
11368 else
11369 ac_cv_header_stdc=no
11370 fi
11371 rm -f conftest*
11372
11373 fi
11374
11375 if test $ac_cv_header_stdc = yes; then
11376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11377 if test "$cross_compiling" = yes; then :
11378 :
11379 else
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382 #include <ctype.h>
11383 #include <stdlib.h>
11384 #if ((' ' & 0x0FF) == 0x020)
11385 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11386 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11387 #else
11388 # define ISLOWER(c) \
11389 (('a' <= (c) && (c) <= 'i') \
11390 || ('j' <= (c) && (c) <= 'r') \
11391 || ('s' <= (c) && (c) <= 'z'))
11392 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11393 #endif
11394
11395 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11396 int
11397 main ()
11398 {
11399 int i;
11400 for (i = 0; i < 256; i++)
11401 if (XOR (islower (i), ISLOWER (i))
11402 || toupper (i) != TOUPPER (i))
11403 return 2;
11404 return 0;
11405 }
11406 _ACEOF
11407 if ac_fn_c_try_run "$LINENO"; then :
11408
11409 else
11410 ac_cv_header_stdc=no
11411 fi
11412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11413 conftest.$ac_objext conftest.beam conftest.$ac_ext
11414 fi
11415
11416 fi
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11419 $as_echo "$ac_cv_header_stdc" >&6; }
11420 if test $ac_cv_header_stdc = yes; then
11421
11422 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11423
11424 fi
11425
11426 # elf_hp.h is for HP/UX 64-bit shared library support.
11427 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11428 # unconditionally, so what's the point in checking these?
11429 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11430 thread_db.h gnu/libc-version.h signal.h stddef.h \
11431 stdlib.h string.h memory.h strings.h sys/fault.h \
11432 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11433 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11434 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11435 sys/types.h sys/wait.h wait.h termios.h termio.h \
11436 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
11437 do :
11438 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11439 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11440 eval as_val=\$$as_ac_Header
11441 if test "x$as_val" = x""yes; then :
11442 cat >>confdefs.h <<_ACEOF
11443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11444 _ACEOF
11445
11446 fi
11447
11448 done
11449
11450 for ac_header in link.h
11451 do :
11452 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11453 # include <sys/types.h>
11454 #endif
11455 #if HAVE_NLIST_H
11456 # include <nlist.h>
11457 #endif
11458
11459 "
11460 if test "x$ac_cv_header_link_h" = x""yes; then :
11461 cat >>confdefs.h <<_ACEOF
11462 #define HAVE_LINK_H 1
11463 _ACEOF
11464
11465 fi
11466
11467 done
11468
11469 for ac_header in sys/proc.h
11470 do :
11471 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11472 # include <sys/param.h>
11473 #endif
11474
11475 "
11476 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11477 cat >>confdefs.h <<_ACEOF
11478 #define HAVE_SYS_PROC_H 1
11479 _ACEOF
11480
11481 fi
11482
11483 done
11484
11485 for ac_header in sys/user.h
11486 do :
11487 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11488 # include <sys/param.h>
11489 #endif
11490
11491 "
11492 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11493 cat >>confdefs.h <<_ACEOF
11494 #define HAVE_SYS_USER_H 1
11495 _ACEOF
11496
11497 fi
11498
11499 done
11500
11501
11502 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11503 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11504 # think that we don't have <curses.h> if we're using GCC.
11505 case $host_os in
11506 solaris2.[789])
11507 if test "$GCC" = yes; then
11508
11509 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11510
11511 fi ;;
11512 esac
11513 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11514 do :
11515 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11516 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11517 eval as_val=\$$as_ac_Header
11518 if test "x$as_val" = x""yes; then :
11519 cat >>confdefs.h <<_ACEOF
11520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11521 _ACEOF
11522
11523 fi
11524
11525 done
11526
11527 for ac_header in term.h
11528 do :
11529 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11530 # include <curses.h>
11531 #endif
11532
11533 "
11534 if test "x$ac_cv_header_term_h" = x""yes; then :
11535 cat >>confdefs.h <<_ACEOF
11536 #define HAVE_TERM_H 1
11537 _ACEOF
11538
11539 fi
11540
11541 done
11542
11543
11544 # ------------------------- #
11545 # Checks for declarations. #
11546 # ------------------------- #
11547
11548 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11549 if test "x$ac_cv_have_decl_free" = x""yes; then :
11550 ac_have_decl=1
11551 else
11552 ac_have_decl=0
11553 fi
11554
11555 cat >>confdefs.h <<_ACEOF
11556 #define HAVE_DECL_FREE $ac_have_decl
11557 _ACEOF
11558 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11559 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11560 ac_have_decl=1
11561 else
11562 ac_have_decl=0
11563 fi
11564
11565 cat >>confdefs.h <<_ACEOF
11566 #define HAVE_DECL_MALLOC $ac_have_decl
11567 _ACEOF
11568 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11569 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11570 ac_have_decl=1
11571 else
11572 ac_have_decl=0
11573 fi
11574
11575 cat >>confdefs.h <<_ACEOF
11576 #define HAVE_DECL_REALLOC $ac_have_decl
11577 _ACEOF
11578 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11579 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11580 ac_have_decl=1
11581 else
11582 ac_have_decl=0
11583 fi
11584
11585 cat >>confdefs.h <<_ACEOF
11586 #define HAVE_DECL_STRERROR $ac_have_decl
11587 _ACEOF
11588 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11589 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11590 ac_have_decl=1
11591 else
11592 ac_have_decl=0
11593 fi
11594
11595 cat >>confdefs.h <<_ACEOF
11596 #define HAVE_DECL_STRSTR $ac_have_decl
11597 _ACEOF
11598 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11599 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11600 ac_have_decl=1
11601 else
11602 ac_have_decl=0
11603 fi
11604
11605 cat >>confdefs.h <<_ACEOF
11606 #define HAVE_DECL_GETOPT $ac_have_decl
11607 _ACEOF
11608 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11609 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11610 ac_have_decl=1
11611 else
11612 ac_have_decl=0
11613 fi
11614
11615 cat >>confdefs.h <<_ACEOF
11616 #define HAVE_DECL_SNPRINTF $ac_have_decl
11617 _ACEOF
11618 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11619 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11620 ac_have_decl=1
11621 else
11622 ac_have_decl=0
11623 fi
11624
11625 cat >>confdefs.h <<_ACEOF
11626 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11627 _ACEOF
11628
11629
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11631 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11632 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h. */
11637 #include <locale.h>
11638 int
11639 main ()
11640 {
11641 return LC_MESSAGES
11642 ;
11643 return 0;
11644 }
11645 _ACEOF
11646 if ac_fn_c_try_link "$LINENO"; then :
11647 am_cv_val_LC_MESSAGES=yes
11648 else
11649 am_cv_val_LC_MESSAGES=no
11650 fi
11651 rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11653 fi
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11655 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11656 if test $am_cv_val_LC_MESSAGES = yes; then
11657
11658 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11659
11660 fi
11661
11662
11663 # ----------------------- #
11664 # Checks for structures. #
11665 # ----------------------- #
11666
11667 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11668 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11669
11670 cat >>confdefs.h <<_ACEOF
11671 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11672 _ACEOF
11673
11674
11675 fi
11676 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11677 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11678
11679 cat >>confdefs.h <<_ACEOF
11680 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11681 _ACEOF
11682
11683
11684 fi
11685
11686
11687 # ------------------ #
11688 # Checks for types. #
11689 # ------------------ #
11690
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11692 $as_echo_n "checking return type of signal handlers... " >&6; }
11693 if test "${ac_cv_type_signal+set}" = set; then :
11694 $as_echo_n "(cached) " >&6
11695 else
11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11698 #include <sys/types.h>
11699 #include <signal.h>
11700
11701 int
11702 main ()
11703 {
11704 return *(signal (0, 0)) (0) == 1;
11705 ;
11706 return 0;
11707 }
11708 _ACEOF
11709 if ac_fn_c_try_compile "$LINENO"; then :
11710 ac_cv_type_signal=int
11711 else
11712 ac_cv_type_signal=void
11713 fi
11714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11715 fi
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11717 $as_echo "$ac_cv_type_signal" >&6; }
11718
11719 cat >>confdefs.h <<_ACEOF
11720 #define RETSIGTYPE $ac_cv_type_signal
11721 _ACEOF
11722
11723
11724 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11725 #include <sys/socket.h>
11726
11727 "
11728 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11729
11730 cat >>confdefs.h <<_ACEOF
11731 #define HAVE_SOCKLEN_T 1
11732 _ACEOF
11733
11734
11735 fi
11736
11737
11738 # ------------------------------------- #
11739 # Checks for compiler characteristics. #
11740 # ------------------------------------- #
11741
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11743 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11744 if test "${ac_cv_c_const+set}" = set; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11749
11750 int
11751 main ()
11752 {
11753 /* FIXME: Include the comments suggested by Paul. */
11754 #ifndef __cplusplus
11755 /* Ultrix mips cc rejects this. */
11756 typedef int charset[2];
11757 const charset cs;
11758 /* SunOS 4.1.1 cc rejects this. */
11759 char const *const *pcpcc;
11760 char **ppc;
11761 /* NEC SVR4.0.2 mips cc rejects this. */
11762 struct point {int x, y;};
11763 static struct point const zero = {0,0};
11764 /* AIX XL C 1.02.0.0 rejects this.
11765 It does not let you subtract one const X* pointer from another in
11766 an arm of an if-expression whose if-part is not a constant
11767 expression */
11768 const char *g = "string";
11769 pcpcc = &g + (g ? g-g : 0);
11770 /* HPUX 7.0 cc rejects these. */
11771 ++pcpcc;
11772 ppc = (char**) pcpcc;
11773 pcpcc = (char const *const *) ppc;
11774 { /* SCO 3.2v4 cc rejects this. */
11775 char *t;
11776 char const *s = 0 ? (char *) 0 : (char const *) 0;
11777
11778 *t++ = 0;
11779 if (s) return 0;
11780 }
11781 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11782 int x[] = {25, 17};
11783 const int *foo = &x[0];
11784 ++foo;
11785 }
11786 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11787 typedef const int *iptr;
11788 iptr p = 0;
11789 ++p;
11790 }
11791 { /* AIX XL C 1.02.0.0 rejects this saying
11792 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11793 struct s { int j; const int *ap[3]; };
11794 struct s *b; b->j = 5;
11795 }
11796 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11797 const int foo = 10;
11798 if (!foo) return 0;
11799 }
11800 return !cs[0] && !zero.x;
11801 #endif
11802
11803 ;
11804 return 0;
11805 }
11806 _ACEOF
11807 if ac_fn_c_try_compile "$LINENO"; then :
11808 ac_cv_c_const=yes
11809 else
11810 ac_cv_c_const=no
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 fi
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11815 $as_echo "$ac_cv_c_const" >&6; }
11816 if test $ac_cv_c_const = no; then
11817
11818 $as_echo "#define const /**/" >>confdefs.h
11819
11820 fi
11821
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11823 $as_echo_n "checking for inline... " >&6; }
11824 if test "${ac_cv_c_inline+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 ac_cv_c_inline=no
11828 for ac_kw in inline __inline__ __inline; do
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831 #ifndef __cplusplus
11832 typedef int foo_t;
11833 static $ac_kw foo_t static_foo () {return 0; }
11834 $ac_kw foo_t foo () {return 0; }
11835 #endif
11836
11837 _ACEOF
11838 if ac_fn_c_try_compile "$LINENO"; then :
11839 ac_cv_c_inline=$ac_kw
11840 fi
11841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11842 test "$ac_cv_c_inline" != no && break
11843 done
11844
11845 fi
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11847 $as_echo "$ac_cv_c_inline" >&6; }
11848
11849 case $ac_cv_c_inline in
11850 inline | yes) ;;
11851 *)
11852 case $ac_cv_c_inline in
11853 no) ac_val=;;
11854 *) ac_val=$ac_cv_c_inline;;
11855 esac
11856 cat >>confdefs.h <<_ACEOF
11857 #ifndef __cplusplus
11858 #define inline $ac_val
11859 #endif
11860 _ACEOF
11861 ;;
11862 esac
11863
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11865 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11866 if test "${ac_cv_c_bigendian+set}" = set; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 ac_cv_c_bigendian=unknown
11870 # See if we're dealing with a universal compiler.
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873 #ifndef __APPLE_CC__
11874 not a universal capable compiler
11875 #endif
11876 typedef int dummy;
11877
11878 _ACEOF
11879 if ac_fn_c_try_compile "$LINENO"; then :
11880
11881 # Check for potential -arch flags. It is not universal unless
11882 # there are at least two -arch flags with different values.
11883 ac_arch=
11884 ac_prev=
11885 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11886 if test -n "$ac_prev"; then
11887 case $ac_word in
11888 i?86 | x86_64 | ppc | ppc64)
11889 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11890 ac_arch=$ac_word
11891 else
11892 ac_cv_c_bigendian=universal
11893 break
11894 fi
11895 ;;
11896 esac
11897 ac_prev=
11898 elif test "x$ac_word" = "x-arch"; then
11899 ac_prev=arch
11900 fi
11901 done
11902 fi
11903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904 if test $ac_cv_c_bigendian = unknown; then
11905 # See if sys/param.h defines the BYTE_ORDER macro.
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908 #include <sys/types.h>
11909 #include <sys/param.h>
11910
11911 int
11912 main ()
11913 {
11914 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11915 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11916 && LITTLE_ENDIAN)
11917 bogus endian macros
11918 #endif
11919
11920 ;
11921 return 0;
11922 }
11923 _ACEOF
11924 if ac_fn_c_try_compile "$LINENO"; then :
11925 # It does; now see whether it defined to BIG_ENDIAN or not.
11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11928 #include <sys/types.h>
11929 #include <sys/param.h>
11930
11931 int
11932 main ()
11933 {
11934 #if BYTE_ORDER != BIG_ENDIAN
11935 not big endian
11936 #endif
11937
11938 ;
11939 return 0;
11940 }
11941 _ACEOF
11942 if ac_fn_c_try_compile "$LINENO"; then :
11943 ac_cv_c_bigendian=yes
11944 else
11945 ac_cv_c_bigendian=no
11946 fi
11947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948 fi
11949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950 fi
11951 if test $ac_cv_c_bigendian = unknown; then
11952 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11955 #include <limits.h>
11956
11957 int
11958 main ()
11959 {
11960 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11961 bogus endian macros
11962 #endif
11963
11964 ;
11965 return 0;
11966 }
11967 _ACEOF
11968 if ac_fn_c_try_compile "$LINENO"; then :
11969 # It does; now see whether it defined to _BIG_ENDIAN or not.
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972 #include <limits.h>
11973
11974 int
11975 main ()
11976 {
11977 #ifndef _BIG_ENDIAN
11978 not big endian
11979 #endif
11980
11981 ;
11982 return 0;
11983 }
11984 _ACEOF
11985 if ac_fn_c_try_compile "$LINENO"; then :
11986 ac_cv_c_bigendian=yes
11987 else
11988 ac_cv_c_bigendian=no
11989 fi
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 fi
11992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11993 fi
11994 if test $ac_cv_c_bigendian = unknown; then
11995 # Compile a test program.
11996 if test "$cross_compiling" = yes; then :
11997 # Try to guess by grepping values from an object file.
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12000 short int ascii_mm[] =
12001 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12002 short int ascii_ii[] =
12003 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12004 int use_ascii (int i) {
12005 return ascii_mm[i] + ascii_ii[i];
12006 }
12007 short int ebcdic_ii[] =
12008 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12009 short int ebcdic_mm[] =
12010 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12011 int use_ebcdic (int i) {
12012 return ebcdic_mm[i] + ebcdic_ii[i];
12013 }
12014 extern int foo;
12015
12016 int
12017 main ()
12018 {
12019 return use_ascii (foo) == use_ebcdic (foo);
12020 ;
12021 return 0;
12022 }
12023 _ACEOF
12024 if ac_fn_c_try_compile "$LINENO"; then :
12025 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12026 ac_cv_c_bigendian=yes
12027 fi
12028 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12029 if test "$ac_cv_c_bigendian" = unknown; then
12030 ac_cv_c_bigendian=no
12031 else
12032 # finding both strings is unlikely to happen, but who knows?
12033 ac_cv_c_bigendian=unknown
12034 fi
12035 fi
12036 fi
12037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 else
12039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12041 $ac_includes_default
12042 int
12043 main ()
12044 {
12045
12046 /* Are we little or big endian? From Harbison&Steele. */
12047 union
12048 {
12049 long int l;
12050 char c[sizeof (long int)];
12051 } u;
12052 u.l = 1;
12053 return u.c[sizeof (long int) - 1] == 1;
12054
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 if ac_fn_c_try_run "$LINENO"; then :
12060 ac_cv_c_bigendian=no
12061 else
12062 ac_cv_c_bigendian=yes
12063 fi
12064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12065 conftest.$ac_objext conftest.beam conftest.$ac_ext
12066 fi
12067
12068 fi
12069 fi
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12071 $as_echo "$ac_cv_c_bigendian" >&6; }
12072 case $ac_cv_c_bigendian in #(
12073 yes)
12074 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12075 ;; #(
12076 no)
12077 ;; #(
12078 universal)
12079
12080 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12081
12082 ;; #(
12083 *)
12084 as_fn_error "unknown endianness
12085 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12086 esac
12087
12088
12089 # ------------------------------ #
12090 # Checks for library functions. #
12091 # ------------------------------ #
12092
12093 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12094 # for constant arguments. Useless!
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12096 $as_echo_n "checking for working alloca.h... " >&6; }
12097 if test "${ac_cv_working_alloca_h+set}" = set; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102 #include <alloca.h>
12103 int
12104 main ()
12105 {
12106 char *p = (char *) alloca (2 * sizeof (int));
12107 if (p) return 0;
12108 ;
12109 return 0;
12110 }
12111 _ACEOF
12112 if ac_fn_c_try_link "$LINENO"; then :
12113 ac_cv_working_alloca_h=yes
12114 else
12115 ac_cv_working_alloca_h=no
12116 fi
12117 rm -f core conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119 fi
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12121 $as_echo "$ac_cv_working_alloca_h" >&6; }
12122 if test $ac_cv_working_alloca_h = yes; then
12123
12124 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12125
12126 fi
12127
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12129 $as_echo_n "checking for alloca... " >&6; }
12130 if test "${ac_cv_func_alloca_works+set}" = set; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135 #ifdef __GNUC__
12136 # define alloca __builtin_alloca
12137 #else
12138 # ifdef _MSC_VER
12139 # include <malloc.h>
12140 # define alloca _alloca
12141 # else
12142 # ifdef HAVE_ALLOCA_H
12143 # include <alloca.h>
12144 # else
12145 # ifdef _AIX
12146 #pragma alloca
12147 # else
12148 # ifndef alloca /* predefined by HP cc +Olibcalls */
12149 char *alloca ();
12150 # endif
12151 # endif
12152 # endif
12153 # endif
12154 #endif
12155
12156 int
12157 main ()
12158 {
12159 char *p = (char *) alloca (1);
12160 if (p) return 0;
12161 ;
12162 return 0;
12163 }
12164 _ACEOF
12165 if ac_fn_c_try_link "$LINENO"; then :
12166 ac_cv_func_alloca_works=yes
12167 else
12168 ac_cv_func_alloca_works=no
12169 fi
12170 rm -f core conftest.err conftest.$ac_objext \
12171 conftest$ac_exeext conftest.$ac_ext
12172 fi
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12174 $as_echo "$ac_cv_func_alloca_works" >&6; }
12175
12176 if test $ac_cv_func_alloca_works = yes; then
12177
12178 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12179
12180 else
12181 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12182 # that cause trouble. Some versions do not even contain alloca or
12183 # contain a buggy version. If you still want to use their alloca,
12184 # use ar to extract alloca.o from them instead of compiling alloca.c.
12185
12186 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12187
12188 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12189
12190
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12192 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12193 if test "${ac_cv_os_cray+set}" = set; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12198 #if defined CRAY && ! defined CRAY2
12199 webecray
12200 #else
12201 wenotbecray
12202 #endif
12203
12204 _ACEOF
12205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12206 $EGREP "webecray" >/dev/null 2>&1; then :
12207 ac_cv_os_cray=yes
12208 else
12209 ac_cv_os_cray=no
12210 fi
12211 rm -f conftest*
12212
12213 fi
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12215 $as_echo "$ac_cv_os_cray" >&6; }
12216 if test $ac_cv_os_cray = yes; then
12217 for ac_func in _getb67 GETB67 getb67; do
12218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12220 eval as_val=\$$as_ac_var
12221 if test "x$as_val" = x""yes; then :
12222
12223 cat >>confdefs.h <<_ACEOF
12224 #define CRAY_STACKSEG_END $ac_func
12225 _ACEOF
12226
12227 break
12228 fi
12229
12230 done
12231 fi
12232
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12234 $as_echo_n "checking stack direction for C alloca... " >&6; }
12235 if test "${ac_cv_c_stack_direction+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 if test "$cross_compiling" = yes; then :
12239 ac_cv_c_stack_direction=0
12240 else
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12243 $ac_includes_default
12244 int
12245 find_stack_direction ()
12246 {
12247 static char *addr = 0;
12248 auto char dummy;
12249 if (addr == 0)
12250 {
12251 addr = &dummy;
12252 return find_stack_direction ();
12253 }
12254 else
12255 return (&dummy > addr) ? 1 : -1;
12256 }
12257
12258 int
12259 main ()
12260 {
12261 return find_stack_direction () < 0;
12262 }
12263 _ACEOF
12264 if ac_fn_c_try_run "$LINENO"; then :
12265 ac_cv_c_stack_direction=1
12266 else
12267 ac_cv_c_stack_direction=-1
12268 fi
12269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12270 conftest.$ac_objext conftest.beam conftest.$ac_ext
12271 fi
12272
12273 fi
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12275 $as_echo "$ac_cv_c_stack_direction" >&6; }
12276 cat >>confdefs.h <<_ACEOF
12277 #define STACK_DIRECTION $ac_cv_c_stack_direction
12278 _ACEOF
12279
12280
12281 fi
12282
12283 for ac_header in stdlib.h unistd.h
12284 do :
12285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12286 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12287 eval as_val=\$$as_ac_Header
12288 if test "x$as_val" = x""yes; then :
12289 cat >>confdefs.h <<_ACEOF
12290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12291 _ACEOF
12292
12293 fi
12294
12295 done
12296
12297 for ac_func in getpagesize
12298 do :
12299 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12300 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12301 cat >>confdefs.h <<_ACEOF
12302 #define HAVE_GETPAGESIZE 1
12303 _ACEOF
12304
12305 fi
12306 done
12307
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12309 $as_echo_n "checking for working mmap... " >&6; }
12310 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12313 if test "$cross_compiling" = yes; then :
12314 ac_cv_func_mmap_fixed_mapped=no
12315 else
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318 $ac_includes_default
12319 /* malloc might have been renamed as rpl_malloc. */
12320 #undef malloc
12321
12322 /* Thanks to Mike Haertel and Jim Avera for this test.
12323 Here is a matrix of mmap possibilities:
12324 mmap private not fixed
12325 mmap private fixed at somewhere currently unmapped
12326 mmap private fixed at somewhere already mapped
12327 mmap shared not fixed
12328 mmap shared fixed at somewhere currently unmapped
12329 mmap shared fixed at somewhere already mapped
12330 For private mappings, we should verify that changes cannot be read()
12331 back from the file, nor mmap's back from the file at a different
12332 address. (There have been systems where private was not correctly
12333 implemented like the infamous i386 svr4.0, and systems where the
12334 VM page cache was not coherent with the file system buffer cache
12335 like early versions of FreeBSD and possibly contemporary NetBSD.)
12336 For shared mappings, we should conversely verify that changes get
12337 propagated back to all the places they're supposed to be.
12338
12339 Grep wants private fixed already mapped.
12340 The main things grep needs to know about mmap are:
12341 * does it exist and is it safe to write into the mmap'd area
12342 * how to use it (BSD variants) */
12343
12344 #include <fcntl.h>
12345 #include <sys/mman.h>
12346
12347 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12348 char *malloc ();
12349 #endif
12350
12351 /* This mess was copied from the GNU getpagesize.h. */
12352 #ifndef HAVE_GETPAGESIZE
12353 /* Assume that all systems that can run configure have sys/param.h. */
12354 # ifndef HAVE_SYS_PARAM_H
12355 # define HAVE_SYS_PARAM_H 1
12356 # endif
12357
12358 # ifdef _SC_PAGESIZE
12359 # define getpagesize() sysconf(_SC_PAGESIZE)
12360 # else /* no _SC_PAGESIZE */
12361 # ifdef HAVE_SYS_PARAM_H
12362 # include <sys/param.h>
12363 # ifdef EXEC_PAGESIZE
12364 # define getpagesize() EXEC_PAGESIZE
12365 # else /* no EXEC_PAGESIZE */
12366 # ifdef NBPG
12367 # define getpagesize() NBPG * CLSIZE
12368 # ifndef CLSIZE
12369 # define CLSIZE 1
12370 # endif /* no CLSIZE */
12371 # else /* no NBPG */
12372 # ifdef NBPC
12373 # define getpagesize() NBPC
12374 # else /* no NBPC */
12375 # ifdef PAGESIZE
12376 # define getpagesize() PAGESIZE
12377 # endif /* PAGESIZE */
12378 # endif /* no NBPC */
12379 # endif /* no NBPG */
12380 # endif /* no EXEC_PAGESIZE */
12381 # else /* no HAVE_SYS_PARAM_H */
12382 # define getpagesize() 8192 /* punt totally */
12383 # endif /* no HAVE_SYS_PARAM_H */
12384 # endif /* no _SC_PAGESIZE */
12385
12386 #endif /* no HAVE_GETPAGESIZE */
12387
12388 int
12389 main ()
12390 {
12391 char *data, *data2, *data3;
12392 int i, pagesize;
12393 int fd;
12394
12395 pagesize = getpagesize ();
12396
12397 /* First, make a file with some known garbage in it. */
12398 data = (char *) malloc (pagesize);
12399 if (!data)
12400 return 1;
12401 for (i = 0; i < pagesize; ++i)
12402 *(data + i) = rand ();
12403 umask (0);
12404 fd = creat ("conftest.mmap", 0600);
12405 if (fd < 0)
12406 return 1;
12407 if (write (fd, data, pagesize) != pagesize)
12408 return 1;
12409 close (fd);
12410
12411 /* Next, try to mmap the file at a fixed address which already has
12412 something else allocated at it. If we can, also make sure that
12413 we see the same garbage. */
12414 fd = open ("conftest.mmap", O_RDWR);
12415 if (fd < 0)
12416 return 1;
12417 data2 = (char *) malloc (2 * pagesize);
12418 if (!data2)
12419 return 1;
12420 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12421 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12422 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12423 return 1;
12424 for (i = 0; i < pagesize; ++i)
12425 if (*(data + i) != *(data2 + i))
12426 return 1;
12427
12428 /* Finally, make sure that changes to the mapped area do not
12429 percolate back to the file as seen by read(). (This is a bug on
12430 some variants of i386 svr4.0.) */
12431 for (i = 0; i < pagesize; ++i)
12432 *(data2 + i) = *(data2 + i) + 1;
12433 data3 = (char *) malloc (pagesize);
12434 if (!data3)
12435 return 1;
12436 if (read (fd, data3, pagesize) != pagesize)
12437 return 1;
12438 for (i = 0; i < pagesize; ++i)
12439 if (*(data + i) != *(data3 + i))
12440 return 1;
12441 close (fd);
12442 return 0;
12443 }
12444 _ACEOF
12445 if ac_fn_c_try_run "$LINENO"; then :
12446 ac_cv_func_mmap_fixed_mapped=yes
12447 else
12448 ac_cv_func_mmap_fixed_mapped=no
12449 fi
12450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12451 conftest.$ac_objext conftest.beam conftest.$ac_ext
12452 fi
12453
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12456 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12457 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12458
12459 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12460
12461 fi
12462 rm -f conftest.mmap
12463
12464 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12465 if test "x$ac_cv_type_pid_t" = x""yes; then :
12466
12467 else
12468
12469 cat >>confdefs.h <<_ACEOF
12470 #define pid_t int
12471 _ACEOF
12472
12473 fi
12474
12475 for ac_header in vfork.h
12476 do :
12477 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12478 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12479 cat >>confdefs.h <<_ACEOF
12480 #define HAVE_VFORK_H 1
12481 _ACEOF
12482
12483 fi
12484
12485 done
12486
12487 for ac_func in fork vfork
12488 do :
12489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12491 eval as_val=\$$as_ac_var
12492 if test "x$as_val" = x""yes; then :
12493 cat >>confdefs.h <<_ACEOF
12494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12495 _ACEOF
12496
12497 fi
12498 done
12499
12500 if test "x$ac_cv_func_fork" = xyes; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12502 $as_echo_n "checking for working fork... " >&6; }
12503 if test "${ac_cv_func_fork_works+set}" = set; then :
12504 $as_echo_n "(cached) " >&6
12505 else
12506 if test "$cross_compiling" = yes; then :
12507 ac_cv_func_fork_works=cross
12508 else
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12511 $ac_includes_default
12512 int
12513 main ()
12514 {
12515
12516 /* By Ruediger Kuhlmann. */
12517 return fork () < 0;
12518
12519 ;
12520 return 0;
12521 }
12522 _ACEOF
12523 if ac_fn_c_try_run "$LINENO"; then :
12524 ac_cv_func_fork_works=yes
12525 else
12526 ac_cv_func_fork_works=no
12527 fi
12528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12529 conftest.$ac_objext conftest.beam conftest.$ac_ext
12530 fi
12531
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12534 $as_echo "$ac_cv_func_fork_works" >&6; }
12535
12536 else
12537 ac_cv_func_fork_works=$ac_cv_func_fork
12538 fi
12539 if test "x$ac_cv_func_fork_works" = xcross; then
12540 case $host in
12541 *-*-amigaos* | *-*-msdosdjgpp*)
12542 # Override, as these systems have only a dummy fork() stub
12543 ac_cv_func_fork_works=no
12544 ;;
12545 *)
12546 ac_cv_func_fork_works=yes
12547 ;;
12548 esac
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12550 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12551 fi
12552 ac_cv_func_vfork_works=$ac_cv_func_vfork
12553 if test "x$ac_cv_func_vfork" = xyes; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12555 $as_echo_n "checking for working vfork... " >&6; }
12556 if test "${ac_cv_func_vfork_works+set}" = set; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 if test "$cross_compiling" = yes; then :
12560 ac_cv_func_vfork_works=cross
12561 else
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564 /* Thanks to Paul Eggert for this test. */
12565 $ac_includes_default
12566 #include <sys/wait.h>
12567 #ifdef HAVE_VFORK_H
12568 # include <vfork.h>
12569 #endif
12570 /* On some sparc systems, changes by the child to local and incoming
12571 argument registers are propagated back to the parent. The compiler
12572 is told about this with #include <vfork.h>, but some compilers
12573 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12574 static variable whose address is put into a register that is
12575 clobbered by the vfork. */
12576 static void
12577 #ifdef __cplusplus
12578 sparc_address_test (int arg)
12579 # else
12580 sparc_address_test (arg) int arg;
12581 #endif
12582 {
12583 static pid_t child;
12584 if (!child) {
12585 child = vfork ();
12586 if (child < 0) {
12587 perror ("vfork");
12588 _exit(2);
12589 }
12590 if (!child) {
12591 arg = getpid();
12592 write(-1, "", 0);
12593 _exit (arg);
12594 }
12595 }
12596 }
12597
12598 int
12599 main ()
12600 {
12601 pid_t parent = getpid ();
12602 pid_t child;
12603
12604 sparc_address_test (0);
12605
12606 child = vfork ();
12607
12608 if (child == 0) {
12609 /* Here is another test for sparc vfork register problems. This
12610 test uses lots of local variables, at least as many local
12611 variables as main has allocated so far including compiler
12612 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12613 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12614 reuse the register of parent for one of the local variables,
12615 since it will think that parent can't possibly be used any more
12616 in this routine. Assigning to the local variable will thus
12617 munge parent in the parent process. */
12618 pid_t
12619 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12620 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12621 /* Convince the compiler that p..p7 are live; otherwise, it might
12622 use the same hardware register for all 8 local variables. */
12623 if (p != p1 || p != p2 || p != p3 || p != p4
12624 || p != p5 || p != p6 || p != p7)
12625 _exit(1);
12626
12627 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12628 from child file descriptors. If the child closes a descriptor
12629 before it execs or exits, this munges the parent's descriptor
12630 as well. Test for this by closing stdout in the child. */
12631 _exit(close(fileno(stdout)) != 0);
12632 } else {
12633 int status;
12634 struct stat st;
12635
12636 while (wait(&status) != child)
12637 ;
12638 return (
12639 /* Was there some problem with vforking? */
12640 child < 0
12641
12642 /* Did the child fail? (This shouldn't happen.) */
12643 || status
12644
12645 /* Did the vfork/compiler bug occur? */
12646 || parent != getpid()
12647
12648 /* Did the file descriptor bug occur? */
12649 || fstat(fileno(stdout), &st) != 0
12650 );
12651 }
12652 }
12653 _ACEOF
12654 if ac_fn_c_try_run "$LINENO"; then :
12655 ac_cv_func_vfork_works=yes
12656 else
12657 ac_cv_func_vfork_works=no
12658 fi
12659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12660 conftest.$ac_objext conftest.beam conftest.$ac_ext
12661 fi
12662
12663 fi
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12665 $as_echo "$ac_cv_func_vfork_works" >&6; }
12666
12667 fi;
12668 if test "x$ac_cv_func_fork_works" = xcross; then
12669 ac_cv_func_vfork_works=$ac_cv_func_vfork
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12671 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12672 fi
12673
12674 if test "x$ac_cv_func_vfork_works" = xyes; then
12675
12676 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12677
12678 else
12679
12680 $as_echo "#define vfork fork" >>confdefs.h
12681
12682 fi
12683 if test "x$ac_cv_func_fork_works" = xyes; then
12684
12685 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12686
12687 fi
12688
12689 for ac_func in canonicalize_file_name realpath getrusage getuid \
12690 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12691 sigaction sigprocmask sigsetmask socketpair syscall \
12692 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12693 setrlimit getrlimit posix_madvise waitpid
12694 do :
12695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12697 eval as_val=\$$as_ac_var
12698 if test "x$as_val" = x""yes; then :
12699 cat >>confdefs.h <<_ACEOF
12700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12701 _ACEOF
12702
12703 fi
12704 done
12705
12706
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12708 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12709 if test "${am_cv_langinfo_codeset+set}" = set; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12714 #include <langinfo.h>
12715 int
12716 main ()
12717 {
12718 char* cs = nl_langinfo(CODESET);
12719 ;
12720 return 0;
12721 }
12722 _ACEOF
12723 if ac_fn_c_try_link "$LINENO"; then :
12724 am_cv_langinfo_codeset=yes
12725 else
12726 am_cv_langinfo_codeset=no
12727 fi
12728 rm -f core conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
12730
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12733 $as_echo "$am_cv_langinfo_codeset" >&6; }
12734 if test $am_cv_langinfo_codeset = yes; then
12735
12736 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12737
12738 fi
12739
12740
12741 # Check the return and argument types of ptrace. No canned test for
12742 # this, so roll our own.
12743 gdb_ptrace_headers='
12744 #if HAVE_SYS_TYPES_H
12745 # include <sys/types.h>
12746 #endif
12747 #if HAVE_SYS_PTRACE_H
12748 # include <sys/ptrace.h>
12749 #endif
12750 #if HAVE_UNISTD_H
12751 # include <unistd.h>
12752 #endif
12753 '
12754 # There is no point in checking if we don't have a prototype.
12755 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12756 "
12757 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12758 ac_have_decl=1
12759 else
12760 ac_have_decl=0
12761 fi
12762
12763 cat >>confdefs.h <<_ACEOF
12764 #define HAVE_DECL_PTRACE $ac_have_decl
12765 _ACEOF
12766 if test $ac_have_decl = 1; then :
12767
12768 else
12769
12770 : ${gdb_cv_func_ptrace_ret='int'}
12771 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12772
12773 fi
12774
12775 # Check return type. Varargs (used on GNU/Linux) conflict with the
12776 # empty argument list, so check for that explicitly.
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12778 $as_echo_n "checking return type of ptrace... " >&6; }
12779 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 $gdb_ptrace_headers
12785 int
12786 main ()
12787 {
12788 extern long ptrace (enum __ptrace_request, ...);
12789 ;
12790 return 0;
12791 }
12792 _ACEOF
12793 if ac_fn_c_try_compile "$LINENO"; then :
12794 gdb_cv_func_ptrace_ret='long'
12795 else
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798 $gdb_ptrace_headers
12799 int
12800 main ()
12801 {
12802 extern int ptrace ();
12803 ;
12804 return 0;
12805 }
12806 _ACEOF
12807 if ac_fn_c_try_compile "$LINENO"; then :
12808 gdb_cv_func_ptrace_ret='int'
12809 else
12810 gdb_cv_func_ptrace_ret='long'
12811 fi
12812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 fi
12814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12815 fi
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12817 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12818
12819 cat >>confdefs.h <<_ACEOF
12820 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12821 _ACEOF
12822
12823 # Check argument types.
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12825 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12826 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12827 $as_echo_n "(cached) " >&6
12828 else
12829
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12832 $gdb_ptrace_headers
12833 int
12834 main ()
12835 {
12836 extern long ptrace (enum __ptrace_request, ...);
12837 ;
12838 return 0;
12839 }
12840 _ACEOF
12841 if ac_fn_c_try_compile "$LINENO"; then :
12842 gdb_cv_func_ptrace_args='int,int,long,long'
12843 else
12844
12845 for gdb_arg1 in 'int' 'long'; do
12846 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12847 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12848 for gdb_arg4 in 'int' 'long'; do
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 $gdb_ptrace_headers
12852 int
12853 main ()
12854 {
12855
12856 extern $gdb_cv_func_ptrace_ret
12857 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12858
12859 ;
12860 return 0;
12861 }
12862 _ACEOF
12863 if ac_fn_c_try_compile "$LINENO"; then :
12864 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12865 break 4;
12866 fi
12867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868 for gdb_arg5 in 'int *' 'int' 'long'; do
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871 $gdb_ptrace_headers
12872 int
12873 main ()
12874 {
12875
12876 extern $gdb_cv_func_ptrace_ret
12877 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12878
12879 ;
12880 return 0;
12881 }
12882 _ACEOF
12883 if ac_fn_c_try_compile "$LINENO"; then :
12884
12885 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12886 break 5;
12887 fi
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12889 done
12890 done
12891 done
12892 done
12893 done
12894 # Provide a safe default value.
12895 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12896
12897 fi
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 fi
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12901 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12902 ac_save_IFS=$IFS; IFS=','
12903 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12904 IFS=$ac_save_IFS
12905 shift
12906
12907 cat >>confdefs.h <<_ACEOF
12908 #define PTRACE_TYPE_ARG3 $3
12909 _ACEOF
12910
12911 if test -n "$5"; then
12912
12913 cat >>confdefs.h <<_ACEOF
12914 #define PTRACE_TYPE_ARG5 $5
12915 _ACEOF
12916
12917 fi
12918
12919 if test "$cross_compiling" = no; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12921 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12922 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 if test "$cross_compiling" = yes; then :
12926 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12927 else
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12930 $ac_includes_default
12931 int
12932 main ()
12933 {
12934 /* If this system has a BSD-style setpgrp which takes arguments,
12935 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12936 exit successfully. */
12937 return setpgrp (1,1) != -1;
12938 ;
12939 return 0;
12940 }
12941 _ACEOF
12942 if ac_fn_c_try_run "$LINENO"; then :
12943 ac_cv_func_setpgrp_void=no
12944 else
12945 ac_cv_func_setpgrp_void=yes
12946 fi
12947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12948 conftest.$ac_objext conftest.beam conftest.$ac_ext
12949 fi
12950
12951 fi
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12953 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12954 if test $ac_cv_func_setpgrp_void = yes; then
12955
12956 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12957
12958 fi
12959
12960 else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12962 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12963 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12964 $as_echo_n "(cached) " >&6
12965 else
12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967 /* end confdefs.h. */
12968
12969 #include <unistd.h>
12970
12971 int
12972 main ()
12973 {
12974
12975 if (setpgrp(1,1) == -1)
12976 exit (0);
12977 else
12978 exit (1);
12979
12980 ;
12981 return 0;
12982 }
12983 _ACEOF
12984 if ac_fn_c_try_compile "$LINENO"; then :
12985 ac_cv_func_setpgrp_void=no
12986 else
12987 ac_cv_func_setpgrp_void=yes
12988 fi
12989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12990 fi
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12992 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12993 if test $ac_cv_func_setpgrp_void = yes; then
12994 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12995
12996 fi
12997 fi
12998
12999 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
13000 # since sigsetjmp might only be defined as a macro.
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13002 $as_echo_n "checking for sigsetjmp... " >&6; }
13003 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13004 $as_echo_n "(cached) " >&6
13005 else
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008
13009 #include <setjmp.h>
13010
13011 int
13012 main ()
13013 {
13014 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13015 ;
13016 return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_compile "$LINENO"; then :
13020 gdb_cv_func_sigsetjmp=yes
13021 else
13022 gdb_cv_func_sigsetjmp=no
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025 fi
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13027 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13028 if test $gdb_cv_func_sigsetjmp = yes; then
13029
13030 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13031
13032 fi
13033
13034 # Assume we'll default to using the included libiberty regex.
13035 gdb_use_included_regex=yes
13036
13037 # However, if the system regex is GNU regex, then default to *not*
13038 # using the included regex.
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13040 $as_echo_n "checking for GNU regex... " >&6; }
13041 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13046 #include <gnu-versions.h>
13047 int
13048 main ()
13049 {
13050 #define REGEX_INTERFACE_VERSION 1
13051 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13052 # error "Version mismatch"
13053 #endif
13054 ;
13055 return 0;
13056 }
13057 _ACEOF
13058 if ac_fn_c_try_compile "$LINENO"; then :
13059 gdb_cv_have_gnu_regex=yes
13060 else
13061 gdb_cv_have_gnu_regex=no
13062 fi
13063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13064 fi
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13066 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13067 if test $gdb_cv_have_gnu_regex = yes; then
13068 gdb_use_included_regex=no
13069 fi
13070
13071
13072 # Check whether --with-included-regex was given.
13073 if test "${with_included_regex+set}" = set; then :
13074 withval=$with_included_regex; gdb_with_regex=$withval
13075 else
13076 gdb_with_regex=$gdb_use_included_regex
13077 fi
13078
13079 if test "$gdb_with_regex" = yes; then
13080
13081 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13082
13083 fi
13084
13085 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13086 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13087 #include <sys/proc.h>
13088
13089 "
13090 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
13091
13092 cat >>confdefs.h <<_ACEOF
13093 #define HAVE_STRUCT_THREAD_TD_PCB 1
13094 _ACEOF
13095
13096
13097 fi
13098
13099
13100 # See if <sys/lwp.h> defines `struct lwp`.
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13102 $as_echo_n "checking for struct lwp... " >&6; }
13103 if test "${gdb_cv_struct_lwp+set}" = set; then :
13104 $as_echo_n "(cached) " >&6
13105 else
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108 #include <sys/param.h>
13109 #include <sys/lwp.h>
13110 int
13111 main ()
13112 {
13113 struct lwp l;
13114 ;
13115 return 0;
13116 }
13117 _ACEOF
13118 if ac_fn_c_try_compile "$LINENO"; then :
13119 gdb_cv_struct_lwp=yes
13120 else
13121 gdb_cv_struct_lwp=no
13122 fi
13123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13124 fi
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13126 $as_echo "$gdb_cv_struct_lwp" >&6; }
13127 if test $gdb_cv_struct_lwp = yes; then
13128
13129 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13130
13131 fi
13132
13133 # See if <machine/reg.h> degines `struct reg'.
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13135 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13136 if test "${gdb_cv_struct_reg+set}" = set; then :
13137 $as_echo_n "(cached) " >&6
13138 else
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141 #include <sys/types.h>
13142 #include <machine/reg.h>
13143 int
13144 main ()
13145 {
13146 struct reg r;
13147 ;
13148 return 0;
13149 }
13150 _ACEOF
13151 if ac_fn_c_try_compile "$LINENO"; then :
13152 gdb_cv_struct_reg=yes
13153 else
13154 gdb_cv_struct_reg=no
13155 fi
13156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13159 $as_echo "$gdb_cv_struct_reg" >&6; }
13160 if test $gdb_cv_struct_reg = yes; then
13161
13162 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13163
13164 fi
13165
13166 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13167 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13168 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13169 "
13170 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
13171
13172 cat >>confdefs.h <<_ACEOF
13173 #define HAVE_STRUCT_REG_R_FS 1
13174 _ACEOF
13175
13176
13177 fi
13178 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13179 "
13180 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
13181
13182 cat >>confdefs.h <<_ACEOF
13183 #define HAVE_STRUCT_REG_R_GS 1
13184 _ACEOF
13185
13186
13187 fi
13188
13189
13190 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13192 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13193 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197 /* end confdefs.h. */
13198 #include <sys/ptrace.h>
13199 int
13200 main ()
13201 {
13202 PTRACE_GETREGS;
13203 ;
13204 return 0;
13205 }
13206 _ACEOF
13207 if ac_fn_c_try_compile "$LINENO"; then :
13208 gdb_cv_have_ptrace_getregs=yes
13209 else
13210 gdb_cv_have_ptrace_getregs=no
13211 fi
13212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213 fi
13214
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13216 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13217 if test $gdb_cv_have_ptrace_getregs = yes; then
13218
13219 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13220
13221 fi
13222
13223 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13225 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13226 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13231 #include <sys/ptrace.h>
13232 int
13233 main ()
13234 {
13235 PTRACE_GETFPXREGS;
13236 ;
13237 return 0;
13238 }
13239 _ACEOF
13240 if ac_fn_c_try_compile "$LINENO"; then :
13241 gdb_cv_have_ptrace_getfpxregs=yes
13242 else
13243 gdb_cv_have_ptrace_getfpxregs=no
13244 fi
13245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 fi
13247
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13249 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13250 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13251
13252 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13253
13254 fi
13255
13256 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13258 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13259 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 #include <sys/types.h>
13265 #include <sys/ptrace.h>
13266 int
13267 main ()
13268 {
13269 PT_GETDBREGS;
13270 ;
13271 return 0;
13272 }
13273 _ACEOF
13274 if ac_fn_c_try_compile "$LINENO"; then :
13275 gdb_cv_have_pt_getdbregs=yes
13276 else
13277 gdb_cv_have_pt_getdbregs=no
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 fi
13281
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13283 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13284 if test $gdb_cv_have_pt_getdbregs = yes; then
13285
13286 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13287
13288 fi
13289
13290 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13292 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13293 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13298 #include <sys/types.h>
13299 #include <sys/ptrace.h>
13300 int
13301 main ()
13302 {
13303 PT_GETXMMREGS;
13304 ;
13305 return 0;
13306 }
13307 _ACEOF
13308 if ac_fn_c_try_compile "$LINENO"; then :
13309 gdb_cv_have_pt_getxmmregs=yes
13310 else
13311 gdb_cv_have_pt_getxmmregs=no
13312 fi
13313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314 fi
13315
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13317 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13318 if test $gdb_cv_have_pt_getxmmregs = yes; then
13319
13320 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13321
13322 fi
13323
13324 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13325
13326 if test "${target}" = "${host}"; then
13327 case "${host}" in
13328 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
13329
13330 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13331
13332 ;;
13333 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13334
13335 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13336
13337 ;;
13338 mips-sgi-irix5*)
13339 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13340
13341 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13342
13343 ;;
13344 esac
13345 fi
13346
13347 if test "$ac_cv_header_sys_procfs_h" = yes; then
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13349 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13350 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13351 $as_echo_n "(cached) " >&6
13352 else
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13355
13356 #define _SYSCALL32
13357 /* Needed for new procfs interface on sparc-solaris. */
13358 #define _STRUCTURED_PROC 1
13359 #include <sys/procfs.h>
13360 int
13361 main ()
13362 {
13363 pstatus_t avar
13364 ;
13365 return 0;
13366 }
13367 _ACEOF
13368 if ac_fn_c_try_compile "$LINENO"; then :
13369 bfd_cv_have_sys_procfs_type_pstatus_t=yes
13370 else
13371 bfd_cv_have_sys_procfs_type_pstatus_t=no
13372
13373 fi
13374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13375 fi
13376
13377 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13378
13379 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13380
13381 fi
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13383 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13384
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13386 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13387 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392
13393 #define _SYSCALL32
13394 /* Needed for new procfs interface on sparc-solaris. */
13395 #define _STRUCTURED_PROC 1
13396 #include <sys/procfs.h>
13397 int
13398 main ()
13399 {
13400 prrun_t avar
13401 ;
13402 return 0;
13403 }
13404 _ACEOF
13405 if ac_fn_c_try_compile "$LINENO"; then :
13406 bfd_cv_have_sys_procfs_type_prrun_t=yes
13407 else
13408 bfd_cv_have_sys_procfs_type_prrun_t=no
13409
13410 fi
13411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13412 fi
13413
13414 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13415
13416 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13417
13418 fi
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13420 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13421
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13423 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13424 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429
13430 #define _SYSCALL32
13431 /* Needed for new procfs interface on sparc-solaris. */
13432 #define _STRUCTURED_PROC 1
13433 #include <sys/procfs.h>
13434 int
13435 main ()
13436 {
13437 gregset_t avar
13438 ;
13439 return 0;
13440 }
13441 _ACEOF
13442 if ac_fn_c_try_compile "$LINENO"; then :
13443 bfd_cv_have_sys_procfs_type_gregset_t=yes
13444 else
13445 bfd_cv_have_sys_procfs_type_gregset_t=no
13446
13447 fi
13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13449 fi
13450
13451 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13452
13453 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13454
13455 fi
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13457 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13458
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13460 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13461 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13462 $as_echo_n "(cached) " >&6
13463 else
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13466
13467 #define _SYSCALL32
13468 /* Needed for new procfs interface on sparc-solaris. */
13469 #define _STRUCTURED_PROC 1
13470 #include <sys/procfs.h>
13471 int
13472 main ()
13473 {
13474 fpregset_t avar
13475 ;
13476 return 0;
13477 }
13478 _ACEOF
13479 if ac_fn_c_try_compile "$LINENO"; then :
13480 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13481 else
13482 bfd_cv_have_sys_procfs_type_fpregset_t=no
13483
13484 fi
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 fi
13487
13488 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13489
13490 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13491
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13494 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13495
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13497 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13498 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h. */
13503
13504 #define _SYSCALL32
13505 /* Needed for new procfs interface on sparc-solaris. */
13506 #define _STRUCTURED_PROC 1
13507 #include <sys/procfs.h>
13508 int
13509 main ()
13510 {
13511 prgregset_t avar
13512 ;
13513 return 0;
13514 }
13515 _ACEOF
13516 if ac_fn_c_try_compile "$LINENO"; then :
13517 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13518 else
13519 bfd_cv_have_sys_procfs_type_prgregset_t=no
13520
13521 fi
13522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 fi
13524
13525 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13526
13527 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13528
13529 fi
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13531 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13532
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13534 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13535 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13537 else
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540
13541 #define _SYSCALL32
13542 /* Needed for new procfs interface on sparc-solaris. */
13543 #define _STRUCTURED_PROC 1
13544 #include <sys/procfs.h>
13545 int
13546 main ()
13547 {
13548 prfpregset_t avar
13549 ;
13550 return 0;
13551 }
13552 _ACEOF
13553 if ac_fn_c_try_compile "$LINENO"; then :
13554 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13555 else
13556 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13557
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13560 fi
13561
13562 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13563
13564 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13565
13566 fi
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13568 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13569
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13571 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13572 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13577
13578 #define _SYSCALL32
13579 /* Needed for new procfs interface on sparc-solaris. */
13580 #define _STRUCTURED_PROC 1
13581 #include <sys/procfs.h>
13582 int
13583 main ()
13584 {
13585 prgregset32_t avar
13586 ;
13587 return 0;
13588 }
13589 _ACEOF
13590 if ac_fn_c_try_compile "$LINENO"; then :
13591 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13592 else
13593 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13594
13595 fi
13596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597 fi
13598
13599 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13600
13601 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13602
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13605 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13606
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13608 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13609 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13614
13615 #define _SYSCALL32
13616 /* Needed for new procfs interface on sparc-solaris. */
13617 #define _STRUCTURED_PROC 1
13618 #include <sys/procfs.h>
13619 int
13620 main ()
13621 {
13622 prfpregset32_t avar
13623 ;
13624 return 0;
13625 }
13626 _ACEOF
13627 if ac_fn_c_try_compile "$LINENO"; then :
13628 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13629 else
13630 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13631
13632 fi
13633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634 fi
13635
13636 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13637
13638 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13639
13640 fi
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13642 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13643
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13645 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13646 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13651
13652 #define _SYSCALL32
13653 /* Needed for new procfs interface on sparc-solaris. */
13654 #define _STRUCTURED_PROC 1
13655 #include <sys/procfs.h>
13656 int
13657 main ()
13658 {
13659 lwpid_t avar
13660 ;
13661 return 0;
13662 }
13663 _ACEOF
13664 if ac_fn_c_try_compile "$LINENO"; then :
13665 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13666 else
13667 bfd_cv_have_sys_procfs_type_lwpid_t=no
13668
13669 fi
13670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13671 fi
13672
13673 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13674
13675 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13676
13677 fi
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13679 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13680
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13682 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13683 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13684 $as_echo_n "(cached) " >&6
13685 else
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13688
13689 #define _SYSCALL32
13690 /* Needed for new procfs interface on sparc-solaris. */
13691 #define _STRUCTURED_PROC 1
13692 #include <sys/procfs.h>
13693 int
13694 main ()
13695 {
13696 psaddr_t avar
13697 ;
13698 return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_c_try_compile "$LINENO"; then :
13702 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13703 else
13704 bfd_cv_have_sys_procfs_type_psaddr_t=no
13705
13706 fi
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 fi
13709
13710 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13711
13712 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13713
13714 fi
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13716 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13717
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13719 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13720 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13725
13726 #define _SYSCALL32
13727 /* Needed for new procfs interface on sparc-solaris. */
13728 #define _STRUCTURED_PROC 1
13729 #include <sys/procfs.h>
13730 int
13731 main ()
13732 {
13733 prsysent_t avar
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 if ac_fn_c_try_compile "$LINENO"; then :
13739 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13740 else
13741 bfd_cv_have_sys_procfs_type_prsysent_t=no
13742
13743 fi
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 fi
13746
13747 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13748
13749 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13750
13751 fi
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13753 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13754
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13756 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13757 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762
13763 #define _SYSCALL32
13764 /* Needed for new procfs interface on sparc-solaris. */
13765 #define _STRUCTURED_PROC 1
13766 #include <sys/procfs.h>
13767 int
13768 main ()
13769 {
13770 pr_sigset_t avar
13771 ;
13772 return 0;
13773 }
13774 _ACEOF
13775 if ac_fn_c_try_compile "$LINENO"; then :
13776 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13777 else
13778 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13779
13780 fi
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 fi
13783
13784 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13785
13786 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13787
13788 fi
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13790 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13791
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13793 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13794 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13795 $as_echo_n "(cached) " >&6
13796 else
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13799
13800 #define _SYSCALL32
13801 /* Needed for new procfs interface on sparc-solaris. */
13802 #define _STRUCTURED_PROC 1
13803 #include <sys/procfs.h>
13804 int
13805 main ()
13806 {
13807 pr_sigaction64_t avar
13808 ;
13809 return 0;
13810 }
13811 _ACEOF
13812 if ac_fn_c_try_compile "$LINENO"; then :
13813 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13814 else
13815 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13816
13817 fi
13818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819 fi
13820
13821 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13822
13823 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13824
13825 fi
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13827 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13828
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13830 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13831 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836
13837 #define _SYSCALL32
13838 /* Needed for new procfs interface on sparc-solaris. */
13839 #define _STRUCTURED_PROC 1
13840 #include <sys/procfs.h>
13841 int
13842 main ()
13843 {
13844 pr_siginfo64_t avar
13845 ;
13846 return 0;
13847 }
13848 _ACEOF
13849 if ac_fn_c_try_compile "$LINENO"; then :
13850 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13851 else
13852 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13853
13854 fi
13855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856 fi
13857
13858 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13859
13860 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13861
13862 fi
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13864 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13865
13866
13867
13868
13869
13870 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13872 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13873 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 if test "$cross_compiling" = yes; then :
13877 gdb_cv_prfpregset_t_broken=yes
13878 else
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13881 #include <sys/procfs.h>
13882 int main ()
13883 {
13884 if (sizeof (prfpregset_t) == sizeof (void *))
13885 return 1;
13886 return 0;
13887 }
13888 _ACEOF
13889 if ac_fn_c_try_run "$LINENO"; then :
13890 gdb_cv_prfpregset_t_broken=no
13891 else
13892 gdb_cv_prfpregset_t_broken=yes
13893 fi
13894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13895 conftest.$ac_objext conftest.beam conftest.$ac_ext
13896 fi
13897
13898 fi
13899
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13901 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13902 if test $gdb_cv_prfpregset_t_broken = yes; then
13903
13904 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13905
13906 fi
13907 fi
13908
13909
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13911 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13912 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h. */
13917 #include <unistd.h>
13918 #include <sys/types.h>
13919 #include <sys/procfs.h>
13920
13921 int
13922 main ()
13923 {
13924
13925 int dummy;;
13926 dummy = ioctl(0, PIOCSET, &dummy);
13927
13928 ;
13929 return 0;
13930 }
13931 _ACEOF
13932 if ac_fn_c_try_compile "$LINENO"; then :
13933 gdb_cv_have_procfs_piocset=yes
13934 else
13935 gdb_cv_have_procfs_piocset=no
13936 fi
13937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13938 fi
13939
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13941 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13942 if test $gdb_cv_have_procfs_piocset = yes; then
13943
13944 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13945
13946 fi
13947 fi
13948
13949 if test ${host} = ${target} ; then
13950
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13952 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13953 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13954 $as_echo_n "(cached) " >&6
13955 else
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13958 #include <link.h>
13959 int
13960 main ()
13961 {
13962 struct link_map lm; (void) lm.l_addr;
13963 ;
13964 return 0;
13965 }
13966 _ACEOF
13967 if ac_fn_c_try_compile "$LINENO"; then :
13968 gdb_cv_have_struct_link_map_with_l_members=yes
13969 else
13970 gdb_cv_have_struct_link_map_with_l_members=no
13971 fi
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 fi
13974
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13976 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13977 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13978
13979 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13980
13981 fi
13982
13983
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13985 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13986 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991 #include <sys/types.h>
13992 #include <link.h>
13993 int
13994 main ()
13995 {
13996 struct link_map lm; (void) lm.lm_addr;
13997 ;
13998 return 0;
13999 }
14000 _ACEOF
14001 if ac_fn_c_try_compile "$LINENO"; then :
14002 gdb_cv_have_struct_link_map_with_lm_members=yes
14003 else
14004 gdb_cv_have_struct_link_map_with_lm_members=no
14005 fi
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 fi
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
14010 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
14011 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
14012
14013 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
14014
14015 fi
14016
14017
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
14019 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
14020 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
14021 $as_echo_n "(cached) " >&6
14022 else
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14025 #include <sys/types.h>
14026 #ifdef HAVE_NLIST_H
14027 #include <nlist.h>
14028 #endif
14029 #include <link.h>
14030 int
14031 main ()
14032 {
14033 struct so_map lm; (void) lm.som_addr;
14034 ;
14035 return 0;
14036 }
14037 _ACEOF
14038 if ac_fn_c_try_compile "$LINENO"; then :
14039 gdb_cv_have_struct_so_map_with_som_members=yes
14040 else
14041 gdb_cv_have_struct_so_map_with_som_members=no
14042 fi
14043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14044 fi
14045
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
14047 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
14048 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
14049
14050 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
14051
14052 fi
14053
14054
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
14056 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
14057 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062 #define _SYSCALL32
14063 #include <sys/link.h>
14064 int
14065 main ()
14066 {
14067 struct link_map32 l;
14068 ;
14069 return 0;
14070 }
14071 _ACEOF
14072 if ac_fn_c_try_compile "$LINENO"; then :
14073 gdb_cv_have_struct_link_map32=yes
14074 else
14075 gdb_cv_have_struct_link_map32=no
14076 fi
14077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078 fi
14079
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
14081 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
14082 if test $gdb_cv_have_struct_link_map32 = yes; then
14083
14084 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
14085
14086
14087 $as_echo "#define _SYSCALL32 1" >>confdefs.h
14088
14089 fi
14090 fi
14091
14092 # Check if the compiler supports the `long long' type.
14093
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14095 $as_echo_n "checking for long long support in compiler... " >&6; }
14096 if test "${gdb_cv_c_long_long+set}" = set; then :
14097 $as_echo_n "(cached) " >&6
14098 else
14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14101 extern long long foo;
14102 int
14103 main ()
14104 {
14105 switch (foo & 2) { case 0: return 1; }
14106 ;
14107 return 0;
14108 }
14109 _ACEOF
14110 if ac_fn_c_try_compile "$LINENO"; then :
14111 gdb_cv_c_long_long=yes
14112 else
14113 gdb_cv_c_long_long=no
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14118 $as_echo "$gdb_cv_c_long_long" >&6; }
14119 if test $gdb_cv_c_long_long = yes; then
14120
14121 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14122
14123 fi
14124
14125 # Check if the compiler and runtime support printing long longs.
14126
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14128 $as_echo_n "checking for long long support in printf... " >&6; }
14129 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14130 $as_echo_n "(cached) " >&6
14131 else
14132 if test "$cross_compiling" = yes; then :
14133 gdb_cv_printf_has_long_long=no
14134 else
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137 $ac_includes_default
14138 int
14139 main ()
14140 {
14141 char buf[32];
14142 long long l = 0;
14143 l = (l << 16) + 0x0123;
14144 l = (l << 16) + 0x4567;
14145 l = (l << 16) + 0x89ab;
14146 l = (l << 16) + 0xcdef;
14147 sprintf (buf, "0x%016llx", l);
14148 return (strcmp ("0x0123456789abcdef", buf));
14149 ;
14150 return 0;
14151 }
14152 _ACEOF
14153 if ac_fn_c_try_run "$LINENO"; then :
14154 gdb_cv_printf_has_long_long=yes
14155 else
14156 gdb_cv_printf_has_long_long=no
14157 fi
14158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14159 conftest.$ac_objext conftest.beam conftest.$ac_ext
14160 fi
14161
14162 fi
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14164 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14165 if test $gdb_cv_printf_has_long_long = yes; then
14166
14167 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14168
14169 fi
14170
14171 # Check if the compiler and runtime support printing decfloats.
14172
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14174 $as_echo_n "checking for decfloat support in printf... " >&6; }
14175 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 if test "$cross_compiling" = yes; then :
14179 gdb_cv_printf_has_decfloat=no
14180 else
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183 $ac_includes_default
14184 int
14185 main ()
14186 {
14187 char buf[64];
14188 _Decimal32 d32 = 1.2345df;
14189 _Decimal64 d64 = 1.2345dd;
14190 _Decimal128 d128 = 1.2345dl;
14191 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14192 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14193 ;
14194 return 0;
14195 }
14196 _ACEOF
14197 if ac_fn_c_try_run "$LINENO"; then :
14198 gdb_cv_printf_has_decfloat=yes
14199 else
14200 gdb_cv_printf_has_decfloat=no
14201 fi
14202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14203 conftest.$ac_objext conftest.beam conftest.$ac_ext
14204 fi
14205
14206 fi
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14208 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14209 if test $gdb_cv_printf_has_decfloat = yes; then
14210
14211 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14212
14213 fi
14214
14215 # Check if the compiler supports the `long double' type. We can't use
14216 # AC_C_LONG_DOUBLE because that one does additional checks on the
14217 # constants defined in <float.h> that fail on some systems,
14218 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14219
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14221 $as_echo_n "checking for long double support in compiler... " >&6; }
14222 if test "${gdb_cv_c_long_double+set}" = set; then :
14223 $as_echo_n "(cached) " >&6
14224 else
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227 long double foo;
14228 _ACEOF
14229 if ac_fn_c_try_compile "$LINENO"; then :
14230 gdb_cv_c_long_double=yes
14231 else
14232 gdb_cv_c_long_double=no
14233 fi
14234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235 fi
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14237 $as_echo "$gdb_cv_c_long_double" >&6; }
14238 if test $gdb_cv_c_long_double = yes; then
14239
14240 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14241
14242 fi
14243
14244 # Check if the compiler and runtime support printing long doubles.
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14247 $as_echo_n "checking for long double support in printf... " >&6; }
14248 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14249 $as_echo_n "(cached) " >&6
14250 else
14251 if test "$cross_compiling" = yes; then :
14252 gdb_cv_printf_has_long_double=no
14253 else
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 $ac_includes_default
14257 int
14258 main ()
14259 {
14260 char buf[16];
14261 long double f = 3.141592653;
14262 sprintf (buf, "%Lg", f);
14263 return (strncmp ("3.14159", buf, 7));
14264 ;
14265 return 0;
14266 }
14267 _ACEOF
14268 if ac_fn_c_try_run "$LINENO"; then :
14269 gdb_cv_printf_has_long_double=yes
14270 else
14271 gdb_cv_printf_has_long_double=no
14272 fi
14273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14274 conftest.$ac_objext conftest.beam conftest.$ac_ext
14275 fi
14276
14277 fi
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14279 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14280 if test $gdb_cv_printf_has_long_double = yes; then
14281
14282 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14283
14284 fi
14285
14286 # Check if the compiler and runtime support scanning long doubles.
14287
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14289 $as_echo_n "checking for long double support in scanf... " >&6; }
14290 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14291 $as_echo_n "(cached) " >&6
14292 else
14293 if test "$cross_compiling" = yes; then :
14294 gdb_cv_scanf_has_long_double=no
14295 else
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14298 #include <stdio.h>
14299 int
14300 main ()
14301 {
14302 char *buf = "3.141592653";
14303 long double f = 0;
14304 sscanf (buf, "%Lg", &f);
14305 return !(f > 3.14159 && f < 3.14160);
14306 ;
14307 return 0;
14308 }
14309 _ACEOF
14310 if ac_fn_c_try_run "$LINENO"; then :
14311 gdb_cv_scanf_has_long_double=yes
14312 else
14313 gdb_cv_scanf_has_long_double=no
14314 fi
14315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14316 conftest.$ac_objext conftest.beam conftest.$ac_ext
14317 fi
14318
14319 fi
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14321 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14322 if test $gdb_cv_scanf_has_long_double = yes; then
14323
14324 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14325
14326 fi
14327
14328 case ${host_os} in
14329 aix*)
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14331 $as_echo_n "checking for -bbigtoc option... " >&6; }
14332 if test "${gdb_cv_bigtoc+set}" = set; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335
14336 SAVE_LDFLAGS=$LDFLAGS
14337
14338 case $GCC in
14339 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14340 *) gdb_cv_bigtoc=-bbigtoc ;;
14341 esac
14342
14343 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14346
14347 int
14348 main ()
14349 {
14350 int i;
14351 ;
14352 return 0;
14353 }
14354 _ACEOF
14355 if ac_fn_c_try_link "$LINENO"; then :
14356
14357 else
14358 gdb_cv_bigtoc=
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext \
14361 conftest$ac_exeext conftest.$ac_ext
14362 LDFLAGS="${SAVE_LDFLAGS}"
14363
14364 fi
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14366 $as_echo "$gdb_cv_bigtoc" >&6; }
14367 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14368 ;;
14369 esac
14370
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14372 $as_echo_n "checking for the dynamic export flag... " >&6; }
14373 dynamic_list=false
14374 if test "${gdb_native}" = yes; then
14375 # The dynamically loaded libthread_db needs access to symbols in the gdb
14376 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14377 # may not be supported there.
14378 old_LDFLAGS="$LDFLAGS"
14379 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14380 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14381 LDFLAGS="$LDFLAGS $RDYNAMIC"
14382 if test "${have_libpython}" = no; then
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14385
14386 int
14387 main ()
14388 {
14389
14390 ;
14391 return 0;
14392 }
14393 _ACEOF
14394 if ac_fn_c_try_link "$LINENO"; then :
14395 dynamic_list=true
14396 fi
14397 rm -f core conftest.err conftest.$ac_objext \
14398 conftest$ac_exeext conftest.$ac_ext
14399 else
14400 # Workaround http://bugs.python.org/issue4434 where static
14401 # libpythonX.Y.a would get its symbols required for
14402 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14403 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14404 old_CFLAGS="$CFLAGS"
14405 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14406 if test "$cross_compiling" = yes; then :
14407 true
14408 else
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14411 #include "${have_libpython}/Python.h"
14412 int
14413 main ()
14414 {
14415 int err;
14416 Py_Initialize ();
14417 err = PyRun_SimpleString ("import itertools\n");
14418 Py_Finalize ();
14419 return err == 0 ? 0 : 1;
14420 ;
14421 return 0;
14422 }
14423 _ACEOF
14424 if ac_fn_c_try_run "$LINENO"; then :
14425 dynamic_list=true
14426 fi
14427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14428 conftest.$ac_objext conftest.beam conftest.$ac_ext
14429 fi
14430
14431 CFLAGS="$old_CFLAGS"
14432 fi
14433 LDFLAGS="$old_LDFLAGS"
14434 fi
14435 if $dynamic_list; then
14436 found="-Wl,--dynamic-list"
14437 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14438 else
14439 found="-rdynamic"
14440 RDYNAMIC="-rdynamic"
14441 fi
14442
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14444 $as_echo "$found" >&6; }
14445
14446
14447 if test ${build} = ${host} -a ${host} = ${target} ; then
14448 case ${host_os} in
14449 solaris*)
14450 # See if thread_db library is around for Solaris thread debugging.
14451 # Note that we must explicitly test for version 1 of the library
14452 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14453 # the same API.
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14455 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14456 if test -f /usr/lib/libthread_db.so.1 ; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14458 $as_echo "yes" >&6; }
14459
14460 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14461
14462 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14463 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14465 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14466 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14467 $as_echo_n "(cached) " >&6
14468 else
14469 ac_check_lib_save_LIBS=$LIBS
14470 LIBS="-ldl $LIBS"
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14473
14474 /* Override any GCC internal prototype to avoid an error.
14475 Use char because int might match the return type of a GCC
14476 builtin and then its argument prototype would still apply. */
14477 #ifdef __cplusplus
14478 extern "C"
14479 #endif
14480 char dlopen ();
14481 int
14482 main ()
14483 {
14484 return dlopen ();
14485 ;
14486 return 0;
14487 }
14488 _ACEOF
14489 if ac_fn_c_try_link "$LINENO"; then :
14490 ac_cv_lib_dl_dlopen=yes
14491 else
14492 ac_cv_lib_dl_dlopen=no
14493 fi
14494 rm -f core conftest.err conftest.$ac_objext \
14495 conftest$ac_exeext conftest.$ac_ext
14496 LIBS=$ac_check_lib_save_LIBS
14497 fi
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14499 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14500 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14501 cat >>confdefs.h <<_ACEOF
14502 #define HAVE_LIBDL 1
14503 _ACEOF
14504
14505 LIBS="-ldl $LIBS"
14506
14507 fi
14508
14509 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14510 # Sun randomly tweaked the prototypes in <proc_service.h>
14511 # at one point.
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14513 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14514 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520
14521 #include <proc_service.h>
14522 ps_err_e ps_pdwrite
14523 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14524
14525 int
14526 main ()
14527 {
14528
14529 ;
14530 return 0;
14531 }
14532 _ACEOF
14533 if ac_fn_c_try_compile "$LINENO"; then :
14534 gdb_cv_proc_service_is_old=no
14535 else
14536 gdb_cv_proc_service_is_old=yes
14537 fi
14538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539
14540 fi
14541
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14543 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14544 if test $gdb_cv_proc_service_is_old = yes; then
14545
14546 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14547
14548 fi
14549 else
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14551 $as_echo "no" >&6; }
14552 fi
14553 ;;
14554 aix*)
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14556 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14557 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14558 $as_echo_n "(cached) " >&6
14559 else
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14562 #include <sys/pthdebug.h>
14563 int
14564 main ()
14565 {
14566 #ifndef PTHDB_VERSION_3
14567 #error
14568 #endif
14569 ;
14570 return 0;
14571 }
14572 _ACEOF
14573 if ac_fn_c_try_compile "$LINENO"; then :
14574 gdb_cv_have_aix_thread_debug=yes
14575 else
14576 gdb_cv_have_aix_thread_debug=no
14577 fi
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579 fi
14580
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14582 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14583 if test $gdb_cv_have_aix_thread_debug = yes; then
14584 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14585 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14586 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14587
14588 # Older versions of AIX do not provide the declaration for
14589 # the getthrds function (it appears that it was introduced
14590 # with AIX 6.x).
14591 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14592 "
14593 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
14594 ac_have_decl=1
14595 else
14596 ac_have_decl=0
14597 fi
14598
14599 cat >>confdefs.h <<_ACEOF
14600 #define HAVE_DECL_GETTHRDS $ac_have_decl
14601 _ACEOF
14602
14603 fi
14604 ;;
14605 esac
14606
14607 fi
14608
14609 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14611 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14612 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14613 $as_echo_n "(cached) " >&6
14614 else
14615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14617 #include <thread_db.h>
14618 int
14619 main ()
14620 {
14621 int i = TD_NOTALLOC;
14622 ;
14623 return 0;
14624 }
14625 _ACEOF
14626 if ac_fn_c_try_compile "$LINENO"; then :
14627 gdb_cv_thread_db_h_has_td_notalloc=yes
14628 else
14629 gdb_cv_thread_db_h_has_td_notalloc=no
14630
14631 fi
14632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633
14634 fi
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14636 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14638 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14639 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14640 $as_echo_n "(cached) " >&6
14641 else
14642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14644 #include <thread_db.h>
14645 int
14646 main ()
14647 {
14648 int i = TD_VERSION;
14649 ;
14650 return 0;
14651 }
14652 _ACEOF
14653 if ac_fn_c_try_compile "$LINENO"; then :
14654 gdb_cv_thread_db_h_has_td_version=yes
14655 else
14656 gdb_cv_thread_db_h_has_td_version=no
14657
14658 fi
14659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14660
14661 fi
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14663 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14665 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14666 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14667 $as_echo_n "(cached) " >&6
14668 else
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14671 #include <thread_db.h>
14672 int
14673 main ()
14674 {
14675 int i = TD_NOTLS;
14676 ;
14677 return 0;
14678 }
14679 _ACEOF
14680 if ac_fn_c_try_compile "$LINENO"; then :
14681 gdb_cv_thread_db_h_has_td_notls=yes
14682 else
14683 gdb_cv_thread_db_h_has_td_notls=no
14684
14685 fi
14686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687
14688 fi
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14690 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14691 fi
14692 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14693
14694 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14695
14696 fi
14697 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14698
14699 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14700
14701 fi
14702 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14703
14704 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14705
14706 fi
14707
14708 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14710 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14711 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14712 $as_echo_n "(cached) " >&6
14713 else
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14716 #include <sys/syscall.h>
14717 int
14718 main ()
14719 {
14720 int i = __NR_tkill;
14721 ;
14722 return 0;
14723 }
14724 _ACEOF
14725 if ac_fn_c_try_compile "$LINENO"; then :
14726 gdb_cv_sys_syscall_h_has_tkill=yes
14727 else
14728 gdb_cv_sys_syscall_h_has_tkill=no
14729
14730 fi
14731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14732
14733 fi
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14735 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14736 fi
14737 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14738
14739 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14740
14741 fi
14742
14743 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14744 "
14745 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14746 ac_have_decl=1
14747 else
14748 ac_have_decl=0
14749 fi
14750
14751 cat >>confdefs.h <<_ACEOF
14752 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14753 _ACEOF
14754
14755
14756 if test "$cross_compiling" = yes; then :
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 #include <sys/personality.h>
14760 int
14761 main ()
14762 {
14763
14764 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14765 # define ADDR_NO_RANDOMIZE 0x0040000
14766 # endif
14767 /* Test the flag could be set and stays set. */
14768 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14769 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14770 return 1
14771 ;
14772 return 0;
14773 }
14774 _ACEOF
14775 if ac_fn_c_try_link "$LINENO"; then :
14776 have_personality=true
14777 else
14778 have_personality=false
14779 fi
14780 rm -f core conftest.err conftest.$ac_objext \
14781 conftest$ac_exeext conftest.$ac_ext
14782 else
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785 #include <sys/personality.h>
14786 int
14787 main ()
14788 {
14789
14790 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14791 # define ADDR_NO_RANDOMIZE 0x0040000
14792 # endif
14793 /* Test the flag could be set and stays set. */
14794 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14795 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14796 return 1
14797 ;
14798 return 0;
14799 }
14800 _ACEOF
14801 if ac_fn_c_try_run "$LINENO"; then :
14802 have_personality=true
14803 else
14804 have_personality=false
14805 fi
14806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14807 conftest.$ac_objext conftest.beam conftest.$ac_ext
14808 fi
14809
14810 if $have_personality
14811 then
14812
14813 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14814
14815 fi
14816
14817
14818 target_sysroot_reloc=0
14819
14820 # Check whether --with-sysroot was given.
14821 if test "${with_sysroot+set}" = set; then :
14822 withval=$with_sysroot;
14823 case ${with_sysroot} in
14824 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
14825 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14826 esac
14827
14828 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14829
14830 if test "x$prefix" = xNONE; then
14831 test_prefix=/usr/local
14832 else
14833 test_prefix=$prefix
14834 fi
14835 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14836 test_exec_prefix=$test_prefix
14837 else
14838 test_exec_prefix=$exec_prefix
14839 fi
14840 case ${TARGET_SYSTEM_ROOT} in
14841 "${test_prefix}"|"${test_prefix}/"*|\
14842 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14843 '${prefix}'|'${prefix}/'*|\
14844 '${exec_prefix}'|'${exec_prefix}/'*)
14845 target_sysroot_reloc=1
14846 ;;
14847 esac
14848
14849 else
14850
14851 TARGET_SYSTEM_ROOT=
14852 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14853
14854 fi
14855
14856 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14857
14858
14859
14860
14861
14862 # Check whether --with-system-gdbinit was given.
14863 if test "${with_system_gdbinit+set}" = set; then :
14864 withval=$with_system_gdbinit;
14865 SYSTEM_GDBINIT=$withval
14866 else
14867 SYSTEM_GDBINIT=
14868 fi
14869
14870
14871 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14872 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14873 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14874 ac_define_dir=`eval echo $ac_define_dir`
14875
14876 cat >>confdefs.h <<_ACEOF
14877 #define SYSTEM_GDBINIT "$ac_define_dir"
14878 _ACEOF
14879
14880
14881
14882
14883 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14884 if test "x$prefix" = xNONE; then
14885 test_prefix=/usr/local
14886 else
14887 test_prefix=$prefix
14888 fi
14889 else
14890 test_prefix=$exec_prefix
14891 fi
14892 value=0
14893 case ${ac_define_dir} in
14894 "${test_prefix}"|"${test_prefix}/"*|\
14895 '${exec_prefix}'|'${exec_prefix}/'*)
14896 value=1
14897 ;;
14898 esac
14899
14900 cat >>confdefs.h <<_ACEOF
14901 #define SYSTEM_GDBINIT_RELOCATABLE $value
14902 _ACEOF
14903
14904
14905
14906
14907 # Check whether --enable-werror was given.
14908 if test "${enable_werror+set}" = set; then :
14909 enableval=$enable_werror; case "${enableval}" in
14910 yes | y) ERROR_ON_WARNING="yes" ;;
14911 no | n) ERROR_ON_WARNING="no" ;;
14912 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14913 esac
14914 fi
14915
14916
14917 # Enable -Werror by default when using gcc
14918 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14919 ERROR_ON_WARNING=yes
14920 fi
14921
14922 WERROR_CFLAGS=""
14923 if test "${ERROR_ON_WARNING}" = yes ; then
14924 WERROR_CFLAGS="-Werror"
14925 fi
14926
14927 # The entries after -Wno-pointer-sign are disabled warnings which may
14928 # be enabled in the future, which can not currently be used to build
14929 # GDB.
14930 # NOTE: If you change this list, remember to update
14931 # gdb/doc/gdbint.texinfo.
14932 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14933 -Wformat-nonliteral -Wno-pointer-sign \
14934 -Wno-unused -Wunused-value -Wunused-function \
14935 -Wno-switch -Wno-char-subscripts"
14936
14937 # Enable -Wno-format by default when using gcc on mingw since many
14938 # GCC versions complain about %I64.
14939 case "${host}" in
14940 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14941 esac
14942
14943 # Check whether --enable-build-warnings was given.
14944 if test "${enable_build_warnings+set}" = set; then :
14945 enableval=$enable_build_warnings; case "${enableval}" in
14946 yes) ;;
14947 no) build_warnings="-w";;
14948 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14949 build_warnings="${build_warnings} ${t}";;
14950 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14951 build_warnings="${t} ${build_warnings}";;
14952 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14953 esac
14954 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14955 echo "Setting compiler warning flags = $build_warnings" 6>&1
14956 fi
14957 fi
14958 # Check whether --enable-gdb-build-warnings was given.
14959 if test "${enable_gdb_build_warnings+set}" = set; then :
14960 enableval=$enable_gdb_build_warnings; case "${enableval}" in
14961 yes) ;;
14962 no) build_warnings="-w";;
14963 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14964 build_warnings="${build_warnings} ${t}";;
14965 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14966 build_warnings="${t} ${build_warnings}";;
14967 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14968 esac
14969 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14970 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14971 fi
14972 fi
14973 WARN_CFLAGS=""
14974 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14975 then
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14977 $as_echo_n "checking compiler warning flags... " >&6; }
14978 # Separate out the -Werror flag as some files just cannot be
14979 # compiled with it enabled.
14980 for w in ${build_warnings}; do
14981 case $w in
14982 -Werr*) WERROR_CFLAGS=-Werror ;;
14983 *) # Check that GCC accepts it
14984 saved_CFLAGS="$CFLAGS"
14985 CFLAGS="$CFLAGS $w"
14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14987 /* end confdefs.h. */
14988
14989 int
14990 main ()
14991 {
14992
14993 ;
14994 return 0;
14995 }
14996 _ACEOF
14997 if ac_fn_c_try_compile "$LINENO"; then :
14998 WARN_CFLAGS="${WARN_CFLAGS} $w"
14999 fi
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 CFLAGS="$saved_CFLAGS"
15002 esac
15003 done
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15005 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15006 fi
15007
15008
15009
15010 # In the Cygwin environment, we need some additional flags.
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
15012 $as_echo_n "checking for cygwin... " >&6; }
15013 if test "${gdb_cv_os_cygwin+set}" = set; then :
15014 $as_echo_n "(cached) " >&6
15015 else
15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15018
15019 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15020 lose
15021 #endif
15022 _ACEOF
15023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15024 $EGREP "lose" >/dev/null 2>&1; then :
15025 gdb_cv_os_cygwin=yes
15026 else
15027 gdb_cv_os_cygwin=no
15028 fi
15029 rm -f conftest*
15030
15031 fi
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
15033 $as_echo "$gdb_cv_os_cygwin" >&6; }
15034
15035
15036 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
15037 case ${host} in
15038 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15039 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15040 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
15041 esac
15042
15043
15044 # libreadline needs libuser32.a in a cygwin environment
15045 WIN32LIBS=
15046 if test x$gdb_cv_os_cygwin = xyes; then
15047 WIN32LIBS="-luser32"
15048 case "${target}" in
15049 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15050 ;;
15051 esac
15052 fi
15053
15054 # The ser-tcp.c module requires sockets.
15055 case ${host} in
15056 *mingw32*)
15057
15058 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15059
15060 WIN32LIBS="$WIN32LIBS -lws2_32"
15061 ;;
15062 esac
15063
15064
15065 # Add ELF support to GDB, but only if BFD includes ELF support.
15066 OLD_CFLAGS=$CFLAGS
15067 OLD_LDFLAGS=$LDFLAGS
15068 OLD_LIBS=$LIBS
15069 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
15070 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
15071 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15072 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15073 if test "$plugins" = "yes"; then
15074 LIBS="-ldl $LIBS"
15075 fi
15076 LIBS="-lbfd -liberty $intl $LIBS"
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15078 $as_echo_n "checking for ELF support in BFD... " >&6; }
15079 if test "${gdb_cv_var_elf+set}" = set; then :
15080 $as_echo_n "(cached) " >&6
15081 else
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h. */
15084 #include <stdlib.h>
15085 #include "bfd.h"
15086 #include "elf-bfd.h"
15087
15088 int
15089 main ()
15090 {
15091 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
15092 ;
15093 return 0;
15094 }
15095 _ACEOF
15096 if ac_fn_c_try_link "$LINENO"; then :
15097 gdb_cv_var_elf=yes
15098 else
15099 gdb_cv_var_elf=no
15100 fi
15101 rm -f core conftest.err conftest.$ac_objext \
15102 conftest$ac_exeext conftest.$ac_ext
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15105 $as_echo "$gdb_cv_var_elf" >&6; }
15106 if test $gdb_cv_var_elf = yes; then
15107 CONFIG_OBS="$CONFIG_OBS elfread.o"
15108
15109 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15110
15111 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15112 if test "$plugins" = "yes"; then
15113 OLD_LIBS="-ldl $OLD_LIBS"
15114 fi
15115 fi
15116 CFLAGS=$OLD_CFLAGS
15117 LDFLAGS=$OLD_LDFLAGS
15118 LIBS=$OLD_LIBS
15119
15120 # Add any host-specific objects to GDB.
15121 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
15122
15123 LIBGUI="../libgui/src/libgui.a"
15124 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
15125
15126
15127
15128 WIN32LDAPP=
15129
15130
15131
15132 case "${host}" in
15133 *-*-cygwin* | *-*-mingw* )
15134 configdir="win"
15135 ;;
15136 *)
15137 configdir="unix"
15138 ;;
15139 esac
15140
15141 GDBTKLIBS=
15142 if test "${enable_gdbtk}" = "yes"; then
15143
15144 # Gdbtk must have an absolute path to srcdir in order to run
15145 # properly when not installed.
15146 here=`pwd`
15147 cd ${srcdir}
15148 GDBTK_SRC_DIR=`pwd`
15149 cd $here
15150
15151
15152 #
15153 # Ok, lets find the tcl configuration
15154 # First, look for one uninstalled.
15155 # the alternative search directory is invoked by --with-tcl
15156 #
15157
15158 if test x"${no_tcl}" = x ; then
15159 # we reset no_tcl in case something fails here
15160 no_tcl=true
15161
15162 # Check whether --with-tcl was given.
15163 if test "${with_tcl+set}" = set; then :
15164 withval=$with_tcl; with_tclconfig=${withval}
15165 fi
15166
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15168 $as_echo_n "checking for Tcl configuration... " >&6; }
15169 if test "${ac_cv_c_tclconfig+set}" = set; then :
15170 $as_echo_n "(cached) " >&6
15171 else
15172
15173
15174 # First check to see if --with-tcl was specified.
15175 case "${host}" in
15176 *-*-cygwin*) platDir="win" ;;
15177 *) platDir="unix" ;;
15178 esac
15179 if test x"${with_tclconfig}" != x ; then
15180 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15181 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15182 else
15183 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15184 fi
15185 fi
15186
15187 # then check for a private Tcl installation
15188 if test x"${ac_cv_c_tclconfig}" = x ; then
15189 for i in \
15190 ../tcl \
15191 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15192 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15193 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15194 ../../tcl \
15195 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15196 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15197 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15198 ../../../tcl \
15199 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15200 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15201 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15202 if test -f "$i/$platDir/tclConfig.sh" ; then
15203 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15204 break
15205 fi
15206 done
15207 fi
15208
15209 # on Darwin, check in Framework installation locations
15210 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15211 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15212 `ls -d /Library/Frameworks 2>/dev/null` \
15213 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15214 `ls -d /System/Library/Frameworks 2>/dev/null` \
15215 ; do
15216 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15217 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15218 break
15219 fi
15220 done
15221 fi
15222
15223 # check in a few common install locations
15224 if test x"${ac_cv_c_tclconfig}" = x ; then
15225 for i in `ls -d ${libdir} 2>/dev/null` \
15226 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15227 `ls -d ${prefix}/lib 2>/dev/null` \
15228 `ls -d /usr/local/lib 2>/dev/null` \
15229 `ls -d /usr/contrib/lib 2>/dev/null` \
15230 `ls -d /usr/lib 2>/dev/null` \
15231 ; do
15232 if test -f "$i/tclConfig.sh" ; then
15233 ac_cv_c_tclconfig=`(cd $i; pwd)`
15234 break
15235 fi
15236 done
15237 fi
15238
15239 # check in a few other private locations
15240 if test x"${ac_cv_c_tclconfig}" = x ; then
15241 for i in \
15242 ${srcdir}/../tcl \
15243 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15244 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15245 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15246 if test -f "$i/$platDir/tclConfig.sh" ; then
15247 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15248 break
15249 fi
15250 done
15251 fi
15252
15253 fi
15254
15255
15256 if test x"${ac_cv_c_tclconfig}" = x ; then
15257 TCL_BIN_DIR="# no Tcl configs found"
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15259 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15260 else
15261 no_tcl=
15262 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15264 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15265 fi
15266 fi
15267
15268
15269 # If $no_tk is nonempty, then we can't do Tk, and there is no
15270 # point to doing Tcl.
15271
15272 #
15273 # Ok, lets find the tk configuration
15274 # First, look for one uninstalled.
15275 # the alternative search directory is invoked by --with-tk
15276 #
15277
15278 if test x"${no_tk}" = x ; then
15279 # we reset no_tk in case something fails here
15280 no_tk=true
15281
15282 # Check whether --with-tk was given.
15283 if test "${with_tk+set}" = set; then :
15284 withval=$with_tk; with_tkconfig=${withval}
15285 fi
15286
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15288 $as_echo_n "checking for Tk configuration... " >&6; }
15289 if test "${ac_cv_c_tkconfig+set}" = set; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292
15293
15294 # First check to see if --with-tkconfig was specified.
15295 if test x"${with_tkconfig}" != x ; then
15296 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15297 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15298 else
15299 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15300 fi
15301 fi
15302
15303 # then check for a private Tk library
15304 case "${host}" in
15305 *-*-cygwin*) platDir="win" ;;
15306 *) platDir="unix" ;;
15307 esac
15308 if test x"${ac_cv_c_tkconfig}" = x ; then
15309 for i in \
15310 ../tk \
15311 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15312 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15313 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15314 ../../tk \
15315 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15316 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15317 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15318 ../../../tk \
15319 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15320 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15321 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15322 if test -f "$i/$platDir/tkConfig.sh" ; then
15323 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15324 break
15325 fi
15326 done
15327 fi
15328
15329 # on Darwin, check in Framework installation locations
15330 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15331 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15332 `ls -d /Library/Frameworks 2>/dev/null` \
15333 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15334 `ls -d /System/Library/Frameworks 2>/dev/null` \
15335 ; do
15336 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15337 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15338 break
15339 fi
15340 done
15341 fi
15342
15343 # check in a few common install locations
15344 if test x"${ac_cv_c_tkconfig}" = x ; then
15345 for i in `ls -d ${libdir} 2>/dev/null` \
15346 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15347 `ls -d ${prefix}/lib 2>/dev/null` \
15348 `ls -d /usr/local/lib 2>/dev/null` \
15349 `ls -d /usr/contrib/lib 2>/dev/null` \
15350 `ls -d /usr/lib 2>/dev/null` \
15351 ; do
15352 if test -f "$i/tkConfig.sh" ; then
15353 ac_cv_c_tkconfig=`(cd $i; pwd)`
15354 break
15355 fi
15356 done
15357 fi
15358 # check in a few other private locations
15359 if test x"${ac_cv_c_tkconfig}" = x ; then
15360 for i in \
15361 ${srcdir}/../tk \
15362 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15363 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15364 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15365 if test -f "$i/$platDir/tkConfig.sh" ; then
15366 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15367 break
15368 fi
15369 done
15370 fi
15371
15372 fi
15373
15374
15375 if test x"${ac_cv_c_tkconfig}" = x ; then
15376 TK_BIN_DIR="# no Tk configs found"
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15378 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15379 else
15380 no_tk=
15381 TK_BIN_DIR=${ac_cv_c_tkconfig}
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15383 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15384 fi
15385 fi
15386
15387
15388 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15389
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15391 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15392
15393 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15395 $as_echo "loading" >&6; }
15396 . ${TCL_BIN_DIR}/tclConfig.sh
15397 else
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15399 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15400 fi
15401
15402 # eval is required to do the TCL_DBGX substitution
15403 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15404 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15405
15406 # If the TCL_BIN_DIR is the build directory (not the install directory),
15407 # then set the common variable name to the value of the build variables.
15408 # For example, the variable TCL_LIB_SPEC will be set to the value
15409 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15410 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15411 # installed and uninstalled version of Tcl.
15412 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15413 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15414 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15415 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15416 elif test "`uname -s`" = "Darwin"; then
15417 # If Tcl was built as a framework, attempt to use the libraries
15418 # from the framework at the given location so that linking works
15419 # against Tcl.framework installed in an arbitary location.
15420 case ${TCL_DEFS} in
15421 *TCL_FRAMEWORK*)
15422 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15423 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15424 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15425 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15426 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15427 break
15428 fi
15429 done
15430 fi
15431 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15432 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15433 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15434 fi
15435 ;;
15436 esac
15437 fi
15438
15439 # eval is required to do the TCL_DBGX substitution
15440 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15441 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15442 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15443 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459 # Check for in-tree tcl
15460 here=`pwd`
15461 cd ${srcdir}/..
15462 topdir=`pwd`
15463 cd ${here}
15464
15465 intree="no"
15466 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15467 intree="yes"
15468 fi
15469
15470 # Find Tcl private headers
15471 if test x"${intree}" = xno; then
15472
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15474 $as_echo_n "checking for Tcl private headers... " >&6; }
15475 private_dir=""
15476 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15477 if test -f ${dir}/tclInt.h ; then
15478 private_dir=${dir}
15479 fi
15480
15481 if test x"${private_dir}" = x; then
15482 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15483 else
15484 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15486 $as_echo "${private_dir}" >&6; }
15487 fi
15488
15489 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15490 TCL_LIBRARY="${TCL_LIB_SPEC}"
15491 TCL_DEPS=""
15492 else
15493 # If building tcl in the same src tree, private headers
15494 # are not needed, but we need to be sure to use the right
15495 # headers library
15496 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15497 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15498 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15499 fi
15500
15501
15502
15503
15504
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15506 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15507
15508 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15510 $as_echo "loading" >&6; }
15511 . ${TK_BIN_DIR}/tkConfig.sh
15512 else
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15514 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15515 fi
15516
15517 # eval is required to do the TK_DBGX substitution
15518 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15519 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15520
15521 # If the TK_BIN_DIR is the build directory (not the install directory),
15522 # then set the common variable name to the value of the build variables.
15523 # For example, the variable TK_LIB_SPEC will be set to the value
15524 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15525 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15526 # installed and uninstalled version of Tcl.
15527 if test -f "${TK_BIN_DIR}/Makefile" ; then
15528 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15529 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15530 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15531 elif test "`uname -s`" = "Darwin"; then
15532 # If Tk was built as a framework, attempt to use the libraries
15533 # from the framework at the given location so that linking works
15534 # against Tk.framework installed in an arbitary location.
15535 case ${TK_DEFS} in
15536 *TK_FRAMEWORK*)
15537 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15538 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15539 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15540 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15541 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15542 break
15543 fi
15544 done
15545 fi
15546 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15547 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15548 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15549 fi
15550 ;;
15551 esac
15552 fi
15553
15554 # eval is required to do the TK_DBGX substitution
15555 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15556 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15557 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15558 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573 # Check for in-tree Tk
15574 intree="no"
15575 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15576 intree="yes"
15577 fi
15578
15579 # Find Tk private headers
15580 if test x"${intree}" = xno; then
15581
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15583 $as_echo_n "checking for Tk private headers... " >&6; }
15584 private_dir=""
15585 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15586 if test -f ${dir}/tkInt.h; then
15587 private_dir=${dir}
15588 fi
15589
15590 if test x"${private_dir}" = x; then
15591 as_fn_error "could not find Tk private headers" "$LINENO" 5
15592 else
15593 TK_PRIVATE_INCLUDE="-I${private_dir}"
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15595 $as_echo "${private_dir}" >&6; }
15596 fi
15597
15598 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15599 TK_LIBRARY=${TK_LIB_SPEC}
15600 TK_DEPS=""
15601 else
15602 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15603 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15604 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15605 fi
15606
15607
15608
15609
15610
15611 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15612
15613 # Include some libraries that Tcl and Tk want.
15614 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15615 # Yes, the ordering seems wrong here. But it isn't.
15616 # TK_LIBS is the list of libraries that need to be linked
15617 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15618 # were in LIBS then any link tests after this point would
15619 # try to include things like `$(LIBGUI)', which wouldn't work.
15620 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15621
15622 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15623 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15624 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15625 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15626 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15627 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15628 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15629
15630 if test x$gdb_cv_os_cygwin = xyes; then
15631 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15632 WIN32LDAPP="-Wl,--subsystem,console"
15633 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15634 fi
15635
15636 subdirs="$subdirs gdbtk"
15637
15638 fi
15639 fi
15640
15641
15642
15643
15644
15645
15646
15647
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15649 $as_echo_n "checking for X... " >&6; }
15650
15651
15652 # Check whether --with-x was given.
15653 if test "${with_x+set}" = set; then :
15654 withval=$with_x;
15655 fi
15656
15657 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15658 if test "x$with_x" = xno; then
15659 # The user explicitly disabled X.
15660 have_x=disabled
15661 else
15662 case $x_includes,$x_libraries in #(
15663 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15664 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15665 $as_echo_n "(cached) " >&6
15666 else
15667 # One or both of the vars are not set, and there is no cached value.
15668 ac_x_includes=no ac_x_libraries=no
15669 rm -f -r conftest.dir
15670 if mkdir conftest.dir; then
15671 cd conftest.dir
15672 cat >Imakefile <<'_ACEOF'
15673 incroot:
15674 @echo incroot='${INCROOT}'
15675 usrlibdir:
15676 @echo usrlibdir='${USRLIBDIR}'
15677 libdir:
15678 @echo libdir='${LIBDIR}'
15679 _ACEOF
15680 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15681 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15682 for ac_var in incroot usrlibdir libdir; do
15683 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15684 done
15685 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15686 for ac_extension in a so sl dylib la dll; do
15687 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15688 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15689 ac_im_usrlibdir=$ac_im_libdir; break
15690 fi
15691 done
15692 # Screen out bogus values from the imake configuration. They are
15693 # bogus both because they are the default anyway, and because
15694 # using them would break gcc on systems where it needs fixed includes.
15695 case $ac_im_incroot in
15696 /usr/include) ac_x_includes= ;;
15697 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15698 esac
15699 case $ac_im_usrlibdir in
15700 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15701 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15702 esac
15703 fi
15704 cd ..
15705 rm -f -r conftest.dir
15706 fi
15707
15708 # Standard set of common directories for X headers.
15709 # Check X11 before X11Rn because it is often a symlink to the current release.
15710 ac_x_header_dirs='
15711 /usr/X11/include
15712 /usr/X11R7/include
15713 /usr/X11R6/include
15714 /usr/X11R5/include
15715 /usr/X11R4/include
15716
15717 /usr/include/X11
15718 /usr/include/X11R7
15719 /usr/include/X11R6
15720 /usr/include/X11R5
15721 /usr/include/X11R4
15722
15723 /usr/local/X11/include
15724 /usr/local/X11R7/include
15725 /usr/local/X11R6/include
15726 /usr/local/X11R5/include
15727 /usr/local/X11R4/include
15728
15729 /usr/local/include/X11
15730 /usr/local/include/X11R7
15731 /usr/local/include/X11R6
15732 /usr/local/include/X11R5
15733 /usr/local/include/X11R4
15734
15735 /usr/X386/include
15736 /usr/x386/include
15737 /usr/XFree86/include/X11
15738
15739 /usr/include
15740 /usr/local/include
15741 /usr/unsupported/include
15742 /usr/athena/include
15743 /usr/local/x11r5/include
15744 /usr/lpp/Xamples/include
15745
15746 /usr/openwin/include
15747 /usr/openwin/share/include'
15748
15749 if test "$ac_x_includes" = no; then
15750 # Guess where to find include files, by looking for Xlib.h.
15751 # First, try using that file with no special directory specified.
15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h. */
15754 #include <X11/Xlib.h>
15755 _ACEOF
15756 if ac_fn_c_try_cpp "$LINENO"; then :
15757 # We can compile using X headers with no special include directory.
15758 ac_x_includes=
15759 else
15760 for ac_dir in $ac_x_header_dirs; do
15761 if test -r "$ac_dir/X11/Xlib.h"; then
15762 ac_x_includes=$ac_dir
15763 break
15764 fi
15765 done
15766 fi
15767 rm -f conftest.err conftest.$ac_ext
15768 fi # $ac_x_includes = no
15769
15770 if test "$ac_x_libraries" = no; then
15771 # Check for the libraries.
15772 # See if we find them without any special options.
15773 # Don't add to $LIBS permanently.
15774 ac_save_LIBS=$LIBS
15775 LIBS="-lX11 $LIBS"
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 #include <X11/Xlib.h>
15779 int
15780 main ()
15781 {
15782 XrmInitialize ()
15783 ;
15784 return 0;
15785 }
15786 _ACEOF
15787 if ac_fn_c_try_link "$LINENO"; then :
15788 LIBS=$ac_save_LIBS
15789 # We can link X programs with no special library path.
15790 ac_x_libraries=
15791 else
15792 LIBS=$ac_save_LIBS
15793 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15794 do
15795 # Don't even attempt the hair of trying to link an X program!
15796 for ac_extension in a so sl dylib la dll; do
15797 if test -r "$ac_dir/libX11.$ac_extension"; then
15798 ac_x_libraries=$ac_dir
15799 break 2
15800 fi
15801 done
15802 done
15803 fi
15804 rm -f core conftest.err conftest.$ac_objext \
15805 conftest$ac_exeext conftest.$ac_ext
15806 fi # $ac_x_libraries = no
15807
15808 case $ac_x_includes,$ac_x_libraries in #(
15809 no,* | *,no | *\'*)
15810 # Didn't find X, or a directory has "'" in its name.
15811 ac_cv_have_x="have_x=no";; #(
15812 *)
15813 # Record where we found X for the cache.
15814 ac_cv_have_x="have_x=yes\
15815 ac_x_includes='$ac_x_includes'\
15816 ac_x_libraries='$ac_x_libraries'"
15817 esac
15818 fi
15819 ;; #(
15820 *) have_x=yes;;
15821 esac
15822 eval "$ac_cv_have_x"
15823 fi # $with_x != no
15824
15825 if test "$have_x" != yes; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15827 $as_echo "$have_x" >&6; }
15828 no_x=yes
15829 else
15830 # If each of the values was on the command line, it overrides each guess.
15831 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15832 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15833 # Update the cache value to reflect the command line values.
15834 ac_cv_have_x="have_x=yes\
15835 ac_x_includes='$x_includes'\
15836 ac_x_libraries='$x_libraries'"
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15838 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15839 fi
15840
15841
15842 # Unlike the sim directory, whether a simulator is linked is controlled by
15843 # presence of a gdb_sim definition in the target configure.tgt entry.
15844 # This code just checks for a few cases where we'd like to ignore those
15845 # definitions, even when they're present in the '.mt' file. These cases
15846 # are when --disable-sim is specified, or if the simulator directory is
15847 # not part of the source tree.
15848 #
15849 # Check whether --enable-sim was given.
15850 if test "${enable_sim+set}" = set; then :
15851 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15852 echo "enableval = ${enableval}";
15853 case "${enableval}" in
15854 yes) ignore_sim=false ;;
15855 no) ignore_sim=true ;;
15856 *) ignore_sim=false ;;
15857 esac
15858 else
15859 ignore_sim=false
15860 fi
15861
15862
15863 if test ! -d "${srcdir}/../sim"; then
15864 ignore_sim=true
15865 fi
15866
15867 SIM=
15868 SIM_OBS=
15869 if test "${ignore_sim}" = "false"; then
15870 if test x"${gdb_sim}" != x ; then
15871 SIM="${gdb_sim}"
15872 SIM_OBS="remote-sim.o"
15873
15874 $as_echo "#define WITH_SIM 1" >>confdefs.h
15875
15876 fi
15877 fi
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892 # List of host floatformats.
15893
15894 cat >>confdefs.h <<_ACEOF
15895 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15896 _ACEOF
15897
15898
15899 cat >>confdefs.h <<_ACEOF
15900 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15901 _ACEOF
15902
15903
15904 cat >>confdefs.h <<_ACEOF
15905 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15906 _ACEOF
15907
15908
15909 # target_subdir is used by the testsuite to find the target libraries.
15910 target_subdir=
15911 if test "${host}" != "${target}"; then
15912 target_subdir="${target_alias}/"
15913 fi
15914
15915
15916 frags=
15917 if test "${gdb_native}" = "yes"; then
15918 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15919 if test ! -f ${host_makefile_frag}; then
15920 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15921 fi
15922 frags="$frags $host_makefile_frag"
15923 else
15924 host_makefile_frag=/dev/null
15925 fi
15926
15927
15928
15929
15930 if test "${gdb_native}" = "yes"; then
15931 # We pick this up from the host configuration file (.mh) because we
15932 # do not have a native configuration Makefile fragment.
15933 nativefile=`sed -n '
15934 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15935 ' ${host_makefile_frag}`
15936 fi
15937
15938
15939 if test x"${gdb_osabi}" != x ; then
15940
15941 cat >>confdefs.h <<_ACEOF
15942 #define GDB_OSABI_DEFAULT $gdb_osabi
15943 _ACEOF
15944
15945 fi
15946
15947 # Enable multi-ice-gdb-server.
15948 # Check whether --enable-multi-ice was given.
15949 if test "${enable_multi_ice+set}" = set; then :
15950 enableval=$enable_multi_ice; case $enableval in
15951 yes | no)
15952 ;;
15953 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15954 esac
15955 fi
15956
15957 if test "x$enable_multi_ice" = xyes; then
15958 subdirs="$subdirs multi-ice"
15959
15960 fi
15961
15962 # Check whether --enable-gdbserver was given.
15963 if test "${enable_gdbserver+set}" = set; then :
15964 enableval=$enable_gdbserver; case "${enableval}" in
15965 yes| no|auto) ;;
15966 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15967 esac
15968 else
15969 enable_gdbserver=auto
15970 fi
15971
15972
15973 # We only build gdbserver automatically in a native configuration, and
15974 # only if the user did not explicitly disable its build.
15975 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15977 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15978 if test "x$build_gdbserver" = xyes; then
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15980 $as_echo "yes" >&6; }
15981 subdirs="$subdirs gdbserver"
15982
15983 gdbserver_build_enabled=yes
15984 else
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15986 $as_echo "no" >&6; }
15987 fi
15988 fi
15989
15990 # If the user explicitly request the gdbserver to be built, verify that
15991 # we were in fact able to enable it.
15992 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15993 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15994 fi
15995
15996 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15997 # to an empty version.
15998
15999 files=
16000 links=
16001
16002 rm -f nm.h
16003 if test "${nativefile}" != ""; then
16004 case "${nativefile}" in
16005 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
16006 * ) GDB_NM_FILE="${nativefile}"
16007 esac
16008 files="${files} ${GDB_NM_FILE}"
16009 links="${links} nm.h"
16010
16011 cat >>confdefs.h <<_ACEOF
16012 #define GDB_NM_FILE "${GDB_NM_FILE}"
16013 _ACEOF
16014
16015 fi
16016
16017
16018 ac_sources="$files"
16019 ac_dests="$links"
16020 while test -n "$ac_sources"; do
16021 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16022 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16023 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
16024 done
16025 ac_config_links="$ac_config_links $ac_config_links_1"
16026
16027
16028
16029
16030
16031 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16032
16033
16034 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
16035
16036 ac_config_commands="$ac_config_commands default"
16037
16038 cat >confcache <<\_ACEOF
16039 # This file is a shell script that caches the results of configure
16040 # tests run on this system so they can be shared between configure
16041 # scripts and configure runs, see configure's option --config-cache.
16042 # It is not useful on other systems. If it contains results you don't
16043 # want to keep, you may remove or edit it.
16044 #
16045 # config.status only pays attention to the cache file if you give it
16046 # the --recheck option to rerun configure.
16047 #
16048 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16049 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16050 # following values.
16051
16052 _ACEOF
16053
16054 # The following way of writing the cache mishandles newlines in values,
16055 # but we know of no workaround that is simple, portable, and efficient.
16056 # So, we kill variables containing newlines.
16057 # Ultrix sh set writes to stderr and can't be redirected directly,
16058 # and sets the high bit in the cache file unless we assign to the vars.
16059 (
16060 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16061 eval ac_val=\$$ac_var
16062 case $ac_val in #(
16063 *${as_nl}*)
16064 case $ac_var in #(
16065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16066 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16067 esac
16068 case $ac_var in #(
16069 _ | IFS | as_nl) ;; #(
16070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16071 *) { eval $ac_var=; unset $ac_var;} ;;
16072 esac ;;
16073 esac
16074 done
16075
16076 (set) 2>&1 |
16077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16078 *${as_nl}ac_space=\ *)
16079 # `set' does not quote correctly, so add quotes: double-quote
16080 # substitution turns \\\\ into \\, and sed turns \\ into \.
16081 sed -n \
16082 "s/'/'\\\\''/g;
16083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16084 ;; #(
16085 *)
16086 # `set' quotes correctly as required by POSIX, so do not add quotes.
16087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16088 ;;
16089 esac |
16090 sort
16091 ) |
16092 sed '
16093 /^ac_cv_env_/b end
16094 t clear
16095 :clear
16096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16097 t end
16098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16099 :end' >>confcache
16100 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16101 if test -w "$cache_file"; then
16102 test "x$cache_file" != "x/dev/null" &&
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16104 $as_echo "$as_me: updating cache $cache_file" >&6;}
16105 cat confcache >$cache_file
16106 else
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16108 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16109 fi
16110 fi
16111 rm -f confcache
16112
16113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16114 # Let make expand exec_prefix.
16115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16116
16117 DEFS=-DHAVE_CONFIG_H
16118
16119 ac_libobjs=
16120 ac_ltlibobjs=
16121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16122 # 1. Remove the extension, and $U if already installed.
16123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16126 # will be set to the directory where LIBOBJS objects are built.
16127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16129 done
16130 LIBOBJS=$ac_libobjs
16131
16132 LTLIBOBJS=$ac_ltlibobjs
16133
16134
16135 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16136 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16138 fi
16139 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16140 as_fn_error "conditional \"GMAKE\" was never defined.
16141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16142 fi
16143 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16144 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16146 fi
16147
16148 gl_libobjs=
16149 gl_ltlibobjs=
16150 if test -n "$gl_LIBOBJS"; then
16151 # Remove the extension.
16152 sed_drop_objext='s/\.o$//;s/\.obj$//'
16153 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16154 gl_libobjs="$gl_libobjs $i.$ac_objext"
16155 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16156 done
16157 fi
16158 gl_LIBOBJS=$gl_libobjs
16159
16160 gl_LTLIBOBJS=$gl_ltlibobjs
16161
16162
16163
16164 gltests_libobjs=
16165 gltests_ltlibobjs=
16166 if test -n "$gltests_LIBOBJS"; then
16167 # Remove the extension.
16168 sed_drop_objext='s/\.o$//;s/\.obj$//'
16169 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16170 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16171 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16172 done
16173 fi
16174 gltests_LIBOBJS=$gltests_libobjs
16175
16176 gltests_LTLIBOBJS=$gltests_ltlibobjs
16177
16178
16179 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16180 as_fn_error "conditional \"AMDEP\" was never defined.
16181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16182 fi
16183 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16184 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16186 fi
16187 if test -n "$EXEEXT"; then
16188 am__EXEEXT_TRUE=
16189 am__EXEEXT_FALSE='#'
16190 else
16191 am__EXEEXT_TRUE='#'
16192 am__EXEEXT_FALSE=
16193 fi
16194
16195
16196
16197 : ${CONFIG_STATUS=./config.status}
16198 ac_write_fail=0
16199 ac_clean_files_save=$ac_clean_files
16200 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16202 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16203 as_write_fail=0
16204 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16205 #! $SHELL
16206 # Generated by $as_me.
16207 # Run this file to recreate the current configuration.
16208 # Compiler output produced by configure, useful for debugging
16209 # configure, is in config.log if it exists.
16210
16211 debug=false
16212 ac_cs_recheck=false
16213 ac_cs_silent=false
16214
16215 SHELL=\${CONFIG_SHELL-$SHELL}
16216 export SHELL
16217 _ASEOF
16218 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16219 ## -------------------- ##
16220 ## M4sh Initialization. ##
16221 ## -------------------- ##
16222
16223 # Be more Bourne compatible
16224 DUALCASE=1; export DUALCASE # for MKS sh
16225 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16226 emulate sh
16227 NULLCMD=:
16228 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16229 # is contrary to our usage. Disable this feature.
16230 alias -g '${1+"$@"}'='"$@"'
16231 setopt NO_GLOB_SUBST
16232 else
16233 case `(set -o) 2>/dev/null` in #(
16234 *posix*) :
16235 set -o posix ;; #(
16236 *) :
16237 ;;
16238 esac
16239 fi
16240
16241
16242 as_nl='
16243 '
16244 export as_nl
16245 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16246 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16248 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16249 # Prefer a ksh shell builtin over an external printf program on Solaris,
16250 # but without wasting forks for bash or zsh.
16251 if test -z "$BASH_VERSION$ZSH_VERSION" \
16252 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16253 as_echo='print -r --'
16254 as_echo_n='print -rn --'
16255 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16256 as_echo='printf %s\n'
16257 as_echo_n='printf %s'
16258 else
16259 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16260 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16261 as_echo_n='/usr/ucb/echo -n'
16262 else
16263 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16264 as_echo_n_body='eval
16265 arg=$1;
16266 case $arg in #(
16267 *"$as_nl"*)
16268 expr "X$arg" : "X\\(.*\\)$as_nl";
16269 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16270 esac;
16271 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16272 '
16273 export as_echo_n_body
16274 as_echo_n='sh -c $as_echo_n_body as_echo'
16275 fi
16276 export as_echo_body
16277 as_echo='sh -c $as_echo_body as_echo'
16278 fi
16279
16280 # The user is always right.
16281 if test "${PATH_SEPARATOR+set}" != set; then
16282 PATH_SEPARATOR=:
16283 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16284 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16285 PATH_SEPARATOR=';'
16286 }
16287 fi
16288
16289
16290 # IFS
16291 # We need space, tab and new line, in precisely that order. Quoting is
16292 # there to prevent editors from complaining about space-tab.
16293 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16294 # splitting by setting IFS to empty value.)
16295 IFS=" "" $as_nl"
16296
16297 # Find who we are. Look in the path if we contain no directory separator.
16298 case $0 in #((
16299 *[\\/]* ) as_myself=$0 ;;
16300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16301 for as_dir in $PATH
16302 do
16303 IFS=$as_save_IFS
16304 test -z "$as_dir" && as_dir=.
16305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16306 done
16307 IFS=$as_save_IFS
16308
16309 ;;
16310 esac
16311 # We did not find ourselves, most probably we were run as `sh COMMAND'
16312 # in which case we are not to be found in the path.
16313 if test "x$as_myself" = x; then
16314 as_myself=$0
16315 fi
16316 if test ! -f "$as_myself"; then
16317 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16318 exit 1
16319 fi
16320
16321 # Unset variables that we do not need and which cause bugs (e.g. in
16322 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16323 # suppresses any "Segmentation fault" message there. '((' could
16324 # trigger a bug in pdksh 5.2.14.
16325 for as_var in BASH_ENV ENV MAIL MAILPATH
16326 do eval test x\${$as_var+set} = xset \
16327 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16328 done
16329 PS1='$ '
16330 PS2='> '
16331 PS4='+ '
16332
16333 # NLS nuisances.
16334 LC_ALL=C
16335 export LC_ALL
16336 LANGUAGE=C
16337 export LANGUAGE
16338
16339 # CDPATH.
16340 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16341
16342
16343 # as_fn_error ERROR [LINENO LOG_FD]
16344 # ---------------------------------
16345 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16346 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16347 # script with status $?, using 1 if that was 0.
16348 as_fn_error ()
16349 {
16350 as_status=$?; test $as_status -eq 0 && as_status=1
16351 if test "$3"; then
16352 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16353 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16354 fi
16355 $as_echo "$as_me: error: $1" >&2
16356 as_fn_exit $as_status
16357 } # as_fn_error
16358
16359
16360 # as_fn_set_status STATUS
16361 # -----------------------
16362 # Set $? to STATUS, without forking.
16363 as_fn_set_status ()
16364 {
16365 return $1
16366 } # as_fn_set_status
16367
16368 # as_fn_exit STATUS
16369 # -----------------
16370 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16371 as_fn_exit ()
16372 {
16373 set +e
16374 as_fn_set_status $1
16375 exit $1
16376 } # as_fn_exit
16377
16378 # as_fn_unset VAR
16379 # ---------------
16380 # Portably unset VAR.
16381 as_fn_unset ()
16382 {
16383 { eval $1=; unset $1;}
16384 }
16385 as_unset=as_fn_unset
16386 # as_fn_append VAR VALUE
16387 # ----------------------
16388 # Append the text in VALUE to the end of the definition contained in VAR. Take
16389 # advantage of any shell optimizations that allow amortized linear growth over
16390 # repeated appends, instead of the typical quadratic growth present in naive
16391 # implementations.
16392 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16393 eval 'as_fn_append ()
16394 {
16395 eval $1+=\$2
16396 }'
16397 else
16398 as_fn_append ()
16399 {
16400 eval $1=\$$1\$2
16401 }
16402 fi # as_fn_append
16403
16404 # as_fn_arith ARG...
16405 # ------------------
16406 # Perform arithmetic evaluation on the ARGs, and store the result in the
16407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16408 # must be portable across $(()) and expr.
16409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16410 eval 'as_fn_arith ()
16411 {
16412 as_val=$(( $* ))
16413 }'
16414 else
16415 as_fn_arith ()
16416 {
16417 as_val=`expr "$@" || test $? -eq 1`
16418 }
16419 fi # as_fn_arith
16420
16421
16422 if expr a : '\(a\)' >/dev/null 2>&1 &&
16423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16424 as_expr=expr
16425 else
16426 as_expr=false
16427 fi
16428
16429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16430 as_basename=basename
16431 else
16432 as_basename=false
16433 fi
16434
16435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16436 as_dirname=dirname
16437 else
16438 as_dirname=false
16439 fi
16440
16441 as_me=`$as_basename -- "$0" ||
16442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16443 X"$0" : 'X\(//\)$' \| \
16444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16445 $as_echo X/"$0" |
16446 sed '/^.*\/\([^/][^/]*\)\/*$/{
16447 s//\1/
16448 q
16449 }
16450 /^X\/\(\/\/\)$/{
16451 s//\1/
16452 q
16453 }
16454 /^X\/\(\/\).*/{
16455 s//\1/
16456 q
16457 }
16458 s/.*/./; q'`
16459
16460 # Avoid depending upon Character Ranges.
16461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16464 as_cr_digits='0123456789'
16465 as_cr_alnum=$as_cr_Letters$as_cr_digits
16466
16467 ECHO_C= ECHO_N= ECHO_T=
16468 case `echo -n x` in #(((((
16469 -n*)
16470 case `echo 'xy\c'` in
16471 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16472 xy) ECHO_C='\c';;
16473 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16474 ECHO_T=' ';;
16475 esac;;
16476 *)
16477 ECHO_N='-n';;
16478 esac
16479
16480 rm -f conf$$ conf$$.exe conf$$.file
16481 if test -d conf$$.dir; then
16482 rm -f conf$$.dir/conf$$.file
16483 else
16484 rm -f conf$$.dir
16485 mkdir conf$$.dir 2>/dev/null
16486 fi
16487 if (echo >conf$$.file) 2>/dev/null; then
16488 if ln -s conf$$.file conf$$ 2>/dev/null; then
16489 as_ln_s='ln -s'
16490 # ... but there are two gotchas:
16491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16493 # In both cases, we have to default to `cp -p'.
16494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16495 as_ln_s='cp -p'
16496 elif ln conf$$.file conf$$ 2>/dev/null; then
16497 as_ln_s=ln
16498 else
16499 as_ln_s='cp -p'
16500 fi
16501 else
16502 as_ln_s='cp -p'
16503 fi
16504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16505 rmdir conf$$.dir 2>/dev/null
16506
16507
16508 # as_fn_mkdir_p
16509 # -------------
16510 # Create "$as_dir" as a directory, including parents if necessary.
16511 as_fn_mkdir_p ()
16512 {
16513
16514 case $as_dir in #(
16515 -*) as_dir=./$as_dir;;
16516 esac
16517 test -d "$as_dir" || eval $as_mkdir_p || {
16518 as_dirs=
16519 while :; do
16520 case $as_dir in #(
16521 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16522 *) as_qdir=$as_dir;;
16523 esac
16524 as_dirs="'$as_qdir' $as_dirs"
16525 as_dir=`$as_dirname -- "$as_dir" ||
16526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16527 X"$as_dir" : 'X\(//\)[^/]' \| \
16528 X"$as_dir" : 'X\(//\)$' \| \
16529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16530 $as_echo X"$as_dir" |
16531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16532 s//\1/
16533 q
16534 }
16535 /^X\(\/\/\)[^/].*/{
16536 s//\1/
16537 q
16538 }
16539 /^X\(\/\/\)$/{
16540 s//\1/
16541 q
16542 }
16543 /^X\(\/\).*/{
16544 s//\1/
16545 q
16546 }
16547 s/.*/./; q'`
16548 test -d "$as_dir" && break
16549 done
16550 test -z "$as_dirs" || eval "mkdir $as_dirs"
16551 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16552
16553
16554 } # as_fn_mkdir_p
16555 if mkdir -p . 2>/dev/null; then
16556 as_mkdir_p='mkdir -p "$as_dir"'
16557 else
16558 test -d ./-p && rmdir ./-p
16559 as_mkdir_p=false
16560 fi
16561
16562 if test -x / >/dev/null 2>&1; then
16563 as_test_x='test -x'
16564 else
16565 if ls -dL / >/dev/null 2>&1; then
16566 as_ls_L_option=L
16567 else
16568 as_ls_L_option=
16569 fi
16570 as_test_x='
16571 eval sh -c '\''
16572 if test -d "$1"; then
16573 test -d "$1/.";
16574 else
16575 case $1 in #(
16576 -*)set "./$1";;
16577 esac;
16578 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16579 ???[sx]*):;;*)false;;esac;fi
16580 '\'' sh
16581 '
16582 fi
16583 as_executable_p=$as_test_x
16584
16585 # Sed expression to map a string onto a valid CPP name.
16586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16587
16588 # Sed expression to map a string onto a valid variable name.
16589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16590
16591
16592 exec 6>&1
16593 ## ----------------------------------- ##
16594 ## Main body of $CONFIG_STATUS script. ##
16595 ## ----------------------------------- ##
16596 _ASEOF
16597 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16598
16599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16600 # Save the log message, to keep $0 and so on meaningful, and to
16601 # report actual input values of CONFIG_FILES etc. instead of their
16602 # values after options handling.
16603 ac_log="
16604 This file was extended by $as_me, which was
16605 generated by GNU Autoconf 2.64. Invocation command line was
16606
16607 CONFIG_FILES = $CONFIG_FILES
16608 CONFIG_HEADERS = $CONFIG_HEADERS
16609 CONFIG_LINKS = $CONFIG_LINKS
16610 CONFIG_COMMANDS = $CONFIG_COMMANDS
16611 $ $0 $@
16612
16613 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16614 "
16615
16616 _ACEOF
16617
16618 case $ac_config_files in *"
16619 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16620 esac
16621
16622 case $ac_config_headers in *"
16623 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16624 esac
16625
16626
16627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16628 # Files that config.status was made for.
16629 config_files="$ac_config_files"
16630 config_headers="$ac_config_headers"
16631 config_links="$ac_config_links"
16632 config_commands="$ac_config_commands"
16633
16634 _ACEOF
16635
16636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16637 ac_cs_usage="\
16638 \`$as_me' instantiates files and other configuration actions
16639 from templates according to the current configuration. Unless the files
16640 and actions are specified as TAGs, all are instantiated by default.
16641
16642 Usage: $0 [OPTION]... [TAG]...
16643
16644 -h, --help print this help, then exit
16645 -V, --version print version number and configuration settings, then exit
16646 -q, --quiet, --silent
16647 do not print progress messages
16648 -d, --debug don't remove temporary files
16649 --recheck update $as_me by reconfiguring in the same conditions
16650 --file=FILE[:TEMPLATE]
16651 instantiate the configuration file FILE
16652 --header=FILE[:TEMPLATE]
16653 instantiate the configuration header FILE
16654
16655 Configuration files:
16656 $config_files
16657
16658 Configuration headers:
16659 $config_headers
16660
16661 Configuration links:
16662 $config_links
16663
16664 Configuration commands:
16665 $config_commands
16666
16667 Report bugs to the package provider."
16668
16669 _ACEOF
16670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16671 ac_cs_version="\\
16672 config.status
16673 configured by $0, generated by GNU Autoconf 2.64,
16674 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16675
16676 Copyright (C) 2009 Free Software Foundation, Inc.
16677 This config.status script is free software; the Free Software Foundation
16678 gives unlimited permission to copy, distribute and modify it."
16679
16680 ac_pwd='$ac_pwd'
16681 srcdir='$srcdir'
16682 INSTALL='$INSTALL'
16683 MKDIR_P='$MKDIR_P'
16684 AWK='$AWK'
16685 test -n "\$AWK" || AWK=awk
16686 _ACEOF
16687
16688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16689 # The default lists apply if the user does not specify any file.
16690 ac_need_defaults=:
16691 while test $# != 0
16692 do
16693 case $1 in
16694 --*=*)
16695 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16696 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16697 ac_shift=:
16698 ;;
16699 *)
16700 ac_option=$1
16701 ac_optarg=$2
16702 ac_shift=shift
16703 ;;
16704 esac
16705
16706 case $ac_option in
16707 # Handling of the options.
16708 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16709 ac_cs_recheck=: ;;
16710 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16711 $as_echo "$ac_cs_version"; exit ;;
16712 --debug | --debu | --deb | --de | --d | -d )
16713 debug=: ;;
16714 --file | --fil | --fi | --f )
16715 $ac_shift
16716 case $ac_optarg in
16717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16718 esac
16719 as_fn_append CONFIG_FILES " '$ac_optarg'"
16720 ac_need_defaults=false;;
16721 --header | --heade | --head | --hea )
16722 $ac_shift
16723 case $ac_optarg in
16724 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16725 esac
16726 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16727 ac_need_defaults=false;;
16728 --he | --h)
16729 # Conflict between --help and --header
16730 as_fn_error "ambiguous option: \`$1'
16731 Try \`$0 --help' for more information.";;
16732 --help | --hel | -h )
16733 $as_echo "$ac_cs_usage"; exit ;;
16734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16735 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16736 ac_cs_silent=: ;;
16737
16738 # This is an error.
16739 -*) as_fn_error "unrecognized option: \`$1'
16740 Try \`$0 --help' for more information." ;;
16741
16742 *) as_fn_append ac_config_targets " $1"
16743 ac_need_defaults=false ;;
16744
16745 esac
16746 shift
16747 done
16748
16749 ac_configure_extra_args=
16750
16751 if $ac_cs_silent; then
16752 exec 6>/dev/null
16753 ac_configure_extra_args="$ac_configure_extra_args --silent"
16754 fi
16755
16756 _ACEOF
16757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16758 if \$ac_cs_recheck; then
16759 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16760 shift
16761 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16762 CONFIG_SHELL='$SHELL'
16763 export CONFIG_SHELL
16764 exec "\$@"
16765 fi
16766
16767 _ACEOF
16768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16769 exec 5>>config.log
16770 {
16771 echo
16772 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16773 ## Running $as_me. ##
16774 _ASBOX
16775 $as_echo "$ac_log"
16776 } >&5
16777
16778 _ACEOF
16779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780 #
16781 # INIT-COMMANDS
16782 #
16783 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16784 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16785
16786 _ACEOF
16787
16788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16789
16790 # Handling of arguments.
16791 for ac_config_target in $ac_config_targets
16792 do
16793 case $ac_config_target in
16794 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16795 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16796 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16797 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16798 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16799 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16800 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16801 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16802 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16803 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16804
16805 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16806 esac
16807 done
16808
16809
16810 # If the user did not use the arguments to specify the items to instantiate,
16811 # then the envvar interface is used. Set only those that are not.
16812 # We use the long form for the default assignment because of an extremely
16813 # bizarre bug on SunOS 4.1.3.
16814 if $ac_need_defaults; then
16815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16817 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16818 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16819 fi
16820
16821 # Have a temporary directory for convenience. Make it in the build tree
16822 # simply because there is no reason against having it here, and in addition,
16823 # creating and moving files from /tmp can sometimes cause problems.
16824 # Hook for its removal unless debugging.
16825 # Note that there is a small window in which the directory will not be cleaned:
16826 # after its creation but before its name has been assigned to `$tmp'.
16827 $debug ||
16828 {
16829 tmp=
16830 trap 'exit_status=$?
16831 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16832 ' 0
16833 trap 'as_fn_exit 1' 1 2 13 15
16834 }
16835 # Create a (secure) tmp directory for tmp files.
16836
16837 {
16838 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16839 test -n "$tmp" && test -d "$tmp"
16840 } ||
16841 {
16842 tmp=./conf$$-$RANDOM
16843 (umask 077 && mkdir "$tmp")
16844 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16845
16846 # Set up the scripts for CONFIG_FILES section.
16847 # No need to generate them if there are no CONFIG_FILES.
16848 # This happens for instance with `./config.status config.h'.
16849 if test -n "$CONFIG_FILES"; then
16850
16851 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16852 ac_cs_awk_getline=:
16853 ac_cs_awk_pipe_init=
16854 ac_cs_awk_read_file='
16855 while ((getline aline < (F[key])) > 0)
16856 print(aline)
16857 close(F[key])'
16858 ac_cs_awk_pipe_fini=
16859 else
16860 ac_cs_awk_getline=false
16861 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16862 ac_cs_awk_read_file='
16863 print "|#_!!_#|"
16864 print "cat " F[key] " &&"
16865 '$ac_cs_awk_pipe_init
16866 # The final `:' finishes the AND list.
16867 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16868 fi
16869 ac_cr=`echo X | tr X '\015'`
16870 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16871 # But we know of no other shell where ac_cr would be empty at this
16872 # point, so we can use a bashism as a fallback.
16873 if test "x$ac_cr" = x; then
16874 eval ac_cr=\$\'\\r\'
16875 fi
16876 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16877 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16878 ac_cs_awk_cr='\r'
16879 else
16880 ac_cs_awk_cr=$ac_cr
16881 fi
16882
16883 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16884 _ACEOF
16885
16886 # Create commands to substitute file output variables.
16887 {
16888 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16889 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16890 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16891 echo "_ACAWK" &&
16892 echo "_ACEOF"
16893 } >conf$$files.sh &&
16894 . ./conf$$files.sh ||
16895 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16896 rm -f conf$$files.sh
16897
16898 {
16899 echo "cat >conf$$subs.awk <<_ACEOF" &&
16900 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16901 echo "_ACEOF"
16902 } >conf$$subs.sh ||
16903 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16904 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16905 ac_delim='%!_!# '
16906 for ac_last_try in false false false false false :; do
16907 . ./conf$$subs.sh ||
16908 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16909
16910 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16911 if test $ac_delim_n = $ac_delim_num; then
16912 break
16913 elif $ac_last_try; then
16914 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16915 else
16916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16917 fi
16918 done
16919 rm -f conf$$subs.sh
16920
16921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16922 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16923 _ACEOF
16924 sed -n '
16925 h
16926 s/^/S["/; s/!.*/"]=/
16927 p
16928 g
16929 s/^[^!]*!//
16930 :repl
16931 t repl
16932 s/'"$ac_delim"'$//
16933 t delim
16934 :nl
16935 h
16936 s/\(.\{148\}\).*/\1/
16937 t more1
16938 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16939 p
16940 n
16941 b repl
16942 :more1
16943 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16944 p
16945 g
16946 s/.\{148\}//
16947 t nl
16948 :delim
16949 h
16950 s/\(.\{148\}\).*/\1/
16951 t more2
16952 s/["\\]/\\&/g; s/^/"/; s/$/"/
16953 p
16954 b
16955 :more2
16956 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16957 p
16958 g
16959 s/.\{148\}//
16960 t delim
16961 ' <conf$$subs.awk | sed '
16962 /^[^""]/{
16963 N
16964 s/\n//
16965 }
16966 ' >>$CONFIG_STATUS || ac_write_fail=1
16967 rm -f conf$$subs.awk
16968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16969 _ACAWK
16970 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16971 for (key in S) S_is_set[key] = 1
16972 FS = "\a"
16973 \$ac_cs_awk_pipe_init
16974 }
16975 {
16976 line = $ 0
16977 nfields = split(line, field, "@")
16978 substed = 0
16979 len = length(field[1])
16980 for (i = 2; i < nfields; i++) {
16981 key = field[i]
16982 keylen = length(key)
16983 if (S_is_set[key]) {
16984 value = S[key]
16985 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16986 len += length(value) + length(field[++i])
16987 substed = 1
16988 } else
16989 len += 1 + keylen
16990 }
16991 if (nfields == 3 && !substed) {
16992 key = field[2]
16993 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16994 \$ac_cs_awk_read_file
16995 next
16996 }
16997 }
16998 print line
16999 }
17000 \$ac_cs_awk_pipe_fini
17001 _ACAWK
17002 _ACEOF
17003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17004 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17005 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17006 else
17007 cat
17008 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17009 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17010 _ACEOF
17011
17012 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17013 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17014 # trailing colons and then remove the whole line if VPATH becomes empty
17015 # (actually we leave an empty line to preserve line numbers).
17016 if test "x$srcdir" = x.; then
17017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17018 s/:*\$(srcdir):*/:/
17019 s/:*\${srcdir}:*/:/
17020 s/:*@srcdir@:*/:/
17021 s/^\([^=]*=[ ]*\):*/\1/
17022 s/:*$//
17023 s/^[^=]*=[ ]*$//
17024 }'
17025 fi
17026
17027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17028 fi # test -n "$CONFIG_FILES"
17029
17030 # Set up the scripts for CONFIG_HEADERS section.
17031 # No need to generate them if there are no CONFIG_HEADERS.
17032 # This happens for instance with `./config.status Makefile'.
17033 if test -n "$CONFIG_HEADERS"; then
17034 cat >"$tmp/defines.awk" <<\_ACAWK ||
17035 BEGIN {
17036 _ACEOF
17037
17038 # Transform confdefs.h into an awk script `defines.awk', embedded as
17039 # here-document in config.status, that substitutes the proper values into
17040 # config.h.in to produce config.h.
17041
17042 # Create a delimiter string that does not exist in confdefs.h, to ease
17043 # handling of long lines.
17044 ac_delim='%!_!# '
17045 for ac_last_try in false false :; do
17046 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17047 if test -z "$ac_t"; then
17048 break
17049 elif $ac_last_try; then
17050 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17051 else
17052 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17053 fi
17054 done
17055
17056 # For the awk script, D is an array of macro values keyed by name,
17057 # likewise P contains macro parameters if any. Preserve backslash
17058 # newline sequences.
17059
17060 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17061 sed -n '
17062 s/.\{148\}/&'"$ac_delim"'/g
17063 t rset
17064 :rset
17065 s/^[ ]*#[ ]*define[ ][ ]*/ /
17066 t def
17067 d
17068 :def
17069 s/\\$//
17070 t bsnl
17071 s/["\\]/\\&/g
17072 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17073 D["\1"]=" \3"/p
17074 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17075 d
17076 :bsnl
17077 s/["\\]/\\&/g
17078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17079 D["\1"]=" \3\\\\\\n"\\/p
17080 t cont
17081 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17082 t cont
17083 d
17084 :cont
17085 n
17086 s/.\{148\}/&'"$ac_delim"'/g
17087 t clear
17088 :clear
17089 s/\\$//
17090 t bsnlc
17091 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17092 d
17093 :bsnlc
17094 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17095 b cont
17096 ' <confdefs.h | sed '
17097 s/'"$ac_delim"'/"\\\
17098 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17099
17100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17101 for (key in D) D_is_set[key] = 1
17102 FS = "\a"
17103 }
17104 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17105 line = \$ 0
17106 split(line, arg, " ")
17107 if (arg[1] == "#") {
17108 defundef = arg[2]
17109 mac1 = arg[3]
17110 } else {
17111 defundef = substr(arg[1], 2)
17112 mac1 = arg[2]
17113 }
17114 split(mac1, mac2, "(") #)
17115 macro = mac2[1]
17116 prefix = substr(line, 1, index(line, defundef) - 1)
17117 if (D_is_set[macro]) {
17118 # Preserve the white space surrounding the "#".
17119 print prefix "define", macro P[macro] D[macro]
17120 next
17121 } else {
17122 # Replace #undef with comments. This is necessary, for example,
17123 # in the case of _POSIX_SOURCE, which is predefined and required
17124 # on some systems where configure will not decide to define it.
17125 if (defundef == "undef") {
17126 print "/*", prefix defundef, macro, "*/"
17127 next
17128 }
17129 }
17130 }
17131 { print }
17132 _ACAWK
17133 _ACEOF
17134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17135 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17136 fi # test -n "$CONFIG_HEADERS"
17137
17138
17139 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17140 shift
17141 for ac_tag
17142 do
17143 case $ac_tag in
17144 :[FHLC]) ac_mode=$ac_tag; continue;;
17145 esac
17146 case $ac_mode$ac_tag in
17147 :[FHL]*:*);;
17148 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17149 :[FH]-) ac_tag=-:-;;
17150 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17151 esac
17152 ac_save_IFS=$IFS
17153 IFS=:
17154 set x $ac_tag
17155 IFS=$ac_save_IFS
17156 shift
17157 ac_file=$1
17158 shift
17159
17160 case $ac_mode in
17161 :L) ac_source=$1;;
17162 :[FH])
17163 ac_file_inputs=
17164 for ac_f
17165 do
17166 case $ac_f in
17167 -) ac_f="$tmp/stdin";;
17168 *) # Look for the file first in the build tree, then in the source tree
17169 # (if the path is not absolute). The absolute path cannot be DOS-style,
17170 # because $ac_f cannot contain `:'.
17171 test -f "$ac_f" ||
17172 case $ac_f in
17173 [\\/$]*) false;;
17174 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17175 esac ||
17176 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17177 esac
17178 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17179 as_fn_append ac_file_inputs " '$ac_f'"
17180 done
17181
17182 # Let's still pretend it is `configure' which instantiates (i.e., don't
17183 # use $as_me), people would be surprised to read:
17184 # /* config.h. Generated by config.status. */
17185 configure_input='Generated from '`
17186 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17187 `' by configure.'
17188 if test x"$ac_file" != x-; then
17189 configure_input="$ac_file. $configure_input"
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17191 $as_echo "$as_me: creating $ac_file" >&6;}
17192 fi
17193 # Neutralize special characters interpreted by sed in replacement strings.
17194 case $configure_input in #(
17195 *\&* | *\|* | *\\* )
17196 ac_sed_conf_input=`$as_echo "$configure_input" |
17197 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17198 *) ac_sed_conf_input=$configure_input;;
17199 esac
17200
17201 case $ac_tag in
17202 *:-:* | *:-) cat >"$tmp/stdin" \
17203 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17204 esac
17205 ;;
17206 esac
17207
17208 ac_dir=`$as_dirname -- "$ac_file" ||
17209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17210 X"$ac_file" : 'X\(//\)[^/]' \| \
17211 X"$ac_file" : 'X\(//\)$' \| \
17212 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17213 $as_echo X"$ac_file" |
17214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17215 s//\1/
17216 q
17217 }
17218 /^X\(\/\/\)[^/].*/{
17219 s//\1/
17220 q
17221 }
17222 /^X\(\/\/\)$/{
17223 s//\1/
17224 q
17225 }
17226 /^X\(\/\).*/{
17227 s//\1/
17228 q
17229 }
17230 s/.*/./; q'`
17231 as_dir="$ac_dir"; as_fn_mkdir_p
17232 ac_builddir=.
17233
17234 case "$ac_dir" in
17235 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17236 *)
17237 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17238 # A ".." for each directory in $ac_dir_suffix.
17239 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17240 case $ac_top_builddir_sub in
17241 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17242 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17243 esac ;;
17244 esac
17245 ac_abs_top_builddir=$ac_pwd
17246 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17247 # for backward compatibility:
17248 ac_top_builddir=$ac_top_build_prefix
17249
17250 case $srcdir in
17251 .) # We are building in place.
17252 ac_srcdir=.
17253 ac_top_srcdir=$ac_top_builddir_sub
17254 ac_abs_top_srcdir=$ac_pwd ;;
17255 [\\/]* | ?:[\\/]* ) # Absolute name.
17256 ac_srcdir=$srcdir$ac_dir_suffix;
17257 ac_top_srcdir=$srcdir
17258 ac_abs_top_srcdir=$srcdir ;;
17259 *) # Relative name.
17260 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17261 ac_top_srcdir=$ac_top_build_prefix$srcdir
17262 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17263 esac
17264 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17265
17266
17267 case $ac_mode in
17268 :F)
17269 #
17270 # CONFIG_FILE
17271 #
17272
17273 case $INSTALL in
17274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17275 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17276 esac
17277 ac_MKDIR_P=$MKDIR_P
17278 case $MKDIR_P in
17279 [\\/$]* | ?:[\\/]* ) ;;
17280 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17281 esac
17282 _ACEOF
17283
17284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17285 # If the template does not know about datarootdir, expand it.
17286 # FIXME: This hack should be removed a few years after 2.60.
17287 ac_datarootdir_hack=; ac_datarootdir_seen=
17288 ac_sed_dataroot='
17289 /datarootdir/ {
17290 p
17291 q
17292 }
17293 /@datadir@/p
17294 /@docdir@/p
17295 /@infodir@/p
17296 /@localedir@/p
17297 /@mandir@/p'
17298 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17299 *datarootdir*) ac_datarootdir_seen=yes;;
17300 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17302 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17303 _ACEOF
17304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17305 ac_datarootdir_hack='
17306 s&@datadir@&$datadir&g
17307 s&@docdir@&$docdir&g
17308 s&@infodir@&$infodir&g
17309 s&@localedir@&$localedir&g
17310 s&@mandir@&$mandir&g
17311 s&\\\${datarootdir}&$datarootdir&g' ;;
17312 esac
17313 _ACEOF
17314
17315 # Neutralize VPATH when `$srcdir' = `.'.
17316 # Shell code in configure.ac might set extrasub.
17317 # FIXME: do we really want to maintain this feature?
17318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17319 ac_sed_extra="$ac_vpsub
17320 $extrasub
17321 _ACEOF
17322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17323 :t
17324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17325 s|@configure_input@|$ac_sed_conf_input|;t t
17326 s&@top_builddir@&$ac_top_builddir_sub&;t t
17327 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17328 s&@srcdir@&$ac_srcdir&;t t
17329 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17330 s&@top_srcdir@&$ac_top_srcdir&;t t
17331 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17332 s&@builddir@&$ac_builddir&;t t
17333 s&@abs_builddir@&$ac_abs_builddir&;t t
17334 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17335 s&@INSTALL@&$ac_INSTALL&;t t
17336 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17337 $ac_datarootdir_hack
17338 "
17339 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17340 if $ac_cs_awk_getline; then
17341 $AWK -f "$tmp/subs.awk"
17342 else
17343 $AWK -f "$tmp/subs.awk" | $SHELL
17344 fi >$tmp/out \
17345 || as_fn_error "could not create $ac_file" "$LINENO" 5
17346
17347 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17348 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17349 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17351 which seems to be undefined. Please make sure it is defined." >&5
17352 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17353 which seems to be undefined. Please make sure it is defined." >&2;}
17354
17355 rm -f "$tmp/stdin"
17356 case $ac_file in
17357 -) cat "$tmp/out" && rm -f "$tmp/out";;
17358 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17359 esac \
17360 || as_fn_error "could not create $ac_file" "$LINENO" 5
17361 ;;
17362 :H)
17363 #
17364 # CONFIG_HEADER
17365 #
17366 if test x"$ac_file" != x-; then
17367 {
17368 $as_echo "/* $configure_input */" \
17369 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17370 } >"$tmp/config.h" \
17371 || as_fn_error "could not create $ac_file" "$LINENO" 5
17372 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17374 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17375 else
17376 rm -f "$ac_file"
17377 mv "$tmp/config.h" "$ac_file" \
17378 || as_fn_error "could not create $ac_file" "$LINENO" 5
17379 fi
17380 else
17381 $as_echo "/* $configure_input */" \
17382 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17383 || as_fn_error "could not create -" "$LINENO" 5
17384 fi
17385 # Compute "$ac_file"'s index in $config_headers.
17386 _am_arg="$ac_file"
17387 _am_stamp_count=1
17388 for _am_header in $config_headers :; do
17389 case $_am_header in
17390 $_am_arg | $_am_arg:* )
17391 break ;;
17392 * )
17393 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17394 esac
17395 done
17396 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17397 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17398 X"$_am_arg" : 'X\(//\)[^/]' \| \
17399 X"$_am_arg" : 'X\(//\)$' \| \
17400 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17401 $as_echo X"$_am_arg" |
17402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17403 s//\1/
17404 q
17405 }
17406 /^X\(\/\/\)[^/].*/{
17407 s//\1/
17408 q
17409 }
17410 /^X\(\/\/\)$/{
17411 s//\1/
17412 q
17413 }
17414 /^X\(\/\).*/{
17415 s//\1/
17416 q
17417 }
17418 s/.*/./; q'`/stamp-h$_am_stamp_count
17419 ;;
17420 :L)
17421 #
17422 # CONFIG_LINK
17423 #
17424
17425 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17426 :
17427 else
17428 # Prefer the file from the source tree if names are identical.
17429 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17430 ac_source=$srcdir/$ac_source
17431 fi
17432
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17434 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17435
17436 if test ! -r "$ac_source"; then
17437 as_fn_error "$ac_source: file not found" "$LINENO" 5
17438 fi
17439 rm -f "$ac_file"
17440
17441 # Try a relative symlink, then a hard link, then a copy.
17442 case $srcdir in
17443 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17444 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17445 esac
17446 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17447 ln "$ac_source" "$ac_file" 2>/dev/null ||
17448 cp -p "$ac_source" "$ac_file" ||
17449 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17450 fi
17451 ;;
17452 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17453 $as_echo "$as_me: executing $ac_file commands" >&6;}
17454 ;;
17455 esac
17456
17457
17458 case $ac_file$ac_mode in
17459 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17460 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17461 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17462 # are listed without --file. Let's play safe and only enable the eval
17463 # if we detect the quoting.
17464 case $CONFIG_FILES in
17465 *\'*) eval set x "$CONFIG_FILES" ;;
17466 *) set x $CONFIG_FILES ;;
17467 esac
17468 shift
17469 for mf
17470 do
17471 # Strip MF so we end up with the name of the file.
17472 mf=`echo "$mf" | sed -e 's/:.*$//'`
17473 # Check whether this is an Automake generated Makefile or not.
17474 # We used to match only the files named `Makefile.in', but
17475 # some people rename them; so instead we look at the file content.
17476 # Grep'ing the first line is not enough: some people post-process
17477 # each Makefile.in and add a new line on top of each file to say so.
17478 # Grep'ing the whole file is not good either: AIX grep has a line
17479 # limit of 2048, but all sed's we know have understand at least 4000.
17480 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17481 dirpart=`$as_dirname -- "$mf" ||
17482 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17483 X"$mf" : 'X\(//\)[^/]' \| \
17484 X"$mf" : 'X\(//\)$' \| \
17485 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17486 $as_echo X"$mf" |
17487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17488 s//\1/
17489 q
17490 }
17491 /^X\(\/\/\)[^/].*/{
17492 s//\1/
17493 q
17494 }
17495 /^X\(\/\/\)$/{
17496 s//\1/
17497 q
17498 }
17499 /^X\(\/\).*/{
17500 s//\1/
17501 q
17502 }
17503 s/.*/./; q'`
17504 else
17505 continue
17506 fi
17507 # Extract the definition of DEPDIR, am__include, and am__quote
17508 # from the Makefile without running `make'.
17509 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17510 test -z "$DEPDIR" && continue
17511 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17512 test -z "am__include" && continue
17513 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17514 # When using ansi2knr, U may be empty or an underscore; expand it
17515 U=`sed -n 's/^U = //p' < "$mf"`
17516 # Find all dependency output files, they are included files with
17517 # $(DEPDIR) in their names. We invoke sed twice because it is the
17518 # simplest approach to changing $(DEPDIR) to its actual value in the
17519 # expansion.
17520 for file in `sed -n "
17521 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17522 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17523 # Make sure the directory exists.
17524 test -f "$dirpart/$file" && continue
17525 fdir=`$as_dirname -- "$file" ||
17526 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17527 X"$file" : 'X\(//\)[^/]' \| \
17528 X"$file" : 'X\(//\)$' \| \
17529 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17530 $as_echo X"$file" |
17531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17532 s//\1/
17533 q
17534 }
17535 /^X\(\/\/\)[^/].*/{
17536 s//\1/
17537 q
17538 }
17539 /^X\(\/\/\)$/{
17540 s//\1/
17541 q
17542 }
17543 /^X\(\/\).*/{
17544 s//\1/
17545 q
17546 }
17547 s/.*/./; q'`
17548 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17549 # echo "creating $dirpart/$file"
17550 echo '# dummy' > "$dirpart/$file"
17551 done
17552 done
17553 }
17554 ;;
17555 "default":C)
17556 case x$CONFIG_HEADERS in
17557 xconfig.h:config.in)
17558 echo > stamp-h ;;
17559 esac
17560 ;;
17561
17562 esac
17563 done # for ac_tag
17564
17565
17566 as_fn_exit 0
17567 _ACEOF
17568 ac_clean_files=$ac_clean_files_save
17569
17570 test $ac_write_fail = 0 ||
17571 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17572
17573
17574 # configure is writing to config.log, and then calls config.status.
17575 # config.status does its own redirection, appending to config.log.
17576 # Unfortunately, on DOS this fails, as config.log is still kept open
17577 # by configure, so config.status won't be able to write to it; its
17578 # output is simply discarded. So we exec the FD to /dev/null,
17579 # effectively closing config.log, so it can be properly (re)opened and
17580 # appended to by config.status. When coming back to configure, we
17581 # need to make the FD available again.
17582 if test "$no_create" != yes; then
17583 ac_cs_success=:
17584 ac_config_status_args=
17585 test "$silent" = yes &&
17586 ac_config_status_args="$ac_config_status_args --quiet"
17587 exec 5>/dev/null
17588 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17589 exec 5>>config.log
17590 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17591 # would make configure fail if this is the last instruction.
17592 $ac_cs_success || as_fn_exit $?
17593 fi
17594
17595 #
17596 # CONFIG_SUBDIRS section.
17597 #
17598 if test "$no_recursion" != yes; then
17599
17600 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17601 # so they do not pile up.
17602 ac_sub_configure_args=
17603 ac_prev=
17604 eval "set x $ac_configure_args"
17605 shift
17606 for ac_arg
17607 do
17608 if test -n "$ac_prev"; then
17609 ac_prev=
17610 continue
17611 fi
17612 case $ac_arg in
17613 -cache-file | --cache-file | --cache-fil | --cache-fi \
17614 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17615 ac_prev=cache_file ;;
17616 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17617 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17618 | --c=*)
17619 ;;
17620 --config-cache | -C)
17621 ;;
17622 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17623 ac_prev=srcdir ;;
17624 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17625 ;;
17626 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17627 ac_prev=prefix ;;
17628 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17629 ;;
17630 --disable-option-checking)
17631 ;;
17632 *)
17633 case $ac_arg in
17634 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17635 esac
17636 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17637 esac
17638 done
17639
17640 # Always prepend --prefix to ensure using the same prefix
17641 # in subdir configurations.
17642 ac_arg="--prefix=$prefix"
17643 case $ac_arg in
17644 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17645 esac
17646 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17647
17648 # Pass --silent
17649 if test "$silent" = yes; then
17650 ac_sub_configure_args="--silent $ac_sub_configure_args"
17651 fi
17652
17653 # Always prepend --disable-option-checking to silence warnings, since
17654 # different subdirs can have different --enable and --with options.
17655 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17656
17657 ac_popdir=`pwd`
17658 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17659
17660 # Do not complain, so a configure script can configure whichever
17661 # parts of a large source tree are present.
17662 test -d "$srcdir/$ac_dir" || continue
17663
17664 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17665 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17666 $as_echo "$ac_msg" >&6
17667 as_dir="$ac_dir"; as_fn_mkdir_p
17668 ac_builddir=.
17669
17670 case "$ac_dir" in
17671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17672 *)
17673 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17674 # A ".." for each directory in $ac_dir_suffix.
17675 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17676 case $ac_top_builddir_sub in
17677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17679 esac ;;
17680 esac
17681 ac_abs_top_builddir=$ac_pwd
17682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17683 # for backward compatibility:
17684 ac_top_builddir=$ac_top_build_prefix
17685
17686 case $srcdir in
17687 .) # We are building in place.
17688 ac_srcdir=.
17689 ac_top_srcdir=$ac_top_builddir_sub
17690 ac_abs_top_srcdir=$ac_pwd ;;
17691 [\\/]* | ?:[\\/]* ) # Absolute name.
17692 ac_srcdir=$srcdir$ac_dir_suffix;
17693 ac_top_srcdir=$srcdir
17694 ac_abs_top_srcdir=$srcdir ;;
17695 *) # Relative name.
17696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17697 ac_top_srcdir=$ac_top_build_prefix$srcdir
17698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17699 esac
17700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17701
17702
17703 cd "$ac_dir"
17704
17705 # Check for guested configure; otherwise get Cygnus style configure.
17706 if test -f "$ac_srcdir/configure.gnu"; then
17707 ac_sub_configure=$ac_srcdir/configure.gnu
17708 elif test -f "$ac_srcdir/configure"; then
17709 ac_sub_configure=$ac_srcdir/configure
17710 elif test -f "$ac_srcdir/configure.in"; then
17711 # This should be Cygnus configure.
17712 ac_sub_configure=$ac_aux_dir/configure
17713 else
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17715 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17716 ac_sub_configure=
17717 fi
17718
17719 # The recursion is here.
17720 if test -n "$ac_sub_configure"; then
17721 # Make the cache file name correct relative to the subdirectory.
17722 case $cache_file in
17723 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17724 *) # Relative name.
17725 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17726 esac
17727
17728 { $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
17729 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17730 # The eval makes quoting arguments work.
17731 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17732 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17733 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17734 fi
17735
17736 cd "$ac_popdir"
17737 done
17738 fi
17739 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17741 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17742 fi
17743
17744
17745 exit 0
This page took 0.397963 seconds and 4 git commands to generate.