Create subdir data-directory.
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
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.
c906108c
SS
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
bec39cab 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
bec39cab 31fi
bec39cab 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
bec39cab
AC
79fi
80
81
81ecdfbb
RW
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
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
99IFS=$as_save_IFS
100
101 ;;
102esac
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.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
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.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
bec39cab
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if 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
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test 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
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab 184do
81ecdfbb
RW
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
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
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
207fi; }
208IFS=$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+"$@"}
220fi
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."
bec39cab 228 else
81ecdfbb
RW
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."
bec39cab 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
bec39cab 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_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.
277as_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.
327if (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 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # 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.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # 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.
362as_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
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
bec39cab 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
bec39cab
AC
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
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'`
bec39cab 410
b4e70030
JB
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
4e8d927d 417
bec39cab 418
81ecdfbb
RW
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 |
bec39cab 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
bec39cab 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bec39cab 436 t loop
81ecdfbb 437 s/-\n.*//
bec39cab 438 ' >$as_me.lineno &&
81ecdfbb
RW
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; }
bec39cab
AC
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
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
bec39cab
AC
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `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';;
bec39cab
AC
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
bec39cab 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
bec39cab 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030 472 as_ln_s='ln -s'
81ecdfbb
RW
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'
b4e70030 483 fi
bec39cab
AC
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
bec39cab
AC
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
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 '
517fi
518as_executable_p=$as_test_x
bec39cab
AC
519
520# Sed expression to map a string onto a valid CPP name.
521as_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.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
c906108c 528
bec39cab
AC
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
bec39cab
AC
534#
535# Initializations.
536#
c906108c 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
bec39cab 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
bec39cab
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
b4e70030 545
bec39cab
AC
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
bec39cab
AC
553
554ac_unique_file="main.c"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
81ecdfbb 558#ifdef HAVE_SYS_TYPES_H
bec39cab
AC
559# include <sys/types.h>
560#endif
81ecdfbb 561#ifdef HAVE_SYS_STAT_H
bec39cab
AC
562# include <sys/stat.h>
563#endif
81ecdfbb 564#ifdef STDC_HEADERS
bec39cab
AC
565# include <stdlib.h>
566# include <stddef.h>
567#else
81ecdfbb 568# ifdef HAVE_STDLIB_H
bec39cab
AC
569# include <stdlib.h>
570# endif
571#endif
81ecdfbb
RW
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
bec39cab
AC
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
81ecdfbb 578#ifdef HAVE_STRINGS_H
bec39cab
AC
579# include <strings.h>
580#endif
81ecdfbb 581#ifdef HAVE_INTTYPES_H
bec39cab 582# include <inttypes.h>
bec39cab 583#endif
81ecdfbb
RW
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
bec39cab
AC
588# include <unistd.h>
589#endif"
590
783e057b 591gl_header_list=
f434ba03 592gl_func_list=
81ecdfbb
RW
593enable_option_checking=no
594ac_subst_vars='am__EXEEXT_FALSE
595am__EXEEXT_TRUE
596gltests_LTLIBOBJS
597gltests_LIBOBJS
598gl_LTLIBOBJS
599gl_LIBOBJS
600LTLIBOBJS
601LIBOBJS
602GDB_NM_FILE
603frags
604target_subdir
605CONFIG_UNINSTALL
606CONFIG_INSTALL
607CONFIG_CLEAN
608CONFIG_ALL
609CONFIG_SRCS
610CONFIG_DEPS
611CONFIG_OBS
612PROFILE_CFLAGS
613ENABLE_CFLAGS
614SIM_OBS
615SIM
616XMKMF
617GDBTK_SRC_DIR
618GDBTK_CFLAGS
619GDBTKLIBS
620X_LIBS
621X_LDFLAGS
622X_CFLAGS
623TK_XINCLUDES
624TK_DEPS
625TK_LIBRARY
626TK_INCLUDE
627TK_STUB_LIB_SPEC
628TK_STUB_LIB_FLAG
629TK_STUB_LIB_FILE
630TK_LIB_SPEC
631TK_LIB_FLAG
632TK_LIB_FILE
633TK_SRC_DIR
634TK_BIN_DIR
635TK_VERSION
636TCL_DEPS
637TCL_LIBRARY
638TCL_INCLUDE
639TCL_STUB_LIB_SPEC
640TCL_STUB_LIB_FLAG
641TCL_STUB_LIB_FILE
642TCL_LIB_SPEC
643TCL_LIB_FLAG
644TCL_LIB_FILE
645TCL_SRC_DIR
646TCL_BIN_DIR
647TCL_PATCH_LEVEL
648TCL_VERSION
649WIN32LDAPP
650GUI_CFLAGS_X
651LIBGUI
652WIN32LIBS
653SER_HARDWIRE
654WERROR_CFLAGS
655WARN_CFLAGS
656SYSTEM_GDBINIT
657TARGET_SYSTEM_ROOT_DEFINE
658TARGET_SYSTEM_ROOT
659CONFIG_LDFLAGS
f6528abd 660RDYNAMIC
81ecdfbb
RW
661ALLOCA
662PYTHON_CFLAGS
ec685c5e 663python_prog_path
81ecdfbb
RW
664LTLIBEXPAT
665LIBEXPAT
666HAVE_LIBEXPAT
667READLINE_CFLAGS
668READLINE_DEPS
669READLINE
670MIG
671WINDRES
672DLLTOOL
673AR
674YFLAGS
675YACC
676LN_S
677REPORT_BUGS_TEXI
678REPORT_BUGS_TO
679PKGVERSION
680TARGET_OBS
681subdirs
682GDB_DATADIR
683DEBUGDIR
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686AMDEPBACKSLASH
687AMDEP_FALSE
688AMDEP_TRUE
689am__quote
690am__include
691am__untar
692am__tar
693AMTAR
694AWK
695mkdir_p
696MKDIR_P
697INSTALL_STRIP_PROGRAM
698STRIP
699install_sh
700MAKEINFO
701AUTOHEADER
702AUTOMAKE
703AUTOCONF
704ACLOCAL
705VERSION
706CYGPATH_W
707am__isrc
708INSTALL_DATA
709INSTALL_SCRIPT
710INSTALL_PROGRAM
711PACKAGE
712GNULIB_STDINT_H
713LIBGNU_LTLIBDEPS
714LIBGNU_LIBDEPS
f434ba03
PA
715gltests_WITNESS
716HAVE_WINT_T
81ecdfbb 717HAVE_WCHAR_H
f434ba03
PA
718NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
719NEXT_WCHAR_H
81ecdfbb 720REPLACE_WCWIDTH
f434ba03
PA
721REPLACE_WCSNRTOMBS
722REPLACE_WCSRTOMBS
723REPLACE_WCRTOMB
724REPLACE_MBSNRTOWCS
725REPLACE_MBSRTOWCS
726REPLACE_MBRLEN
727REPLACE_MBRTOWC
728REPLACE_MBSINIT
729REPLACE_WCTOB
730REPLACE_BTOWC
731REPLACE_MBSTATE_T
81ecdfbb 732HAVE_DECL_WCWIDTH
f434ba03
PA
733HAVE_DECL_WCTOB
734HAVE_WCSNRTOMBS
735HAVE_WCSRTOMBS
736HAVE_WCRTOMB
737HAVE_MBSNRTOWCS
738HAVE_MBSRTOWCS
739HAVE_MBRLEN
740HAVE_MBRTOWC
741HAVE_MBSINIT
742HAVE_BTOWC
81ecdfbb 743GNULIB_WCWIDTH
f434ba03
PA
744GNULIB_WCSNRTOMBS
745GNULIB_WCSRTOMBS
746GNULIB_WCRTOMB
747GNULIB_MBSNRTOWCS
748GNULIB_MBSRTOWCS
749GNULIB_MBRLEN
750GNULIB_MBRTOWC
751GNULIB_MBSINIT
752GNULIB_WCTOB
753GNULIB_BTOWC
754NEXT_AS_FIRST_DIRECTIVE_STRING_H
81ecdfbb
RW
755NEXT_STRING_H
756STDINT_H
757WINT_T_SUFFIX
758WCHAR_T_SUFFIX
81ecdfbb 759SIG_ATOMIC_T_SUFFIX
f434ba03 760SIZE_T_SUFFIX
81ecdfbb
RW
761PTRDIFF_T_SUFFIX
762HAVE_SIGNED_WINT_T
763HAVE_SIGNED_WCHAR_T
764HAVE_SIGNED_SIG_ATOMIC_T
765BITSIZEOF_WINT_T
766BITSIZEOF_WCHAR_T
81ecdfbb 767BITSIZEOF_SIG_ATOMIC_T
f434ba03 768BITSIZEOF_SIZE_T
81ecdfbb
RW
769BITSIZEOF_PTRDIFF_T
770HAVE_SYS_BITYPES_H
771HAVE_SYS_INTTYPES_H
772HAVE_STDINT_H
f434ba03 773NEXT_AS_FIRST_DIRECTIVE_STDINT_H
81ecdfbb 774NEXT_STDINT_H
81ecdfbb
RW
775HAVE_SYS_TYPES_H
776HAVE_INTTYPES_H
777HAVE_UNSIGNED_LONG_LONG_INT
778HAVE_LONG_LONG_INT
f434ba03
PA
779NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
780NEXT_STDDEF_H
781PRAGMA_SYSTEM_HEADER
782INCLUDE_NEXT_AS_FIRST_DIRECTIVE
783INCLUDE_NEXT
784STDDEF_H
785HAVE_WCHAR_T
786REPLACE_NULL
787APPLE_UNIVERSAL_BUILD
788UNDEFINE_STRTOK_R
789REPLACE_STRTOK_R
81ecdfbb 790REPLACE_STRSIGNAL
f434ba03
PA
791REPLACE_STRNLEN
792REPLACE_STRNDUP
793REPLACE_STRNCAT
81ecdfbb 794REPLACE_STRERROR
f434ba03
PA
795REPLACE_STRCASESTR
796REPLACE_STRSTR
797REPLACE_STRDUP
798REPLACE_STPNCPY
799REPLACE_MEMMEM
800REPLACE_MEMCHR
801HAVE_STRVERSCMP
81ecdfbb 802HAVE_DECL_STRSIGNAL
81ecdfbb
RW
803HAVE_DECL_STRTOK_R
804HAVE_STRCASESTR
805HAVE_STRSEP
806HAVE_STRPBRK
807HAVE_DECL_STRNLEN
808HAVE_DECL_STRNDUP
81ecdfbb
RW
809HAVE_DECL_STRDUP
810HAVE_STRCHRNUL
811HAVE_STPNCPY
812HAVE_STPCPY
f434ba03 813HAVE_RAWMEMCHR
81ecdfbb
RW
814HAVE_DECL_MEMRCHR
815HAVE_MEMPCPY
816HAVE_DECL_MEMMEM
f434ba03
PA
817HAVE_MEMCHR
818HAVE_MBSLEN
819GNULIB_STRVERSCMP
81ecdfbb
RW
820GNULIB_STRSIGNAL
821GNULIB_STRERROR
822GNULIB_MBSTOK_R
823GNULIB_MBSSEP
824GNULIB_MBSSPN
825GNULIB_MBSPBRK
826GNULIB_MBSCSPN
827GNULIB_MBSCASESTR
828GNULIB_MBSPCASECMP
829GNULIB_MBSNCASECMP
830GNULIB_MBSCASECMP
831GNULIB_MBSSTR
832GNULIB_MBSRCHR
833GNULIB_MBSCHR
834GNULIB_MBSNLEN
835GNULIB_MBSLEN
836GNULIB_STRTOK_R
837GNULIB_STRCASESTR
838GNULIB_STRSTR
839GNULIB_STRSEP
840GNULIB_STRPBRK
841GNULIB_STRNLEN
842GNULIB_STRNDUP
f434ba03 843GNULIB_STRNCAT
81ecdfbb
RW
844GNULIB_STRDUP
845GNULIB_STRCHRNUL
846GNULIB_STPNCPY
847GNULIB_STPCPY
f434ba03 848GNULIB_RAWMEMCHR
81ecdfbb
RW
849GNULIB_MEMRCHR
850GNULIB_MEMPCPY
851GNULIB_MEMMEM
f434ba03 852GNULIB_MEMCHR
81ecdfbb
RW
853GL_COND_LIBTOOL_FALSE
854GL_COND_LIBTOOL_TRUE
855CATOBJEXT
856GENCAT
857INSTOBJEXT
858DATADIRNAME
859CATALOGS
860POSUB
861GMSGFMT
862XGETTEXT
863INCINTL
864LIBINTL_DEP
865LIBINTL
866USE_NLS
867SET_MAKE
868GMAKE_FALSE
869GMAKE_TRUE
870MAKE
871CCDEPMODE
872DEPDIR
873am__leading_dot
874target_os
875target_vendor
876target_cpu
877target
f434ba03
PA
878RANLIB
879EGREP
880GREP
881CPP
81ecdfbb
RW
882host_os
883host_vendor
884host_cpu
885host
886build_os
887build_vendor
888build_cpu
889build
81ecdfbb
RW
890OBJEXT
891EXEEXT
892ac_ct_CC
893CPPFLAGS
894LDFLAGS
895CFLAGS
896CC
897MAINT
898MAINTAINER_MODE_FALSE
899MAINTAINER_MODE_TRUE
900target_alias
901host_alias
902build_alias
903LIBS
904ECHO_T
905ECHO_N
906ECHO_C
907DEFS
908mandir
909localedir
910libdir
911psdir
912pdfdir
913dvidir
914htmldir
915infodir
916docdir
917oldincludedir
918includedir
919localstatedir
920sharedstatedir
921sysconfdir
922datadir
923datarootdir
924libexecdir
925sbindir
926bindir
927program_transform_name
928prefix
929exec_prefix
930PACKAGE_URL
931PACKAGE_BUGREPORT
932PACKAGE_STRING
933PACKAGE_VERSION
934PACKAGE_TARNAME
935PACKAGE_NAME
936PATH_SEPARATOR
937SHELL'
a4ce5b0d 938ac_subst_files='host_makefile_frag'
81ecdfbb
RW
939ac_user_opts='
940enable_option_checking
941enable_maintainer_mode
da2f07f1
JK
942enable_plugins
943enable_largefile
81ecdfbb
RW
944enable_dependency_tracking
945with_separate_debug_dir
946with_gdb_datadir
947with_relocated_sources
948enable_targets
949enable_64_bit_bfd
950enable_gdbcli
951enable_gdbmi
952enable_tui
953enable_gdbtk
954with_libunwind
955with_curses
956enable_profiling
957with_pkgversion
958with_bugurl
b040ad30 959with_zlib
81ecdfbb
RW
960with_libiconv_prefix
961with_system_readline
962with_expat
963with_gnu_ld
964enable_rpath
965with_libexpat_prefix
966with_python
967with_included_regex
968with_sysroot
969with_system_gdbinit
970enable_werror
971enable_build_warnings
972enable_gdb_build_warnings
973with_tcl
974with_tk
975with_x
976enable_sim
977enable_multi_ice
496c0e1b 978enable_gdbserver
81ecdfbb
RW
979'
980 ac_precious_vars='build_alias
981host_alias
982target_alias
983CC
984CFLAGS
985LDFLAGS
986LIBS
987CPPFLAGS
988CPP
989YACC
990YFLAGS
991XMKMF'
992ac_subdirs_all='doc testsuite
993gdbtk
994multi-ice
995gdbserver'
c906108c
SS
996
997# Initialize some variables set by options.
bec39cab
AC
998ac_init_help=
999ac_init_version=false
81ecdfbb
RW
1000ac_unrecognized_opts=
1001ac_unrecognized_sep=
c906108c
SS
1002# The variables have the same names as the options, with
1003# dashes changed to underlines.
bec39cab 1004cache_file=/dev/null
c906108c 1005exec_prefix=NONE
c906108c 1006no_create=
c906108c
SS
1007no_recursion=
1008prefix=NONE
1009program_prefix=NONE
1010program_suffix=NONE
1011program_transform_name=s,x,x,
1012silent=
1013site=
1014srcdir=
c906108c
SS
1015verbose=
1016x_includes=NONE
1017x_libraries=NONE
bec39cab
AC
1018
1019# Installation directory options.
1020# These are left unexpanded so users can "make install exec_prefix=/foo"
1021# and all the variables that are supposed to be based on exec_prefix
1022# by default will actually change.
1023# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 1024# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
1025bindir='${exec_prefix}/bin'
1026sbindir='${exec_prefix}/sbin'
1027libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
1028datarootdir='${prefix}/share'
1029datadir='${datarootdir}'
c906108c
SS
1030sysconfdir='${prefix}/etc'
1031sharedstatedir='${prefix}/com'
1032localstatedir='${prefix}/var'
c906108c
SS
1033includedir='${prefix}/include'
1034oldincludedir='/usr/include'
81ecdfbb
RW
1035docdir='${datarootdir}/doc/${PACKAGE}'
1036infodir='${datarootdir}/info'
1037htmldir='${docdir}'
1038dvidir='${docdir}'
1039pdfdir='${docdir}'
1040psdir='${docdir}'
1041libdir='${exec_prefix}/lib'
1042localedir='${datarootdir}/locale'
1043mandir='${datarootdir}/man'
c906108c 1044
c906108c 1045ac_prev=
81ecdfbb 1046ac_dashdash=
c906108c
SS
1047for ac_option
1048do
c906108c
SS
1049 # If the previous option needs an argument, assign it.
1050 if test -n "$ac_prev"; then
81ecdfbb 1051 eval $ac_prev=\$ac_option
c906108c
SS
1052 ac_prev=
1053 continue
1054 fi
1055
81ecdfbb
RW
1056 case $ac_option in
1057 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058 *) ac_optarg=yes ;;
1059 esac
c906108c
SS
1060
1061 # Accept the important Cygnus configure options, so we can diagnose typos.
1062
81ecdfbb
RW
1063 case $ac_dashdash$ac_option in
1064 --)
1065 ac_dashdash=yes ;;
c906108c
SS
1066
1067 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1068 ac_prev=bindir ;;
1069 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 1070 bindir=$ac_optarg ;;
c906108c
SS
1071
1072 -build | --build | --buil | --bui | --bu)
bec39cab 1073 ac_prev=build_alias ;;
c906108c 1074 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 1075 build_alias=$ac_optarg ;;
c906108c
SS
1076
1077 -cache-file | --cache-file | --cache-fil | --cache-fi \
1078 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1079 ac_prev=cache_file ;;
1080 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1081 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
1082 cache_file=$ac_optarg ;;
1083
1084 --config-cache | -C)
1085 cache_file=config.cache ;;
c906108c 1086
81ecdfbb 1087 -datadir | --datadir | --datadi | --datad)
c906108c 1088 ac_prev=datadir ;;
81ecdfbb 1089 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bec39cab 1090 datadir=$ac_optarg ;;
c906108c 1091
81ecdfbb
RW
1092 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1093 | --dataroo | --dataro | --datar)
1094 ac_prev=datarootdir ;;
1095 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1096 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1097 datarootdir=$ac_optarg ;;
1098
c906108c 1099 -disable-* | --disable-*)
81ecdfbb 1100 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 1101 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid feature name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108"enable_$ac_useropt"
1109"*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval enable_$ac_useropt=no ;;
1114
1115 -docdir | --docdir | --docdi | --doc | --do)
1116 ac_prev=docdir ;;
1117 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1118 docdir=$ac_optarg ;;
1119
1120 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1121 ac_prev=dvidir ;;
1122 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1123 dvidir=$ac_optarg ;;
c906108c
SS
1124
1125 -enable-* | --enable-*)
81ecdfbb 1126 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 1127 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid feature name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134"enable_$ac_useropt"
1135"*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
b4e70030 1138 esac
81ecdfbb 1139 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1140
1141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1143 | --exec | --exe | --ex)
1144 ac_prev=exec_prefix ;;
1145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1147 | --exec=* | --exe=* | --ex=*)
bec39cab 1148 exec_prefix=$ac_optarg ;;
c906108c
SS
1149
1150 -gas | --gas | --ga | --g)
1151 # Obsolete; use --with-gas.
1152 with_gas=yes ;;
1153
bec39cab
AC
1154 -help | --help | --hel | --he | -h)
1155 ac_init_help=long ;;
1156 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1157 ac_init_help=recursive ;;
1158 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1159 ac_init_help=short ;;
c906108c
SS
1160
1161 -host | --host | --hos | --ho)
bec39cab 1162 ac_prev=host_alias ;;
c906108c 1163 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 1164 host_alias=$ac_optarg ;;
c906108c 1165
81ecdfbb
RW
1166 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1167 ac_prev=htmldir ;;
1168 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1169 | --ht=*)
1170 htmldir=$ac_optarg ;;
1171
c906108c
SS
1172 -includedir | --includedir | --includedi | --included | --include \
1173 | --includ | --inclu | --incl | --inc)
1174 ac_prev=includedir ;;
1175 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1176 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 1177 includedir=$ac_optarg ;;
c906108c
SS
1178
1179 -infodir | --infodir | --infodi | --infod | --info | --inf)
1180 ac_prev=infodir ;;
1181 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 1182 infodir=$ac_optarg ;;
c906108c
SS
1183
1184 -libdir | --libdir | --libdi | --libd)
1185 ac_prev=libdir ;;
1186 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 1187 libdir=$ac_optarg ;;
c906108c
SS
1188
1189 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1190 | --libexe | --libex | --libe)
1191 ac_prev=libexecdir ;;
1192 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1193 | --libexe=* | --libex=* | --libe=*)
bec39cab 1194 libexecdir=$ac_optarg ;;
c906108c 1195
81ecdfbb
RW
1196 -localedir | --localedir | --localedi | --localed | --locale)
1197 ac_prev=localedir ;;
1198 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1199 localedir=$ac_optarg ;;
1200
c906108c 1201 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1202 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1203 ac_prev=localstatedir ;;
1204 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1205 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bec39cab 1206 localstatedir=$ac_optarg ;;
c906108c
SS
1207
1208 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1209 ac_prev=mandir ;;
1210 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 1211 mandir=$ac_optarg ;;
c906108c
SS
1212
1213 -nfp | --nfp | --nf)
1214 # Obsolete; use --without-fp.
1215 with_fp=no ;;
1216
1217 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 1218 | --no-cr | --no-c | -n)
c906108c
SS
1219 no_create=yes ;;
1220
1221 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1222 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1223 no_recursion=yes ;;
1224
1225 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1226 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1227 | --oldin | --oldi | --old | --ol | --o)
1228 ac_prev=oldincludedir ;;
1229 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1230 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1231 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 1232 oldincludedir=$ac_optarg ;;
c906108c
SS
1233
1234 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1235 ac_prev=prefix ;;
1236 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 1237 prefix=$ac_optarg ;;
c906108c
SS
1238
1239 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1240 | --program-pre | --program-pr | --program-p)
1241 ac_prev=program_prefix ;;
1242 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1243 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 1244 program_prefix=$ac_optarg ;;
c906108c
SS
1245
1246 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1247 | --program-suf | --program-su | --program-s)
1248 ac_prev=program_suffix ;;
1249 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1250 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 1251 program_suffix=$ac_optarg ;;
c906108c
SS
1252
1253 -program-transform-name | --program-transform-name \
1254 | --program-transform-nam | --program-transform-na \
1255 | --program-transform-n | --program-transform- \
1256 | --program-transform | --program-transfor \
1257 | --program-transfo | --program-transf \
1258 | --program-trans | --program-tran \
1259 | --progr-tra | --program-tr | --program-t)
1260 ac_prev=program_transform_name ;;
1261 -program-transform-name=* | --program-transform-name=* \
1262 | --program-transform-nam=* | --program-transform-na=* \
1263 | --program-transform-n=* | --program-transform-=* \
1264 | --program-transform=* | --program-transfor=* \
1265 | --program-transfo=* | --program-transf=* \
1266 | --program-trans=* | --program-tran=* \
1267 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 1268 program_transform_name=$ac_optarg ;;
c906108c 1269
81ecdfbb
RW
1270 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1271 ac_prev=pdfdir ;;
1272 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1273 pdfdir=$ac_optarg ;;
1274
1275 -psdir | --psdir | --psdi | --psd | --ps)
1276 ac_prev=psdir ;;
1277 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1278 psdir=$ac_optarg ;;
1279
c906108c
SS
1280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281 | -silent | --silent | --silen | --sile | --sil)
1282 silent=yes ;;
1283
1284 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1285 ac_prev=sbindir ;;
1286 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1287 | --sbi=* | --sb=*)
bec39cab 1288 sbindir=$ac_optarg ;;
c906108c
SS
1289
1290 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1291 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1292 | --sharedst | --shareds | --shared | --share | --shar \
1293 | --sha | --sh)
1294 ac_prev=sharedstatedir ;;
1295 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1296 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1297 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1298 | --sha=* | --sh=*)
bec39cab 1299 sharedstatedir=$ac_optarg ;;
c906108c
SS
1300
1301 -site | --site | --sit)
1302 ac_prev=site ;;
1303 -site=* | --site=* | --sit=*)
bec39cab 1304 site=$ac_optarg ;;
3ace7edb 1305
c906108c
SS
1306 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1307 ac_prev=srcdir ;;
1308 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 1309 srcdir=$ac_optarg ;;
c906108c
SS
1310
1311 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1312 | --syscon | --sysco | --sysc | --sys | --sy)
1313 ac_prev=sysconfdir ;;
1314 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1315 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 1316 sysconfdir=$ac_optarg ;;
c906108c
SS
1317
1318 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 1319 ac_prev=target_alias ;;
c906108c 1320 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 1321 target_alias=$ac_optarg ;;
c906108c
SS
1322
1323 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1324 verbose=yes ;;
1325
bec39cab
AC
1326 -version | --version | --versio | --versi | --vers | -V)
1327 ac_init_version=: ;;
c906108c
SS
1328
1329 -with-* | --with-*)
81ecdfbb 1330 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1331 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333 as_fn_error "invalid package name: $ac_useropt"
1334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1337 *"
1338"with_$ac_useropt"
1339"*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
b4e70030 1342 esac
81ecdfbb 1343 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1344
1345 -without-* | --without-*)
81ecdfbb 1346 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1347 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349 as_fn_error "invalid package name: $ac_useropt"
1350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1353 *"
1354"with_$ac_useropt"
1355"*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval with_$ac_useropt=no ;;
c906108c
SS
1360
1361 --x)
1362 # Obsolete; use --with-x.
1363 with_x=yes ;;
1364
1365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1366 | --x-incl | --x-inc | --x-in | --x-i)
1367 ac_prev=x_includes ;;
1368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 1370 x_includes=$ac_optarg ;;
c906108c
SS
1371
1372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1374 ac_prev=x_libraries ;;
1375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 1377 x_libraries=$ac_optarg ;;
c906108c 1378
81ecdfbb
RW
1379 -*) as_fn_error "unrecognized option: \`$ac_option'
1380Try \`$0 --help' for more information."
c906108c
SS
1381 ;;
1382
bec39cab
AC
1383 *=*)
1384 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1386 case $ac_envvar in #(
1387 '' | [0-9]* | *[!_$as_cr_alnum]* )
1388 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1389 esac
1390 eval $ac_envvar=\$ac_optarg
bec39cab
AC
1391 export $ac_envvar ;;
1392
c906108c 1393 *)
bec39cab 1394 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1395 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bec39cab 1396 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1397 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bec39cab 1398 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1399 ;;
1400
1401 esac
1402done
1403
1404if test -n "$ac_prev"; then
bec39cab 1405 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1406 as_fn_error "missing argument to $ac_option"
c906108c 1407fi
c906108c 1408
81ecdfbb
RW
1409if test -n "$ac_unrecognized_opts"; then
1410 case $enable_option_checking in
1411 no) ;;
1412 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1413 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b4e70030 1414 esac
81ecdfbb 1415fi
b4e70030 1416
81ecdfbb
RW
1417# Check all directory arguments for consistency.
1418for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1419 datadir sysconfdir sharedstatedir localstatedir includedir \
1420 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1421 libdir localedir mandir
b4e70030 1422do
81ecdfbb
RW
1423 eval ac_val=\$$ac_var
1424 # Remove trailing slashes.
1425 case $ac_val in
1426 */ )
1427 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1428 eval $ac_var=\$ac_val;;
1429 esac
1430 # Be sure to have absolute directory names.
b4e70030 1431 case $ac_val in
81ecdfbb
RW
1432 [\\/$]* | ?:[\\/]* ) continue;;
1433 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1434 esac
81ecdfbb 1435 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1436done
1437
bec39cab
AC
1438# There might be people who depend on the old broken behavior: `$host'
1439# used to hold the argument of --host etc.
1440# FIXME: To remove some day.
1441build=$build_alias
1442host=$host_alias
1443target=$target_alias
1444
1445# FIXME: To remove some day.
1446if test "x$host_alias" != x; then
1447 if test "x$build_alias" = x; then
1448 cross_compiling=maybe
81ecdfbb 1449 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bec39cab
AC
1450 If a cross compiler is detected then cross compile mode will be used." >&2
1451 elif test "x$build_alias" != "x$host_alias"; then
1452 cross_compiling=yes
1453 fi
1454fi
c906108c 1455
bec39cab
AC
1456ac_tool_prefix=
1457test -n "$host_alias" && ac_tool_prefix=$host_alias-
1458
1459test "$silent" = yes && exec 6>/dev/null
c906108c 1460
c906108c 1461
81ecdfbb
RW
1462ac_pwd=`pwd` && test -n "$ac_pwd" &&
1463ac_ls_di=`ls -di .` &&
1464ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1465 as_fn_error "working directory cannot be determined"
1466test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1467 as_fn_error "pwd does not report name of working directory"
1468
1469
c906108c
SS
1470# Find the source files, if location was not specified.
1471if test -z "$srcdir"; then
1472 ac_srcdir_defaulted=yes
81ecdfbb
RW
1473 # Try the directory containing this script, then the parent directory.
1474 ac_confdir=`$as_dirname -- "$as_myself" ||
1475$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1476 X"$as_myself" : 'X\(//\)[^/]' \| \
1477 X"$as_myself" : 'X\(//\)$' \| \
1478 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1479$as_echo X"$as_myself" |
1480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\/\)[^/].*/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\/\)$/{
1489 s//\1/
1490 q
1491 }
1492 /^X\(\/\).*/{
1493 s//\1/
1494 q
1495 }
1496 s/.*/./; q'`
c906108c 1497 srcdir=$ac_confdir
81ecdfbb 1498 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1499 srcdir=..
1500 fi
1501else
1502 ac_srcdir_defaulted=no
1503fi
81ecdfbb
RW
1504if test ! -r "$srcdir/$ac_unique_file"; then
1505 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1506 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1507fi
1508ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1509ac_abs_confdir=`(
1510 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1511 pwd)`
1512# When building in place, set srcdir=.
1513if test "$ac_abs_confdir" = "$ac_pwd"; then
1514 srcdir=.
1515fi
1516# Remove unnecessary trailing slashes from srcdir.
1517# Double slashes in file names in object file debugging info
1518# mess up M-x gdb in Emacs.
1519case $srcdir in
1520*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1521esac
1522for ac_var in $ac_precious_vars; do
1523 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1524 eval ac_env_${ac_var}_value=\$${ac_var}
1525 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1526 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1527done
c906108c 1528
bec39cab
AC
1529#
1530# Report the --help message.
1531#
1532if test "$ac_init_help" = "long"; then
1533 # Omit some internal or obsolete options to make the list less imposing.
1534 # This message is too long to be a string in the A/UX 3.1 sh.
1535 cat <<_ACEOF
1536\`configure' configures this package to adapt to many kinds of systems.
1537
1538Usage: $0 [OPTION]... [VAR=VALUE]...
1539
1540To assign environment variables (e.g., CC, CFLAGS...), specify them as
1541VAR=VALUE. See below for descriptions of some of the useful variables.
1542
1543Defaults for the options are specified in brackets.
1544
1545Configuration:
1546 -h, --help display this help and exit
1547 --help=short display options specific to this package
1548 --help=recursive display the short help of all the included packages
1549 -V, --version display version information and exit
1550 -q, --quiet, --silent do not print \`checking...' messages
1551 --cache-file=FILE cache test results in FILE [disabled]
1552 -C, --config-cache alias for \`--cache-file=config.cache'
1553 -n, --no-create do not create output files
1554 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1555
bec39cab
AC
1556Installation directories:
1557 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1558 [$ac_default_prefix]
bec39cab 1559 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1560 [PREFIX]
bec39cab
AC
1561
1562By default, \`make install' will install all the files in
1563\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1564an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1565for instance \`--prefix=\$HOME'.
1566
1567For better control, use the options below.
1568
1569Fine tuning of the installation directories:
81ecdfbb
RW
1570 --bindir=DIR user executables [EPREFIX/bin]
1571 --sbindir=DIR system admin executables [EPREFIX/sbin]
1572 --libexecdir=DIR program executables [EPREFIX/libexec]
1573 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1574 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1575 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1576 --libdir=DIR object code libraries [EPREFIX/lib]
1577 --includedir=DIR C header files [PREFIX/include]
1578 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1579 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1580 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1581 --infodir=DIR info documentation [DATAROOTDIR/info]
1582 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1583 --mandir=DIR man documentation [DATAROOTDIR/man]
1584 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1585 --htmldir=DIR html documentation [DOCDIR]
1586 --dvidir=DIR dvi documentation [DOCDIR]
1587 --pdfdir=DIR pdf documentation [DOCDIR]
1588 --psdir=DIR ps documentation [DOCDIR]
bec39cab
AC
1589_ACEOF
1590
1591 cat <<\_ACEOF
1592
1593Program names:
1594 --program-prefix=PREFIX prepend PREFIX to installed program names
1595 --program-suffix=SUFFIX append SUFFIX to installed program names
1596 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1597
1598X features:
1599 --x-includes=DIR X include files are in DIR
1600 --x-libraries=DIR X library files are in DIR
1601
1602System types:
1603 --build=BUILD configure for building on BUILD [guessed]
1604 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1605 --target=TARGET configure for building compilers for TARGET [HOST]
1606_ACEOF
1607fi
1608
1609if test -n "$ac_init_help"; then
1610
1611 cat <<\_ACEOF
1612
1613Optional Features:
81ecdfbb 1614 --disable-option-checking ignore unrecognized --enable/--with options
bec39cab
AC
1615 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1616 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
1617 --enable-maintainer-mode enable make rules and dependencies not useful
1618 (and sometimes confusing) to the casual installer
da2f07f1
JK
1619 --enable-plugins Enable support for plugins (defaults no)
1620 --disable-largefile omit support for large files
e28b3332
DJ
1621 --disable-dependency-tracking speeds up one-time build
1622 --enable-dependency-tracking do not reject slow dependency extractors
a1220294
TT
1623 --enable-targets=TARGETS
1624 alternative target configurations
c0993dbe 1625 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
bec39cab
AC
1626 --disable-gdbcli disable command-line interface (CLI)
1627 --disable-gdbmi disable machine-interface (MI)
1628 --enable-tui enable full-screen terminal user interface (TUI)
1629 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1630 --enable-profiling enable profiling of GDB
3841debe 1631 --disable-rpath do not hardcode runtime library paths
a1220294 1632 --enable-werror treat compile warnings as errors
32c1c914 1633 --enable-build-warnings enable build-time compiler warnings if gcc is used
a1220294 1634 --enable-gdb-build-warnings
32c1c914 1635 enable GDB specific build-time compiler warnings if
a1220294 1636 gcc is used
32c1c914 1637 --enable-sim link gdb with simulator
bec39cab 1638 --enable-multi-ice build the multi-ice-gdb-server
496c0e1b
JB
1639 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1640 is auto)
bec39cab
AC
1641
1642Optional Packages:
1643 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1644 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a1220294 1645 --with-separate-debug-dir=PATH
32c1c914 1646 look for global separate debug info in this path
62e4f60c 1647 [LIBDIR/debug]
b14b1491
TT
1648 --with-gdb-datadir=PATH look for global separate data files in this path
1649 [DATADIR/gdb]
29b0e8a2 1650 --with-relocated-sources=PATH
32c1c914
TT
1651 automatically relocate this path for source files
1652 --with-libunwind use libunwind frame unwinding support
cb01cfba
JB
1653 --with-curses use the curses library instead of the termcap
1654 library
c16158bc
JM
1655 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1656 --with-bugurl=URL Direct users to URL to report a bug
b040ad30 1657 --with-zlib include zlib support (auto/yes/no) default=auto
a1220294
TT
1658 --with-libiconv-prefix=DIR
1659 search for libiconv in DIR/include and DIR/lib
6a30b0a5 1660 --with-system-readline use installed readline library
5c39566f 1661 --with-expat include expat support (auto/yes/no)
3841debe
DJ
1662 --with-gnu-ld assume the C compiler uses GNU ld default=no
1663 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1664 --without-libexpat-prefix don't search for libexpat in includedir and libdir
0c4a4063
DE
1665 --with-python[=PYTHON] include python support
1666 (auto/yes/no/<python-program>)
a1220294
TT
1667 --without-included-regex
1668 don't use included regex; this is the default on
1669 systems with version 2 of the GNU C library (use
1670 with caution on other system)
81ecdfbb 1671 --with-sysroot[=DIR] search for usr/lib et al within DIR
b14b1491 1672 --with-system-gdbinit=PATH
32c1c914 1673 automatically load a system-wide gdbinit file
5062cc19
KS
1674 --with-tcl directory containing tcl configuration (tclConfig.sh)
1675 --with-tk directory containing tk configuration (tkConfig.sh)
bec39cab 1676 --with-x use the X Window System
bec39cab
AC
1677
1678Some influential environment variables:
1679 CC C compiler command
1680 CFLAGS C compiler flags
1681 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1682 nonstandard directory <lib dir>
81ecdfbb
RW
1683 LIBS libraries to pass to the linker, e.g. -l<library>
1684 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1685 you have headers in a nonstandard directory <include dir>
bec39cab 1686 CPP C preprocessor
81ecdfbb
RW
1687 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1688 the first program found out of: `bison -y', `byacc', `yacc'.
1689 YFLAGS The list of arguments that will be passed by default to $YACC.
1690 This script will default YFLAGS to the empty string to avoid a
1691 default value of `-d' given by some make applications.
1692 XMKMF Path to xmkmf, Makefile generator for X Window System
bec39cab
AC
1693
1694Use these variables to override the choices made by `configure' or to help
1695it to find libraries and programs with nonstandard names/locations.
1696
81ecdfbb 1697Report bugs to the package provider.
bec39cab 1698_ACEOF
81ecdfbb 1699ac_status=$?
bec39cab
AC
1700fi
1701
1702if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
bec39cab 1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707 continue
bec39cab
AC
1708 ac_builddir=.
1709
81ecdfbb
RW
1710case "$ac_dir" in
1711.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712*)
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 esac ;;
1720esac
1721ac_abs_top_builddir=$ac_pwd
1722ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723# for backward compatibility:
1724ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
1725
1726case $srcdir in
81ecdfbb 1727 .) # We are building in place.
bec39cab 1728 ac_srcdir=.
81ecdfbb
RW
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 1732 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1735 *) # Relative name.
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 1739esac
81ecdfbb 1740ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 1741
81ecdfbb
RW
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
3ace7edb 1750 else
81ecdfbb
RW
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
bec39cab
AC
1754 done
1755fi
1756
81ecdfbb 1757test -n "$ac_init_help" && exit $ac_status
bec39cab
AC
1758if $ac_init_version; then
1759 cat <<\_ACEOF
81ecdfbb
RW
1760configure
1761generated by GNU Autoconf 2.64
bec39cab 1762
81ecdfbb 1763Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
1764This configure script is free software; the Free Software Foundation
1765gives unlimited permission to copy, distribute and modify it.
1766_ACEOF
81ecdfbb 1767 exit
bec39cab 1768fi
bec39cab 1769
81ecdfbb
RW
1770## ------------------------ ##
1771## Autoconf initialization. ##
1772## ------------------------ ##
bec39cab 1773
81ecdfbb
RW
1774# ac_fn_c_try_compile LINENO
1775# --------------------------
1776# Try to compile conftest.$ac_ext, and return whether this succeeded.
1777ac_fn_c_try_compile ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1782case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1800 ac_retval=0
1801else
1802 $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1804
81ecdfbb
RW
1805 ac_retval=1
1806fi
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 return $ac_retval
1809
1810} # ac_fn_c_try_compile
1811
1812# ac_fn_c_try_cpp LINENO
1813# ----------------------
1814# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1815ac_fn_c_try_cpp ()
bec39cab 1816{
81ecdfbb
RW
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_cpp conftest.$ac_ext"
1819case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } >/dev/null && {
1834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 }; then :
1837 ac_retval=0
1838else
1839 $as_echo "$as_me: failed program was:" >&5
1840sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1841
81ecdfbb
RW
1842 ac_retval=1
1843fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
bec39cab 1846
81ecdfbb 1847} # ac_fn_c_try_cpp
bec39cab 1848
81ecdfbb
RW
1849# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1850# -------------------------------------------------------
1851# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1852# the include files in INCLUDES and setting the cache variable VAR
1853# accordingly.
1854ac_fn_c_check_header_mongrel ()
1855{
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
1860if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1862fi
1863eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
1866else
1867 # Is the header compilable?
1868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1869$as_echo_n "checking $2 usability... " >&6; }
1870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872$4
1873#include <$2>
1874_ACEOF
1875if ac_fn_c_try_compile "$LINENO"; then :
1876 ac_header_compiler=yes
1877else
1878 ac_header_compiler=no
1879fi
1880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1882$as_echo "$ac_header_compiler" >&6; }
bec39cab 1883
81ecdfbb
RW
1884# Is the header present?
1885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1886$as_echo_n "checking $2 presence... " >&6; }
1887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h. */
1889#include <$2>
1890_ACEOF
1891if ac_fn_c_try_cpp "$LINENO"; then :
1892 ac_header_preproc=yes
1893else
1894 ac_header_preproc=no
1895fi
1896rm -f conftest.err conftest.$ac_ext
1897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1898$as_echo "$ac_header_preproc" >&6; }
bec39cab 1899
81ecdfbb
RW
1900# So? What about this header?
1901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1902 yes:no: )
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1904$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907 ;;
1908 no:yes:* )
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1910$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1912$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1914$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1916$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919 ;;
1920esac
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922$as_echo_n "checking for $2... " >&6; }
1923if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1925else
1926 eval "$3=\$ac_header_compiler"
1927fi
1928eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931fi
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bec39cab 1933
81ecdfbb 1934} # ac_fn_c_check_header_mongrel
bec39cab 1935
81ecdfbb
RW
1936# ac_fn_c_try_run LINENO
1937# ----------------------
1938# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1939# that executables *can* be run.
1940ac_fn_c_try_run ()
1941{
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if { { ac_try="$ac_link"
1944case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947esac
1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949$as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>&5
1951 ac_status=$?
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1954 { { case "(($ac_try" in
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1957esac
1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959$as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_try") 2>&5
1961 ac_status=$?
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; }; }; then :
1964 ac_retval=0
1965else
1966 $as_echo "$as_me: program exited with status $ac_status" >&5
1967 $as_echo "$as_me: failed program was:" >&5
1968sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1969
81ecdfbb
RW
1970 ac_retval=$ac_status
1971fi
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 return $ac_retval
bec39cab 1975
81ecdfbb 1976} # ac_fn_c_try_run
bec39cab 1977
81ecdfbb
RW
1978# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1979# -------------------------------------------------------
1980# Tests whether HEADER exists and can be compiled using the include files in
1981# INCLUDES, setting the cache variable VAR accordingly.
1982ac_fn_c_check_header_compile ()
1983{
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986$as_echo_n "checking for $2... " >&6; }
1987if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1989else
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991/* end confdefs.h. */
1992$4
1993#include <$2>
bec39cab 1994_ACEOF
81ecdfbb
RW
1995if ac_fn_c_try_compile "$LINENO"; then :
1996 eval "$3=yes"
1997else
1998 eval "$3=no"
1999fi
2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001fi
2002eval ac_res=\$$3
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004$as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bec39cab 2006
81ecdfbb 2007} # ac_fn_c_check_header_compile
bec39cab 2008
81ecdfbb
RW
2009# ac_fn_c_try_link LINENO
2010# -----------------------
2011# Try to link conftest.$ac_ext, and return whether this succeeded.
2012ac_fn_c_try_link ()
b4e70030 2013{
81ecdfbb
RW
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 rm -f conftest.$ac_objext conftest$ac_exeext
2016 if { { ac_try="$ac_link"
2017case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020esac
2021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022$as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_link") 2>conftest.err
2024 ac_status=$?
2025 if test -s conftest.err; then
2026 grep -v '^ *+' conftest.err >conftest.er1
2027 cat conftest.er1 >&5
2028 mv -f conftest.er1 conftest.err
2029 fi
2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031 test $ac_status = 0; } && {
2032 test -z "$ac_c_werror_flag" ||
2033 test ! -s conftest.err
2034 } && test -s conftest$ac_exeext && {
2035 test "$cross_compiling" = yes ||
2036 $as_test_x conftest$ac_exeext
2037 }; then :
2038 ac_retval=0
2039else
2040 $as_echo "$as_me: failed program was:" >&5
2041sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 2042
81ecdfbb
RW
2043 ac_retval=1
2044fi
2045 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2046 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2047 # interfere with the next link command; also delete a directory that is
2048 # left behind by Apple's compiler. We do this before executing the actions.
2049 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051 return $ac_retval
bec39cab 2052
81ecdfbb 2053} # ac_fn_c_try_link
bec39cab 2054
81ecdfbb
RW
2055# ac_fn_c_check_func LINENO FUNC VAR
2056# ----------------------------------
2057# Tests whether FUNC exists, setting the cache variable VAR accordingly
2058ac_fn_c_check_func ()
2059{
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062$as_echo_n "checking for $2... " >&6; }
2063if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064 $as_echo_n "(cached) " >&6
2065else
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h. */
2068/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2070#define $2 innocuous_$2
bec39cab 2071
81ecdfbb
RW
2072/* System header to define __stub macros and hopefully few prototypes,
2073 which can conflict with char $2 (); below.
2074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2075 <limits.h> exists even on freestanding compilers. */
bec39cab 2076
81ecdfbb
RW
2077#ifdef __STDC__
2078# include <limits.h>
2079#else
2080# include <assert.h>
2081#endif
bec39cab 2082
81ecdfbb 2083#undef $2
bec39cab 2084
81ecdfbb
RW
2085/* Override any GCC internal prototype to avoid an error.
2086 Use char because int might match the return type of a GCC
2087 builtin and then its argument prototype would still apply. */
2088#ifdef __cplusplus
2089extern "C"
2090#endif
2091char $2 ();
2092/* The GNU C library defines this for functions which it implements
2093 to always fail with ENOSYS. Some functions are actually named
2094 something starting with __ and the normal name is an alias. */
2095#if defined __stub_$2 || defined __stub___$2
2096choke me
2097#endif
bec39cab 2098
81ecdfbb
RW
2099int
2100main ()
2101{
2102return $2 ();
2103 ;
2104 return 0;
2105}
bec39cab 2106_ACEOF
81ecdfbb
RW
2107if ac_fn_c_try_link "$LINENO"; then :
2108 eval "$3=yes"
2109else
2110 eval "$3=no"
2111fi
2112rm -f core conftest.err conftest.$ac_objext \
2113 conftest$ac_exeext conftest.$ac_ext
2114fi
2115eval ac_res=\$$3
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117$as_echo "$ac_res" >&6; }
2118 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bec39cab 2119
81ecdfbb 2120} # ac_fn_c_check_func
bec39cab 2121
81ecdfbb
RW
2122# ac_fn_c_check_decl LINENO SYMBOL VAR
2123# ------------------------------------
2124# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2125ac_fn_c_check_decl ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
e7a30f46
DE
2128 as_decl_name=`echo $2|sed 's/ *(.*//'`
2129 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2131$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2132if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133 $as_echo_n "(cached) " >&6
2134else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */
2137$4
2138int
2139main ()
2140{
e7a30f46
DE
2141#ifndef $as_decl_name
2142#ifdef __cplusplus
2143 (void) $as_decl_use;
2144#else
2145 (void) $as_decl_name;
2146#endif
81ecdfbb 2147#endif
bec39cab 2148
81ecdfbb
RW
2149 ;
2150 return 0;
2151}
bec39cab 2152_ACEOF
81ecdfbb
RW
2153if ac_fn_c_try_compile "$LINENO"; then :
2154 eval "$3=yes"
2155else
2156 eval "$3=no"
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162$as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bec39cab 2164
81ecdfbb 2165} # ac_fn_c_check_decl
bec39cab 2166
81ecdfbb
RW
2167# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2168# --------------------------------------------
2169# Tries to find the compile-time value of EXPR in a program that includes
2170# INCLUDES, setting VAR accordingly. Returns whether the value could be
2171# computed
2172ac_fn_c_compute_int ()
2173{
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 if test "$cross_compiling" = yes; then
2176 # Depending upon the size, compute the lo and hi bounds.
2177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h. */
2179$4
2180int
2181main ()
2182{
2183static int test_array [1 - 2 * !(($2) >= 0)];
2184test_array [0] = 0
bec39cab 2185
81ecdfbb
RW
2186 ;
2187 return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_lo=0 ac_mid=0
2192 while :; do
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h. */
2195$4
2196int
2197main ()
2198{
2199static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2200test_array [0] = 0
bec39cab 2201
81ecdfbb
RW
2202 ;
2203 return 0;
2204}
2205_ACEOF
2206if ac_fn_c_try_compile "$LINENO"; then :
2207 ac_hi=$ac_mid; break
2208else
2209 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2210 if test $ac_lo -le $ac_mid; then
2211 ac_lo= ac_hi=
2212 break
2213 fi
2214 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
c906108c 2215fi
81ecdfbb
RW
2216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 done
c906108c 2218else
81ecdfbb
RW
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h. */
2221$4
2222int
2223main ()
2224{
2225static int test_array [1 - 2 * !(($2) < 0)];
2226test_array [0] = 0
bec39cab 2227
81ecdfbb
RW
2228 ;
2229 return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233 ac_hi=-1 ac_mid=-1
2234 while :; do
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h. */
2237$4
2238int
2239main ()
2240{
2241static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2242test_array [0] = 0
bec39cab 2243
81ecdfbb
RW
2244 ;
2245 return 0;
2246}
2247_ACEOF
2248if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_lo=$ac_mid; break
2250else
2251 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2252 if test $ac_mid -le $ac_hi; then
2253 ac_lo= ac_hi=
2254 break
2255 fi
2256 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2257fi
2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 done
2260else
2261 ac_lo= ac_hi=
2262fi
2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264fi
2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266# Binary search between lo and hi bounds.
2267while test "x$ac_lo" != "x$ac_hi"; do
2268 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270/* end confdefs.h. */
2271$4
2272int
2273main ()
2274{
2275static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2276test_array [0] = 0
bec39cab 2277
81ecdfbb
RW
2278 ;
2279 return 0;
2280}
2281_ACEOF
2282if ac_fn_c_try_compile "$LINENO"; then :
2283 ac_hi=$ac_mid
2284else
2285 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2286fi
2287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288done
2289case $ac_lo in #((
2290?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2291'') ac_retval=1 ;;
2292esac
2293 else
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295/* end confdefs.h. */
2296$4
2297static long int longval () { return $2; }
2298static unsigned long int ulongval () { return $2; }
2299#include <stdio.h>
2300#include <stdlib.h>
2301int
2302main ()
2303{
bec39cab 2304
81ecdfbb
RW
2305 FILE *f = fopen ("conftest.val", "w");
2306 if (! f)
2307 return 1;
2308 if (($2) < 0)
2309 {
2310 long int i = longval ();
2311 if (i != ($2))
2312 return 1;
2313 fprintf (f, "%ld", i);
2314 }
2315 else
2316 {
2317 unsigned long int i = ulongval ();
2318 if (i != ($2))
2319 return 1;
2320 fprintf (f, "%lu", i);
2321 }
2322 /* Do not output a trailing newline, as this causes \r\n confusion
2323 on some platforms. */
2324 return ferror (f) || fclose (f) != 0;
bec39cab 2325
81ecdfbb
RW
2326 ;
2327 return 0;
2328}
2329_ACEOF
2330if ac_fn_c_try_run "$LINENO"; then :
2331 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2332else
2333 ac_retval=1
2334fi
2335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2336 conftest.$ac_objext conftest.beam conftest.$ac_ext
2337rm -f conftest.val
bec39cab 2338
81ecdfbb
RW
2339 fi
2340 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2341 return $ac_retval
bec39cab 2342
81ecdfbb 2343} # ac_fn_c_compute_int
bec39cab 2344
81ecdfbb
RW
2345# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2346# ----------------------------------------------------
2347# Tries to find if the field MEMBER exists in type AGGR, after including
2348# INCLUDES, setting cache variable VAR accordingly.
2349ac_fn_c_check_member ()
2350{
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2353$as_echo_n "checking for $2.$3... " >&6; }
2354if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2355 $as_echo_n "(cached) " >&6
2356else
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358/* end confdefs.h. */
2359$5
2360int
2361main ()
2362{
2363static $2 ac_aggr;
2364if (ac_aggr.$3)
2365return 0;
2366 ;
2367 return 0;
2368}
2369_ACEOF
2370if ac_fn_c_try_compile "$LINENO"; then :
2371 eval "$4=yes"
2372else
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374/* end confdefs.h. */
2375$5
2376int
2377main ()
2378{
2379static $2 ac_aggr;
2380if (sizeof ac_aggr.$3)
2381return 0;
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386if ac_fn_c_try_compile "$LINENO"; then :
2387 eval "$4=yes"
2388else
2389 eval "$4=no"
2390fi
2391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392fi
2393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394fi
2395eval ac_res=\$$4
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397$as_echo "$ac_res" >&6; }
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bec39cab 2399
81ecdfbb 2400} # ac_fn_c_check_member
bec39cab 2401
81ecdfbb
RW
2402# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2403# -------------------------------------------
2404# Tests whether TYPE exists after having included INCLUDES, setting cache
2405# variable VAR accordingly.
2406ac_fn_c_check_type ()
2407{
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410$as_echo_n "checking for $2... " >&6; }
2411if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2412 $as_echo_n "(cached) " >&6
2413else
2414 eval "$3=no"
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416/* end confdefs.h. */
2417$4
2418int
2419main ()
2420{
2421if (sizeof ($2))
2422 return 0;
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427if ac_fn_c_try_compile "$LINENO"; then :
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429/* end confdefs.h. */
2430$4
2431int
2432main ()
2433{
2434if (sizeof (($2)))
2435 return 0;
2436 ;
2437 return 0;
2438}
2439_ACEOF
2440if ac_fn_c_try_compile "$LINENO"; then :
d5af19ba 2441
81ecdfbb
RW
2442else
2443 eval "$3=yes"
2444fi
2445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446fi
2447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448fi
2449eval ac_res=\$$3
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451$as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
d5af19ba 2453
81ecdfbb
RW
2454} # ac_fn_c_check_type
2455cat >config.log <<_ACEOF
2456This file contains any messages produced by compilers while
2457running configure, to aid debugging if configure makes a mistake.
d5af19ba 2458
81ecdfbb
RW
2459It was created by $as_me, which was
2460generated by GNU Autoconf 2.64. Invocation command line was
b4e70030 2461
81ecdfbb 2462 $ $0 $@
413ccac7 2463
81ecdfbb
RW
2464_ACEOF
2465exec 5>>config.log
2466{
2467cat <<_ASUNAME
2468## --------- ##
2469## Platform. ##
2470## --------- ##
413ccac7 2471
81ecdfbb
RW
2472hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2473uname -m = `(uname -m) 2>/dev/null || echo unknown`
2474uname -r = `(uname -r) 2>/dev/null || echo unknown`
2475uname -s = `(uname -s) 2>/dev/null || echo unknown`
2476uname -v = `(uname -v) 2>/dev/null || echo unknown`
85981d60 2477
81ecdfbb
RW
2478/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2479/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
413ccac7 2480
81ecdfbb
RW
2481/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2482/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2483/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2484/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2485/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2486/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2487/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
c906108c 2488
81ecdfbb 2489_ASUNAME
bec39cab 2490
bec39cab
AC
2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492for as_dir in $PATH
2493do
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2496 $as_echo "PATH: $as_dir"
2497 done
2498IFS=$as_save_IFS
bec39cab 2499
81ecdfbb 2500} >&5
bec39cab 2501
81ecdfbb 2502cat >&5 <<_ACEOF
bec39cab 2503
bec39cab 2504
81ecdfbb
RW
2505## ----------- ##
2506## Core tests. ##
2507## ----------- ##
2508
2509_ACEOF
2510
2511
2512# Keep a trace of the command line.
2513# Strip out --no-create and --no-recursion so they do not pile up.
2514# Strip out --silent because we don't want to record it for future runs.
2515# Also quote any args containing shell meta-characters.
2516# Make two passes to allow for proper duplicate-argument suppression.
2517ac_configure_args=
2518ac_configure_args0=
2519ac_configure_args1=
2520ac_must_keep_next=false
2521for ac_pass in 1 2
2522do
2523 for ac_arg
2524 do
2525 case $ac_arg in
2526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2528 | -silent | --silent | --silen | --sile | --sil)
2529 continue ;;
2530 *\'*)
2531 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2532 esac
2533 case $ac_pass in
2534 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2535 2)
2536 as_fn_append ac_configure_args1 " '$ac_arg'"
2537 if test $ac_must_keep_next = true; then
2538 ac_must_keep_next=false # Got value, back to normal.
2539 else
2540 case $ac_arg in
2541 *=* | --config-cache | -C | -disable-* | --disable-* \
2542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2544 | -with-* | --with-* | -without-* | --without-* | --x)
2545 case "$ac_configure_args0 " in
2546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2547 esac
2548 ;;
2549 -* ) ac_must_keep_next=true ;;
2550 esac
2551 fi
2552 as_fn_append ac_configure_args " '$ac_arg'"
2553 ;;
2554 esac
2555 done
2556done
2557{ ac_configure_args0=; unset ac_configure_args0;}
2558{ ac_configure_args1=; unset ac_configure_args1;}
2559
2560# When interrupted or exit'd, cleanup temporary files, and complete
2561# config.log. We remove comments because anyway the quotes in there
2562# would cause problems or look ugly.
2563# WARNING: Use '\'' to represent an apostrophe within the trap.
2564# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2565trap 'exit_status=$?
2566 # Save into config.log some information that might help in debugging.
2567 {
2568 echo
2569
2570 cat <<\_ASBOX
2571## ---------------- ##
2572## Cache variables. ##
2573## ---------------- ##
2574_ASBOX
2575 echo
2576 # The following way of writing the cache mishandles newlines in values,
2577(
2578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2579 eval ac_val=\$$ac_var
2580 case $ac_val in #(
2581 *${as_nl}*)
2582 case $ac_var in #(
2583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2584$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2585 esac
2586 case $ac_var in #(
2587 _ | IFS | as_nl) ;; #(
2588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2589 *) { eval $ac_var=; unset $ac_var;} ;;
2590 esac ;;
2591 esac
2592 done
2593 (set) 2>&1 |
2594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2595 *${as_nl}ac_space=\ *)
2596 sed -n \
2597 "s/'\''/'\''\\\\'\'''\''/g;
2598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2599 ;; #(
2600 *)
2601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2602 ;;
2603 esac |
2604 sort
2605)
2606 echo
2607
2608 cat <<\_ASBOX
2609## ----------------- ##
2610## Output variables. ##
2611## ----------------- ##
2612_ASBOX
2613 echo
2614 for ac_var in $ac_subst_vars
2615 do
2616 eval ac_val=\$$ac_var
2617 case $ac_val in
2618 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2619 esac
2620 $as_echo "$ac_var='\''$ac_val'\''"
2621 done | sort
2622 echo
2623
2624 if test -n "$ac_subst_files"; then
2625 cat <<\_ASBOX
2626## ------------------- ##
2627## File substitutions. ##
2628## ------------------- ##
2629_ASBOX
2630 echo
2631 for ac_var in $ac_subst_files
2632 do
2633 eval ac_val=\$$ac_var
2634 case $ac_val in
2635 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2636 esac
2637 $as_echo "$ac_var='\''$ac_val'\''"
2638 done | sort
2639 echo
2640 fi
2641
2642 if test -s confdefs.h; then
2643 cat <<\_ASBOX
2644## ----------- ##
2645## confdefs.h. ##
2646## ----------- ##
2647_ASBOX
2648 echo
2649 cat confdefs.h
2650 echo
2651 fi
2652 test "$ac_signal" != 0 &&
2653 $as_echo "$as_me: caught signal $ac_signal"
2654 $as_echo "$as_me: exit $exit_status"
2655 } >&5
2656 rm -f core *.core core.conftest.* &&
2657 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2658 exit $exit_status
2659' 0
2660for ac_signal in 1 2 13 15; do
2661 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2662done
2663ac_signal=0
2664
2665# confdefs.h avoids OS command line length limits that DEFS can exceed.
2666rm -f -r conftest* confdefs.h
2667
2668$as_echo "/* confdefs.h */" > confdefs.h
2669
2670# Predefined preprocessor variables.
2671
2672cat >>confdefs.h <<_ACEOF
2673#define PACKAGE_NAME "$PACKAGE_NAME"
2674_ACEOF
2675
2676cat >>confdefs.h <<_ACEOF
2677#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2678_ACEOF
2679
2680cat >>confdefs.h <<_ACEOF
2681#define PACKAGE_VERSION "$PACKAGE_VERSION"
2682_ACEOF
2683
2684cat >>confdefs.h <<_ACEOF
2685#define PACKAGE_STRING "$PACKAGE_STRING"
2686_ACEOF
2687
2688cat >>confdefs.h <<_ACEOF
2689#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2690_ACEOF
2691
2692cat >>confdefs.h <<_ACEOF
2693#define PACKAGE_URL "$PACKAGE_URL"
2694_ACEOF
2695
2696
2697# Let the site file select an alternate cache file if it wants to.
2698# Prefer an explicitly selected file to automatically selected ones.
2699ac_site_file1=NONE
2700ac_site_file2=NONE
2701if test -n "$CONFIG_SITE"; then
2702 ac_site_file1=$CONFIG_SITE
2703elif test "x$prefix" != xNONE; then
2704 ac_site_file1=$prefix/share/config.site
2705 ac_site_file2=$prefix/etc/config.site
2706else
2707 ac_site_file1=$ac_default_prefix/share/config.site
2708 ac_site_file2=$ac_default_prefix/etc/config.site
2709fi
2710for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2711do
2712 test "x$ac_site_file" = xNONE && continue
2713 if test -r "$ac_site_file"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2715$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2716 sed 's/^/| /' "$ac_site_file" >&5
2717 . "$ac_site_file"
2718 fi
2719done
2720
2721if test -r "$cache_file"; then
2722 # Some versions of bash will fail to source /dev/null (special
2723 # files actually), so we avoid doing that.
2724 if test -f "$cache_file"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2726$as_echo "$as_me: loading cache $cache_file" >&6;}
2727 case $cache_file in
2728 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2729 *) . "./$cache_file";;
2730 esac
2731 fi
2732else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2734$as_echo "$as_me: creating cache $cache_file" >&6;}
2735 >$cache_file
bec39cab
AC
2736fi
2737
f434ba03
PA
2738gl_header_list="$gl_header_list sys/mman.h"
2739gl_func_list="$gl_func_list mprotect"
2740gl_func_list="$gl_func_list memchr"
2741gl_header_list="$gl_header_list stddef.h"
81ecdfbb
RW
2742gl_header_list="$gl_header_list stdint.h"
2743gl_header_list="$gl_header_list wchar.h"
2744gl_header_list="$gl_header_list string.h"
2745# Check that the precious variables saved in the cache have kept the same
2746# value.
2747ac_cache_corrupted=false
2748for ac_var in $ac_precious_vars; do
2749 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2750 eval ac_new_set=\$ac_env_${ac_var}_set
2751 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2752 eval ac_new_val=\$ac_env_${ac_var}_value
2753 case $ac_old_set,$ac_new_set in
2754 set,)
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2756$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2757 ac_cache_corrupted=: ;;
2758 ,set)
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2760$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2761 ac_cache_corrupted=: ;;
2762 ,);;
2763 *)
2764 if test "x$ac_old_val" != "x$ac_new_val"; then
2765 # differences in whitespace do not lead to failure.
2766 ac_old_val_w=`echo x $ac_old_val`
2767 ac_new_val_w=`echo x $ac_new_val`
2768 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2770$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2771 ac_cache_corrupted=:
2772 else
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2774$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2775 eval $ac_var=\$ac_old_val
2776 fi
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2778$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2780$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2781 fi;;
2782 esac
2783 # Pass precious variables to config.status.
2784 if test "$ac_new_set" = set; then
2785 case $ac_new_val in
2786 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2787 *) ac_arg=$ac_var=$ac_new_val ;;
2788 esac
2789 case " $ac_configure_args " in
2790 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2791 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2792 esac
2793 fi
2794done
2795if $ac_cache_corrupted; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2799$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2800 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2801fi
2802## -------------------- ##
2803## Main body of script. ##
2804## -------------------- ##
2805
2806ac_ext=c
2807ac_cpp='$CPP $CPPFLAGS'
2808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811
2812
2813
2814
2815
2816ac_config_headers="$ac_config_headers config.h:config.in"
2817
2818
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2820$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2821 # Check whether --enable-maintainer-mode was given.
2822if test "${enable_maintainer_mode+set}" = set; then :
2823 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2824else
2825 USE_MAINTAINER_MODE=no
2826fi
2827
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2829$as_echo "$USE_MAINTAINER_MODE" >&6; }
2830 if test $USE_MAINTAINER_MODE = yes; then
2831 MAINTAINER_MODE_TRUE=
2832 MAINTAINER_MODE_FALSE='#'
2833else
2834 MAINTAINER_MODE_TRUE='#'
2835 MAINTAINER_MODE_FALSE=
2836fi
2837
2838 MAINT=$MAINTAINER_MODE_TRUE
2839
2840
2841
2842ac_ext=c
2843ac_cpp='$CPP $CPPFLAGS'
2844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847if test -n "$ac_tool_prefix"; then
2848 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849set dummy ${ac_tool_prefix}gcc; ac_word=$2
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851$as_echo_n "checking for $ac_word... " >&6; }
2852if test "${ac_cv_prog_CC+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
c906108c
SS
2854else
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2857else
bec39cab
AC
2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859for as_dir in $PATH
2860do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2867 break 2
2868 fi
2869done
81ecdfbb
RW
2870 done
2871IFS=$as_save_IFS
bec39cab 2872
c906108c
SS
2873fi
2874fi
bec39cab 2875CC=$ac_cv_prog_CC
c906108c 2876if test -n "$CC"; then
81ecdfbb
RW
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878$as_echo "$CC" >&6; }
c906108c 2879else
81ecdfbb
RW
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881$as_echo "no" >&6; }
c906108c
SS
2882fi
2883
81ecdfbb 2884
b4e70030
JB
2885fi
2886if test -z "$ac_cv_prog_CC"; then
2887 ac_ct_CC=$CC
81ecdfbb
RW
2888 # Extract the first word of "gcc", so it can be a program name with args.
2889set dummy gcc; ac_word=$2
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891$as_echo_n "checking for $ac_word... " >&6; }
2892if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2893 $as_echo_n "(cached) " >&6
b4e70030
JB
2894else
2895 if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905 ac_cv_prog_ac_ct_CC="gcc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b4e70030 2907 break 2
4e8d927d 2908 fi
b4e70030 2909done
81ecdfbb
RW
2910 done
2911IFS=$as_save_IFS
b4e70030
JB
2912
2913fi
2914fi
2915ac_ct_CC=$ac_cv_prog_ac_ct_CC
2916if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2918$as_echo "$ac_ct_CC" >&6; }
b4e70030 2919else
81ecdfbb
RW
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921$as_echo "no" >&6; }
b4e70030
JB
2922fi
2923
81ecdfbb
RW
2924 if test "x$ac_ct_CC" = x; then
2925 CC=""
2926 else
2927 case $cross_compiling:$ac_tool_warned in
2928yes:)
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931ac_tool_warned=yes ;;
2932esac
2933 CC=$ac_ct_CC
2934 fi
b4e70030
JB
2935else
2936 CC="$ac_cv_prog_CC"
2937fi
2938
c906108c 2939if test -z "$CC"; then
81ecdfbb
RW
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2942set dummy ${ac_tool_prefix}cc; ac_word=$2
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
2945if test "${ac_cv_prog_CC+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
c906108c
SS
2947else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950else
bec39cab
AC
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_CC="${ac_tool_prefix}cc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2960 break 2
2961 fi
2962done
81ecdfbb
RW
2963 done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971$as_echo "$CC" >&6; }
2972else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978 fi
2979fi
2980if test -z "$CC"; then
2981 # Extract the first word of "cc", so it can be a program name with args.
2982set dummy cc; ac_word=$2
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
2985if test "${ac_cv_prog_CC+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2987else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990else
2991 ac_prog_rejected=no
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000 ac_prog_rejected=yes
3001 continue
3002 fi
3003 ac_cv_prog_CC="cc"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007done
3008 done
3009IFS=$as_save_IFS
bec39cab 3010
c906108c
SS
3011if test $ac_prog_rejected = yes; then
3012 # We found a bogon in the path, so make sure we never use it.
3013 set dummy $ac_cv_prog_CC
3014 shift
bec39cab 3015 if test $# != 0; then
c906108c
SS
3016 # We chose a different compiler from the bogus one.
3017 # However, it has the same basename, so the bogon will be chosen
3018 # first if we set CC to just the basename; use the full file name.
3019 shift
bec39cab 3020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
3021 fi
3022fi
3023fi
3024fi
bec39cab 3025CC=$ac_cv_prog_CC
c906108c 3026if test -n "$CC"; then
81ecdfbb
RW
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028$as_echo "$CC" >&6; }
c906108c 3029else
81ecdfbb
RW
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
c906108c
SS
3032fi
3033
81ecdfbb 3034
bec39cab
AC
3035fi
3036if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
81ecdfbb 3038 for ac_prog in cl.exe
bec39cab
AC
3039 do
3040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if test "${ac_cv_prog_CC+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
c906108c
SS
3046else
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049else
bec39cab
AC
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 3057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
3059 break 2
3060 fi
3061done
81ecdfbb
RW
3062 done
3063IFS=$as_save_IFS
bec39cab 3064
c906108c
SS
3065fi
3066fi
bec39cab 3067CC=$ac_cv_prog_CC
c906108c 3068if test -n "$CC"; then
81ecdfbb
RW
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070$as_echo "$CC" >&6; }
c906108c 3071else
81ecdfbb
RW
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
c906108c 3074fi
bec39cab 3075
81ecdfbb 3076
bec39cab
AC
3077 test -n "$CC" && break
3078 done
3079fi
3080if test -z "$CC"; then
3081 ac_ct_CC=$CC
81ecdfbb 3082 for ac_prog in cl.exe
bec39cab
AC
3083do
3084 # Extract the first word of "$ac_prog", so it can be a program name with args.
3085set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
bec39cab
AC
3090else
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 3101 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab 3103 break 2
c906108c 3104 fi
bec39cab 3105done
81ecdfbb
RW
3106 done
3107IFS=$as_save_IFS
bec39cab
AC
3108
3109fi
3110fi
3111ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114$as_echo "$ac_ct_CC" >&6; }
bec39cab 3115else
81ecdfbb
RW
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "no" >&6; }
c906108c
SS
3118fi
3119
81ecdfbb 3120
bec39cab
AC
3121 test -n "$ac_ct_CC" && break
3122done
c906108c 3123
81ecdfbb
RW
3124 if test "x$ac_ct_CC" = x; then
3125 CC=""
3126 else
3127 case $cross_compiling:$ac_tool_warned in
3128yes:)
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131ac_tool_warned=yes ;;
3132esac
3133 CC=$ac_ct_CC
3134 fi
bec39cab
AC
3135fi
3136
3137fi
3138
3139
81ecdfbb
RW
3140test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142as_fn_error "no acceptable C compiler found in \$PATH
3143See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
3144
3145# Provide some information about the compiler.
81ecdfbb
RW
3146$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3147set X $ac_compile
3148ac_compiler=$2
3149for ac_option in --version -v -V -qversion; do
3150 { { ac_try="$ac_compiler $ac_option >&5"
3151case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156$as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
bec39cab 3158 ac_status=$?
81ecdfbb
RW
3159 if test -s conftest.err; then
3160 sed '10a\
3161... rest of stderr output deleted ...
3162 10q' conftest.err >conftest.er1
3163 cat conftest.er1 >&5
3164 rm -f conftest.er1 conftest.err
3165 fi
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }
3168done
bec39cab 3169
81ecdfbb 3170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3171/* end confdefs.h. */
3172
3173int
3174main ()
3175{
3176
3177 ;
3178 return 0;
3179}
3180_ACEOF
3181ac_clean_files_save=$ac_clean_files
81ecdfbb 3182ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
bec39cab
AC
3183# Try to create an executable without -o first, disregard a.out.
3184# It will help us diagnose broken compilers, and finding out an intuition
3185# of exeext.
81ecdfbb
RW
3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3187$as_echo_n "checking for C compiler default output file name... " >&6; }
3188ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3189
3190# The possible output files:
3191ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3192
3193ac_rmfiles=
3194for ac_file in $ac_files
3195do
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3199 esac
3200done
3201rm -f $ac_rmfiles
3202
3203if { { ac_try="$ac_link_default"
3204case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209$as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link_default") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216# in a Makefile. We should not override ac_cv_exeext if it was cached,
3217# so that the user can short-circuit this test for compilers unknown to
3218# Autoconf.
3219for ac_file in $ac_files ''
bec39cab
AC
3220do
3221 test -f "$ac_file" || continue
3222 case $ac_file in
81ecdfbb 3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b4e70030
JB
3224 ;;
3225 [ab].out )
3226 # We found the default executable, but exeext='' is most
3227 # certainly right.
3228 break;;
3229 *.* )
81ecdfbb
RW
3230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3231 then :; else
3232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 fi
3234 # We set ac_cv_exeext here because the later test for it is not
3235 # safe: cross compilers may not add the suffix if given an `-o'
3236 # argument, so we may need to know it at that point already.
3237 # Even if this section looks crufty: it has the advantage of
3238 # actually working.
b4e70030
JB
3239 break;;
3240 * )
3241 break;;
bec39cab
AC
3242 esac
3243done
81ecdfbb
RW
3244test "$ac_cv_exeext" = no && ac_cv_exeext=
3245
bec39cab 3246else
81ecdfbb
RW
3247 ac_file=''
3248fi
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3250$as_echo "$ac_file" >&6; }
3251if test -z "$ac_file"; then :
3252 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
81ecdfbb
RW
3255{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257{ as_fn_set_status 77
3258as_fn_error "C compiler cannot create executables
3259See \`config.log' for more details." "$LINENO" 5; }; }
bec39cab 3260fi
b4e70030 3261ac_exeext=$ac_cv_exeext
b4e70030 3262
81ecdfbb 3263# Check that the compiler produces executables we can run. If not, either
bec39cab 3264# the compiler is broken, or we cross compile.
81ecdfbb
RW
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266$as_echo_n "checking whether the C compiler works... " >&6; }
bec39cab
AC
3267# If not cross compiling, check that we can run a simple program.
3268if test "$cross_compiling" != yes; then
3269 if { ac_try='./$ac_file'
81ecdfbb
RW
3270 { { case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273esac
3274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275$as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_try") 2>&5
bec39cab 3277 ac_status=$?
81ecdfbb
RW
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; }; then
bec39cab 3280 cross_compiling=no
c906108c 3281 else
bec39cab
AC
3282 if test "$cross_compiling" = maybe; then
3283 cross_compiling=yes
3284 else
81ecdfbb
RW
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287as_fn_error "cannot run C compiled programs.
bec39cab 3288If you meant to cross compile, use \`--host'.
81ecdfbb 3289See \`config.log' for more details." "$LINENO" 5; }
bec39cab 3290 fi
c906108c 3291 fi
bec39cab 3292fi
81ecdfbb
RW
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294$as_echo "yes" >&6; }
bec39cab 3295
81ecdfbb 3296rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b4e70030 3297ac_clean_files=$ac_clean_files_save
81ecdfbb 3298# Check that the compiler produces executables we can run. If not, either
b4e70030 3299# the compiler is broken, or we cross compile.
81ecdfbb
RW
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3301$as_echo_n "checking whether we are cross compiling... " >&6; }
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3303$as_echo "$cross_compiling" >&6; }
3304
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3306$as_echo_n "checking for suffix of executables... " >&6; }
3307if { { ac_try="$ac_link"
3308case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311esac
3312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313$as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_link") 2>&5
bec39cab 3315 ac_status=$?
81ecdfbb
RW
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
b4e70030
JB
3318 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3319# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3320# work properly (i.e., refer to `conftest.exe'), while it won't with
3321# `rm'.
3322for ac_file in conftest.exe conftest conftest.*; do
3323 test -f "$ac_file" || continue
3324 case $ac_file in
81ecdfbb 3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b4e70030 3326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b4e70030
JB
3327 break;;
3328 * ) break;;
3329 esac
3330done
c906108c 3331else
81ecdfbb
RW
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334as_fn_error "cannot compute suffix of executables: cannot compile and link
3335See \`config.log' for more details." "$LINENO" 5; }
c906108c 3336fi
b4e70030 3337rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3339$as_echo "$ac_cv_exeext" >&6; }
c906108c 3340
b4e70030 3341rm -f conftest.$ac_ext
bec39cab
AC
3342EXEEXT=$ac_cv_exeext
3343ac_exeext=$EXEEXT
81ecdfbb
RW
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3345$as_echo_n "checking for suffix of object files... " >&6; }
3346if test "${ac_cv_objext+set}" = set; then :
3347 $as_echo_n "(cached) " >&6
bec39cab 3348else
81ecdfbb 3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4e70030
JB
3350/* end confdefs.h. */
3351
3352int
3353main ()
3354{
3355
3356 ;
3357 return 0;
3358}
3359_ACEOF
3360rm -f conftest.o conftest.obj
81ecdfbb
RW
3361if { { ac_try="$ac_compile"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367$as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_compile") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; then :
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
bec39cab 3374 case $ac_file in
81ecdfbb 3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bec39cab
AC
3376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3377 break;;
3378 esac
3379done
c906108c 3380else
81ecdfbb 3381 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
81ecdfbb
RW
3384{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386as_fn_error "cannot compute suffix of object files: cannot compile
3387See \`config.log' for more details." "$LINENO" 5; }
c906108c 3388fi
b4e70030 3389rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 3390fi
81ecdfbb
RW
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3392$as_echo "$ac_cv_objext" >&6; }
bec39cab
AC
3393OBJEXT=$ac_cv_objext
3394ac_objext=$OBJEXT
81ecdfbb
RW
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3396$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3397if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3398 $as_echo_n "(cached) " >&6
c906108c 3399else
81ecdfbb 3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3401/* end confdefs.h. */
3402
3403int
3404main ()
3405{
3406#ifndef __GNUC__
3407 choke me
3408#endif
3409
3410 ;
3411 return 0;
3412}
3413_ACEOF
81ecdfbb 3414if ac_fn_c_try_compile "$LINENO"; then :
bec39cab
AC
3415 ac_compiler_gnu=yes
3416else
81ecdfbb 3417 ac_compiler_gnu=no
bec39cab 3418fi
81ecdfbb 3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
3420ac_cv_c_compiler_gnu=$ac_compiler_gnu
3421
3422fi
81ecdfbb
RW
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3424$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3425if test $ac_compiler_gnu = yes; then
3426 GCC=yes
3427else
3428 GCC=
3429fi
bec39cab
AC
3430ac_test_CFLAGS=${CFLAGS+set}
3431ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3433$as_echo_n "checking whether $CC accepts -g... " >&6; }
3434if test "${ac_cv_prog_cc_g+set}" = set; then :
3435 $as_echo_n "(cached) " >&6
bec39cab 3436else
81ecdfbb
RW
3437 ac_save_c_werror_flag=$ac_c_werror_flag
3438 ac_c_werror_flag=yes
3439 ac_cv_prog_cc_g=no
3440 CFLAGS="-g"
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3442/* end confdefs.h. */
3443
3444int
3445main ()
3446{
3447
3448 ;
3449 return 0;
3450}
3451_ACEOF
81ecdfbb 3452if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
3453 ac_cv_prog_cc_g=yes
3454else
81ecdfbb
RW
3455 CFLAGS=""
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h. */
3458
3459int
3460main ()
3461{
3462
3463 ;
3464 return 0;
3465}
3466_ACEOF
3467if ac_fn_c_try_compile "$LINENO"; then :
3468
3469else
3470 ac_c_werror_flag=$ac_save_c_werror_flag
3471 CFLAGS="-g"
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h. */
3474
3475int
3476main ()
3477{
c906108c 3478
81ecdfbb
RW
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483if ac_fn_c_try_compile "$LINENO"; then :
3484 ac_cv_prog_cc_g=yes
3485fi
3486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487fi
3488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d 3489fi
81ecdfbb
RW
3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_c_werror_flag=$ac_save_c_werror_flag
bec39cab 3492fi
81ecdfbb
RW
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3494$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 3495if test "$ac_test_CFLAGS" = set; then
bec39cab 3496 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3497elif test $ac_cv_prog_cc_g = yes; then
3498 if test "$GCC" = yes; then
3499 CFLAGS="-g -O2"
3500 else
3501 CFLAGS="-g"
3502 fi
3503else
3504 if test "$GCC" = yes; then
3505 CFLAGS="-O2"
3506 else
3507 CFLAGS=
3508 fi
3509fi
81ecdfbb
RW
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3511$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3512if test "${ac_cv_prog_cc_c89+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
bec39cab 3514else
81ecdfbb 3515 ac_cv_prog_cc_c89=no
bec39cab 3516ac_save_CC=$CC
81ecdfbb 3517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3518/* end confdefs.h. */
c906108c
SS
3519#include <stdarg.h>
3520#include <stdio.h>
3521#include <sys/types.h>
3522#include <sys/stat.h>
3523/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3524struct buf { int x; };
3525FILE * (*rcsopen) (struct buf *, struct stat *, int);
3526static char *e (p, i)
3527 char **p;
3528 int i;
3529{
3530 return p[i];
3531}
3532static char *f (char * (*g) (char **, int), char **p, ...)
3533{
3534 char *s;
3535 va_list v;
3536 va_start (v,p);
3537 s = g (p, va_arg (v,int));
3538 va_end (v);
3539 return s;
3540}
bec39cab
AC
3541
3542/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3543 function prototypes and stuff, but not '\xHH' hex character constants.
3544 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3545 as 'x'. The following induces an error, until -std is added to get
bec39cab
AC
3546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3547 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3548 that's true only with -std. */
bec39cab
AC
3549int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3550
81ecdfbb
RW
3551/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3552 inside strings and character constants. */
3553#define FOO(x) 'x'
3554int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3555
c906108c
SS
3556int test (int i, double x);
3557struct s1 {int (*f) (int a);};
3558struct s2 {int (*f) (double a);};
3559int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3560int argc;
3561char **argv;
bec39cab
AC
3562int
3563main ()
3564{
c906108c 3565return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
3566 ;
3567 return 0;
3568}
3569_ACEOF
81ecdfbb
RW
3570for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3571 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
3572do
3573 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_c89=$ac_arg
c906108c 3576fi
81ecdfbb
RW
3577rm -f core conftest.err conftest.$ac_objext
3578 test "x$ac_cv_prog_cc_c89" != "xno" && break
c906108c 3579done
81ecdfbb 3580rm -f conftest.$ac_ext
bec39cab 3581CC=$ac_save_CC
c906108c
SS
3582
3583fi
81ecdfbb
RW
3584# AC_CACHE_VAL
3585case "x$ac_cv_prog_cc_c89" in
3586 x)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3588$as_echo "none needed" >&6; } ;;
3589 xno)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3591$as_echo "unsupported" >&6; } ;;
bec39cab 3592 *)
81ecdfbb
RW
3593 CC="$CC $ac_cv_prog_cc_c89"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3595$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c906108c 3596esac
81ecdfbb 3597if test "x$ac_cv_prog_cc_c89" != xno; then :
c906108c 3598
b4e70030
JB
3599fi
3600
bec39cab
AC
3601ac_ext=c
3602ac_cpp='$CPP $CPPFLAGS'
3603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 3606
f434ba03
PA
3607ac_aux_dir=
3608for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3609 for ac_t in install-sh install.sh shtool; do
3610 if test -f "$ac_dir/$ac_t"; then
3611 ac_aux_dir=$ac_dir
3612 ac_install_sh="$ac_aux_dir/$ac_t -c"
3613 break 2
3614 fi
3615 done
3616done
3617if test -z "$ac_aux_dir"; then
3618 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3619fi
3620
3621# These three variables are undocumented and unsupported,
3622# and are intended to be withdrawn in a future Autoconf release.
3623# They can cause serious problems if a builder's source tree is in a directory
3624# whose full name contains unusual characters.
3625ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3626ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3627ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3628
3629
3630# Make sure we can run config.sub.
3631$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3632 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3633
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3635$as_echo_n "checking build system type... " >&6; }
3636if test "${ac_cv_build+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3638else
3639 ac_build_alias=$build_alias
3640test "x$ac_build_alias" = x &&
3641 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3642test "x$ac_build_alias" = x &&
3643 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3644ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3645 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3646
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3649$as_echo "$ac_cv_build" >&6; }
3650case $ac_cv_build in
3651*-*-*) ;;
3652*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3653esac
3654build=$ac_cv_build
3655ac_save_IFS=$IFS; IFS='-'
3656set x $ac_cv_build
3657shift
3658build_cpu=$1
3659build_vendor=$2
3660shift; shift
3661# Remember, the first character of IFS is used to create $*,
3662# except with old shells:
3663build_os=$*
3664IFS=$ac_save_IFS
3665case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3666
3667
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3669$as_echo_n "checking host system type... " >&6; }
3670if test "${ac_cv_host+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672else
3673 if test "x$host_alias" = x; then
3674 ac_cv_host=$ac_cv_build
3675else
3676 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3677 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3678fi
3679
3680fi
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3682$as_echo "$ac_cv_host" >&6; }
3683case $ac_cv_host in
3684*-*-*) ;;
3685*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3686esac
3687host=$ac_cv_host
3688ac_save_IFS=$IFS; IFS='-'
3689set x $ac_cv_host
3690shift
3691host_cpu=$1
3692host_vendor=$2
3693shift; shift
3694# Remember, the first character of IFS is used to create $*,
3695# except with old shells:
3696host_os=$*
3697IFS=$ac_save_IFS
3698case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3699
3700
60ca704f 3701
bec39cab
AC
3702ac_ext=c
3703ac_cpp='$CPP $CPPFLAGS'
3704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3708$as_echo_n "checking how to run the C preprocessor... " >&6; }
bec39cab
AC
3709# On Suns, sometimes $CPP names a directory.
3710if test -n "$CPP" && test -d "$CPP"; then
3711 CPP=
8bb2c122 3712fi
bec39cab 3713if test -z "$CPP"; then
81ecdfbb
RW
3714 if test "${ac_cv_prog_CPP+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
bec39cab
AC
3716else
3717 # Double quotes because CPP needs to be expanded
3718 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3719 do
3720 ac_preproc_ok=false
3721for ac_c_preproc_warn_flag in '' yes
3722do
3723 # Use a header file that comes with gcc, so configuring glibc
3724 # with a fresh cross-compiler works.
3725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3726 # <limits.h> exists even on freestanding compilers.
3727 # On the NeXT, cc -E runs the code through the compiler's parser,
3728 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3730/* end confdefs.h. */
3731#ifdef __STDC__
3732# include <limits.h>
3733#else
3734# include <assert.h>
3735#endif
3736 Syntax error
3737_ACEOF
81ecdfbb 3738if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab 3739
81ecdfbb 3740else
bec39cab
AC
3741 # Broken: fails on valid input.
3742continue
3743fi
3744rm -f conftest.err conftest.$ac_ext
3745
81ecdfbb 3746 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 3747 # can be detected and how.
81ecdfbb 3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3749/* end confdefs.h. */
3750#include <ac_nonexistent.h>
3751_ACEOF
81ecdfbb 3752if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3753 # Broken: success on invalid input.
3754continue
8bb2c122 3755else
bec39cab
AC
3756 # Passes both tests.
3757ac_preproc_ok=:
3758break
8bb2c122 3759fi
bec39cab 3760rm -f conftest.err conftest.$ac_ext
8bb2c122 3761
bec39cab
AC
3762done
3763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3764rm -f conftest.err conftest.$ac_ext
81ecdfbb 3765if $ac_preproc_ok; then :
bec39cab
AC
3766 break
3767fi
8bb2c122 3768
bec39cab
AC
3769 done
3770 ac_cv_prog_CPP=$CPP
ddc9cd0f 3771
c906108c 3772fi
bec39cab
AC
3773 CPP=$ac_cv_prog_CPP
3774else
3775 ac_cv_prog_CPP=$CPP
c906108c 3776fi
81ecdfbb
RW
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3778$as_echo "$CPP" >&6; }
bec39cab
AC
3779ac_preproc_ok=false
3780for ac_c_preproc_warn_flag in '' yes
3781do
3782 # Use a header file that comes with gcc, so configuring glibc
3783 # with a fresh cross-compiler works.
3784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3785 # <limits.h> exists even on freestanding compilers.
3786 # On the NeXT, cc -E runs the code through the compiler's parser,
3787 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3789/* end confdefs.h. */
3790#ifdef __STDC__
3791# include <limits.h>
3792#else
3793# include <assert.h>
3794#endif
3795 Syntax error
3796_ACEOF
81ecdfbb 3797if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab 3798
81ecdfbb 3799else
bec39cab
AC
3800 # Broken: fails on valid input.
3801continue
3802fi
3803rm -f conftest.err conftest.$ac_ext
3804
81ecdfbb 3805 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 3806 # can be detected and how.
81ecdfbb 3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3808/* end confdefs.h. */
3809#include <ac_nonexistent.h>
3810_ACEOF
81ecdfbb 3811if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3812 # Broken: success on invalid input.
3813continue
c906108c 3814else
bec39cab
AC
3815 # Passes both tests.
3816ac_preproc_ok=:
3817break
c906108c 3818fi
bec39cab 3819rm -f conftest.err conftest.$ac_ext
c906108c 3820
bec39cab
AC
3821done
3822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
3824if $ac_preproc_ok; then :
3825
c906108c 3826else
81ecdfbb
RW
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829as_fn_error "C preprocessor \"$CPP\" fails sanity check
3830See \`config.log' for more details." "$LINENO" 5; }
c906108c 3831fi
c906108c 3832
bec39cab
AC
3833ac_ext=c
3834ac_cpp='$CPP $CPPFLAGS'
3835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838
3839
81ecdfbb
RW
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3841$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3842if test "${ac_cv_path_GREP+set}" = set; then :
3843 $as_echo_n "(cached) " >&6
4e8d927d 3844else
81ecdfbb
RW
3845 if test -z "$GREP"; then
3846 ac_path_GREP_found=false
3847 # Loop through the user's path and test for each of PROGNAME-LIST
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in grep ggrep; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3856 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3857# Check for GNU ac_path_GREP and select it if it is found.
3858 # Check for GNU $ac_path_GREP
3859case `"$ac_path_GREP" --version 2>&1` in
3860*GNU*)
3861 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3862*)
3863 ac_count=0
3864 $as_echo_n 0123456789 >"conftest.in"
3865 while :
3866 do
3867 cat "conftest.in" "conftest.in" >"conftest.tmp"
3868 mv "conftest.tmp" "conftest.in"
3869 cp "conftest.in" "conftest.nl"
3870 $as_echo 'GREP' >> "conftest.nl"
3871 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873 as_fn_arith $ac_count + 1 && ac_count=$as_val
3874 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3875 # Best one so far, save it but keep looking for a better one
3876 ac_cv_path_GREP="$ac_path_GREP"
3877 ac_path_GREP_max=$ac_count
bec39cab 3878 fi
81ecdfbb
RW
3879 # 10*(2^10) chars as input seems more than enough
3880 test $ac_count -gt 10 && break
3881 done
3882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883esac
bec39cab 3884
81ecdfbb
RW
3885 $ac_path_GREP_found && break 3
3886 done
3887 done
3888 done
3889IFS=$as_save_IFS
3890 if test -z "$ac_cv_path_GREP"; then
3891 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3892 fi
c906108c 3893else
81ecdfbb 3894 ac_cv_path_GREP=$GREP
c906108c 3895fi
c906108c 3896
81ecdfbb
RW
3897fi
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3899$as_echo "$ac_cv_path_GREP" >&6; }
3900 GREP="$ac_cv_path_GREP"
c906108c 3901
c906108c 3902
81ecdfbb
RW
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3904$as_echo_n "checking for egrep... " >&6; }
3905if test "${ac_cv_path_EGREP+set}" = set; then :
3906 $as_echo_n "(cached) " >&6
783e057b 3907else
81ecdfbb
RW
3908 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3909 then ac_cv_path_EGREP="$GREP -E"
3910 else
3911 if test -z "$EGREP"; then
3912 ac_path_EGREP_found=false
3913 # Loop through the user's path and test for each of PROGNAME-LIST
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
783e057b
DJ
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3919 for ac_prog in egrep; do
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3922 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3923# Check for GNU ac_path_EGREP and select it if it is found.
3924 # Check for GNU $ac_path_EGREP
3925case `"$ac_path_EGREP" --version 2>&1` in
3926*GNU*)
3927 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3928*)
3929 ac_count=0
3930 $as_echo_n 0123456789 >"conftest.in"
3931 while :
3932 do
3933 cat "conftest.in" "conftest.in" >"conftest.tmp"
3934 mv "conftest.tmp" "conftest.in"
3935 cp "conftest.in" "conftest.nl"
3936 $as_echo 'EGREP' >> "conftest.nl"
3937 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939 as_fn_arith $ac_count + 1 && ac_count=$as_val
3940 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3941 # Best one so far, save it but keep looking for a better one
3942 ac_cv_path_EGREP="$ac_path_EGREP"
3943 ac_path_EGREP_max=$ac_count
3944 fi
3945 # 10*(2^10) chars as input seems more than enough
3946 test $ac_count -gt 10 && break
3947 done
3948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949esac
bec39cab 3950
81ecdfbb
RW
3951 $ac_path_EGREP_found && break 3
3952 done
3953 done
3954 done
3955IFS=$as_save_IFS
3956 if test -z "$ac_cv_path_EGREP"; then
3957 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
783e057b 3958 fi
783e057b 3959else
81ecdfbb 3960 ac_cv_path_EGREP=$EGREP
783e057b
DJ
3961fi
3962
81ecdfbb 3963 fi
783e057b 3964fi
81ecdfbb
RW
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3966$as_echo "$ac_cv_path_EGREP" >&6; }
3967 EGREP="$ac_cv_path_EGREP"
3968
783e057b 3969
81ecdfbb
RW
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3971$as_echo_n "checking for ANSI C header files... " >&6; }
3972if test "${ac_cv_header_stdc+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
783e057b 3974else
81ecdfbb 3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3976/* end confdefs.h. */
783e057b 3977#include <stdlib.h>
bec39cab 3978#include <stdarg.h>
783e057b
DJ
3979#include <string.h>
3980#include <float.h>
c906108c 3981
bec39cab
AC
3982int
3983main ()
3984{
c906108c 3985
bec39cab
AC
3986 ;
3987 return 0;
3988}
3989_ACEOF
81ecdfbb 3990if ac_fn_c_try_compile "$LINENO"; then :
783e057b 3991 ac_cv_header_stdc=yes
c906108c 3992else
81ecdfbb 3993 ac_cv_header_stdc=no
c906108c 3994fi
81ecdfbb 3995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3996
783e057b
DJ
3997if test $ac_cv_header_stdc = yes; then
3998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
4000/* end confdefs.h. */
4001#include <string.h>
c906108c 4002
783e057b
DJ
4003_ACEOF
4004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4005 $EGREP "memchr" >/dev/null 2>&1; then :
4006
c906108c 4007else
783e057b 4008 ac_cv_header_stdc=no
c906108c 4009fi
783e057b 4010rm -f conftest*
c906108c
SS
4011
4012fi
4013
783e057b
DJ
4014if test $ac_cv_header_stdc = yes; then
4015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
4017/* end confdefs.h. */
4018#include <stdlib.h>
bec39cab 4019
783e057b
DJ
4020_ACEOF
4021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4022 $EGREP "free" >/dev/null 2>&1; then :
4023
bec39cab 4024else
783e057b 4025 ac_cv_header_stdc=no
bec39cab 4026fi
783e057b 4027rm -f conftest*
bec39cab
AC
4028
4029fi
bec39cab 4030
783e057b
DJ
4031if test $ac_cv_header_stdc = yes; then
4032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4033 if test "$cross_compiling" = yes; then :
783e057b 4034 :
bec39cab 4035else
81ecdfbb 4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
4037/* end confdefs.h. */
4038#include <ctype.h>
81ecdfbb 4039#include <stdlib.h>
783e057b
DJ
4040#if ((' ' & 0x0FF) == 0x020)
4041# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4042# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4043#else
4044# define ISLOWER(c) \
4045 (('a' <= (c) && (c) <= 'i') \
4046 || ('j' <= (c) && (c) <= 'r') \
4047 || ('s' <= (c) && (c) <= 'z'))
4048# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4049#endif
4050
4051#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4052int
4053main ()
4054{
4055 int i;
4056 for (i = 0; i < 256; i++)
4057 if (XOR (islower (i), ISLOWER (i))
4058 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4059 return 2;
4060 return 0;
783e057b
DJ
4061}
4062_ACEOF
81ecdfbb 4063if ac_fn_c_try_run "$LINENO"; then :
783e057b 4064
81ecdfbb
RW
4065else
4066 ac_cv_header_stdc=no
783e057b 4067fi
81ecdfbb
RW
4068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4069 conftest.$ac_objext conftest.beam conftest.$ac_ext
783e057b 4070fi
81ecdfbb 4071
783e057b
DJ
4072fi
4073fi
81ecdfbb
RW
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4075$as_echo "$ac_cv_header_stdc" >&6; }
783e057b
DJ
4076if test $ac_cv_header_stdc = yes; then
4077
81ecdfbb 4078$as_echo "#define STDC_HEADERS 1" >>confdefs.h
783e057b
DJ
4079
4080fi
4081
4082# On IRIX 5.3, sys/types and inttypes.h are conflicting.
783e057b
DJ
4083for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4084 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4085do :
4086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4087ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4088"
4089eval as_val=\$$as_ac_Header
4090 if test "x$as_val" = x""yes; then :
783e057b 4091 cat >>confdefs.h <<_ACEOF
81ecdfbb 4092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
783e057b
DJ
4093_ACEOF
4094
4095fi
4096
4097done
4098
4099
4100
f434ba03
PA
4101
4102
81ecdfbb
RW
4103 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4104if test "x$ac_cv_header_minix_config_h" = x""yes; then :
783e057b
DJ
4105 MINIX=yes
4106else
4107 MINIX=
4108fi
4109
4110
4111 if test "$MINIX" = yes; then
4112
81ecdfbb 4113$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
783e057b
DJ
4114
4115
81ecdfbb 4116$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
783e057b
DJ
4117
4118
81ecdfbb 4119$as_echo "#define _MINIX 1" >>confdefs.h
783e057b
DJ
4120
4121 fi
4122
f434ba03
PA
4123 case "$host_os" in
4124 hpux*)
4125
4126$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4127
4128 ;;
4129 esac
4130
783e057b 4131
81ecdfbb
RW
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4133$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4134if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
783e057b 4136else
81ecdfbb 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
4138/* end confdefs.h. */
4139
f434ba03
PA
4140# define __EXTENSIONS__ 1
4141 $ac_includes_default
783e057b
DJ
4142int
4143main ()
4144{
4145
4146 ;
4147 return 0;
4148}
4149_ACEOF
81ecdfbb 4150if ac_fn_c_try_compile "$LINENO"; then :
783e057b
DJ
4151 ac_cv_safe_to_define___extensions__=yes
4152else
81ecdfbb 4153 ac_cv_safe_to_define___extensions__=no
783e057b 4154fi
81ecdfbb 4155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
783e057b 4156fi
81ecdfbb
RW
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4158$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
783e057b 4159 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4160 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
783e057b 4161
81ecdfbb 4162 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
783e057b 4163
81ecdfbb 4164 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
783e057b 4165
81ecdfbb 4166 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
783e057b 4167
81ecdfbb 4168 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
783e057b
DJ
4169
4170
81ecdfbb
RW
4171if test -n "$ac_tool_prefix"; then
4172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4173set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175$as_echo_n "checking for $ac_word... " >&6; }
4176if test "${ac_cv_prog_RANLIB+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4178else
4179 if test -n "$RANLIB"; then
4180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4181else
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4192 fi
4193done
4194 done
4195IFS=$as_save_IFS
783e057b 4196
81ecdfbb
RW
4197fi
4198fi
4199RANLIB=$ac_cv_prog_RANLIB
4200if test -n "$RANLIB"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4202$as_echo "$RANLIB" >&6; }
4203else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205$as_echo "no" >&6; }
4206fi
783e057b
DJ
4207
4208
81ecdfbb
RW
4209fi
4210if test -z "$ac_cv_prog_RANLIB"; then
4211 ac_ct_RANLIB=$RANLIB
4212 # Extract the first word of "ranlib", so it can be a program name with args.
4213set dummy ranlib; ac_word=$2
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215$as_echo_n "checking for $ac_word... " >&6; }
4216if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
783e057b 4218else
81ecdfbb
RW
4219 if test -n "$ac_ct_RANLIB"; then
4220 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4221else
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_prog_ac_ct_RANLIB="ranlib"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4232 fi
4233done
4234 done
4235IFS=$as_save_IFS
4236
4237fi
4238fi
4239ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4240if test -n "$ac_ct_RANLIB"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4242$as_echo "$ac_ct_RANLIB" >&6; }
4243else
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245$as_echo "no" >&6; }
4246fi
4247
4248 if test "x$ac_ct_RANLIB" = x; then
4249 RANLIB=":"
4250 else
4251 case $cross_compiling:$ac_tool_warned in
4252yes:)
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255ac_tool_warned=yes ;;
4256esac
4257 RANLIB=$ac_ct_RANLIB
4258 fi
4259else
4260 RANLIB="$ac_cv_prog_RANLIB"
4261fi
4262
4263
4264
4265
4266
4267
3388710e
JM
4268
4269
3388710e 4270
f434ba03
PA
4271 # Code from module arg-nonnull:
4272 # Code from module c++defs:
4273 # Code from module extensions:
3388710e 4274
f434ba03
PA
4275 # Code from module include_next:
4276 # Code from module memchr:
4277 # Code from module memmem:
4278 # Code from module memmem-simple:
4279 # Code from module multiarch:
4280 # Code from module stddef:
4281 # Code from module stdint:
4282 # Code from module string:
4283 # Code from module warn-on-use:
4284 # Code from module wchar:
3388710e
JM
4285
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4287$as_echo_n "checking target system type... " >&6; }
4288if test "${ac_cv_target+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4290else
4291 if test "x$target_alias" = x; then
4292 ac_cv_target=$ac_cv_host
4293else
4294 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4295 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4296fi
4297
4298fi
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4300$as_echo "$ac_cv_target" >&6; }
4301case $ac_cv_target in
4302*-*-*) ;;
4303*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4304esac
4305target=$ac_cv_target
4306ac_save_IFS=$IFS; IFS='-'
4307set x $ac_cv_target
4308shift
4309target_cpu=$1
4310target_vendor=$2
4311shift; shift
4312# Remember, the first character of IFS is used to create $*,
4313# except with old shells:
4314target_os=$*
4315IFS=$ac_save_IFS
4316case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4317
4318
4319# The aliases save the names the user supplied, while $host etc.
4320# will get canonicalized.
4321test -n "$target_alias" &&
4322 test "$program_prefix$program_suffix$program_transform_name" = \
4323 NONENONEs,x,x, &&
4324 program_prefix=${target_alias}-
4325
4326# The tests for host and target for $enable_largefile require
4327# canonical names.
4328
4329
81ecdfbb 4330
da2f07f1
JK
4331# As the $enable_largefile decision depends on --enable-plugins we must set it
4332# even in directories otherwise not depending on the $plugins option.
4333
4334
4335# Check whether --enable-plugins was given.
4336if test "${enable_plugins+set}" = set; then :
4337 enableval=$enable_plugins; case "${enableval}" in
4338 yes | "") plugins=yes ;;
4339 no) plugins=no ;;
4340 *) plugins=yes ;;
4341 esac
4342else
4343 plugins=no
4344fi
4345
4346
4347
4348case "${host}" in
4349 sparc-*-solaris*|i[3-7]86-*-solaris*)
4350 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4351 # are mutually exclusive; and without procfs support, the bfd/ elf module
4352 # cannot provide certain routines such as elfcore_write_prpsinfo
4353 # or elfcore_write_prstatus. So unless the user explicitly requested
4354 # large-file support through the --enable-largefile switch, disable
4355 # large-file support in favor of procfs support.
4356 test "${target}" = "${host}" -a "x$plugins" = xno \
4357 && : ${enable_largefile="no"}
4358 ;;
4359esac
4360
4361# Check whether --enable-largefile was given.
4362if test "${enable_largefile+set}" = set; then :
4363 enableval=$enable_largefile;
4364fi
4365
4366if test "$enable_largefile" != no; then
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4369$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4370if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4372else
4373 ac_cv_sys_largefile_CC=no
4374 if test "$GCC" != yes; then
4375 ac_save_CC=$CC
4376 while :; do
4377 # IRIX 6.2 and later do not support large files by default,
4378 # so use the C compiler's -n32 option if that helps.
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380/* end confdefs.h. */
4381#include <sys/types.h>
4382 /* Check that off_t can represent 2**63 - 1 correctly.
4383 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4384 since some C++ compilers masquerading as C compilers
4385 incorrectly reject 9223372036854775807. */
4386#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4387 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4388 && LARGE_OFF_T % 2147483647 == 1)
4389 ? 1 : -1];
4390int
4391main ()
4392{
4393
4394 ;
4395 return 0;
4396}
4397_ACEOF
4398 if ac_fn_c_try_compile "$LINENO"; then :
4399 break
4400fi
4401rm -f core conftest.err conftest.$ac_objext
4402 CC="$CC -n32"
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_cv_sys_largefile_CC=' -n32'; break
4405fi
4406rm -f core conftest.err conftest.$ac_objext
4407 break
4408 done
4409 CC=$ac_save_CC
4410 rm -f conftest.$ac_ext
4411 fi
4412fi
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4414$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4415 if test "$ac_cv_sys_largefile_CC" != no; then
4416 CC=$CC$ac_cv_sys_largefile_CC
4417 fi
4418
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4420$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4421if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4422 $as_echo_n "(cached) " >&6
4423else
4424 while :; do
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426/* end confdefs.h. */
4427#include <sys/types.h>
4428 /* Check that off_t can represent 2**63 - 1 correctly.
4429 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4430 since some C++ compilers masquerading as C compilers
4431 incorrectly reject 9223372036854775807. */
4432#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4433 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4434 && LARGE_OFF_T % 2147483647 == 1)
4435 ? 1 : -1];
4436int
4437main ()
4438{
4439
4440 ;
4441 return 0;
4442}
4443_ACEOF
4444if ac_fn_c_try_compile "$LINENO"; then :
4445 ac_cv_sys_file_offset_bits=no; break
4446fi
4447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449/* end confdefs.h. */
4450#define _FILE_OFFSET_BITS 64
4451#include <sys/types.h>
4452 /* Check that off_t can represent 2**63 - 1 correctly.
4453 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4454 since some C++ compilers masquerading as C compilers
4455 incorrectly reject 9223372036854775807. */
4456#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4457 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4458 && LARGE_OFF_T % 2147483647 == 1)
4459 ? 1 : -1];
4460int
4461main ()
4462{
4463
4464 ;
4465 return 0;
4466}
4467_ACEOF
4468if ac_fn_c_try_compile "$LINENO"; then :
4469 ac_cv_sys_file_offset_bits=64; break
4470fi
4471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 ac_cv_sys_file_offset_bits=unknown
4473 break
4474done
4475fi
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4477$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4478case $ac_cv_sys_file_offset_bits in #(
4479 no | unknown) ;;
4480 *)
4481cat >>confdefs.h <<_ACEOF
4482#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4483_ACEOF
4484;;
4485esac
4486rm -rf conftest*
4487 if test $ac_cv_sys_file_offset_bits = unknown; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4489$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4490if test "${ac_cv_sys_large_files+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4492else
4493 while :; do
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h. */
4496#include <sys/types.h>
4497 /* Check that off_t can represent 2**63 - 1 correctly.
4498 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4499 since some C++ compilers masquerading as C compilers
4500 incorrectly reject 9223372036854775807. */
4501#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4502 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4503 && LARGE_OFF_T % 2147483647 == 1)
4504 ? 1 : -1];
4505int
4506main ()
4507{
4508
4509 ;
4510 return 0;
4511}
4512_ACEOF
4513if ac_fn_c_try_compile "$LINENO"; then :
4514 ac_cv_sys_large_files=no; break
4515fi
4516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h. */
4519#define _LARGE_FILES 1
4520#include <sys/types.h>
4521 /* Check that off_t can represent 2**63 - 1 correctly.
4522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4523 since some C++ compilers masquerading as C compilers
4524 incorrectly reject 9223372036854775807. */
4525#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4527 && LARGE_OFF_T % 2147483647 == 1)
4528 ? 1 : -1];
4529int
4530main ()
4531{
4532
4533 ;
4534 return 0;
4535}
4536_ACEOF
4537if ac_fn_c_try_compile "$LINENO"; then :
4538 ac_cv_sys_large_files=1; break
4539fi
4540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 ac_cv_sys_large_files=unknown
4542 break
4543done
4544fi
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4546$as_echo "$ac_cv_sys_large_files" >&6; }
4547case $ac_cv_sys_large_files in #(
4548 no | unknown) ;;
4549 *)
4550cat >>confdefs.h <<_ACEOF
4551#define _LARGE_FILES $ac_cv_sys_large_files
4552_ACEOF
4553;;
4554esac
4555rm -rf conftest*
4556 fi
4557fi
4558
4559
4560
81ecdfbb
RW
4561
4562
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4564$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4565if test "${am_cv_prog_cc_stdc+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4567else
4568 am_cv_prog_cc_stdc=no
4569ac_save_CC="$CC"
4570# Don't try gcc -ansi; that turns off useful extensions and
4571# breaks some systems' header files.
4572# AIX -qlanglvl=ansi
4573# Ultrix and OSF/1 -std1
4574# HP-UX 10.20 and later -Ae
4575# HP-UX older versions -Aa -D_HPUX_SOURCE
4576# SVR4 -Xc -D__EXTENSIONS__
4577for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4578do
783e057b 4579 CC="$ac_save_CC $ac_arg"
81ecdfbb 4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
4581/* end confdefs.h. */
4582#include <stdarg.h>
4583#include <stdio.h>
4584#include <sys/types.h>
4585#include <sys/stat.h>
4586/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4587struct buf { int x; };
4588FILE * (*rcsopen) (struct buf *, struct stat *, int);
4589static char *e (p, i)
4590 char **p;
4591 int i;
4592{
4593 return p[i];
4594}
4595static char *f (char * (*g) (char **, int), char **p, ...)
4596{
4597 char *s;
4598 va_list v;
4599 va_start (v,p);
4600 s = g (p, va_arg (v,int));
4601 va_end (v);
4602 return s;
4603}
4604int test (int i, double x);
4605struct s1 {int (*f) (int a);};
4606struct s2 {int (*f) (double a);};
4607int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4608int argc;
4609char **argv;
4610
4611int
4612main ()
4613{
4614
4615return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4616
4617 ;
4618 return 0;
4619}
4620_ACEOF
81ecdfbb 4621if ac_fn_c_try_compile "$LINENO"; then :
783e057b 4622 am_cv_prog_cc_stdc="$ac_arg"; break
783e057b 4623fi
81ecdfbb 4624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
783e057b
DJ
4625done
4626CC="$ac_save_CC"
4627
4628fi
4629
4630if test -z "$am_cv_prog_cc_stdc"; then
81ecdfbb
RW
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4632$as_echo "none needed" >&6; }
783e057b 4633else
81ecdfbb
RW
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4635$as_echo "$am_cv_prog_cc_stdc" >&6; }
783e057b
DJ
4636fi
4637case "x$am_cv_prog_cc_stdc" in
4638 x|xno) ;;
4639 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4640esac
4641
4642
4643ac_aux_dir=
81ecdfbb
RW
4644for ac_dir in .. "$srcdir"/..; do
4645 for ac_t in install-sh install.sh shtool; do
4646 if test -f "$ac_dir/$ac_t"; then
4647 ac_aux_dir=$ac_dir
4648 ac_install_sh="$ac_aux_dir/$ac_t -c"
4649 break 2
4650 fi
4651 done
783e057b
DJ
4652done
4653if test -z "$ac_aux_dir"; then
81ecdfbb 4654 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
783e057b 4655fi
81ecdfbb
RW
4656
4657# These three variables are undocumented and unsupported,
4658# and are intended to be withdrawn in a future Autoconf release.
4659# They can cause serious problems if a builder's source tree is in a directory
4660# whose full name contains unusual characters.
4661ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4662ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4663ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4664
783e057b 4665
783e057b 4666
81ecdfbb 4667
a417dc56
RW
4668# Dependency checking.
4669rm -rf .tst 2>/dev/null
4670mkdir .tst 2>/dev/null
4671if test -d .tst; then
4672 am__leading_dot=.
4673else
4674 am__leading_dot=_
4675fi
4676rmdir .tst 2>/dev/null
4677
4678DEPDIR="${am__leading_dot}deps"
4679
81ecdfbb 4680ac_config_commands="$ac_config_commands depdir"
a417dc56
RW
4681
4682
4683depcc="$CC" am_compiler_list=
4684
4685am_depcomp=$ac_aux_dir/depcomp
81ecdfbb
RW
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4687$as_echo_n "checking dependency style of $depcc... " >&6; }
4688if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
a417dc56
RW
4690else
4691 if test -f "$am_depcomp"; then
4692 # We make a subdir and do the tests there. Otherwise we can end up
4693 # making bogus files that we don't know about and never remove. For
4694 # instance it was reported that on HP-UX the gcc test will end up
4695 # making a dummy file named `D' -- because `-MD' means `put the output
4696 # in D'.
4697 mkdir conftest.dir
4698 # Copy depcomp to subdir because otherwise we won't find it if we're
4699 # using a relative directory.
4700 cp "$am_depcomp" conftest.dir
4701 cd conftest.dir
4702 # We will build objects and dependencies in a subdirectory because
4703 # it helps to detect inapplicable dependency modes. For instance
4704 # both Tru64's cc and ICC support -MD to output dependencies as a
4705 # side effect of compilation, but ICC will put the dependencies in
4706 # the current directory while Tru64 will put them in the object
4707 # directory.
4708 mkdir sub
4709
4710 am_cv_CC_dependencies_compiler_type=none
4711 if test "$am_compiler_list" = ""; then
4712 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4713 fi
4714 for depmode in $am_compiler_list; do
4715 if test $depmode = none; then break; fi
4716
81ecdfbb 4717 $as_echo "$as_me:$LINENO: trying $depmode" >&5
a417dc56
RW
4718 # Setup a source with many dependencies, because some compilers
4719 # like to wrap large dependency lists on column 80 (with \), and
4720 # we should not choose a depcomp mode which is confused by this.
4721 #
4722 # We need to recreate these files for each test, as the compiler may
4723 # overwrite some of them when testing with obscure command lines.
4724 # This happens at least with the AIX C compiler.
4725 : > sub/conftest.c
4726 for i in 1 2 3 4 5 6; do
4727 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4728 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4729 # Solaris 8's {/usr,}/bin/sh.
4730 touch sub/conftst$i.h
4731 done
4732 echo "include sub/conftest.Po" > confmf
4733
4734 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4735 # mode. It turns out that the SunPro C++ compiler does not properly
4736 # handle `-M -o', and we need to detect this.
4737 depcmd="depmode=$depmode \
4738 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4739 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4740 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4741 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4742 if env $depcmd > conftest.err 2>&1 &&
4743 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4744 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4745 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4746 # icc doesn't choke on unknown options, it will just issue warnings
4747 # or remarks (even with -Werror). So we grep stderr for any message
4748 # that says an option was ignored or not supported.
4749 # When given -MP, icc 7.0 and 7.1 complain thusly:
4750 # icc: Command line warning: ignoring option '-M'; no argument required
4751 # The diagnosis changed in icc 8.0:
4752 # icc: Command line remark: option '-MP' not supported
4753 if (grep 'ignoring option' conftest.err ||
4754 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4755 am_cv_CC_dependencies_compiler_type=$depmode
81ecdfbb 4756 $as_echo "$as_me:$LINENO: success" >&5
a417dc56
RW
4757 break
4758 fi
4759 fi
81ecdfbb 4760 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
a417dc56
RW
4761 sed -e 's/^/| /' < conftest.err >&5
4762 done
4763
4764 cd ..
4765 rm -rf conftest.dir
4766else
4767 am_cv_CC_dependencies_compiler_type=none
4768fi
4769
4770fi
81ecdfbb
RW
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4772$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
a417dc56 4773if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
81ecdfbb 4774then as_fn_error "no usable dependency style found" "$LINENO" 5
a417dc56
RW
4775else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4776
4777fi
4778
4779
4780# Check for the 'make' the user wants to use.
4781for ac_prog in make
4782do
4783 # Extract the first word of "$ac_prog", so it can be a program name with args.
4784set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786$as_echo_n "checking for $ac_word... " >&6; }
4787if test "${ac_cv_prog_MAKE+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
a417dc56
RW
4789else
4790 if test -n "$MAKE"; then
4791 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4792else
4793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a417dc56 4800 ac_cv_prog_MAKE="$ac_prog"
81ecdfbb 4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a417dc56
RW
4802 break 2
4803 fi
4804done
81ecdfbb
RW
4805 done
4806IFS=$as_save_IFS
a417dc56
RW
4807
4808fi
4809fi
4810MAKE=$ac_cv_prog_MAKE
4811if test -n "$MAKE"; then
81ecdfbb
RW
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4813$as_echo "$MAKE" >&6; }
a417dc56 4814else
81ecdfbb
RW
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816$as_echo "no" >&6; }
a417dc56
RW
4817fi
4818
81ecdfbb 4819
a417dc56
RW
4820 test -n "$MAKE" && break
4821done
4822
4823MAKE_IS_GNU=
4824case "`$MAKE --version 2>&1 | sed 1q`" in
4825 *GNU*)
4826 MAKE_IS_GNU=yes
4827 ;;
4828esac
81ecdfbb 4829 if test "$MAKE_IS_GNU" = yes; then
a417dc56
RW
4830 GMAKE_TRUE=
4831 GMAKE_FALSE='#'
4832else
4833 GMAKE_TRUE='#'
4834 GMAKE_FALSE=
4835fi
4836
81ecdfbb
RW
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4838$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4839set x ${MAKE-make}
4840ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4841if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4842 $as_echo_n "(cached) " >&6
a417dc56
RW
4843else
4844 cat >conftest.make <<\_ACEOF
81ecdfbb 4845SHELL = /bin/sh
a417dc56 4846all:
81ecdfbb 4847 @echo '@@@%%%=$(MAKE)=@@@%%%'
a417dc56
RW
4848_ACEOF
4849# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
4850case `${MAKE-make} -f conftest.make 2>/dev/null` in
4851 *@@@%%%=?*=@@@%%%*)
4852 eval ac_cv_prog_make_${ac_make}_set=yes;;
4853 *)
4854 eval ac_cv_prog_make_${ac_make}_set=no;;
4855esac
a417dc56
RW
4856rm -f conftest.make
4857fi
81ecdfbb
RW
4858if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4860$as_echo "yes" >&6; }
a417dc56
RW
4861 SET_MAKE=
4862else
81ecdfbb
RW
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864$as_echo "no" >&6; }
a417dc56
RW
4865 SET_MAKE="MAKE=${MAKE-make}"
4866fi
4867
4868
783e057b
DJ
4869
4870CONFIG_OBS=
4871CONFIG_DEPS=
4872CONFIG_SRCS=
4873ENABLE_CFLAGS=
4874
4875CONFIG_ALL=
4876CONFIG_CLEAN=
4877CONFIG_INSTALL=
4878CONFIG_UNINSTALL=
4879
4880# If we haven't got the data from the intl directory,
4881# assume NLS is disabled.
4882USE_NLS=no
4883LIBINTL=
4884LIBINTL_DEP=
4885INCINTL=
4886XGETTEXT=
4887GMSGFMT=
4888POSUB=
4889
4890if test -f ../intl/config.intl; then
4891 . ../intl/config.intl
4892fi
81ecdfbb
RW
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4894$as_echo_n "checking whether NLS is requested... " >&6; }
783e057b 4895if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897$as_echo "no" >&6; }
783e057b 4898else
81ecdfbb
RW
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4900$as_echo "yes" >&6; }
783e057b 4901
81ecdfbb 4902$as_echo "#define ENABLE_NLS 1" >>confdefs.h
783e057b
DJ
4903
4904
81ecdfbb
RW
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4906$as_echo_n "checking for catalogs to be installed... " >&6; }
783e057b
DJ
4907 # Look for .po and .gmo files in the source directory.
4908 CATALOGS=
4909 XLINGUAS=
4910 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4911 # If there aren't any .gmo files the shell will give us the
4912 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4913 # weeded out.
4914 case "$cat" in *\**)
4915 continue;;
4916 esac
4917 # The quadruple backslash is collapsed to a double backslash
4918 # by the backticks, then collapsed again by the double quotes,
4919 # leaving us with one backslash in the sed expression (right
4920 # before the dot that mustn't act as a wildcard).
4921 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4922 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4923 # The user is allowed to set LINGUAS to a list of languages to
4924 # install catalogs for. If it's empty that means "all of them."
4925 if test "x$LINGUAS" = x; then
4926 CATALOGS="$CATALOGS $cat"
4927 XLINGUAS="$XLINGUAS $lang"
4928 else
4929 case "$LINGUAS" in *$lang*)
4930 CATALOGS="$CATALOGS $cat"
4931 XLINGUAS="$XLINGUAS $lang"
4932 ;;
4933 esac
4934 fi
4935 done
4936 LINGUAS="$XLINGUAS"
81ecdfbb
RW
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4938$as_echo "$LINGUAS" >&6; }
783e057b
DJ
4939
4940
4941 DATADIRNAME=share
4942
4943 INSTOBJEXT=.mo
4944
4945 GENCAT=gencat
4946
4947 CATOBJEXT=.gmo
4948
4949fi
4950
4951localedir='${datadir}/locale'
4952
4953
4954if test x"$USE_NLS" = xyes; then
4955 CONFIG_ALL="$CONFIG_ALL all-po"
4956 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4957 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4958 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4959fi
4960
4961
f434ba03
PA
4962
4963
4964
4965 LIBC_FATAL_STDERR_=1
4966 export LIBC_FATAL_STDERR_
4967
4968
4969
4970
4971
4972 for ac_header in $gl_header_list
4973do :
4974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4975ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4976eval as_val=\$$as_ac_Header
4977 if test "x$as_val" = x""yes; then :
4978 cat >>confdefs.h <<_ACEOF
4979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4980_ACEOF
4981
4982fi
4983
4984done
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994 for ac_func in $gl_func_list
4995do :
4996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4997ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4998eval as_val=\$$as_ac_var
4999 if test "x$as_val" = x""yes; then :
5000 cat >>confdefs.h <<_ACEOF
5001#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5002_ACEOF
5003
5004fi
5005done
5006
5007
5008
5009
5010
5011
5012 GNULIB_MEMCHR=0;
5013 GNULIB_MEMMEM=0;
5014 GNULIB_MEMPCPY=0;
5015 GNULIB_MEMRCHR=0;
5016 GNULIB_RAWMEMCHR=0;
5017 GNULIB_STPCPY=0;
5018 GNULIB_STPNCPY=0;
5019 GNULIB_STRCHRNUL=0;
5020 GNULIB_STRDUP=0;
5021 GNULIB_STRNCAT=0;
5022 GNULIB_STRNDUP=0;
5023 GNULIB_STRNLEN=0;
5024 GNULIB_STRPBRK=0;
5025 GNULIB_STRSEP=0;
5026 GNULIB_STRSTR=0;
5027 GNULIB_STRCASESTR=0;
5028 GNULIB_STRTOK_R=0;
5029 GNULIB_MBSLEN=0;
5030 GNULIB_MBSNLEN=0;
5031 GNULIB_MBSCHR=0;
5032 GNULIB_MBSRCHR=0;
5033 GNULIB_MBSSTR=0;
5034 GNULIB_MBSCASECMP=0;
5035 GNULIB_MBSNCASECMP=0;
5036 GNULIB_MBSPCASECMP=0;
5037 GNULIB_MBSCASESTR=0;
5038 GNULIB_MBSCSPN=0;
5039 GNULIB_MBSPBRK=0;
5040 GNULIB_MBSSPN=0;
5041 GNULIB_MBSSEP=0;
5042 GNULIB_MBSTOK_R=0;
5043 GNULIB_STRERROR=0;
5044 GNULIB_STRSIGNAL=0;
5045 GNULIB_STRVERSCMP=0;
5046 HAVE_MBSLEN=0;
5047 HAVE_MEMCHR=1;
5048 HAVE_DECL_MEMMEM=1;
5049 HAVE_MEMPCPY=1;
5050 HAVE_DECL_MEMRCHR=1;
5051 HAVE_RAWMEMCHR=1;
5052 HAVE_STPCPY=1;
5053 HAVE_STPNCPY=1;
5054 HAVE_STRCHRNUL=1;
5055 HAVE_DECL_STRDUP=1;
5056 HAVE_DECL_STRNDUP=1;
5057 HAVE_DECL_STRNLEN=1;
5058 HAVE_STRPBRK=1;
5059 HAVE_STRSEP=1;
5060 HAVE_STRCASESTR=1;
5061 HAVE_DECL_STRTOK_R=1;
5062 HAVE_DECL_STRSIGNAL=1;
5063 HAVE_STRVERSCMP=1;
5064 REPLACE_MEMCHR=0;
783e057b 5065 REPLACE_MEMMEM=0;
f434ba03
PA
5066 REPLACE_STPNCPY=0;
5067 REPLACE_STRDUP=0;
783e057b 5068 REPLACE_STRSTR=0;
f434ba03
PA
5069 REPLACE_STRCASESTR=0;
5070 REPLACE_STRERROR=0;
5071 REPLACE_STRNCAT=0;
5072 REPLACE_STRNDUP=0;
5073 REPLACE_STRNLEN=0;
5074 REPLACE_STRSIGNAL=0;
5075 REPLACE_STRTOK_R=0;
5076 UNDEFINE_STRTOK_R=0;
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5091 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5092 # irrelevant for anonymous mappings.
5093 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5094if test "x$ac_cv_func_mmap" = x""yes; then :
5095 gl_have_mmap=yes
5096else
5097 gl_have_mmap=no
5098fi
5099
5100
5101 # Try to allow MAP_ANONYMOUS.
5102 gl_have_mmap_anonymous=no
5103 if test $gl_have_mmap = yes; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5105$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107/* end confdefs.h. */
5108
5109#include <sys/mman.h>
5110#ifdef MAP_ANONYMOUS
5111 I cant identify this map.
5112#endif
5113
5114_ACEOF
5115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5116 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5117 gl_have_mmap_anonymous=yes
5118fi
5119rm -f conftest*
5120
5121 if test $gl_have_mmap_anonymous != yes; then
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123/* end confdefs.h. */
5124
5125#include <sys/mman.h>
5126#ifdef MAP_ANON
5127 I cant identify this map.
5128#endif
5129
5130_ACEOF
5131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5132 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5133
5134$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5135
5136 gl_have_mmap_anonymous=yes
5137fi
5138rm -f conftest*
5139
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5142$as_echo "$gl_have_mmap_anonymous" >&6; }
5143 if test $gl_have_mmap_anonymous = yes; then
5144
5145$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5146
5147 fi
5148 fi
5149
5150
5151 :
5152
5153
5154
5155
5156
5157
5158 :
5159
5160
5161
5162
5163
5164
5165
5166
5167 :
5168
5169
5170
5171
5172
5173 if test $ac_cv_func_memchr = yes; then
5174 # Detect platform-specific bugs in some versions of glibc:
5175 # memchr should not dereference anything with length 0
5176 # http://bugzilla.redhat.com/499689
5177 # memchr should not dereference overestimated length after a match
5178 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5179 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5180 # Assume that memchr works on platforms that lack mprotect.
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5182$as_echo_n "checking whether memchr works... " >&6; }
5183if test "${gl_cv_func_memchr_works+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185else
5186 if test "$cross_compiling" = yes; then :
5187 gl_cv_func_memchr_works="guessing no"
5188else
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190/* end confdefs.h. */
5191
5192#include <string.h>
5193#if HAVE_SYS_MMAN_H
5194# include <fcntl.h>
5195# include <unistd.h>
5196# include <sys/types.h>
5197# include <sys/mman.h>
5198# ifndef MAP_FILE
5199# define MAP_FILE 0
5200# endif
5201#endif
5202
5203int
5204main ()
5205{
5206
5207 char *fence = NULL;
5208#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5209# if HAVE_MAP_ANONYMOUS
5210 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5211 const int fd = -1;
5212# else /* !HAVE_MAP_ANONYMOUS */
5213 const int flags = MAP_FILE | MAP_PRIVATE;
5214 int fd = open ("/dev/zero", O_RDONLY, 0666);
5215 if (fd >= 0)
5216# endif
5217 {
5218 int pagesize = getpagesize ();
5219 char *two_pages =
5220 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5221 flags, fd, 0);
5222 if (two_pages != (char *)(-1)
5223 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5224 fence = two_pages + pagesize;
5225 }
5226#endif
5227 if (fence)
5228 {
5229 if (memchr (fence, 0, 0))
5230 return 1;
5231 strcpy (fence - 9, "12345678");
5232 if (memchr (fence - 9, 0, 79) != fence - 1)
5233 return 2;
5234 }
5235 return 0;
5236
5237 ;
5238 return 0;
5239}
5240_ACEOF
5241if ac_fn_c_try_run "$LINENO"; then :
5242 gl_cv_func_memchr_works=yes
5243else
5244 gl_cv_func_memchr_works=no
5245fi
5246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5247 conftest.$ac_objext conftest.beam conftest.$ac_ext
5248fi
5249
5250fi
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5252$as_echo "$gl_cv_func_memchr_works" >&6; }
5253 if test "$gl_cv_func_memchr_works" != yes; then
5254 REPLACE_MEMCHR=1
5255 fi
5256 else
5257 HAVE_MEMCHR=0
5258 fi
5259 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5260
5261
5262
5263
5264
5265
5266
5267
5268 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5269
5270
5271 for ac_header in bp-sym.h
5272do :
5273 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5274if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5275 cat >>confdefs.h <<_ACEOF
5276#define HAVE_BP_SYM_H 1
5277_ACEOF
5278
5279fi
5280
5281done
5282
5283
5284 fi
783e057b
DJ
5285
5286
81ecdfbb
RW
5287 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5288if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5289 ac_have_decl=1
783e057b 5290else
81ecdfbb 5291 ac_have_decl=0
783e057b 5292fi
783e057b
DJ
5293
5294cat >>confdefs.h <<_ACEOF
81ecdfbb 5295#define HAVE_DECL_MEMMEM $ac_have_decl
783e057b
DJ
5296_ACEOF
5297
5298
783e057b
DJ
5299
5300
5301
5302
5303
5304
5305
5306
783e057b 5307
783e057b 5308
783e057b 5309
f434ba03 5310
81ecdfbb
RW
5311 for ac_func in memmem
5312do :
5313 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5314if test "x$ac_cv_func_memmem" = x""yes; then :
783e057b 5315 cat >>confdefs.h <<_ACEOF
81ecdfbb 5316#define HAVE_MEMMEM 1
783e057b
DJ
5317_ACEOF
5318
5319else
5320
5321 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5322
5323fi
5324done
5325
5326
5327
5328 :
5329
5330
5331
5332
5333
5334 if test $ac_cv_have_decl_memmem = no; then
5335 HAVE_DECL_MEMMEM=0
5336 fi
5337 :
5338
5339
f434ba03
PA
5340 gl_cv_c_multiarch=no
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h. */
5343#ifndef __APPLE_CC__
5344 not a universal capable compiler
5345 #endif
5346 typedef int dummy;
5347
5348_ACEOF
5349if ac_fn_c_try_compile "$LINENO"; then :
5350
5351 arch=
5352 prev=
5353 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5354 if test -n "$prev"; then
5355 case $word in
5356 i?86 | x86_64 | ppc | ppc64)
5357 if test -z "$arch" || test "$arch" = "$word"; then
5358 arch="$word"
5359 else
5360 gl_cv_c_multiarch=yes
5361 fi
5362 ;;
5363 esac
5364 prev=
5365 else
5366 if test "x$word" = "x-arch"; then
5367 prev=arch
5368 fi
5369 fi
5370 done
5371
5372fi
5373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 if test $gl_cv_c_multiarch = yes; then
5375
5376$as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5377
5378 APPLE_UNIVERSAL_BUILD=1
5379 else
5380 APPLE_UNIVERSAL_BUILD=0
5381 fi
5382
5383
5384
5385 REPLACE_NULL=0;
5386 HAVE_WCHAR_T=1;
5387 STDDEF_H='';
5388
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5391$as_echo_n "checking for wchar_t... " >&6; }
5392if test "${gt_cv_c_wchar_t+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5394else
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396/* end confdefs.h. */
5397#include <stddef.h>
5398 wchar_t foo = (wchar_t)'\0';
5399int
5400main ()
5401{
5402
5403 ;
5404 return 0;
5405}
5406_ACEOF
5407if ac_fn_c_try_compile "$LINENO"; then :
5408 gt_cv_c_wchar_t=yes
5409else
5410 gt_cv_c_wchar_t=no
5411fi
5412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413fi
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5415$as_echo "$gt_cv_c_wchar_t" >&6; }
5416 if test $gt_cv_c_wchar_t = yes; then
5417
5418$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5419
5420 fi
5421
5422
5423
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5425$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5426if test "${gl_cv_have_include_next+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5428else
5429 rm -rf conftestd1a conftestd1b conftestd2
5430 mkdir conftestd1a conftestd1b conftestd2
5431 cat <<EOF > conftestd1a/conftest.h
5432#define DEFINED_IN_CONFTESTD1
5433#include_next <conftest.h>
5434#ifdef DEFINED_IN_CONFTESTD2
5435int foo;
5436#else
5437#error "include_next doesn't work"
5438#endif
5439EOF
5440 cat <<EOF > conftestd1b/conftest.h
5441#define DEFINED_IN_CONFTESTD1
5442#include <stdio.h>
5443#include_next <conftest.h>
5444#ifdef DEFINED_IN_CONFTESTD2
5445int foo;
5446#else
5447#error "include_next doesn't work"
5448#endif
5449EOF
5450 cat <<EOF > conftestd2/conftest.h
5451#ifndef DEFINED_IN_CONFTESTD1
5452#error "include_next test doesn't work"
5453#endif
5454#define DEFINED_IN_CONFTESTD2
5455EOF
5456 gl_save_CPPFLAGS="$CPPFLAGS"
5457 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h. */
5460#include <conftest.h>
5461_ACEOF
5462if ac_fn_c_try_compile "$LINENO"; then :
5463 gl_cv_have_include_next=yes
5464else
5465 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467/* end confdefs.h. */
5468#include <conftest.h>
5469_ACEOF
5470if ac_fn_c_try_compile "$LINENO"; then :
5471 gl_cv_have_include_next=buggy
5472else
5473 gl_cv_have_include_next=no
5474fi
5475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476
5477fi
5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 CPPFLAGS="$gl_save_CPPFLAGS"
5480 rm -rf conftestd1a conftestd1b conftestd2
5481
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5484$as_echo "$gl_cv_have_include_next" >&6; }
5485 PRAGMA_SYSTEM_HEADER=
5486 if test $gl_cv_have_include_next = yes; then
5487 INCLUDE_NEXT=include_next
5488 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5489 if test -n "$GCC"; then
5490 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5491 fi
5492 else
5493 if test $gl_cv_have_include_next = buggy; then
5494 INCLUDE_NEXT=include
5495 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5496 else
5497 INCLUDE_NEXT=include
5498 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5499 fi
5500 fi
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
81ecdfbb
RW
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5512$as_echo_n "checking for long long int... " >&6; }
5513if test "${ac_cv_type_long_long_int+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
783e057b 5515else
81ecdfbb 5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b 5517/* end confdefs.h. */
81ecdfbb
RW
5518
5519 /* For now, do not test the preprocessor; as of 2007 there are too many
f434ba03
PA
5520 implementations with broken preprocessors. Perhaps this can
5521 be revisited in 2012. In the meantime, code should not expect
5522 #if to work with literals wider than 32 bits. */
783e057b
DJ
5523 /* Test literals. */
5524 long long int ll = 9223372036854775807ll;
5525 long long int nll = -9223372036854775807LL;
5526 unsigned long long int ull = 18446744073709551615ULL;
5527 /* Test constant expressions. */
5528 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
f434ba03 5529 ? 1 : -1)];
783e057b 5530 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
f434ba03 5531 ? 1 : -1)];
783e057b
DJ
5532 int i = 63;
5533int
5534main ()
5535{
5536/* Test availability of runtime routines for shift and division. */
5537 long long int llmax = 9223372036854775807ll;
5538 unsigned long long int ullmax = 18446744073709551615ull;
5539 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
f434ba03
PA
5540 | (llmax / ll) | (llmax % ll)
5541 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5542 | (ullmax / ull) | (ullmax % ull));
783e057b
DJ
5543 ;
5544 return 0;
5545}
5546
5547_ACEOF
81ecdfbb 5548if ac_fn_c_try_link "$LINENO"; then :
f434ba03 5549 if test "$cross_compiling" = yes; then :
783e057b
DJ
5550 ac_cv_type_long_long_int=yes
5551else
81ecdfbb 5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
5553/* end confdefs.h. */
5554#include <limits.h>
f434ba03
PA
5555 #ifndef LLONG_MAX
5556 # define HALF \
5557 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5558 # define LLONG_MAX (HALF - 1 + HALF)
5559 #endif
783e057b
DJ
5560int
5561main ()
5562{
5563long long int n = 1;
f434ba03
PA
5564 int i;
5565 for (i = 0; ; i++)
5566 {
5567 long long int m = n << i;
5568 if (m >> i != n)
5569 return 1;
5570 if (LLONG_MAX / 2 < m)
5571 break;
5572 }
5573 return 0;
783e057b
DJ
5574 ;
5575 return 0;
5576}
5577_ACEOF
81ecdfbb 5578if ac_fn_c_try_run "$LINENO"; then :
783e057b
DJ
5579 ac_cv_type_long_long_int=yes
5580else
81ecdfbb 5581 ac_cv_type_long_long_int=no
783e057b 5582fi
81ecdfbb
RW
5583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5584 conftest.$ac_objext conftest.beam conftest.$ac_ext
783e057b 5585fi
783e057b 5586
81ecdfbb
RW
5587else
5588 ac_cv_type_long_long_int=no
783e057b 5589fi
81ecdfbb
RW
5590rm -f core conftest.err conftest.$ac_objext \
5591 conftest$ac_exeext conftest.$ac_ext
783e057b 5592fi
81ecdfbb
RW
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5594$as_echo "$ac_cv_type_long_long_int" >&6; }
783e057b
DJ
5595 if test $ac_cv_type_long_long_int = yes; then
5596
81ecdfbb 5597$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
783e057b
DJ
5598
5599 fi
5600
5601
81ecdfbb
RW
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5603$as_echo_n "checking for unsigned long long int... " >&6; }
5604if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
783e057b 5606else
81ecdfbb 5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b 5608/* end confdefs.h. */
81ecdfbb
RW
5609
5610 /* For now, do not test the preprocessor; as of 2007 there are too many
f434ba03
PA
5611 implementations with broken preprocessors. Perhaps this can
5612 be revisited in 2012. In the meantime, code should not expect
5613 #if to work with literals wider than 32 bits. */
783e057b
DJ
5614 /* Test literals. */
5615 long long int ll = 9223372036854775807ll;
5616 long long int nll = -9223372036854775807LL;
5617 unsigned long long int ull = 18446744073709551615ULL;
5618 /* Test constant expressions. */
5619 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
f434ba03 5620 ? 1 : -1)];
783e057b 5621 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
f434ba03 5622 ? 1 : -1)];
783e057b
DJ
5623 int i = 63;
5624int
5625main ()
5626{
5627/* Test availability of runtime routines for shift and division. */
5628 long long int llmax = 9223372036854775807ll;
5629 unsigned long long int ullmax = 18446744073709551615ull;
5630 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
f434ba03
PA
5631 | (llmax / ll) | (llmax % ll)
5632 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5633 | (ullmax / ull) | (ullmax % ull));
783e057b
DJ
5634 ;
5635 return 0;
5636}
5637
5638_ACEOF
81ecdfbb 5639if ac_fn_c_try_link "$LINENO"; then :
783e057b
DJ
5640 ac_cv_type_unsigned_long_long_int=yes
5641else
81ecdfbb 5642 ac_cv_type_unsigned_long_long_int=no
783e057b 5643fi
81ecdfbb
RW
5644rm -f core conftest.err conftest.$ac_objext \
5645 conftest$ac_exeext conftest.$ac_ext
783e057b 5646fi
81ecdfbb
RW
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5648$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
783e057b
DJ
5649 if test $ac_cv_type_unsigned_long_long_int = yes; then
5650
81ecdfbb 5651$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
783e057b
DJ
5652
5653 fi
5654
5655
5656
783e057b
DJ
5657
5658
5659
5660
5661
5662
5663
5664
81ecdfbb
RW
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5666$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5667if test "${ac_cv_c_restrict+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
783e057b
DJ
5669else
5670 ac_cv_c_restrict=no
5671 # The order here caters to the fact that C++ does not require restrict.
5672 for ac_kw in __restrict __restrict__ _Restrict restrict; do
81ecdfbb 5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
5674/* end confdefs.h. */
5675typedef int * int_ptr;
5676 int foo (int_ptr $ac_kw ip) {
5677 return ip[0];
5678 }
5679int
5680main ()
5681{
5682int s[1];
5683 int * $ac_kw t = s;
5684 t[0] = 0;
5685 return foo(t)
5686 ;
5687 return 0;
5688}
5689_ACEOF
81ecdfbb 5690if ac_fn_c_try_compile "$LINENO"; then :
783e057b 5691 ac_cv_c_restrict=$ac_kw
783e057b 5692fi
81ecdfbb 5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
783e057b
DJ
5694 test "$ac_cv_c_restrict" != no && break
5695 done
5696
5697fi
81ecdfbb
RW
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5699$as_echo "$ac_cv_c_restrict" >&6; }
783e057b
DJ
5700
5701 case $ac_cv_c_restrict in
5702 restrict) ;;
81ecdfbb 5703 no) $as_echo "#define restrict /**/" >>confdefs.h
783e057b
DJ
5704 ;;
5705 *) cat >>confdefs.h <<_ACEOF
5706#define restrict $ac_cv_c_restrict
5707_ACEOF
5708 ;;
5709 esac
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
f434ba03 5722
783e057b
DJ
5723 :
5724
5725
5726
5727
5728
5729
5730
f434ba03
PA
5731 if test $gl_cv_have_include_next = yes; then
5732 gl_cv_next_string_h='<'string.h'>'
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5735$as_echo_n "checking absolute name of <string.h>... " >&6; }
5736if test "${gl_cv_next_string_h+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738else
5739
5740 if test $ac_cv_header_string_h = yes; then
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h. */
5743#include <string.h>
5744
5745_ACEOF
5746 case "$host_os" in
5747 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5748 *) gl_absname_cpp="$ac_cpp" ;;
5749 esac
5750 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5751 sed -n '\#/string.h#{
5752 s#.*"\(.*/string.h\)".*#\1#
5753 s#^/[^/]#//&#
5754 p
5755 q
5756 }'`'"'
5757 else
5758 gl_cv_next_string_h='<'string.h'>'
5759 fi
5760
5761fi
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5763$as_echo "$gl_cv_next_string_h" >&6; }
5764 fi
5765 NEXT_STRING_H=$gl_cv_next_string_h
5766
5767 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5768 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5769 gl_next_as_first_directive='<'string.h'>'
5770 else
5771 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5772 gl_next_as_first_directive=$gl_cv_next_string_h
5773 fi
5774 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5775
5776
5777
5778
5779
5780 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
5781 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5783$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5784if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5785 $as_echo_n "(cached) " >&6
5786else
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788/* end confdefs.h. */
5789#include <string.h>
5790
5791int
5792main ()
5793{
5794#undef $gl_func
5795 (void) $gl_func;
5796 ;
5797 return 0;
5798}
5799_ACEOF
5800if ac_fn_c_try_compile "$LINENO"; then :
5801 eval "$as_gl_Symbol=yes"
5802else
5803 eval "$as_gl_Symbol=no"
5804fi
5805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806fi
5807eval ac_res=\$$as_gl_Symbol
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5809$as_echo "$ac_res" >&6; }
5810 eval as_val=\$$as_gl_Symbol
5811 if test "x$as_val" = x""yes; then :
5812 cat >>confdefs.h <<_ACEOF
5813#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5814_ACEOF
5815
5816 eval ac_cv_have_decl_$gl_func=yes
5817fi
5818 done
5819
5820
5821
5822 GNULIB_BTOWC=0;
5823 GNULIB_WCTOB=0;
5824 GNULIB_MBSINIT=0;
5825 GNULIB_MBRTOWC=0;
5826 GNULIB_MBRLEN=0;
5827 GNULIB_MBSRTOWCS=0;
5828 GNULIB_MBSNRTOWCS=0;
5829 GNULIB_WCRTOMB=0;
5830 GNULIB_WCSRTOMBS=0;
5831 GNULIB_WCSNRTOMBS=0;
5832 GNULIB_WCWIDTH=0;
5833 HAVE_BTOWC=1;
5834 HAVE_MBSINIT=1;
5835 HAVE_MBRTOWC=1;
5836 HAVE_MBRLEN=1;
5837 HAVE_MBSRTOWCS=1;
5838 HAVE_MBSNRTOWCS=1;
5839 HAVE_WCRTOMB=1;
5840 HAVE_WCSRTOMBS=1;
5841 HAVE_WCSNRTOMBS=1;
5842 HAVE_DECL_WCTOB=1;
5843 HAVE_DECL_WCWIDTH=1;
5844 REPLACE_MBSTATE_T=0;
5845 REPLACE_BTOWC=0;
5846 REPLACE_WCTOB=0;
5847 REPLACE_MBSINIT=0;
5848 REPLACE_MBRTOWC=0;
5849 REPLACE_MBRLEN=0;
5850 REPLACE_MBSRTOWCS=0;
5851 REPLACE_MBSNRTOWCS=0;
5852 REPLACE_WCRTOMB=0;
5853 REPLACE_WCSRTOMBS=0;
5854 REPLACE_WCSNRTOMBS=0;
5855 REPLACE_WCWIDTH=0;
5856
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5859$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5860if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
81ecdfbb 5861 $as_echo_n "(cached) " >&6
783e057b 5862else
f434ba03
PA
5863 gl_cv_header_wchar_h_correct_inline=yes
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865/* end confdefs.h. */
783e057b 5866
f434ba03
PA
5867 #define wcstod renamed_wcstod
5868#include <wchar.h>
5869extern int zero (void);
5870int main () { return zero(); }
5871
5872_ACEOF
5873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5874 (eval $ac_compile) 2>&5
5875 ac_status=$?
5876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5877 test $ac_status = 0; }; then
5878 mv conftest.$ac_objext conftest1.$ac_objext
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b 5880/* end confdefs.h. */
f434ba03
PA
5881
5882 #define wcstod renamed_wcstod
5883#include <wchar.h>
5884int zero (void) { return 0; }
783e057b
DJ
5885
5886_ACEOF
f434ba03
PA
5887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5888 (eval $ac_compile) 2>&5
5889 ac_status=$?
5890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891 test $ac_status = 0; }; then
5892 mv conftest.$ac_objext conftest2.$ac_objext
5893 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5894 :
5895 else
5896 gl_cv_header_wchar_h_correct_inline=no
5897 fi
5898 fi
5899 fi
5900 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
783e057b
DJ
5901
5902fi
f434ba03
PA
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5904$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5905 if test $gl_cv_header_wchar_h_correct_inline = no; then
5906 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5907This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5908C99 mode. You have four options:
5909 - Add the flag -fgnu89-inline to CC and reconfigure, or
5910 - Fix your include files, using parts of
5911 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5912 - Use a gcc version older than 4.3, or
5913 - Don't use the flags -std=c99 or -std=gnu99.
5914Configuration aborted." "$LINENO" 5
5915 fi
783e057b
DJ
5916
5917
f434ba03
PA
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5919$as_echo_n "checking for wint_t... " >&6; }
5920if test "${gt_cv_c_wint_t+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922else
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h. */
783e057b 5925
f434ba03
PA
5926/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5927 <wchar.h>.
5928 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5929 before <wchar.h>. */
5930#include <stddef.h>
5931#include <stdio.h>
5932#include <time.h>
5933#include <wchar.h>
5934 wint_t foo = (wchar_t)'\0';
5935int
5936main ()
5937{
783e057b 5938
f434ba03
PA
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943if ac_fn_c_try_compile "$LINENO"; then :
5944 gt_cv_c_wint_t=yes
5945else
5946 gt_cv_c_wint_t=no
5947fi
5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949fi
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5951$as_echo "$gt_cv_c_wint_t" >&6; }
5952 if test $gt_cv_c_wint_t = yes; then
783e057b 5953
f434ba03 5954$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
783e057b 5955
f434ba03 5956 fi
783e057b
DJ
5957
5958
81ecdfbb 5959 if false; then
783e057b
DJ
5960 GL_COND_LIBTOOL_TRUE=
5961 GL_COND_LIBTOOL_FALSE='#'
5962else
5963 GL_COND_LIBTOOL_TRUE='#'
5964 GL_COND_LIBTOOL_FALSE=
5965fi
5966
5967 gl_cond_libtool=false
5968 gl_libdeps=
5969 gl_ltlibdeps=
f434ba03 5970 gl_m4_base='gnulib/m4'
783e057b
DJ
5971
5972
5973
783e057b
DJ
5974
5975
5976
5977
5978
5979
f434ba03
PA
5980 gl_source_base='gnulib'
5981 # Code from module arg-nonnull:
5982 # Code from module c++defs:
5983 # Code from module extensions:
5984 # Code from module include_next:
5985 # Code from module memchr:
783e057b 5986
783e057b 5987
783e057b 5988
783e057b 5989
f434ba03 5990 GNULIB_MEMCHR=1
783e057b 5991
783e057b 5992
783e057b 5993
f434ba03 5994$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
783e057b 5995
783e057b
DJ
5996
5997
f434ba03 5998 # Code from module memmem:
783e057b
DJ
5999
6000
f434ba03
PA
6001 if test $ac_cv_have_decl_memmem = yes; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6003$as_echo_n "checking whether memmem works in linear time... " >&6; }
6004if test "${gl_cv_func_memmem_works+set}" = set; then :
81ecdfbb 6005 $as_echo_n "(cached) " >&6
783e057b 6006else
81ecdfbb 6007 if test "$cross_compiling" = yes; then :
f434ba03 6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b 6009/* end confdefs.h. */
783e057b 6010
f434ba03
PA
6011#include <features.h>
6012#ifdef __GNU_LIBRARY__
6013 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6014 Lucky user
6015 #endif
6016#endif
6017#ifdef __CYGWIN__
6018 #include <cygwin/version.h>
6019 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6020 Lucky user
6021 #endif
6022#endif
783e057b 6023
783e057b 6024_ACEOF
f434ba03
PA
6025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6026 $EGREP "Lucky user" >/dev/null 2>&1; then :
6027 gl_cv_func_memmem_works=yes
783e057b 6028else
f434ba03 6029 gl_cv_func_memmem_works="guessing no"
783e057b 6030fi
f434ba03 6031rm -f conftest*
783e057b
DJ
6032
6033
783e057b 6034else
81ecdfbb 6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
6036/* end confdefs.h. */
6037
f434ba03 6038#include <signal.h> /* for signal */
783e057b
DJ
6039#include <string.h> /* for memmem */
6040#include <stdlib.h> /* for malloc */
6041#include <unistd.h> /* for alarm */
6042
6043int
6044main ()
6045{
6046size_t m = 1000000;
6047 char *haystack = (char *) malloc (2 * m + 1);
6048 char *needle = (char *) malloc (m + 1);
6049 void *result = 0;
6050 /* Failure to compile this test due to missing alarm is okay,
6051 since all such platforms (mingw) also lack memmem. */
f434ba03 6052 signal (SIGALRM, SIG_DFL);
783e057b
DJ
6053 alarm (5);
6054 /* Check for quadratic performance. */
6055 if (haystack && needle)
6056 {
f434ba03
PA
6057 memset (haystack, 'A', 2 * m);
6058 haystack[2 * m] = 'B';
6059 memset (needle, 'A', m);
6060 needle[m] = 'B';
6061 result = memmem (haystack, 2 * m + 1, needle, m + 1);
783e057b
DJ
6062 }
6063 /* Check for empty needle behavior. */
6064 return !result || !memmem ("a", 1, 0, 0);
6065 ;
6066 return 0;
6067}
6068_ACEOF
81ecdfbb 6069if ac_fn_c_try_run "$LINENO"; then :
783e057b
DJ
6070 gl_cv_func_memmem_works=yes
6071else
81ecdfbb 6072 gl_cv_func_memmem_works=no
783e057b 6073fi
81ecdfbb
RW
6074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6075 conftest.$ac_objext conftest.beam conftest.$ac_ext
783e057b 6076fi
81ecdfbb 6077
f434ba03 6078
783e057b 6079fi
81ecdfbb
RW
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6081$as_echo "$gl_cv_func_memmem_works" >&6; }
783e057b
DJ
6082 if test "$gl_cv_func_memmem_works" != yes; then
6083 REPLACE_MEMMEM=1
6084
6085
6086
6087
6088
6089
6090
f434ba03 6091
783e057b
DJ
6092 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6093
6094 fi
6095 fi
6096
f434ba03
PA
6097 # Code from module memmem-simple:
6098
783e057b
DJ
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
81ecdfbb
RW
6110 for ac_func in memmem
6111do :
6112 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6113if test "x$ac_cv_func_memmem" = x""yes; then :
783e057b 6114 cat >>confdefs.h <<_ACEOF
81ecdfbb 6115#define HAVE_MEMMEM 1
783e057b
DJ
6116_ACEOF
6117
6118else
6119
6120 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6121
6122fi
6123done
6124
6125
6126
6127 :
6128
6129
6130
6131
6132
6133 if test $ac_cv_have_decl_memmem = no; then
6134 HAVE_DECL_MEMMEM=0
6135 fi
6136 :
6137
6138
6139
f434ba03 6140
783e057b
DJ
6141 GNULIB_MEMMEM=1
6142
6143
6144
f434ba03
PA
6145$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6146
6147
6148
6149 # Code from module multiarch:
6150
6151 # Code from module stddef:
6152
6153
6154
6155 if test $gt_cv_c_wchar_t = no; then
6156 HAVE_WCHAR_T=0
6157 STDDEF_H=stddef.h
6158 fi
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6160$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6161if test "${gl_cv_decl_null_works+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163else
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165/* end confdefs.h. */
6166#include <stddef.h>
6167 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6168
6169int
6170main ()
6171{
6172
6173 ;
6174 return 0;
6175}
6176_ACEOF
6177if ac_fn_c_try_compile "$LINENO"; then :
6178 gl_cv_decl_null_works=yes
6179else
6180 gl_cv_decl_null_works=no
6181fi
6182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183fi
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6185$as_echo "$gl_cv_decl_null_works" >&6; }
6186 if test $gl_cv_decl_null_works = no; then
6187 REPLACE_NULL=1
6188 STDDEF_H=stddef.h
6189 fi
6190 if test -n "$STDDEF_H"; then
6191
6192
6193
6194
6195 :
6196
6197
6198
6199
6200
6201
6202
6203 if test $gl_cv_have_include_next = yes; then
6204 gl_cv_next_stddef_h='<'stddef.h'>'
6205 else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6207$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6208if test "${gl_cv_next_stddef_h+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6210else
6211
6212 if test $ac_cv_header_stddef_h = yes; then
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h. */
6215#include <stddef.h>
6216
6217_ACEOF
6218 case "$host_os" in
6219 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6220 *) gl_absname_cpp="$ac_cpp" ;;
6221 esac
6222 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6223 sed -n '\#/stddef.h#{
6224 s#.*"\(.*/stddef.h\)".*#\1#
6225 s#^/[^/]#//&#
6226 p
6227 q
6228 }'`'"'
6229 else
6230 gl_cv_next_stddef_h='<'stddef.h'>'
6231 fi
6232
6233fi
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6235$as_echo "$gl_cv_next_stddef_h" >&6; }
6236 fi
6237 NEXT_STDDEF_H=$gl_cv_next_stddef_h
6238
6239 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6241 gl_next_as_first_directive='<'stddef.h'>'
6242 else
6243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6244 gl_next_as_first_directive=$gl_cv_next_stddef_h
6245 fi
6246 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6247
6248
6249
6250 fi
6251
6252 # Code from module stdint:
6253
6254
783e057b
DJ
6255
6256 if test $ac_cv_type_long_long_int = yes; then
6257 HAVE_LONG_LONG_INT=1
6258 else
6259 HAVE_LONG_LONG_INT=0
6260 fi
6261
6262
6263 if test $ac_cv_type_unsigned_long_long_int = yes; then
6264 HAVE_UNSIGNED_LONG_LONG_INT=1
6265 else
6266 HAVE_UNSIGNED_LONG_LONG_INT=0
6267 fi
6268
6269
6270 if test $ac_cv_header_inttypes_h = yes; then
6271 HAVE_INTTYPES_H=1
6272 else
6273 HAVE_INTTYPES_H=0
6274 fi
6275
6276
6277 if test $ac_cv_header_sys_types_h = yes; then
6278 HAVE_SYS_TYPES_H=1
6279 else
6280 HAVE_SYS_TYPES_H=0
6281 fi
6282
6283
6284
6285
6286
f434ba03 6287
783e057b
DJ
6288 :
6289
6290
6291
6292
6293
6294
6295
6296 if test $gl_cv_have_include_next = yes; then
6297 gl_cv_next_stdint_h='<'stdint.h'>'
6298 else
81ecdfbb
RW
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6300$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6301if test "${gl_cv_next_stdint_h+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
783e057b
DJ
6303else
6304
f434ba03
PA
6305 if test $ac_cv_header_stdint_h = yes; then
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
6307/* end confdefs.h. */
6308#include <stdint.h>
6309
6310_ACEOF
f434ba03
PA
6311 case "$host_os" in
6312 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6313 *) gl_absname_cpp="$ac_cpp" ;;
6314 esac
6315 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6316 sed -n '\#/stdint.h#{
6317 s#.*"\(.*/stdint.h\)".*#\1#
6318 s#^/[^/]#//&#
6319 p
6320 q
6321 }'`'"'
6322 else
6323 gl_cv_next_stdint_h='<'stdint.h'>'
6324 fi
783e057b
DJ
6325
6326fi
81ecdfbb
RW
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6328$as_echo "$gl_cv_next_stdint_h" >&6; }
783e057b
DJ
6329 fi
6330 NEXT_STDINT_H=$gl_cv_next_stdint_h
6331
f434ba03
PA
6332 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6334 gl_next_as_first_directive='<'stdint.h'>'
6335 else
6336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6337 gl_next_as_first_directive=$gl_cv_next_stdint_h
6338 fi
6339 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6340
783e057b
DJ
6341
6342
6343 if test $ac_cv_header_stdint_h = yes; then
6344 HAVE_STDINT_H=1
6345 else
6346 HAVE_STDINT_H=0
6347 fi
6348
6349
6350 if test $ac_cv_header_stdint_h = yes; then
81ecdfbb
RW
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6352$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6353if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
783e057b
DJ
6355else
6356 gl_cv_header_working_stdint_h=no
81ecdfbb 6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
6358/* end confdefs.h. */
6359
81ecdfbb 6360
783e057b
DJ
6361#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6362#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6363#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6364#include <stdint.h>
6365/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6366#if !(defined WCHAR_MIN && defined WCHAR_MAX)
6367#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6368#endif
6369
6370
6371 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6372 included before <wchar.h>. */
6373 #include <stddef.h>
6374 #include <signal.h>
6375 #if HAVE_WCHAR_H
6376 # include <stdio.h>
6377 # include <time.h>
6378 # include <wchar.h>
6379 #endif
6380
6381
6382#ifdef INT8_MAX
6383int8_t a1 = INT8_MAX;
6384int8_t a1min = INT8_MIN;
6385#endif
6386#ifdef INT16_MAX
6387int16_t a2 = INT16_MAX;
6388int16_t a2min = INT16_MIN;
6389#endif
6390#ifdef INT32_MAX
6391int32_t a3 = INT32_MAX;
6392int32_t a3min = INT32_MIN;
6393#endif
6394#ifdef INT64_MAX
6395int64_t a4 = INT64_MAX;
6396int64_t a4min = INT64_MIN;
6397#endif
6398#ifdef UINT8_MAX
6399uint8_t b1 = UINT8_MAX;
6400#else
6401typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6402#endif
6403#ifdef UINT16_MAX
6404uint16_t b2 = UINT16_MAX;
6405#endif
6406#ifdef UINT32_MAX
6407uint32_t b3 = UINT32_MAX;
6408#endif
6409#ifdef UINT64_MAX
6410uint64_t b4 = UINT64_MAX;
6411#endif
6412int_least8_t c1 = INT8_C (0x7f);
6413int_least8_t c1max = INT_LEAST8_MAX;
6414int_least8_t c1min = INT_LEAST8_MIN;
6415int_least16_t c2 = INT16_C (0x7fff);
6416int_least16_t c2max = INT_LEAST16_MAX;
6417int_least16_t c2min = INT_LEAST16_MIN;
6418int_least32_t c3 = INT32_C (0x7fffffff);
6419int_least32_t c3max = INT_LEAST32_MAX;
6420int_least32_t c3min = INT_LEAST32_MIN;
6421int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6422int_least64_t c4max = INT_LEAST64_MAX;
6423int_least64_t c4min = INT_LEAST64_MIN;
6424uint_least8_t d1 = UINT8_C (0xff);
6425uint_least8_t d1max = UINT_LEAST8_MAX;
6426uint_least16_t d2 = UINT16_C (0xffff);
6427uint_least16_t d2max = UINT_LEAST16_MAX;
6428uint_least32_t d3 = UINT32_C (0xffffffff);
6429uint_least32_t d3max = UINT_LEAST32_MAX;
6430uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6431uint_least64_t d4max = UINT_LEAST64_MAX;
6432int_fast8_t e1 = INT_FAST8_MAX;
6433int_fast8_t e1min = INT_FAST8_MIN;
6434int_fast16_t e2 = INT_FAST16_MAX;
6435int_fast16_t e2min = INT_FAST16_MIN;
6436int_fast32_t e3 = INT_FAST32_MAX;
6437int_fast32_t e3min = INT_FAST32_MIN;
6438int_fast64_t e4 = INT_FAST64_MAX;
6439int_fast64_t e4min = INT_FAST64_MIN;
6440uint_fast8_t f1 = UINT_FAST8_MAX;
6441uint_fast16_t f2 = UINT_FAST16_MAX;
6442uint_fast32_t f3 = UINT_FAST32_MAX;
6443uint_fast64_t f4 = UINT_FAST64_MAX;
6444#ifdef INTPTR_MAX
6445intptr_t g = INTPTR_MAX;
6446intptr_t gmin = INTPTR_MIN;
6447#endif
6448#ifdef UINTPTR_MAX
6449uintptr_t h = UINTPTR_MAX;
6450#endif
6451intmax_t i = INTMAX_MAX;
6452uintmax_t j = UINTMAX_MAX;
6453
6454#include <limits.h> /* for CHAR_BIT */
6455#define TYPE_MINIMUM(t) \
6456 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6457#define TYPE_MAXIMUM(t) \
6458 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6459struct s {
6460 int check_PTRDIFF:
6461 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6462 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6463 ? 1 : -1;
6464 /* Detect bug in FreeBSD 6.0 / ia64. */
6465 int check_SIG_ATOMIC:
6466 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6467 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6468 ? 1 : -1;
6469 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6470 int check_WCHAR:
6471 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6472 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6473 ? 1 : -1;
6474 /* Detect bug in mingw. */
6475 int check_WINT:
6476 WINT_MIN == TYPE_MINIMUM (wint_t)
6477 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6478 ? 1 : -1;
6479
f434ba03
PA
6480 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6481 int check_UINT8_C:
6482 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6483 int check_UINT16_C:
6484 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6485
6486 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6487#ifdef UINT8_MAX
6488 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6489#endif
6490#ifdef UINT16_MAX
6491 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6492#endif
6493#ifdef UINT32_MAX
6494 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6495#endif
6496#ifdef UINT64_MAX
6497 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6498#endif
6499 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6500 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6501 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6502 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6503 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6504 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6505 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6506 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6507 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6508 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6509 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6510};
6511
6512int
6513main ()
6514{
6515
6516 ;
6517 return 0;
6518}
6519_ACEOF
6520if ac_fn_c_try_compile "$LINENO"; then :
6521 if test "$cross_compiling" = yes; then :
6522 gl_cv_header_working_stdint_h=yes
6523
6524else
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526/* end confdefs.h. */
6527
6528
6529#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6530#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6531#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6532#include <stdint.h>
6533
783e057b 6534
f434ba03
PA
6535 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6536 included before <wchar.h>. */
6537 #include <stddef.h>
6538 #include <signal.h>
6539 #if HAVE_WCHAR_H
6540 # include <stdio.h>
6541 # include <time.h>
6542 # include <wchar.h>
6543 #endif
6544
6545
6546#include <stdio.h>
6547#include <string.h>
6548#define MVAL(macro) MVAL1(macro)
6549#define MVAL1(expression) #expression
6550static const char *macro_values[] =
6551 {
6552#ifdef INT8_MAX
6553 MVAL (INT8_MAX),
6554#endif
6555#ifdef INT16_MAX
6556 MVAL (INT16_MAX),
6557#endif
6558#ifdef INT32_MAX
6559 MVAL (INT32_MAX),
6560#endif
6561#ifdef INT64_MAX
6562 MVAL (INT64_MAX),
6563#endif
783e057b 6564#ifdef UINT8_MAX
f434ba03 6565 MVAL (UINT8_MAX),
783e057b
DJ
6566#endif
6567#ifdef UINT16_MAX
f434ba03 6568 MVAL (UINT16_MAX),
783e057b
DJ
6569#endif
6570#ifdef UINT32_MAX
f434ba03 6571 MVAL (UINT32_MAX),
783e057b
DJ
6572#endif
6573#ifdef UINT64_MAX
f434ba03 6574 MVAL (UINT64_MAX),
783e057b 6575#endif
f434ba03
PA
6576 NULL
6577 };
783e057b
DJ
6578
6579int
6580main ()
6581{
6582
f434ba03
PA
6583 const char **mv;
6584 for (mv = macro_values; *mv != NULL; mv++)
6585 {
6586 const char *value = *mv;
6587 /* Test whether it looks like a cast expression. */
6588 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6589 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6590 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6591 || strncmp (value, "((int)"/*)*/, 6) == 0
6592 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6593 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6594 return 1;
6595 }
6596 return 0;
6597
783e057b
DJ
6598 ;
6599 return 0;
6600}
6601_ACEOF
f434ba03 6602if ac_fn_c_try_run "$LINENO"; then :
783e057b 6603 gl_cv_header_working_stdint_h=yes
f434ba03
PA
6604fi
6605rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6606 conftest.$ac_objext conftest.beam conftest.$ac_ext
6607fi
6608
6609
783e057b 6610fi
81ecdfbb 6611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f434ba03 6612
783e057b 6613fi
81ecdfbb
RW
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6615$as_echo "$gl_cv_header_working_stdint_h" >&6; }
783e057b
DJ
6616 fi
6617 if test "$gl_cv_header_working_stdint_h" = yes; then
6618 STDINT_H=
6619 else
81ecdfbb
RW
6620 for ac_header in sys/inttypes.h sys/bitypes.h
6621do :
6622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6623ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6624eval as_val=\$$as_ac_Header
6625 if test "x$as_val" = x""yes; then :
783e057b 6626 cat >>confdefs.h <<_ACEOF
81ecdfbb 6627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
783e057b
DJ
6628_ACEOF
6629
6630fi
6631
6632done
6633
6634 if test $ac_cv_header_sys_inttypes_h = yes; then
6635 HAVE_SYS_INTTYPES_H=1
6636 else
6637 HAVE_SYS_INTTYPES_H=0
6638 fi
6639
6640 if test $ac_cv_header_sys_bitypes_h = yes; then
6641 HAVE_SYS_BITYPES_H=1
6642 else
6643 HAVE_SYS_BITYPES_H=0
6644 fi
6645
6646
6647
6648 :
6649
6650
6651
6652
6653
6654
6655
6656
f434ba03
PA
6657 if test $APPLE_UNIVERSAL_BUILD = 0; then
6658
6659
6660 for gltype in ptrdiff_t size_t ; do
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6662$as_echo_n "checking for bit size of $gltype... " >&6; }
6663if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6664 $as_echo_n "(cached) " >&6
6665else
6666 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6667 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6668 included before <wchar.h>. */
6669 #include <stddef.h>
6670 #include <signal.h>
6671 #if HAVE_WCHAR_H
6672 # include <stdio.h>
6673 # include <time.h>
6674 # include <wchar.h>
6675 #endif
6676
6677#include <limits.h>"; then :
6678
6679else
6680 result=unknown
6681fi
6682
6683 eval gl_cv_bitsizeof_${gltype}=\$result
6684
6685fi
6686eval ac_res=\$gl_cv_bitsizeof_${gltype}
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6688$as_echo "$ac_res" >&6; }
6689 eval result=\$gl_cv_bitsizeof_${gltype}
6690 if test $result = unknown; then
6691 result=0
6692 fi
6693 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6694 cat >>confdefs.h <<_ACEOF
6695#define BITSIZEOF_${GLTYPE} $result
6696_ACEOF
6697
6698 eval BITSIZEOF_${GLTYPE}=\$result
6699 done
6700
6701
6702 fi
6703
783e057b 6704
f434ba03 6705 for gltype in sig_atomic_t wchar_t wint_t ; do
81ecdfbb
RW
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6707$as_echo_n "checking for bit size of $gltype... " >&6; }
6708if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6709 $as_echo_n "(cached) " >&6
6710else
6711 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6712 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6713 included before <wchar.h>. */
6714 #include <stddef.h>
6715 #include <signal.h>
6716 #if HAVE_WCHAR_H
6717 # include <stdio.h>
6718 # include <time.h>
6719 # include <wchar.h>
6720 #endif
6721
6722#include <limits.h>"; then :
6723
6724else
6725 result=unknown
6726fi
6727
6728 eval gl_cv_bitsizeof_${gltype}=\$result
6729
6730fi
6731eval ac_res=\$gl_cv_bitsizeof_${gltype}
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6733$as_echo "$ac_res" >&6; }
6734 eval result=\$gl_cv_bitsizeof_${gltype}
6735 if test $result = unknown; then
6736 result=0
6737 fi
6738 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6739 cat >>confdefs.h <<_ACEOF
6740#define BITSIZEOF_${GLTYPE} $result
6741_ACEOF
783e057b 6742
81ecdfbb
RW
6743 eval BITSIZEOF_${GLTYPE}=\$result
6744 done
783e057b
DJ
6745
6746
6747
6748
81ecdfbb
RW
6749 for gltype in sig_atomic_t wchar_t wint_t ; do
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6751$as_echo_n "checking whether $gltype is signed... " >&6; }
6752if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6753 $as_echo_n "(cached) " >&6
783e057b 6754else
81ecdfbb 6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
6756/* end confdefs.h. */
6757
6758 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6759 included before <wchar.h>. */
6760 #include <stddef.h>
6761 #include <signal.h>
6762 #if HAVE_WCHAR_H
6763 # include <stdio.h>
6764 # include <time.h>
6765 # include <wchar.h>
6766 #endif
6767
6768 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6769int
6770main ()
6771{
6772
6773 ;
6774 return 0;
6775}
6776_ACEOF
81ecdfbb 6777if ac_fn_c_try_compile "$LINENO"; then :
783e057b
DJ
6778 result=yes
6779else
81ecdfbb 6780 result=no
20e95c23 6781fi
81ecdfbb 6782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
783e057b
DJ
6783 eval gl_cv_type_${gltype}_signed=\$result
6784
6785fi
81ecdfbb
RW
6786eval ac_res=\$gl_cv_type_${gltype}_signed
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6788$as_echo "$ac_res" >&6; }
783e057b
DJ
6789 eval result=\$gl_cv_type_${gltype}_signed
6790 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6791 if test "$result" = yes; then
6792 cat >>confdefs.h <<_ACEOF
6793#define HAVE_SIGNED_${GLTYPE} 1
6794_ACEOF
6795
6796 eval HAVE_SIGNED_${GLTYPE}=1
6797 else
6798 eval HAVE_SIGNED_${GLTYPE}=0
6799 fi
6800 done
6801
6802
6803 gl_cv_type_ptrdiff_t_signed=yes
6804 gl_cv_type_size_t_signed=no
f434ba03 6805 if test $APPLE_UNIVERSAL_BUILD = 0; then
783e057b
DJ
6806
6807
f434ba03 6808 for gltype in ptrdiff_t size_t ; do
81ecdfbb
RW
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6810$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6811if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6812 $as_echo_n "(cached) " >&6
c906108c 6813else
783e057b
DJ
6814 eval gl_cv_type_${gltype}_suffix=no
6815 eval result=\$gl_cv_type_${gltype}_signed
6816 if test "$result" = yes; then
6817 glsufu=
6818 else
6819 glsufu=u
6820 fi
6821 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6822 case $glsuf in
6823 '') gltype1='int';;
f434ba03
PA
6824 l) gltype1='long int';;
6825 ll) gltype1='long long int';;
6826 i64) gltype1='__int64';;
6827 u) gltype1='unsigned int';;
6828 ul) gltype1='unsigned long int';;
6829 ull) gltype1='unsigned long long int';;
783e057b
DJ
6830 ui64)gltype1='unsigned __int64';;
6831 esac
81ecdfbb 6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
6833/* end confdefs.h. */
6834
6835 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6836 included before <wchar.h>. */
6837 #include <stddef.h>
6838 #include <signal.h>
6839 #if HAVE_WCHAR_H
6840 # include <stdio.h>
6841 # include <time.h>
6842 # include <wchar.h>
6843 #endif
6844
6845 extern $gltype foo;
6846 extern $gltype1 foo;
6847int
6848main ()
6849{
6850
6851 ;
6852 return 0;
6853}
6854_ACEOF
81ecdfbb 6855if ac_fn_c_try_compile "$LINENO"; then :
783e057b 6856 eval gl_cv_type_${gltype}_suffix=\$glsuf
783e057b 6857fi
81ecdfbb 6858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
783e057b
DJ
6859 eval result=\$gl_cv_type_${gltype}_suffix
6860 test "$result" != no && break
6861 done
6862fi
81ecdfbb
RW
6863eval ac_res=\$gl_cv_type_${gltype}_suffix
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6865$as_echo "$ac_res" >&6; }
783e057b
DJ
6866 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6867 eval result=\$gl_cv_type_${gltype}_suffix
6868 test "$result" = no && result=
6869 eval ${GLTYPE}_SUFFIX=\$result
6870 cat >>confdefs.h <<_ACEOF
6871#define ${GLTYPE}_SUFFIX $result
6872_ACEOF
6873
6874 done
6875
6876
783e057b
DJ
6877 fi
6878
6879
f434ba03
PA
6880 for gltype in sig_atomic_t wchar_t wint_t ; do
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6882$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6883if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
81ecdfbb 6884 $as_echo_n "(cached) " >&6
783e057b 6885else
f434ba03
PA
6886 eval gl_cv_type_${gltype}_suffix=no
6887 eval result=\$gl_cv_type_${gltype}_signed
6888 if test "$result" = yes; then
6889 glsufu=
6890 else
6891 glsufu=u
6892 fi
6893 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6894 case $glsuf in
6895 '') gltype1='int';;
6896 l) gltype1='long int';;
6897 ll) gltype1='long long int';;
6898 i64) gltype1='__int64';;
6899 u) gltype1='unsigned int';;
6900 ul) gltype1='unsigned long int';;
6901 ull) gltype1='unsigned long long int';;
6902 ui64)gltype1='unsigned __int64';;
6903 esac
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 6905/* end confdefs.h. */
f434ba03
PA
6906
6907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6908 included before <wchar.h>. */
6909 #include <stddef.h>
6910 #include <signal.h>
6911 #if HAVE_WCHAR_H
6912 # include <stdio.h>
6913 # include <time.h>
6914 # include <wchar.h>
6915 #endif
6916
6917 extern $gltype foo;
6918 extern $gltype1 foo;
6919int
6920main ()
6921{
6922
6923 ;
6924 return 0;
6925}
783e057b 6926_ACEOF
81ecdfbb 6927if ac_fn_c_try_compile "$LINENO"; then :
f434ba03 6928 eval gl_cv_type_${gltype}_suffix=\$glsuf
783e057b 6929fi
81ecdfbb 6930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f434ba03
PA
6931 eval result=\$gl_cv_type_${gltype}_suffix
6932 test "$result" != no && break
6933 done
783e057b 6934fi
f434ba03
PA
6935eval ac_res=\$gl_cv_type_${gltype}_suffix
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6937$as_echo "$ac_res" >&6; }
6938 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6939 eval result=\$gl_cv_type_${gltype}_suffix
6940 test "$result" = no && result=
6941 eval ${GLTYPE}_SUFFIX=\$result
6942 cat >>confdefs.h <<_ACEOF
6943#define ${GLTYPE}_SUFFIX $result
6944_ACEOF
6945
6946 done
6947
6948
6949
6950 STDINT_H=stdint.h
783e057b
DJ
6951 fi
6952
6953
f434ba03
PA
6954 # Code from module string:
6955
6956
6957
6958 # Code from module warn-on-use:
6959 # Code from module wchar:
6960
6961
6962
6963
783e057b
DJ
6964 :
6965
6966
6967
6968
6969
783e057b
DJ
6970
6971
6972
6973
6974 :
6975
6976
6977
6978
6979
6980
6981
6982 if test $gl_cv_have_include_next = yes; then
6983 gl_cv_next_wchar_h='<'wchar.h'>'
6984 else
81ecdfbb
RW
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6986$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6987if test "${gl_cv_next_wchar_h+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
783e057b
DJ
6989else
6990
f434ba03
PA
6991 if test $ac_cv_header_wchar_h = yes; then
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
6993/* end confdefs.h. */
6994#include <wchar.h>
6995
6996_ACEOF
f434ba03
PA
6997 case "$host_os" in
6998 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6999 *) gl_absname_cpp="$ac_cpp" ;;
7000 esac
7001 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7002 sed -n '\#/wchar.h#{
7003 s#.*"\(.*/wchar.h\)".*#\1#
7004 s#^/[^/]#//&#
7005 p
7006 q
7007 }'`'"'
7008 else
7009 gl_cv_next_wchar_h='<'wchar.h'>'
7010 fi
783e057b
DJ
7011
7012fi
81ecdfbb
RW
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7014$as_echo "$gl_cv_next_wchar_h" >&6; }
783e057b
DJ
7015 fi
7016 NEXT_WCHAR_H=$gl_cv_next_wchar_h
7017
f434ba03
PA
7018 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7020 gl_next_as_first_directive='<'wchar.h'>'
7021 else
7022 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7023 gl_next_as_first_directive=$gl_cv_next_wchar_h
7024 fi
7025 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7026
7027
7028
7029 if test $ac_cv_header_wchar_h = yes; then
7030 HAVE_WCHAR_H=1
7031 else
7032 HAVE_WCHAR_H=0
7033 fi
7034
7035
7036
7037 if test $gt_cv_c_wint_t = yes; then
7038 HAVE_WINT_T=1
7039 else
7040 HAVE_WINT_T=0
7041 fi
7042
7043
7044
7045 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
7046 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7048$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7049if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7050 $as_echo_n "(cached) " >&6
7051else
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053/* end confdefs.h. */
7054
7055/* Some systems require additional headers. */
7056#ifndef __GLIBC__
7057# include <stddef.h>
7058# include <stdio.h>
7059# include <time.h>
7060#endif
7061#include <wchar.h>
7062
7063int
7064main ()
7065{
7066#undef $gl_func
7067 (void) $gl_func;
7068 ;
7069 return 0;
7070}
7071_ACEOF
7072if ac_fn_c_try_compile "$LINENO"; then :
7073 eval "$as_gl_Symbol=yes"
7074else
7075 eval "$as_gl_Symbol=no"
7076fi
7077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078fi
7079eval ac_res=\$$as_gl_Symbol
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7081$as_echo "$ac_res" >&6; }
7082 eval as_val=\$$as_gl_Symbol
7083 if test "x$as_val" = x""yes; then :
7084 cat >>confdefs.h <<_ACEOF
7085#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7086_ACEOF
7087
7088 eval ac_cv_have_decl_$gl_func=yes
7089fi
7090 done
7091
7092
7093 # Code from module dummy:
7094 # End of code from modules
7095
7096
c906108c 7097
c906108c 7098
c906108c 7099
c906108c 7100
c906108c 7101
c906108c 7102
c906108c 7103
783e057b
DJ
7104 gltests_libdeps=
7105 gltests_ltlibdeps=
20e95c23 7106
20e95c23 7107
20e95c23 7108
f434ba03
PA
7109
7110
7111
7112
7113
7114
783e057b 7115 gl_source_base='tests'
f434ba03
PA
7116 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
7117
7118 gl_module_indicator_condition=$gltests_WITNESS
7119
7120
7121
7122
7123
c906108c 7124
bec39cab 7125
bec39cab 7126
783e057b
DJ
7127
7128 LIBGNU_LIBDEPS="$gl_libdeps"
7129
7130 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7131
7132
e28b3332 7133
d5af19ba
DJ
7134# For Makefile dependencies.
7135GNULIB_STDINT_H=
7136if test x"$STDINT_H" != x; then
7137 GNULIB_STDINT_H=gnulib/$STDINT_H
7138fi
7139
7140
bec39cab
AC
7141PACKAGE=gdb
7142
7143cat >>confdefs.h <<_ACEOF
7144#define PACKAGE "$PACKAGE"
7145_ACEOF
7146
7147
7148
e28b3332
DJ
7149# GDB does not use automake, but gnulib does. This line lets us
7150# generate its Makefile.in.
81ecdfbb
RW
7151am__api_version='1.11'
7152
e28b3332
DJ
7153# Find a good install program. We prefer a C program (faster),
7154# so one script is as good as another. But avoid the broken or
7155# incompatible versions:
7156# SysV /etc/install, /usr/sbin/install
7157# SunOS /usr/etc/install
7158# IRIX /sbin/install
7159# AIX /bin/install
7160# AmigaOS /C/install, which installs bootblocks on floppy discs
7161# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7162# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7163# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7164# OS/2's system install, which has a completely different semantic
7165# ./install, which can be erroneously created by make from ./install.sh.
85541719 7166# Reject install programs that cannot install multiple files.
81ecdfbb
RW
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7168$as_echo_n "checking for a BSD-compatible install... " >&6; }
e28b3332 7169if test -z "$INSTALL"; then
81ecdfbb
RW
7170if test "${ac_cv_path_install+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
e28b3332
DJ
7172else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174for as_dir in $PATH
7175do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7178 # Account for people who put trailing slashes in PATH elements.
7179case $as_dir/ in #((
7180 ./ | .// | /[cC]/* | \
e28b3332 7181 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 7182 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
e28b3332
DJ
7183 /usr/ucb/* ) ;;
7184 *)
7185 # OSF1 and SCO ODT 3.0 have their own names for install.
7186 # Don't use installbsd from OSF since it installs stuff as root
7187 # by default.
7188 for ac_prog in ginstall scoinst install; do
7189 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 7190 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e28b3332
DJ
7191 if test $ac_prog = install &&
7192 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7193 # AIX install. It has an incompatible calling convention.
7194 :
7195 elif test $ac_prog = install &&
7196 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7197 # program-specific install script used by HP pwplus--don't use.
7198 :
7199 else
85541719
DE
7200 rm -rf conftest.one conftest.two conftest.dir
7201 echo one > conftest.one
7202 echo two > conftest.two
7203 mkdir conftest.dir
7204 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7205 test -s conftest.one && test -s conftest.two &&
7206 test -s conftest.dir/conftest.one &&
7207 test -s conftest.dir/conftest.two
7208 then
7209 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7210 break 3
7211 fi
e28b3332
DJ
7212 fi
7213 fi
7214 done
7215 done
7216 ;;
7217esac
81ecdfbb
RW
7218
7219 done
7220IFS=$as_save_IFS
e28b3332 7221
85541719 7222rm -rf conftest.one conftest.two conftest.dir
e28b3332
DJ
7223
7224fi
7225 if test "${ac_cv_path_install+set}" = set; then
7226 INSTALL=$ac_cv_path_install
7227 else
85541719
DE
7228 # As a last resort, use the slow shell script. Don't cache a
7229 # value for INSTALL within a source directory, because that will
e28b3332 7230 # break other packages using the cache if that directory is
85541719 7231 # removed, or if the value is a relative name.
e28b3332
DJ
7232 INSTALL=$ac_install_sh
7233 fi
7234fi
81ecdfbb
RW
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7236$as_echo "$INSTALL" >&6; }
e28b3332
DJ
7237
7238# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7239# It thinks the first close brace ends the variable substitution.
7240test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7241
7242test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7243
7244test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7245
81ecdfbb
RW
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7247$as_echo_n "checking whether build environment is sane... " >&6; }
e28b3332
DJ
7248# Just in case
7249sleep 1
7250echo timestamp > conftest.file
81ecdfbb
RW
7251# Reject unsafe characters in $srcdir or the absolute working directory
7252# name. Accept space and tab only in the latter.
7253am_lf='
7254'
7255case `pwd` in
7256 *[\\\"\#\$\&\'\`$am_lf]*)
7257 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7258esac
7259case $srcdir in
7260 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7261 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7262esac
7263
e28b3332
DJ
7264# Do `set' in a subshell so we don't clobber the current shell's
7265# arguments. Must try -L first in case configure is actually a
7266# symlink; some systems play weird games with the mod time of symlinks
7267# (eg FreeBSD returns the mod time of the symlink's containing
7268# directory).
7269if (
81ecdfbb 7270 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
e28b3332
DJ
7271 if test "$*" = "X"; then
7272 # -L didn't work.
81ecdfbb 7273 set X `ls -t "$srcdir/configure" conftest.file`
e28b3332
DJ
7274 fi
7275 rm -f conftest.file
7276 if test "$*" != "X $srcdir/configure conftest.file" \
7277 && test "$*" != "X conftest.file $srcdir/configure"; then
7278
7279 # If neither matched, then we have a broken ls. This can happen
7280 # if, for instance, CONFIG_SHELL is bash and it inherits a
7281 # broken ls alias from the environment. This has actually
7282 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
7283 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7284alias in your environment" "$LINENO" 5
e28b3332
DJ
7285 fi
7286
7287 test "$2" = conftest.file
7288 )
7289then
7290 # Ok.
7291 :
7292else
81ecdfbb
RW
7293 as_fn_error "newly created file is older than distributed files!
7294Check your system clock" "$LINENO" 5
e28b3332 7295fi
81ecdfbb
RW
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7297$as_echo "yes" >&6; }
e28b3332 7298test "$program_prefix" != NONE &&
81ecdfbb 7299 program_transform_name="s&^&$program_prefix&;$program_transform_name"
e28b3332
DJ
7300# Use a double $ so make ignores it.
7301test "$program_suffix" != NONE &&
81ecdfbb
RW
7302 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7303# Double any \ or $.
e28b3332 7304# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
7305ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7306program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
e28b3332
DJ
7307
7308# expand $ac_aux_dir to an absolute path
7309am_aux_dir=`cd $ac_aux_dir && pwd`
7310
81ecdfbb
RW
7311if test x"${MISSING+set}" != xset; then
7312 case $am_aux_dir in
7313 *\ * | *\ *)
7314 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7315 *)
7316 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7317 esac
7318fi
e28b3332
DJ
7319# Use eval to expand $SHELL
7320if eval "$MISSING --run true"; then
7321 am_missing_run="$MISSING --run "
7322else
7323 am_missing_run=
81ecdfbb
RW
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7325$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7326fi
7327
7328if test x"${install_sh}" != xset; then
7329 case $am_aux_dir in
7330 *\ * | *\ *)
7331 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7332 *)
7333 install_sh="\${SHELL} $am_aux_dir/install-sh"
7334 esac
7335fi
7336
7337# Installed binaries are usually stripped using `strip' when the user
7338# run `make install-strip'. However `strip' might not be the right
7339# tool to use in cross-compilation environments, therefore Automake
7340# will honor the `STRIP' environment variable to overrule this program.
7341if test "$cross_compiling" != no; then
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7344set dummy ${ac_tool_prefix}strip; ac_word=$2
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346$as_echo_n "checking for $ac_word... " >&6; }
7347if test "${ac_cv_prog_STRIP+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7349else
7350 if test -n "$STRIP"; then
7351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7352else
7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364done
7365 done
7366IFS=$as_save_IFS
7367
7368fi
7369fi
7370STRIP=$ac_cv_prog_STRIP
7371if test -n "$STRIP"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7373$as_echo "$STRIP" >&6; }
7374else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376$as_echo "no" >&6; }
7377fi
7378
7379
7380fi
7381if test -z "$ac_cv_prog_STRIP"; then
7382 ac_ct_STRIP=$STRIP
7383 # Extract the first word of "strip", so it can be a program name with args.
7384set dummy strip; ac_word=$2
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386$as_echo_n "checking for $ac_word... " >&6; }
7387if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7388 $as_echo_n "(cached) " >&6
7389else
7390 if test -n "$ac_ct_STRIP"; then
7391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7392else
7393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_prog_ac_ct_STRIP="strip"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404done
7405 done
7406IFS=$as_save_IFS
7407
7408fi
7409fi
7410ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7411if test -n "$ac_ct_STRIP"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7413$as_echo "$ac_ct_STRIP" >&6; }
7414else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416$as_echo "no" >&6; }
7417fi
7418
7419 if test "x$ac_ct_STRIP" = x; then
7420 STRIP=":"
7421 else
7422 case $cross_compiling:$ac_tool_warned in
7423yes:)
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7426ac_tool_warned=yes ;;
7427esac
7428 STRIP=$ac_ct_STRIP
7429 fi
7430else
7431 STRIP="$ac_cv_prog_STRIP"
7432fi
7433
7434fi
7435INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7436
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7438$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7439if test -z "$MKDIR_P"; then
7440 if test "${ac_cv_path_mkdir+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7442else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7445do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_prog in mkdir gmkdir; do
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7451 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7452 'mkdir (GNU coreutils) '* | \
7453 'mkdir (coreutils) '* | \
7454 'mkdir (fileutils) '4.1*)
7455 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7456 break 3;;
7457 esac
7458 done
7459 done
e28b3332 7460 done
81ecdfbb
RW
7461IFS=$as_save_IFS
7462
7463fi
7464
7465 if test "${ac_cv_path_mkdir+set}" = set; then
7466 MKDIR_P="$ac_cv_path_mkdir -p"
e28b3332 7467 else
81ecdfbb
RW
7468 # As a last resort, use the slow shell script. Don't cache a
7469 # value for MKDIR_P within a source directory, because that will
7470 # break other packages using the cache if that directory is
7471 # removed, or if the value is a relative name.
7472 test -d ./--version && rmdir ./--version
7473 MKDIR_P="$ac_install_sh -d"
e28b3332
DJ
7474 fi
7475fi
81ecdfbb
RW
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7477$as_echo "$MKDIR_P" >&6; }
7478
f434ba03 7479
81ecdfbb
RW
7480mkdir_p="$MKDIR_P"
7481case $mkdir_p in
7482 [\\/$]* | ?:[\\/]*) ;;
7483 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7484esac
e28b3332
DJ
7485
7486for ac_prog in gawk mawk nawk awk
7487do
7488 # Extract the first word of "$ac_prog", so it can be a program name with args.
7489set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491$as_echo_n "checking for $ac_word... " >&6; }
7492if test "${ac_cv_prog_AWK+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
e28b3332
DJ
7494else
7495 if test -n "$AWK"; then
7496 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7497else
7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e28b3332 7505 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e28b3332
DJ
7507 break 2
7508 fi
7509done
81ecdfbb
RW
7510 done
7511IFS=$as_save_IFS
e28b3332
DJ
7512
7513fi
7514fi
7515AWK=$ac_cv_prog_AWK
7516if test -n "$AWK"; then
81ecdfbb
RW
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7518$as_echo "$AWK" >&6; }
e28b3332 7519else
81ecdfbb
RW
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521$as_echo "no" >&6; }
e28b3332
DJ
7522fi
7523
81ecdfbb 7524
e28b3332
DJ
7525 test -n "$AWK" && break
7526done
7527
81ecdfbb 7528ac_config_commands="$ac_config_commands depfiles"
e28b3332
DJ
7529
7530
7531am_make=${MAKE-make}
7532cat > confinc << 'END'
7533am__doit:
81ecdfbb 7534 @echo this is the am__doit target
e28b3332
DJ
7535.PHONY: am__doit
7536END
7537# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7539$as_echo_n "checking for style of include used by $am_make... " >&6; }
e28b3332
DJ
7540am__include="#"
7541am__quote=
7542_am_result=none
7543# First try GNU make style include.
7544echo "include confinc" > confmf
81ecdfbb
RW
7545# Ignore all kinds of additional output from `make'.
7546case `$am_make -s -f confmf 2> /dev/null` in #(
7547*the\ am__doit\ target*)
7548 am__include=include
7549 am__quote=
7550 _am_result=GNU
7551 ;;
7552esac
e28b3332
DJ
7553# Now try BSD make style include.
7554if test "$am__include" = "#"; then
7555 echo '.include "confinc"' > confmf
81ecdfbb
RW
7556 case `$am_make -s -f confmf 2> /dev/null` in #(
7557 *the\ am__doit\ target*)
7558 am__include=.include
7559 am__quote="\""
7560 _am_result=BSD
7561 ;;
7562 esac
e28b3332
DJ
7563fi
7564
7565
81ecdfbb
RW
7566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7567$as_echo "$_am_result" >&6; }
e28b3332
DJ
7568rm -f confinc confmf
7569
81ecdfbb
RW
7570# Check whether --enable-dependency-tracking was given.
7571if test "${enable_dependency_tracking+set}" = set; then :
7572 enableval=$enable_dependency_tracking;
7573fi
e28b3332 7574
e28b3332
DJ
7575if test "x$enable_dependency_tracking" != xno; then
7576 am_depcomp="$ac_aux_dir/depcomp"
7577 AMDEPBACKSLASH='\'
7578fi
81ecdfbb 7579 if test "x$enable_dependency_tracking" != xno; then
e28b3332
DJ
7580 AMDEP_TRUE=
7581 AMDEP_FALSE='#'
7582else
7583 AMDEP_TRUE='#'
7584 AMDEP_FALSE=
7585fi
7586
7587
81ecdfbb
RW
7588if test "`cd $srcdir && pwd`" != "`pwd`"; then
7589 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7590 # is not polluted with repeated "-I."
7591 am__isrc=' -I$(srcdir)'
7592 # test to see if srcdir already configured
7593 if test -f $srcdir/config.status; then
7594 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7595 fi
e28b3332
DJ
7596fi
7597
7598# test whether we have cygpath
7599if test -z "$CYGPATH_W"; then
7600 if (cygpath --version) >/dev/null 2>/dev/null; then
7601 CYGPATH_W='cygpath -w'
7602 else
7603 CYGPATH_W=echo
7604 fi
7605fi
7606
7607
7608# Define the identity of the package.
7609 PACKAGE=gdb
7610 VERSION=UNUSED-VERSION
7611
7612
7613# Some tools Automake needs.
7614
7615ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7616
7617
7618AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7619
7620
7621AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7622
7623
7624AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7625
7626
7627MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7628
e28b3332
DJ
7629# We need awk for the "check" target. The system "awk" is bad on
7630# some platforms.
7631# Always define AMTAR for backward compatibility.
7632
7633AMTAR=${AMTAR-"${am_missing_run}tar"}
7634
7635am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7636
7637
7638
7639
7640depcc="$CC" am_compiler_list=
7641
81ecdfbb
RW
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7643$as_echo_n "checking dependency style of $depcc... " >&6; }
7644if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
e28b3332
DJ
7646else
7647 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7648 # We make a subdir and do the tests there. Otherwise we can end up
7649 # making bogus files that we don't know about and never remove. For
7650 # instance it was reported that on HP-UX the gcc test will end up
7651 # making a dummy file named `D' -- because `-MD' means `put the output
7652 # in D'.
7653 mkdir conftest.dir
7654 # Copy depcomp to subdir because otherwise we won't find it if we're
7655 # using a relative directory.
7656 cp "$am_depcomp" conftest.dir
7657 cd conftest.dir
7658 # We will build objects and dependencies in a subdirectory because
7659 # it helps to detect inapplicable dependency modes. For instance
7660 # both Tru64's cc and ICC support -MD to output dependencies as a
7661 # side effect of compilation, but ICC will put the dependencies in
7662 # the current directory while Tru64 will put them in the object
7663 # directory.
7664 mkdir sub
7665
7666 am_cv_CC_dependencies_compiler_type=none
7667 if test "$am_compiler_list" = ""; then
7668 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7669 fi
81ecdfbb
RW
7670 am__universal=false
7671 case " $depcc " in #(
7672 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7673 esac
7674
e28b3332
DJ
7675 for depmode in $am_compiler_list; do
7676 # Setup a source with many dependencies, because some compilers
7677 # like to wrap large dependency lists on column 80 (with \), and
7678 # we should not choose a depcomp mode which is confused by this.
7679 #
7680 # We need to recreate these files for each test, as the compiler may
7681 # overwrite some of them when testing with obscure command lines.
7682 # This happens at least with the AIX C compiler.
7683 : > sub/conftest.c
7684 for i in 1 2 3 4 5 6; do
7685 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7686 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7687 # Solaris 8's {/usr,}/bin/sh.
7688 touch sub/conftst$i.h
7689 done
7690 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7691
81ecdfbb
RW
7692 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7693 # mode. It turns out that the SunPro C++ compiler does not properly
7694 # handle `-M -o', and we need to detect this. Also, some Intel
7695 # versions had trouble with output in subdirs
7696 am__obj=sub/conftest.${OBJEXT-o}
7697 am__minus_obj="-o $am__obj"
e28b3332 7698 case $depmode in
81ecdfbb
RW
7699 gcc)
7700 # This depmode causes a compiler race in universal mode.
7701 test "$am__universal" = false || continue
7702 ;;
e28b3332
DJ
7703 nosideeffect)
7704 # after this tag, mechanisms are not by side-effect, so they'll
7705 # only be used when explicitly requested
7706 if test "x$enable_dependency_tracking" = xyes; then
7707 continue
7708 else
7709 break
7710 fi
7711 ;;
81ecdfbb
RW
7712 msvisualcpp | msvcmsys)
7713 # This compiler won't grok `-c -o', but also, the minuso test has
7714 # not run yet. These depmodes are late enough in the game, and
7715 # so weak that their functioning should not be impacted.
7716 am__obj=conftest.${OBJEXT-o}
7717 am__minus_obj=
7718 ;;
e28b3332
DJ
7719 none) break ;;
7720 esac
e28b3332 7721 if depmode=$depmode \
81ecdfbb 7722 source=sub/conftest.c object=$am__obj \
e28b3332 7723 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 7724 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
e28b3332 7725 >/dev/null 2>conftest.err &&
81ecdfbb 7726 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
e28b3332 7727 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 7728 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
e28b3332
DJ
7729 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7730 # icc doesn't choke on unknown options, it will just issue warnings
7731 # or remarks (even with -Werror). So we grep stderr for any message
7732 # that says an option was ignored or not supported.
7733 # When given -MP, icc 7.0 and 7.1 complain thusly:
7734 # icc: Command line warning: ignoring option '-M'; no argument required
7735 # The diagnosis changed in icc 8.0:
7736 # icc: Command line remark: option '-MP' not supported
7737 if (grep 'ignoring option' conftest.err ||
7738 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7739 am_cv_CC_dependencies_compiler_type=$depmode
7740 break
7741 fi
7742 fi
7743 done
7744
7745 cd ..
7746 rm -rf conftest.dir
7747else
7748 am_cv_CC_dependencies_compiler_type=none
7749fi
7750
7751fi
81ecdfbb
RW
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7753$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
e28b3332
DJ
7754CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7755
81ecdfbb 7756 if
e28b3332
DJ
7757 test "x$enable_dependency_tracking" != xno \
7758 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7759 am__fastdepCC_TRUE=
7760 am__fastdepCC_FALSE='#'
7761else
7762 am__fastdepCC_TRUE='#'
7763 am__fastdepCC_FALSE=
7764fi
7765
7766
7767
7768
bec39cab
AC
7769
7770
81ecdfbb
RW
7771# Check whether --with-separate-debug-dir was given.
7772if test "${with_separate_debug_dir+set}" = set; then :
7773 withval=$with_separate_debug_dir;
b14b1491
TT
7774 DEBUGDIR=$withval
7775else
7776 DEBUGDIR=${libdir}/debug
81ecdfbb
RW
7777fi
7778
20e95c23 7779
783e057b
DJ
7780 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7781 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b14b1491 7782 ac_define_dir=`eval echo $DEBUGDIR`
783e057b 7783 ac_define_dir=`eval echo $ac_define_dir`
20e95c23 7784
783e057b
DJ
7785cat >>confdefs.h <<_ACEOF
7786#define DEBUGDIR "$ac_define_dir"
20e95c23 7787_ACEOF
20e95c23 7788
20e95c23 7789
20e95c23 7790
0c4a4063 7791
b14b1491
TT
7792 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7793 if test "x$prefix" = xNONE; then
7794 test_prefix=/usr/local
7795 else
7796 test_prefix=$prefix
7797 fi
783e057b 7798 else
b14b1491 7799 test_prefix=$exec_prefix
783e057b 7800 fi
b14b1491
TT
7801 value=0
7802 case ${ac_define_dir} in
7803 "${test_prefix}"|"${test_prefix}/"*|\
7804 '${exec_prefix}'|'${exec_prefix}/'*)
7805 value=1
7806 ;;
7807 esac
7808
7809cat >>confdefs.h <<_ACEOF
7810#define DEBUGDIR_RELOCATABLE $value
7811_ACEOF
7812
7813
7814
0c4a4063 7815
b14b1491
TT
7816# GDB's datadir relocation
7817
7818
7819
81ecdfbb
RW
7820# Check whether --with-gdb-datadir was given.
7821if test "${with_gdb_datadir+set}" = set; then :
7822 withval=$with_gdb_datadir;
b14b1491 7823 GDB_DATADIR=$withval
20e95c23 7824else
b14b1491 7825 GDB_DATADIR=${datadir}/gdb
81ecdfbb
RW
7826fi
7827
20e95c23 7828
b14b1491
TT
7829 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7830 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7831 ac_define_dir=`eval echo $GDB_DATADIR`
7832 ac_define_dir=`eval echo $ac_define_dir`
7833
7834cat >>confdefs.h <<_ACEOF
7835#define GDB_DATADIR "$ac_define_dir"
20e95c23
DJ
7836_ACEOF
7837
b14b1491
TT
7838
7839
0c4a4063 7840
b14b1491
TT
7841 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7842 if test "x$prefix" = xNONE; then
7843 test_prefix=/usr/local
7844 else
7845 test_prefix=$prefix
7846 fi
7847 else
7848 test_prefix=$exec_prefix
7849 fi
7850 value=0
7851 case ${ac_define_dir} in
7852 "${test_prefix}"|"${test_prefix}/"*|\
7853 '${exec_prefix}'|'${exec_prefix}/'*)
7854 value=1
7855 ;;
7856 esac
7857
7858cat >>confdefs.h <<_ACEOF
7859#define GDB_DATADIR_RELOCATABLE $value
7860_ACEOF
7861
7862
783e057b 7863
20e95c23 7864
0c4a4063 7865
81ecdfbb
RW
7866# Check whether --with-relocated-sources was given.
7867if test "${with_relocated_sources+set}" = set; then :
7868 withval=$with_relocated_sources; reloc_srcdir="${withval}"
29b0e8a2
JM
7869
7870 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7872 ac_define_dir=`eval echo $reloc_srcdir`
7873 ac_define_dir=`eval echo $ac_define_dir`
7874
7875cat >>confdefs.h <<_ACEOF
7876#define RELOC_SRCDIR "$ac_define_dir"
7877_ACEOF
7878
7879
7880
81ecdfbb
RW
7881fi
7882
29b0e8a2
JM
7883
7884
20e95c23 7885
783e057b 7886subdirs="$subdirs doc testsuite"
20e95c23
DJ
7887
7888
783e057b 7889# Check whether to support alternative target configurations
81ecdfbb
RW
7890# Check whether --enable-targets was given.
7891if test "${enable_targets+set}" = set; then :
7892 enableval=$enable_targets; case "${enableval}" in
7893 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
783e057b
DJ
7894 ;;
7895 no) enable_targets= ;;
7896 *) enable_targets=$enableval ;;
7897esac
81ecdfbb
RW
7898fi
7899
20e95c23 7900
783e057b 7901# Check whether to enable 64-bit support on 32-bit hosts
81ecdfbb
RW
7902# Check whether --enable-64-bit-bfd was given.
7903if test "${enable_64_bit_bfd+set}" = set; then :
7904 enableval=$enable_64_bit_bfd; case "${enableval}" in
783e057b
DJ
7905 yes) want64=true ;;
7906 no) want64=false ;;
81ecdfbb 7907 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
783e057b
DJ
7908esac
7909else
7910 want64=false
81ecdfbb
RW
7911fi
7912
783e057b
DJ
7913# Provide defaults for some variables set by the per-host and per-target
7914# configuration.
7915gdb_host_obs=posix-hdep.o
20e95c23 7916
783e057b
DJ
7917if test "${target}" = "${host}"; then
7918 gdb_native=yes
7919else
7920 gdb_native=no
7921fi
20e95c23 7922
783e057b 7923. $srcdir/configure.host
20e95c23 7924
783e057b 7925# Accumulate some settings from configure.tgt over all enabled targets
20e95c23 7926
783e057b
DJ
7927TARGET_OBS=
7928all_targets=
20e95c23 7929
783e057b 7930for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
20e95c23 7931do
783e057b
DJ
7932 if test "$targ_alias" = "all"; then
7933 all_targets=true
7934 else
7935 # Canonicalize the secondary target names.
7936 result=`$ac_config_sub $targ_alias 2>/dev/null`
7937 if test -n "$result"; then
7938 targ=$result
7939 else
7940 targ=$targ_alias
7941 fi
20e95c23 7942
783e057b 7943 . ${srcdir}/configure.tgt
20e95c23 7944
bf307134
JB
7945 if test -z "${gdb_target_obs}"; then :
7946 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
7947fi
7948
783e057b
DJ
7949 # Target-specific object files
7950 for i in ${gdb_target_obs}; do
7951 case " $TARGET_OBS " in
7952 *" ${i} "*) ;;
7953 *)
7954 TARGET_OBS="$TARGET_OBS ${i}"
7955 ;;
7956 esac
7957 done
20e95c23 7958
783e057b
DJ
7959 # Check whether this target needs 64-bit CORE_ADDR
7960 if test x${want64} = xfalse; then
7961 . ${srcdir}/../bfd/config.bfd
7962 fi
7963 fi
20e95c23
DJ
7964done
7965
783e057b
DJ
7966if test x${all_targets} = xtrue; then
7967
7968 # We want all 64-bit targets if we either:
7969 # - run on a 64-bit host or
7970 # - already require 64-bit support for some other target or
7971 # - the --enable-64-bit-bfd option was supplied
7972 # Otherwise we only support all 32-bit targets.
7973 #
7974 # NOTE: This test must be in sync with the corresponding
7975 # tests in BFD!
20e95c23 7976
783e057b 7977 if test x${want64} = xfalse; then
81ecdfbb
RW
7978 # The cast to long int works around a bug in the HP C Compiler
7979# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7980# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7981# This bug is HP SR number 8606223364.
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7983$as_echo_n "checking size of long... " >&6; }
7984if test "${ac_cv_sizeof_long+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
c0993dbe 7986else
81ecdfbb 7987 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
c0993dbe 7988
81ecdfbb
RW
7989else
7990 if test "$ac_cv_type_long" = yes; then
7991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7993{ as_fn_set_status 77
7994as_fn_error "cannot compute sizeof (long)
7995See \`config.log' for more details." "$LINENO" 5; }; }
7996 else
7997 ac_cv_sizeof_long=0
7998 fi
c0993dbe 7999fi
81ecdfbb 8000
c0993dbe 8001fi
81ecdfbb
RW
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8003$as_echo "$ac_cv_sizeof_long" >&6; }
c0993dbe 8004
c0993dbe 8005
c0993dbe 8006
c0993dbe
UW
8007cat >>confdefs.h <<_ACEOF
8008#define SIZEOF_LONG $ac_cv_sizeof_long
8009_ACEOF
8010
8011
8012 if test "x${ac_cv_sizeof_long}" = "x8"; then
8013 want64=true
8014 fi
8015 fi
8016 if test x${want64} = xtrue; then
8017 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8018 else
8019 TARGET_OBS='$(ALL_TARGET_OBS)'
8020 fi
8021fi
8022
8023
8024
8025# For other settings, only the main target counts.
8026gdb_sim=
8027gdb_osabi=
8028build_gdbserver=
8029targ=$target; . ${srcdir}/configure.tgt
8030
8031# Fetch the default architecture and default target vector from BFD.
8032targ=$target; . $srcdir/../bfd/config.bfd
8033
8034# We only want the first architecture, so strip off the others if
8035# there is more than one.
8036targ_archs=`echo $targ_archs | sed 's/ .*//'`
8037
8038if test "x$targ_archs" != x; then
8039
8040cat >>confdefs.h <<_ACEOF
8041#define DEFAULT_BFD_ARCH $targ_archs
8042_ACEOF
8043
8044fi
8045if test "x$targ_defvec" != x; then
8046
8047cat >>confdefs.h <<_ACEOF
8048#define DEFAULT_BFD_VEC $targ_defvec
8049_ACEOF
8050
8051fi
8052
c0993dbe
UW
8053# The CLI cannot be disabled yet, but may be in the future.
8054
8055# Enable CLI.
81ecdfbb
RW
8056# Check whether --enable-gdbcli was given.
8057if test "${enable_gdbcli+set}" = set; then :
8058 enableval=$enable_gdbcli; case $enableval in
c0993dbe
UW
8059 yes)
8060 ;;
8061 no)
81ecdfbb 8062 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
c0993dbe 8063 *)
81ecdfbb 8064 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
c0993dbe
UW
8065 esac
8066else
8067 enable_gdbcli=yes
81ecdfbb
RW
8068fi
8069
c0993dbe
UW
8070if test x"$enable_gdbcli" = xyes; then
8071 if test -d $srcdir/cli; then
8072 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8073 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8074 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8075 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8076 fi
8077fi
8078
8079# Enable MI.
81ecdfbb
RW
8080# Check whether --enable-gdbmi was given.
8081if test "${enable_gdbmi+set}" = set; then :
8082 enableval=$enable_gdbmi; case $enableval in
c0993dbe
UW
8083 yes | no)
8084 ;;
8085 *)
81ecdfbb 8086 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
c0993dbe
UW
8087 esac
8088else
8089 enable_gdbmi=yes
81ecdfbb
RW
8090fi
8091
c0993dbe
UW
8092if test x"$enable_gdbmi" = xyes; then
8093 if test -d $srcdir/mi; then
8094 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8095 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8096 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8097 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8098 fi
8099fi
8100
8101# Enable TUI.
81ecdfbb
RW
8102# Check whether --enable-tui was given.
8103if test "${enable_tui+set}" = set; then :
8104 enableval=$enable_tui; case $enableval in
3ca64bd3 8105 yes | no | auto)
c0993dbe
UW
8106 ;;
8107 *)
81ecdfbb 8108 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
c0993dbe
UW
8109 esac
8110else
3ca64bd3 8111 enable_tui=auto
81ecdfbb
RW
8112fi
8113
c0993dbe
UW
8114
8115# Enable gdbtk.
81ecdfbb
RW
8116# Check whether --enable-gdbtk was given.
8117if test "${enable_gdbtk+set}" = set; then :
8118 enableval=$enable_gdbtk; case $enableval in
c0993dbe
UW
8119 yes | no)
8120 ;;
8121 *)
81ecdfbb 8122 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
c0993dbe
UW
8123 esac
8124else
5062cc19 8125 if test -d $srcdir/gdbtk; then
c0993dbe
UW
8126 enable_gdbtk=yes
8127 else
8128 enable_gdbtk=no
8129 fi
81ecdfbb
RW
8130fi
8131
c0993dbe
UW
8132# We unconditionally disable gdbtk tests on selected platforms.
8133case $host_os in
8134 go32* | windows*)
81ecdfbb
RW
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8136$as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
c0993dbe
UW
8137 enable_gdbtk=no ;;
8138esac
8139
8140# Libunwind support.
bec39cab 8141
81ecdfbb
RW
8142# Check whether --with-libunwind was given.
8143if test "${with_libunwind+set}" = set; then :
8144 withval=$with_libunwind; case "${withval}" in
bec39cab
AC
8145 yes) enable_libunwind=yes ;;
8146 no) enable_libunwind=no ;;
81ecdfbb 8147 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
bec39cab 8148esac
bec39cab 8149else
bec39cab 8150
81ecdfbb
RW
8151 for ac_header in libunwind.h libunwind-ia64.h
8152do :
8153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8154ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8155eval as_val=\$$as_ac_Header
8156 if test "x$as_val" = x""yes; then :
bec39cab 8157 cat >>confdefs.h <<_ACEOF
81ecdfbb 8158#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab
AC
8159_ACEOF
8160
8161fi
8162
8163done
8164
a9322a30
TT
8165 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8166 enable_libunwind=yes;
8167 fi
8168
bec39cab 8169fi
bec39cab 8170
bec39cab 8171
81ecdfbb
RW
8172if test x"$enable_libunwind" = xyes; then
8173 for ac_header in libunwind.h libunwind-ia64.h
8174do :
8175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8176ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8177eval as_val=\$$as_ac_Header
8178 if test "x$as_val" = x""yes; then :
bec39cab 8179 cat >>confdefs.h <<_ACEOF
81ecdfbb 8180#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab
AC
8181_ACEOF
8182
8183fi
8184
8185done
8186
bec39cab 8187
81ecdfbb 8188$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
a9322a30
TT
8189
8190 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8191 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8192 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8193fi
8194
cb01cfba
JB
8195opt_curses=no
8196
81ecdfbb
RW
8197# Check whether --with-curses was given.
8198if test "${with_curses+set}" = set; then :
8199 withval=$with_curses; opt_curses=$withval
8200fi
8201
cb01cfba 8202
76a39ba7 8203prefer_curses=no
cb01cfba 8204if test "$opt_curses" = "yes"; then
76a39ba7 8205 prefer_curses=yes
cb01cfba
JB
8206fi
8207
a9322a30 8208# Profiling support.
81ecdfbb
RW
8209# Check whether --enable-profiling was given.
8210if test "${enable_profiling+set}" = set; then :
8211 enableval=$enable_profiling; case $enableval in
a9322a30
TT
8212 yes | no)
8213 ;;
8214 *)
81ecdfbb 8215 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
a9322a30
TT
8216 esac
8217else
8218 enable_profiling=no
81ecdfbb 8219fi
bec39cab 8220
a9322a30
TT
8221
8222for ac_func in monstartup _mcleanup
81ecdfbb
RW
8223do :
8224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8225ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8226eval as_val=\$$as_ac_var
8227 if test "x$as_val" = x""yes; then :
8228 cat >>confdefs.h <<_ACEOF
8229#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 8230_ACEOF
a9322a30 8231
81ecdfbb
RW
8232fi
8233done
a9322a30 8234
81ecdfbb
RW
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8236$as_echo_n "checking for _etext... " >&6; }
8237if test "${ac_cv_var__etext+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8239else
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h. */
8242#include <stdlib.h>
8243extern char _etext;
a9322a30
TT
8244
8245int
8246main ()
8247{
8248free (&_etext);
8249 ;
8250 return 0;
8251}
bec39cab 8252_ACEOF
81ecdfbb 8253if ac_fn_c_try_link "$LINENO"; then :
a9322a30 8254 ac_cv_var__etext=yes
bec39cab 8255else
81ecdfbb 8256 ac_cv_var__etext=no
bec39cab 8257fi
81ecdfbb
RW
8258rm -f core conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
bec39cab 8260fi
81ecdfbb
RW
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8262$as_echo "$ac_cv_var__etext" >&6; }
a9322a30 8263if test $ac_cv_var__etext = yes; then
60ca704f 8264
81ecdfbb 8265$as_echo "#define HAVE__ETEXT 1" >>confdefs.h
bec39cab 8266
bec39cab 8267fi
81ecdfbb
RW
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8269$as_echo_n "checking for etext... " >&6; }
8270if test "${ac_cv_var_etext+set}" = set; then :
8271 $as_echo_n "(cached) " >&6
bec39cab 8272else
81ecdfbb 8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 8274/* end confdefs.h. */
a9322a30
TT
8275#include <stdlib.h>
8276extern char etext;
bec39cab
AC
8277
8278int
8279main ()
8280{
a9322a30 8281free (&etext);
bec39cab
AC
8282 ;
8283 return 0;
8284}
8285_ACEOF
81ecdfbb 8286if ac_fn_c_try_link "$LINENO"; then :
a9322a30 8287 ac_cv_var_etext=yes
bec39cab 8288else
81ecdfbb 8289 ac_cv_var_etext=no
bec39cab 8290fi
81ecdfbb
RW
8291rm -f core conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
bec39cab 8293fi
81ecdfbb
RW
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8295$as_echo "$ac_cv_var_etext" >&6; }
a9322a30
TT
8296if test $ac_cv_var_etext = yes; then
8297
81ecdfbb 8298$as_echo "#define HAVE_ETEXT 1" >>confdefs.h
bec39cab
AC
8299
8300fi
a9322a30
TT
8301if test "$enable_profiling" = yes ; then
8302 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
81ecdfbb 8303 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
a9322a30
TT
8304 fi
8305 PROFILE_CFLAGS=-pg
8306 OLD_CFLAGS="$CFLAGS"
8307 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
bec39cab 8308
81ecdfbb
RW
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8310$as_echo_n "checking whether $CC supports -pg... " >&6; }
8311if test "${ac_cv_cc_supports_pg+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
bec39cab 8313else
81ecdfbb 8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 8315/* end confdefs.h. */
bec39cab
AC
8316
8317int
8318main ()
8319{
a9322a30 8320int x;
bec39cab
AC
8321 ;
8322 return 0;
8323}
8324_ACEOF
81ecdfbb 8325if ac_fn_c_try_compile "$LINENO"; then :
a9322a30 8326 ac_cv_cc_supports_pg=yes
bec39cab 8327else
81ecdfbb 8328 ac_cv_cc_supports_pg=no
bec39cab 8329fi
81ecdfbb 8330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 8331fi
81ecdfbb
RW
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8333$as_echo "$ac_cv_cc_supports_pg" >&6; }
bec39cab 8334
a9322a30 8335 if test $ac_cv_cc_supports_pg = no; then
81ecdfbb 8336 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
a9322a30 8337 fi
bec39cab 8338
a9322a30 8339 CFLAGS="$OLD_CFLAGS"
bec39cab
AC
8340fi
8341
c16158bc
JM
8342
8343
81ecdfbb
RW
8344# Check whether --with-pkgversion was given.
8345if test "${with_pkgversion+set}" = set; then :
8346 withval=$with_pkgversion; case "$withval" in
8347 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
c16158bc
JM
8348 no) PKGVERSION= ;;
8349 *) PKGVERSION="($withval) " ;;
8350 esac
8351else
8352 PKGVERSION="(GDB) "
8353
81ecdfbb 8354fi
c16158bc
JM
8355
8356
8357
8358
81ecdfbb
RW
8359
8360# Check whether --with-bugurl was given.
8361if test "${with_bugurl+set}" = set; then :
8362 withval=$with_bugurl; case "$withval" in
8363 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
c16158bc
JM
8364 no) BUGURL=
8365 ;;
8366 *) BUGURL="$withval"
8367 ;;
8368 esac
8369else
8370 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8371
81ecdfbb
RW
8372fi
8373
c16158bc
JM
8374 case ${BUGURL} in
8375 "")
8376 REPORT_BUGS_TO=
8377 REPORT_BUGS_TEXI=
8378 ;;
8379 *)
8380 REPORT_BUGS_TO="<$BUGURL>"
8381 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8382 ;;
8383 esac;
8384
8385
8386
8387
8388cat >>confdefs.h <<_ACEOF
8389#define PKGVERSION "$PKGVERSION"
8390_ACEOF
8391
8392
8393cat >>confdefs.h <<_ACEOF
8394#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8395_ACEOF
8396
8397
bec39cab
AC
8398# --------------------- #
8399# Checks for programs. #
8400# --------------------- #
8401
8402for ac_prog in gawk mawk nawk awk
8403do
8404 # Extract the first word of "$ac_prog", so it can be a program name with args.
8405set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407$as_echo_n "checking for $ac_word... " >&6; }
8408if test "${ac_cv_prog_AWK+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
bec39cab
AC
8410else
8411 if test -n "$AWK"; then
8412 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8413else
8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415for as_dir in $PATH
8416do
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8421 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8423 break 2
8424 fi
8425done
81ecdfbb
RW
8426 done
8427IFS=$as_save_IFS
bec39cab
AC
8428
8429fi
8430fi
8431AWK=$ac_cv_prog_AWK
8432if test -n "$AWK"; then
81ecdfbb
RW
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8434$as_echo "$AWK" >&6; }
bec39cab 8435else
81ecdfbb
RW
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437$as_echo "no" >&6; }
bec39cab
AC
8438fi
8439
bec39cab 8440
81ecdfbb 8441 test -n "$AWK" && break
bec39cab
AC
8442done
8443
bec39cab 8444
81ecdfbb
RW
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8446$as_echo_n "checking whether ln -s works... " >&6; }
bec39cab
AC
8447LN_S=$as_ln_s
8448if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8450$as_echo "yes" >&6; }
bec39cab 8451else
81ecdfbb
RW
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8453$as_echo "no, using $LN_S" >&6; }
bec39cab
AC
8454fi
8455
8456if test -n "$ac_tool_prefix"; then
8457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8458set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
8459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8460$as_echo_n "checking for $ac_word... " >&6; }
8461if test "${ac_cv_prog_RANLIB+set}" = set; then :
8462 $as_echo_n "(cached) " >&6
bec39cab
AC
8463else
8464 if test -n "$RANLIB"; then
8465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8466else
8467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468for as_dir in $PATH
8469do
8470 IFS=$as_save_IFS
8471 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 8475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8476 break 2
8477 fi
8478done
81ecdfbb
RW
8479 done
8480IFS=$as_save_IFS
bec39cab
AC
8481
8482fi
8483fi
8484RANLIB=$ac_cv_prog_RANLIB
8485if test -n "$RANLIB"; then
81ecdfbb
RW
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8487$as_echo "$RANLIB" >&6; }
bec39cab 8488else
81ecdfbb
RW
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490$as_echo "no" >&6; }
bec39cab
AC
8491fi
8492
81ecdfbb 8493
bec39cab
AC
8494fi
8495if test -z "$ac_cv_prog_RANLIB"; then
8496 ac_ct_RANLIB=$RANLIB
8497 # Extract the first word of "ranlib", so it can be a program name with args.
8498set dummy ranlib; ac_word=$2
81ecdfbb
RW
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500$as_echo_n "checking for $ac_word... " >&6; }
8501if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
bec39cab
AC
8503else
8504 if test -n "$ac_ct_RANLIB"; then
8505 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8506else
8507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8514 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8516 break 2
8517 fi
8518done
81ecdfbb
RW
8519 done
8520IFS=$as_save_IFS
bec39cab 8521
bec39cab
AC
8522fi
8523fi
8524ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8525if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8527$as_echo "$ac_ct_RANLIB" >&6; }
bec39cab 8528else
81ecdfbb
RW
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530$as_echo "no" >&6; }
bec39cab
AC
8531fi
8532
81ecdfbb
RW
8533 if test "x$ac_ct_RANLIB" = x; then
8534 RANLIB=":"
8535 else
8536 case $cross_compiling:$ac_tool_warned in
8537yes:)
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8540ac_tool_warned=yes ;;
8541esac
8542 RANLIB=$ac_ct_RANLIB
8543 fi
bec39cab
AC
8544else
8545 RANLIB="$ac_cv_prog_RANLIB"
8546fi
8547
8548for ac_prog in 'bison -y' byacc
8549do
8550 # Extract the first word of "$ac_prog", so it can be a program name with args.
8551set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553$as_echo_n "checking for $ac_word... " >&6; }
8554if test "${ac_cv_prog_YACC+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
bec39cab
AC
8556else
8557 if test -n "$YACC"; then
8558 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8559else
8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561for as_dir in $PATH
8562do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8567 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8569 break 2
8570 fi
8571done
81ecdfbb
RW
8572 done
8573IFS=$as_save_IFS
bec39cab
AC
8574
8575fi
8576fi
8577YACC=$ac_cv_prog_YACC
8578if test -n "$YACC"; then
81ecdfbb
RW
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8580$as_echo "$YACC" >&6; }
bec39cab 8581else
81ecdfbb
RW
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583$as_echo "no" >&6; }
bec39cab
AC
8584fi
8585
81ecdfbb 8586
bec39cab
AC
8587 test -n "$YACC" && break
8588done
8589test -n "$YACC" || YACC="yacc"
8590
8591
8592if test -n "$ac_tool_prefix"; then
8593 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8594set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596$as_echo_n "checking for $ac_word... " >&6; }
8597if test "${ac_cv_prog_AR+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
bec39cab
AC
8599else
8600 if test -n "$AR"; then
8601 ac_cv_prog_AR="$AR" # Let the user override the test.
8602else
8603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604for as_dir in $PATH
8605do
8606 IFS=$as_save_IFS
8607 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8610 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 8611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8612 break 2
8613 fi
8614done
81ecdfbb
RW
8615 done
8616IFS=$as_save_IFS
bec39cab
AC
8617
8618fi
8619fi
8620AR=$ac_cv_prog_AR
8621if test -n "$AR"; then
81ecdfbb
RW
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8623$as_echo "$AR" >&6; }
bec39cab 8624else
81ecdfbb
RW
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626$as_echo "no" >&6; }
bec39cab
AC
8627fi
8628
81ecdfbb 8629
bec39cab
AC
8630fi
8631if test -z "$ac_cv_prog_AR"; then
8632 ac_ct_AR=$AR
8633 # Extract the first word of "ar", so it can be a program name with args.
8634set dummy ar; ac_word=$2
81ecdfbb
RW
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636$as_echo_n "checking for $ac_word... " >&6; }
8637if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
bec39cab
AC
8639else
8640 if test -n "$ac_ct_AR"; then
8641 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8642else
8643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644for as_dir in $PATH
8645do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8650 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8652 break 2
8653 fi
8654done
81ecdfbb
RW
8655 done
8656IFS=$as_save_IFS
bec39cab
AC
8657
8658fi
8659fi
8660ac_ct_AR=$ac_cv_prog_ac_ct_AR
8661if test -n "$ac_ct_AR"; then
81ecdfbb
RW
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8663$as_echo "$ac_ct_AR" >&6; }
bec39cab 8664else
81ecdfbb
RW
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666$as_echo "no" >&6; }
bec39cab
AC
8667fi
8668
81ecdfbb
RW
8669 if test "x$ac_ct_AR" = x; then
8670 AR=""
8671 else
8672 case $cross_compiling:$ac_tool_warned in
8673yes:)
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8676ac_tool_warned=yes ;;
8677esac
8678 AR=$ac_ct_AR
8679 fi
bec39cab
AC
8680else
8681 AR="$ac_cv_prog_AR"
8682fi
8683
8684if test -n "$ac_tool_prefix"; then
8685 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8686set dummy ${ac_tool_prefix}dlltool; ac_word=$2
81ecdfbb
RW
8687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688$as_echo_n "checking for $ac_word... " >&6; }
8689if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
bec39cab
AC
8691else
8692 if test -n "$DLLTOOL"; then
8693 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8694else
8695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696for as_dir in $PATH
8697do
8698 IFS=$as_save_IFS
8699 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8700 for ac_exec_ext in '' $ac_executable_extensions; do
8701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8702 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
81ecdfbb 8703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8704 break 2
8705 fi
8706done
81ecdfbb
RW
8707 done
8708IFS=$as_save_IFS
bec39cab
AC
8709
8710fi
8711fi
8712DLLTOOL=$ac_cv_prog_DLLTOOL
8713if test -n "$DLLTOOL"; then
81ecdfbb
RW
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8715$as_echo "$DLLTOOL" >&6; }
bec39cab 8716else
81ecdfbb
RW
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718$as_echo "no" >&6; }
bec39cab
AC
8719fi
8720
81ecdfbb 8721
bec39cab
AC
8722fi
8723if test -z "$ac_cv_prog_DLLTOOL"; then
8724 ac_ct_DLLTOOL=$DLLTOOL
8725 # Extract the first word of "dlltool", so it can be a program name with args.
8726set dummy dlltool; ac_word=$2
81ecdfbb
RW
8727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728$as_echo_n "checking for $ac_word... " >&6; }
8729if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
bec39cab
AC
8731else
8732 if test -n "$ac_ct_DLLTOOL"; then
8733 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8734else
8735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736for as_dir in $PATH
8737do
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8742 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
81ecdfbb 8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8744 break 2
8745 fi
8746done
81ecdfbb
RW
8747 done
8748IFS=$as_save_IFS
bec39cab
AC
8749
8750fi
8751fi
8752ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8753if test -n "$ac_ct_DLLTOOL"; then
81ecdfbb
RW
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8755$as_echo "$ac_ct_DLLTOOL" >&6; }
bec39cab 8756else
81ecdfbb
RW
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758$as_echo "no" >&6; }
bec39cab
AC
8759fi
8760
81ecdfbb
RW
8761 if test "x$ac_ct_DLLTOOL" = x; then
8762 DLLTOOL=""
8763 else
8764 case $cross_compiling:$ac_tool_warned in
8765yes:)
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8768ac_tool_warned=yes ;;
8769esac
8770 DLLTOOL=$ac_ct_DLLTOOL
8771 fi
bec39cab
AC
8772else
8773 DLLTOOL="$ac_cv_prog_DLLTOOL"
8774fi
8775
8776if test -n "$ac_tool_prefix"; then
8777 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8778set dummy ${ac_tool_prefix}windres; ac_word=$2
81ecdfbb
RW
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780$as_echo_n "checking for $ac_word... " >&6; }
8781if test "${ac_cv_prog_WINDRES+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
bec39cab
AC
8783else
8784 if test -n "$WINDRES"; then
8785 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8786else
8787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788for as_dir in $PATH
8789do
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8794 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
81ecdfbb 8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8796 break 2
8797 fi
8798done
81ecdfbb
RW
8799 done
8800IFS=$as_save_IFS
bec39cab
AC
8801
8802fi
8803fi
8804WINDRES=$ac_cv_prog_WINDRES
8805if test -n "$WINDRES"; then
81ecdfbb
RW
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8807$as_echo "$WINDRES" >&6; }
bec39cab 8808else
81ecdfbb
RW
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810$as_echo "no" >&6; }
bec39cab
AC
8811fi
8812
81ecdfbb 8813
bec39cab
AC
8814fi
8815if test -z "$ac_cv_prog_WINDRES"; then
8816 ac_ct_WINDRES=$WINDRES
8817 # Extract the first word of "windres", so it can be a program name with args.
8818set dummy windres; ac_word=$2
81ecdfbb
RW
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820$as_echo_n "checking for $ac_word... " >&6; }
8821if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8822 $as_echo_n "(cached) " >&6
bec39cab
AC
8823else
8824 if test -n "$ac_ct_WINDRES"; then
8825 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8826else
8827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828for as_dir in $PATH
8829do
8830 IFS=$as_save_IFS
8831 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8834 ac_cv_prog_ac_ct_WINDRES="windres"
81ecdfbb 8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8836 break 2
8837 fi
8838done
81ecdfbb
RW
8839 done
8840IFS=$as_save_IFS
bec39cab
AC
8841
8842fi
8843fi
8844ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8845if test -n "$ac_ct_WINDRES"; then
81ecdfbb
RW
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8847$as_echo "$ac_ct_WINDRES" >&6; }
bec39cab 8848else
81ecdfbb
RW
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850$as_echo "no" >&6; }
c906108c 8851fi
bec39cab 8852
81ecdfbb
RW
8853 if test "x$ac_ct_WINDRES" = x; then
8854 WINDRES=""
8855 else
8856 case $cross_compiling:$ac_tool_warned in
8857yes:)
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8860ac_tool_warned=yes ;;
8861esac
8862 WINDRES=$ac_ct_WINDRES
8863 fi
c906108c 8864else
bec39cab 8865 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
8866fi
8867
bec39cab
AC
8868
8869# Needed for GNU/Hurd.
8870if test -n "$ac_tool_prefix"; then
8871 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8872set dummy ${ac_tool_prefix}mig; ac_word=$2
81ecdfbb
RW
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874$as_echo_n "checking for $ac_word... " >&6; }
8875if test "${ac_cv_prog_MIG+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
c906108c 8877else
bec39cab
AC
8878 if test -n "$MIG"; then
8879 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8880else
8881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882for as_dir in $PATH
8883do
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8888 ac_cv_prog_MIG="${ac_tool_prefix}mig"
81ecdfbb 8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8890 break 2
8891 fi
8892done
81ecdfbb
RW
8893 done
8894IFS=$as_save_IFS
bec39cab 8895
c906108c 8896fi
bec39cab
AC
8897fi
8898MIG=$ac_cv_prog_MIG
8899if test -n "$MIG"; then
81ecdfbb
RW
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8901$as_echo "$MIG" >&6; }
c906108c 8902else
81ecdfbb
RW
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904$as_echo "no" >&6; }
c906108c
SS
8905fi
8906
81ecdfbb 8907
bec39cab
AC
8908fi
8909if test -z "$ac_cv_prog_MIG"; then
8910 ac_ct_MIG=$MIG
8911 # Extract the first word of "mig", so it can be a program name with args.
8912set dummy mig; ac_word=$2
81ecdfbb
RW
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914$as_echo_n "checking for $ac_word... " >&6; }
8915if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
bec39cab
AC
8917else
8918 if test -n "$ac_ct_MIG"; then
8919 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8920else
8921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922for as_dir in $PATH
8923do
8924 IFS=$as_save_IFS
8925 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8928 ac_cv_prog_ac_ct_MIG="mig"
81ecdfbb 8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8930 break 2
8931 fi
8932done
81ecdfbb
RW
8933 done
8934IFS=$as_save_IFS
c906108c 8935
bec39cab
AC
8936fi
8937fi
8938ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8939if test -n "$ac_ct_MIG"; then
81ecdfbb
RW
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8941$as_echo "$ac_ct_MIG" >&6; }
bec39cab 8942else
81ecdfbb
RW
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944$as_echo "no" >&6; }
bec39cab 8945fi
c906108c 8946
81ecdfbb
RW
8947 if test "x$ac_ct_MIG" = x; then
8948 MIG=""
8949 else
8950 case $cross_compiling:$ac_tool_warned in
8951yes:)
8952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8954ac_tool_warned=yes ;;
8955esac
8956 MIG=$ac_ct_MIG
8957 fi
bec39cab
AC
8958else
8959 MIG="$ac_cv_prog_MIG"
8960fi
c906108c 8961
c906108c 8962
bec39cab
AC
8963# ---------------------- #
8964# Checks for libraries. #
8965# ---------------------- #
c906108c 8966
bec39cab 8967# We might need to link with -lm; most simulators need it.
81ecdfbb
RW
8968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8969$as_echo_n "checking for main in -lm... " >&6; }
8970if test "${ac_cv_lib_m_main+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
bec39cab
AC
8972else
8973 ac_check_lib_save_LIBS=$LIBS
8974LIBS="-lm $LIBS"
81ecdfbb 8975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 8976/* end confdefs.h. */
c906108c 8977
c906108c 8978
bec39cab
AC
8979int
8980main ()
8981{
81ecdfbb 8982return main ();
bec39cab
AC
8983 ;
8984 return 0;
8985}
8986_ACEOF
81ecdfbb 8987if ac_fn_c_try_link "$LINENO"; then :
bec39cab
AC
8988 ac_cv_lib_m_main=yes
8989else
81ecdfbb 8990 ac_cv_lib_m_main=no
bec39cab 8991fi
81ecdfbb
RW
8992rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
bec39cab
AC
8994LIBS=$ac_check_lib_save_LIBS
8995fi
81ecdfbb
RW
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8997$as_echo "$ac_cv_lib_m_main" >&6; }
8998if test "x$ac_cv_lib_m_main" = x""yes; then :
bec39cab
AC
8999 cat >>confdefs.h <<_ACEOF
9000#define HAVE_LIBM 1
9001_ACEOF
9002
9003 LIBS="-lm $LIBS"
c906108c 9004
c906108c 9005fi
bec39cab
AC
9006
9007
9008# We need to link with -lw to get `wctype' on Solaris before Solaris
9009# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9010# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9011# is known to have this problem). Therefore we avoid libw if we can.
81ecdfbb
RW
9012ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9013if test "x$ac_cv_func_wctype" = x""yes; then :
bec39cab 9014
c906108c 9015else
81ecdfbb
RW
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9017$as_echo_n "checking for wctype in -lw... " >&6; }
9018if test "${ac_cv_lib_w_wctype+set}" = set; then :
9019 $as_echo_n "(cached) " >&6
bec39cab
AC
9020else
9021 ac_check_lib_save_LIBS=$LIBS
9022LIBS="-lw $LIBS"
81ecdfbb 9023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 9024/* end confdefs.h. */
c906108c 9025
81ecdfbb
RW
9026/* Override any GCC internal prototype to avoid an error.
9027 Use char because int might match the return type of a GCC
9028 builtin and then its argument prototype would still apply. */
bec39cab
AC
9029#ifdef __cplusplus
9030extern "C"
9031#endif
bec39cab
AC
9032char wctype ();
9033int
9034main ()
9035{
81ecdfbb 9036return wctype ();
bec39cab
AC
9037 ;
9038 return 0;
9039}
9040_ACEOF
81ecdfbb 9041if ac_fn_c_try_link "$LINENO"; then :
bec39cab
AC
9042 ac_cv_lib_w_wctype=yes
9043else
81ecdfbb 9044 ac_cv_lib_w_wctype=no
bec39cab 9045fi
81ecdfbb
RW
9046rm -f core conftest.err conftest.$ac_objext \
9047 conftest$ac_exeext conftest.$ac_ext
bec39cab
AC
9048LIBS=$ac_check_lib_save_LIBS
9049fi
81ecdfbb
RW
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9051$as_echo "$ac_cv_lib_w_wctype" >&6; }
9052if test "x$ac_cv_lib_w_wctype" = x""yes; then :
bec39cab
AC
9053 cat >>confdefs.h <<_ACEOF
9054#define HAVE_LIBW 1
9055_ACEOF
c906108c 9056
bec39cab 9057 LIBS="-lw $LIBS"
c906108c 9058
bec39cab 9059fi
c906108c 9060
bec39cab 9061fi
c906108c 9062
ddc9cd0f 9063
bec39cab 9064# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
81ecdfbb
RW
9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9066$as_echo_n "checking for library containing gethostbyname... " >&6; }
9067if test "${ac_cv_search_gethostbyname+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
bec39cab
AC
9069else
9070 ac_func_search_save_LIBS=$LIBS
81ecdfbb 9071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 9072/* end confdefs.h. */
ddc9cd0f 9073
81ecdfbb
RW
9074/* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
bec39cab
AC
9077#ifdef __cplusplus
9078extern "C"
9079#endif
bec39cab
AC
9080char gethostbyname ();
9081int
9082main ()
9083{
81ecdfbb 9084return gethostbyname ();
bec39cab
AC
9085 ;
9086 return 0;
9087}
9088_ACEOF
81ecdfbb
RW
9089for ac_lib in '' nsl; do
9090 if test -z "$ac_lib"; then
9091 ac_res="none required"
9092 else
9093 ac_res=-l$ac_lib
b4e70030 9094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
9095 fi
9096 if ac_fn_c_try_link "$LINENO"; then :
9097 ac_cv_search_gethostbyname=$ac_res
9098fi
9099rm -f core conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext
9101 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9102 break
9103fi
9104done
9105if test "${ac_cv_search_gethostbyname+set}" = set; then :
ddc9cd0f 9106
bec39cab 9107else
81ecdfbb 9108 ac_cv_search_gethostbyname=no
bec39cab 9109fi
81ecdfbb 9110rm conftest.$ac_ext
bec39cab
AC
9111LIBS=$ac_func_search_save_LIBS
9112fi
81ecdfbb
RW
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9114$as_echo "$ac_cv_search_gethostbyname" >&6; }
9115ac_res=$ac_cv_search_gethostbyname
9116if test "$ac_res" != no; then :
9117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
96baa820 9118
bec39cab 9119fi
96baa820 9120
c906108c 9121
b4e70030 9122# Some systems (e.g. Solaris) have `socketpair' in libsocket.
81ecdfbb
RW
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9124$as_echo_n "checking for library containing socketpair... " >&6; }
9125if test "${ac_cv_search_socketpair+set}" = set; then :
9126 $as_echo_n "(cached) " >&6
b4e70030
JB
9127else
9128 ac_func_search_save_LIBS=$LIBS
81ecdfbb 9129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4e70030
JB
9130/* end confdefs.h. */
9131
81ecdfbb
RW
9132/* Override any GCC internal prototype to avoid an error.
9133 Use char because int might match the return type of a GCC
9134 builtin and then its argument prototype would still apply. */
b4e70030
JB
9135#ifdef __cplusplus
9136extern "C"
9137#endif
b4e70030
JB
9138char socketpair ();
9139int
9140main ()
9141{
81ecdfbb 9142return socketpair ();
b4e70030
JB
9143 ;
9144 return 0;
9145}
9146_ACEOF
81ecdfbb
RW
9147for ac_lib in '' socket; do
9148 if test -z "$ac_lib"; then
9149 ac_res="none required"
9150 else
9151 ac_res=-l$ac_lib
b4e70030 9152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
9153 fi
9154 if ac_fn_c_try_link "$LINENO"; then :
9155 ac_cv_search_socketpair=$ac_res
9156fi
9157rm -f core conftest.err conftest.$ac_objext \
9158 conftest$ac_exeext
9159 if test "${ac_cv_search_socketpair+set}" = set; then :
9160 break
9161fi
9162done
9163if test "${ac_cv_search_socketpair+set}" = set; then :
b4e70030 9164
b4e70030 9165else
81ecdfbb 9166 ac_cv_search_socketpair=no
b4e70030 9167fi
81ecdfbb 9168rm conftest.$ac_ext
b4e70030
JB
9169LIBS=$ac_func_search_save_LIBS
9170fi
81ecdfbb
RW
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9172$as_echo "$ac_cv_search_socketpair" >&6; }
9173ac_res=$ac_cv_search_socketpair
9174if test "$ac_res" != no; then :
9175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b4e70030
JB
9176
9177fi
9178
9179
233a11ab 9180# Link in zlib if we can. This allows us to read compressed debug sections.
b040ad30
JB
9181
9182 # See if the user specified whether he wants zlib support or not.
9183
9184# Check whether --with-zlib was given.
9185if test "${with_zlib+set}" = set; then :
9186 withval=$with_zlib;
9187else
9188 with_zlib=auto
9189fi
9190
9191
9192 if test "$with_zlib" != "no"; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
9194$as_echo_n "checking for library containing zlibVersion... " >&6; }
9195if test "${ac_cv_search_zlibVersion+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
233a11ab
CS
9197else
9198 ac_func_search_save_LIBS=$LIBS
81ecdfbb 9199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
233a11ab
CS
9200/* end confdefs.h. */
9201
81ecdfbb
RW
9202/* Override any GCC internal prototype to avoid an error.
9203 Use char because int might match the return type of a GCC
233a11ab 9204 builtin and then its argument prototype would still apply. */
233a11ab
CS
9205#ifdef __cplusplus
9206extern "C"
9207#endif
233a11ab
CS
9208char zlibVersion ();
9209int
9210main ()
9211{
81ecdfbb 9212return zlibVersion ();
233a11ab
CS
9213 ;
9214 return 0;
9215}
9216_ACEOF
81ecdfbb
RW
9217for ac_lib in '' z; do
9218 if test -z "$ac_lib"; then
9219 ac_res="none required"
233a11ab 9220 else
81ecdfbb
RW
9221 ac_res=-l$ac_lib
9222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
233a11ab 9223 fi
81ecdfbb
RW
9224 if ac_fn_c_try_link "$LINENO"; then :
9225 ac_cv_search_zlibVersion=$ac_res
233a11ab 9226fi
81ecdfbb
RW
9227rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext
9229 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9230 break
233a11ab 9231fi
81ecdfbb
RW
9232done
9233if test "${ac_cv_search_zlibVersion+set}" = set; then :
233a11ab 9234
233a11ab 9235else
81ecdfbb 9236 ac_cv_search_zlibVersion=no
233a11ab 9237fi
81ecdfbb
RW
9238rm conftest.$ac_ext
9239LIBS=$ac_func_search_save_LIBS
233a11ab 9240fi
81ecdfbb
RW
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9242$as_echo "$ac_cv_search_zlibVersion" >&6; }
9243ac_res=$ac_cv_search_zlibVersion
9244if test "$ac_res" != no; then :
9245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9246 for ac_header in zlib.h
9247do :
9248 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9249if test "x$ac_cv_header_zlib_h" = x""yes; then :
233a11ab 9250 cat >>confdefs.h <<_ACEOF
81ecdfbb 9251#define HAVE_ZLIB_H 1
233a11ab
CS
9252_ACEOF
9253
9254fi
9255
9256done
9257
9258fi
9259
b040ad30
JB
9260 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9261 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9262 fi
9263 fi
9264
233a11ab 9265
77f120bf 9266# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
81ecdfbb
RW
9267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9268$as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9269if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9270 $as_echo_n "(cached) " >&6
bec39cab
AC
9271else
9272 ac_func_search_save_LIBS=$LIBS
81ecdfbb 9273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 9274/* end confdefs.h. */
c906108c 9275
81ecdfbb
RW
9276/* Override any GCC internal prototype to avoid an error.
9277 Use char because int might match the return type of a GCC
9278 builtin and then its argument prototype would still apply. */
bec39cab
AC
9279#ifdef __cplusplus
9280extern "C"
9281#endif
77f120bf 9282char dlgetmodinfo ();
bec39cab
AC
9283int
9284main ()
9285{
81ecdfbb 9286return dlgetmodinfo ();
bec39cab
AC
9287 ;
9288 return 0;
9289}
9290_ACEOF
81ecdfbb
RW
9291for ac_lib in '' dl xpdl; do
9292 if test -z "$ac_lib"; then
9293 ac_res="none required"
9294 else
9295 ac_res=-l$ac_lib
b4e70030 9296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
9297 fi
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 ac_cv_search_dlgetmodinfo=$ac_res
9300fi
9301rm -f core conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext
9303 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9304 break
9305fi
9306done
9307if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
b4e70030 9308
4e8d927d 9309else
81ecdfbb 9310 ac_cv_search_dlgetmodinfo=no
1ba607ad 9311fi
81ecdfbb 9312rm conftest.$ac_ext
bec39cab
AC
9313LIBS=$ac_func_search_save_LIBS
9314fi
81ecdfbb
RW
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9316$as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9317ac_res=$ac_cv_search_dlgetmodinfo
9318if test "$ac_res" != no; then :
9319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
c906108c 9320
8bb2c122 9321fi
8bb2c122 9322
8bb2c122 9323
77f120bf 9324
77f120bf 9325
6c7a06a3 9326
81ecdfbb
RW
9327# Check whether --with-libiconv-prefix was given.
9328if test "${with_libiconv_prefix+set}" = set; then :
9329 withval=$with_libiconv_prefix;
6c7a06a3 9330 for dir in `echo "$withval" | tr : ' '`; do
94ae1714
TT
9331 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9332 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6c7a06a3
TT
9333 done
9334
81ecdfbb
RW
9335fi
9336
6c7a06a3 9337
f18c4681 9338 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6c7a06a3
TT
9339 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9340
81ecdfbb
RW
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9342$as_echo_n "checking for iconv... " >&6; }
9343if test "${am_cv_func_iconv+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
d542061a 9345else
6c7a06a3
TT
9346
9347 am_cv_func_iconv="no, consider installing GNU libiconv"
9348 am_cv_lib_iconv=no
9349 am_cv_use_build_libiconv=no
f0f20949 9350 am_cv_build_libiconv_path=
4edb1e84
JB
9351
9352 # If libiconv is part of the build tree, then try using it over
9353 # any system iconv.
9354 if test -d ../libiconv; then
f18c4681
JB
9355 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9356 am_save_LIBS="$LIBS"
9357 am_save_CPPFLAGS="$CPPFLAGS"
9358 LIBS="$LIBS $lib_dir/libiconv.a"
9359 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d542061a 9361/* end confdefs.h. */
6c7a06a3
TT
9362#include <stdlib.h>
9363#include <iconv.h>
d542061a
UW
9364int
9365main ()
9366{
6c7a06a3 9367iconv_t cd = iconv_open("","");
f18c4681
JB
9368 iconv(cd,NULL,NULL,NULL,NULL);
9369 iconv_close(cd);
d542061a
UW
9370 ;
9371 return 0;
9372}
9373_ACEOF
81ecdfbb 9374if ac_fn_c_try_link "$LINENO"; then :
4edb1e84 9375 am_cv_use_build_libiconv=yes
f0f20949 9376 am_cv_build_libiconv_path=$lib_dir/libiconv.a
f18c4681
JB
9377 am_cv_lib_iconv=yes
9378 am_cv_func_iconv=yes
d542061a 9379fi
81ecdfbb
RW
9380rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
f18c4681
JB
9382 LIBS="$am_save_LIBS"
9383 CPPFLAGS="$am_save_CPPFLAGS"
9384 if test "$am_cv_use_build_libiconv" = "yes"; then
f18c4681
JB
9385 break
9386 fi
9387 done
4edb1e84 9388 fi
94ae1714 9389
4edb1e84 9390 # Next, try to find iconv in libc.
6c7a06a3 9391 if test "$am_cv_func_iconv" != yes; then
81ecdfbb 9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d542061a 9393/* end confdefs.h. */
6c7a06a3
TT
9394#include <stdlib.h>
9395#include <iconv.h>
d542061a
UW
9396int
9397main ()
9398{
6c7a06a3
TT
9399iconv_t cd = iconv_open("","");
9400 iconv(cd,NULL,NULL,NULL,NULL);
9401 iconv_close(cd);
d542061a
UW
9402 ;
9403 return 0;
9404}
9405_ACEOF
81ecdfbb 9406if ac_fn_c_try_link "$LINENO"; then :
4edb1e84 9407 am_cv_func_iconv=yes
d542061a 9408fi
81ecdfbb
RW
9409rm -f core conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
77f120bf 9411 fi
94ae1714 9412
4edb1e84
JB
9413 # If iconv was not in libc, try -liconv. In this case, arrange to
9414 # look in the libiconv prefix, if it was specified by the user.
9415 if test "$am_cv_func_iconv" != yes; then
6c7a06a3 9416 am_save_CPPFLAGS="$CPPFLAGS"
4edb1e84
JB
9417 am_save_LIBS="$LIBS"
9418 if test -n "$LIBICONV_INCLUDE"; then
9419 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9420 LIBS="$LIBS $LIBICONV_LIBDIR"
9421 fi
9422 LIBS="$LIBS -liconv"
81ecdfbb 9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 9424/* end confdefs.h. */
6c7a06a3
TT
9425#include <stdlib.h>
9426#include <iconv.h>
bec39cab
AC
9427int
9428main ()
9429{
6c7a06a3
TT
9430iconv_t cd = iconv_open("","");
9431 iconv(cd,NULL,NULL,NULL,NULL);
9432 iconv_close(cd);
bec39cab
AC
9433 ;
9434 return 0;
9435}
9436_ACEOF
81ecdfbb 9437if ac_fn_c_try_link "$LINENO"; then :
4edb1e84 9438 am_cv_lib_iconv=yes
6c7a06a3 9439 am_cv_func_iconv=yes
627af7ea 9440fi
81ecdfbb
RW
9441rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
6c7a06a3 9443 LIBS="$am_save_LIBS"
fc3b640d 9444 CPPFLAGS="$am_save_CPPFLAGS"
6c7a06a3
TT
9445 fi
9446
9447fi
81ecdfbb
RW
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9449$as_echo "$am_cv_func_iconv" >&6; }
94ae1714
TT
9450
9451 # Set the various flags based on the cache variables. We can't rely
9452 # on the flags to remain set from the above code, due to caching.
fc3b640d
TT
9453 LIBICONV=
9454 if test "$am_cv_lib_iconv" = yes; then
9455 LIBICONV="-liconv"
94ae1714
TT
9456 else
9457 LIBICONV_LIBDIR=
9458 LIBICONV_INCLUDE=
fc3b640d
TT
9459 fi
9460 if test "$am_cv_use_build_libiconv" = yes; then
f0f20949 9461 LIBICONV="$am_cv_build_libiconv_path"
f18c4681 9462 LIBICONV_LIBDIR=""
fc3b640d
TT
9463 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9464 fi
9465 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9466 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
94ae1714 9467
6c7a06a3
TT
9468 if test "$am_cv_func_iconv" = yes; then
9469
81ecdfbb 9470$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6c7a06a3 9471
81ecdfbb
RW
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9473$as_echo_n "checking for iconv declaration... " >&6; }
9474 if test "${am_cv_proto_iconv+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
6c7a06a3
TT
9476else
9477
81ecdfbb 9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4e70030
JB
9479/* end confdefs.h. */
9480
6c7a06a3
TT
9481#include <stdlib.h>
9482#include <iconv.h>
9483extern
b4e70030 9484#ifdef __cplusplus
6c7a06a3 9485"C"
b4e70030 9486#endif
6c7a06a3
TT
9487#if defined(__STDC__) || defined(__cplusplus)
9488size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9489#else
9490size_t iconv();
9491#endif
9492
b4e70030
JB
9493int
9494main ()
9495{
6c7a06a3 9496
b4e70030
JB
9497 ;
9498 return 0;
9499}
9500_ACEOF
81ecdfbb 9501if ac_fn_c_try_compile "$LINENO"; then :
6c7a06a3 9502 am_cv_proto_iconv_arg1=""
4e8d927d 9503else
81ecdfbb 9504 am_cv_proto_iconv_arg1="const"
b4e70030 9505fi
81ecdfbb 9506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6c7a06a3
TT
9507 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);"
9508fi
9509
9510 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
81ecdfbb 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6c7a06a3 9512 }$am_cv_proto_iconv" >&5
81ecdfbb
RW
9513$as_echo "${ac_t:-
9514 }$am_cv_proto_iconv" >&6; }
6c7a06a3
TT
9515
9516cat >>confdefs.h <<_ACEOF
9517#define ICONV_CONST $am_cv_proto_iconv_arg1
9518_ACEOF
9519
9520 fi
6c7a06a3
TT
9521
9522
9523# On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9524# There is a very specific comment in /usr/include/curses.h explaining that
9525# termcap routines built into libcurses must not be used.
9526#
9527# The symptoms we observed so far is GDB unexpectedly changing
9528# the terminal settings when tgetent is called - this is particularly
9529# visible as the output is missing carriage returns, and so rapidly
9530# becomes very hard to read.
9531#
9532# The readline configure script has already decided that libtermcap
9533# was enough for its purposes, and so decided to build readline using
9534# libtermcap. Since the TUI mode requires curses, building GDB with
9535# TUI enabled results in both libraries to be used at the same time,
9536# which is not allowed. This basically means that GDB with TUI is
9537# broken on alpha-osf.
9538
9539case $host_os in
6bcc772d
RO
9540 osf* )
9541 if test x"$enable_tui" = xyes; then
81ecdfbb 9542 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6c7a06a3 9543 fi
6bcc772d 9544 if test x"$enable_tui" = xauto; then
6c7a06a3
TT
9545 enable_tui=no
9546 fi
9547 ;;
9548esac
9549
cb01cfba 9550# For the TUI, we need enhanced curses functionality.
bd8a8e1b 9551if test x"$enable_tui" != xno; then
cb01cfba
JB
9552 prefer_curses=yes
9553fi
9554
9555curses_found=no
9556if test x"$prefer_curses" = xyes; then
9557 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9558 # curses library because the latter might not provide all the
9559 # functionality we need. However, this leads to problems on systems
9560 # where the linker searches /usr/local/lib, but the compiler doesn't
9561 # search /usr/local/include, if ncurses is installed in /usr/local. A
9562 # default installation of ncurses on alpha*-dec-osf* will lead to such
9563 # a situation.
81ecdfbb
RW
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9565$as_echo_n "checking for library containing waddstr... " >&6; }
9566if test "${ac_cv_search_waddstr+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
6c7a06a3
TT
9568else
9569 ac_func_search_save_LIBS=$LIBS
81ecdfbb 9570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6c7a06a3
TT
9571/* end confdefs.h. */
9572
81ecdfbb
RW
9573/* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
6c7a06a3
TT
9576#ifdef __cplusplus
9577extern "C"
9578#endif
6c7a06a3
TT
9579char waddstr ();
9580int
9581main ()
9582{
81ecdfbb 9583return waddstr ();
6c7a06a3
TT
9584 ;
9585 return 0;
9586}
9587_ACEOF
81ecdfbb
RW
9588for ac_lib in '' ncurses cursesX curses; do
9589 if test -z "$ac_lib"; then
9590 ac_res="none required"
9591 else
9592 ac_res=-l$ac_lib
9593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9594 fi
9595 if ac_fn_c_try_link "$LINENO"; then :
9596 ac_cv_search_waddstr=$ac_res
9597fi
9598rm -f core conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext
9600 if test "${ac_cv_search_waddstr+set}" = set; then :
9601 break
9602fi
9603done
9604if test "${ac_cv_search_waddstr+set}" = set; then :
9605
6c7a06a3 9606else
81ecdfbb
RW
9607 ac_cv_search_waddstr=no
9608fi
9609rm conftest.$ac_ext
9610LIBS=$ac_func_search_save_LIBS
9611fi
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9613$as_echo "$ac_cv_search_waddstr" >&6; }
9614ac_res=$ac_cv_search_waddstr
9615if test "$ac_res" != no; then :
9616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6c7a06a3
TT
9617
9618fi
9619
9620
cb01cfba
JB
9621 if test "$ac_cv_search_waddstr" != no; then
9622 curses_found=yes
9623 fi
9624fi
9625
9626# Check whether we should enable the TUI, but only do so if we really
9627# can.
9628if test x"$enable_tui" != xno; then
9629 if test -d $srcdir/tui; then
9630 if test "$curses_found" != no; then
6c7a06a3
TT
9631 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9632 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9633 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9634 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9635 CONFIG_ALL="${CONFIG_ALL} all-tui"
9636 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9637 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9638 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9639 else
9640 if test x"$enable_tui" = xyes; then
81ecdfbb 9641 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
6c7a06a3 9642 else
81ecdfbb
RW
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9644$as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6c7a06a3
TT
9645 fi
9646 fi
9647 fi
9648fi
9649
9650# Since GDB uses Readline, we need termcap functionality. In many
9651# cases this will be provided by the curses library, but some systems
9652# have a seperate termcap library, or no curses library at all.
9653
9654case $host_os in
9655 cygwin*)
9656 if test -d $srcdir/libtermcap; then
9657 LIBS="../libtermcap/libtermcap.a $LIBS"
9658 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9659 fi ;;
9660 go32* | *djgpp*)
9661 ac_cv_search_tgetent="none required"
9662 ;;
9663 *mingw32*)
9664 ac_cv_search_tgetent="none required"
9665 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9666 ;;
9667esac
9668
9669# These are the libraries checked by Readline.
81ecdfbb
RW
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9671$as_echo_n "checking for library containing tgetent... " >&6; }
9672if test "${ac_cv_search_tgetent+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
6c7a06a3
TT
9674else
9675 ac_func_search_save_LIBS=$LIBS
81ecdfbb 9676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6c7a06a3
TT
9677/* end confdefs.h. */
9678
81ecdfbb
RW
9679/* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
6c7a06a3
TT
9682#ifdef __cplusplus
9683extern "C"
9684#endif
6c7a06a3
TT
9685char tgetent ();
9686int
9687main ()
9688{
81ecdfbb 9689return tgetent ();
6c7a06a3
TT
9690 ;
9691 return 0;
9692}
9693_ACEOF
81ecdfbb
RW
9694for ac_lib in '' termcap tinfo curses ncurses; do
9695 if test -z "$ac_lib"; then
9696 ac_res="none required"
9697 else
9698 ac_res=-l$ac_lib
6c7a06a3 9699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
9700 fi
9701 if ac_fn_c_try_link "$LINENO"; then :
9702 ac_cv_search_tgetent=$ac_res
9703fi
9704rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext
9706 if test "${ac_cv_search_tgetent+set}" = set; then :
9707 break
9708fi
9709done
9710if test "${ac_cv_search_tgetent+set}" = set; then :
6c7a06a3 9711
6c7a06a3 9712else
81ecdfbb 9713 ac_cv_search_tgetent=no
6c7a06a3 9714fi
81ecdfbb 9715rm conftest.$ac_ext
6c7a06a3
TT
9716LIBS=$ac_func_search_save_LIBS
9717fi
81ecdfbb
RW
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9719$as_echo "$ac_cv_search_tgetent" >&6; }
9720ac_res=$ac_cv_search_tgetent
9721if test "$ac_res" != no; then :
9722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6c7a06a3 9723
06825bd1
MK
9724fi
9725
06825bd1 9726
bec39cab 9727if test "$ac_cv_search_tgetent" = no; then
81ecdfbb 9728 as_fn_error "no termcap library found" "$LINENO" 5
8ee53726
MK
9729fi
9730
3841debe 9731
81ecdfbb
RW
9732# Check whether --with-system-readline was given.
9733if test "${with_system_readline+set}" = set; then :
9734 withval=$with_system_readline;
9735fi
6a30b0a5 9736
6a30b0a5
AS
9737
9738if test "$with_system_readline" = yes; then
9739 READLINE=-lreadline
9740 READLINE_DEPS=
9741 READLINE_CFLAGS=
a71e0887
JK
9742
9743 # readline-6.0 started to use the name `_rl_echoing_p'.
9744 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9745
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9747$as_echo_n "checking for readline_echoing_p... " >&6; }
9748 save_LIBS=$LIBS
9749 LIBS="$LIBS $READLINE"
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751/* end confdefs.h. */
9752
9753int
9754main ()
9755{
9756extern int readline_echoing_p;
9757 return readline_echoing_p;
9758 ;
9759 return 0;
9760}
9761_ACEOF
9762if ac_fn_c_try_link "$LINENO"; then :
9763 READLINE_ECHOING_P=yes
9764else
9765 READLINE_ECHOING_P=no
9766
9767$as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9768
9769fi
9770rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 LIBS="$save_LIBS"
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9774$as_echo "$READLINE_ECHOING_P" >&6; }
6a30b0a5
AS
9775else
9776 READLINE='$(READLINE_DIR)/libreadline.a'
9777 READLINE_DEPS='$(READLINE)'
9778 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9779fi
9780
9781
9782
9783
9784
81ecdfbb
RW
9785# Check whether --with-expat was given.
9786if test "${with_expat+set}" = set; then :
9787 withval=$with_expat;
5c39566f
DJ
9788else
9789 with_expat=auto
81ecdfbb
RW
9790fi
9791
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9793$as_echo_n "checking whether to use expat... " >&6; }
9794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9795$as_echo "$with_expat" >&6; }
5c39566f
DJ
9796
9797if test "${with_expat}" = no; then
81ecdfbb
RW
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9799$as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
5c39566f
DJ
9800 HAVE_LIBEXPAT=no
9801else
9802
3841debe
DJ
9803 if test "X$prefix" = "XNONE"; then
9804 acl_final_prefix="$ac_default_prefix"
9805 else
9806 acl_final_prefix="$prefix"
9807 fi
9808 if test "X$exec_prefix" = "XNONE"; then
9809 acl_final_exec_prefix='${prefix}'
9810 else
9811 acl_final_exec_prefix="$exec_prefix"
9812 fi
9813 acl_save_prefix="$prefix"
9814 prefix="$acl_final_prefix"
9815 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9816 prefix="$acl_save_prefix"
9817
9818
81ecdfbb
RW
9819# Check whether --with-gnu-ld was given.
9820if test "${with_gnu_ld+set}" = set; then :
9821 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3841debe
DJ
9822else
9823 with_gnu_ld=no
81ecdfbb
RW
9824fi
9825
3841debe
DJ
9826# Prepare PATH_SEPARATOR.
9827# The user is always right.
9828if test "${PATH_SEPARATOR+set}" != set; then
9829 echo "#! /bin/sh" >conf$$.sh
9830 echo "exit 0" >>conf$$.sh
9831 chmod +x conf$$.sh
9832 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9833 PATH_SEPARATOR=';'
9834 else
9835 PATH_SEPARATOR=:
9836 fi
9837 rm -f conf$$.sh
9838fi
9839ac_prog=ld
9840if test "$GCC" = yes; then
9841 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9843$as_echo_n "checking for ld used by GCC... " >&6; }
3841debe
DJ
9844 case $host in
9845 *-*-mingw*)
9846 # gcc leaves a trailing carriage return which upsets mingw
9847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9848 *)
9849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9850 esac
9851 case $ac_prog in
9852 # Accept absolute paths.
9853 [\\/]* | [A-Za-z]:[\\/]*)
9854 re_direlt='/[^/][^/]*/\.\./'
9855 # Canonicalize the path of ld
9856 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9857 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9858 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9859 done
9860 test -z "$LD" && LD="$ac_prog"
9861 ;;
9862 "")
9863 # If it fails, then pretend we aren't using GCC.
9864 ac_prog=ld
9865 ;;
9866 *)
9867 # If it is relative, then search for the first ld in PATH.
9868 with_gnu_ld=unknown
9869 ;;
9870 esac
9871elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9873$as_echo_n "checking for GNU ld... " >&6; }
3841debe 9874else
81ecdfbb
RW
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9876$as_echo_n "checking for non-GNU ld... " >&6; }
3841debe 9877fi
81ecdfbb
RW
9878if test "${acl_cv_path_LD+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
3841debe
DJ
9880else
9881 if test -z "$LD"; then
9882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9883 for ac_dir in $PATH; do
9884 test -z "$ac_dir" && ac_dir=.
9885 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9886 acl_cv_path_LD="$ac_dir/$ac_prog"
9887 # Check to see if the program is GNU ld. I'd rather use --version,
9888 # but apparently some GNU ld's only accept -v.
9889 # Break only if it was the GNU/non-GNU ld that we prefer.
9890 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9891 test "$with_gnu_ld" != no && break
9892 else
9893 test "$with_gnu_ld" != yes && break
9894 fi
9895 fi
9896 done
9897 IFS="$ac_save_ifs"
9898else
9899 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9900fi
9901fi
9902
9903LD="$acl_cv_path_LD"
9904if test -n "$LD"; then
81ecdfbb
RW
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9906$as_echo "$LD" >&6; }
3841debe 9907else
81ecdfbb
RW
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909$as_echo "no" >&6; }
3841debe 9910fi
81ecdfbb
RW
9911test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9913$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9914if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9915 $as_echo_n "(cached) " >&6
3841debe
DJ
9916else
9917 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9918if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9919 acl_cv_prog_gnu_ld=yes
9920else
9921 acl_cv_prog_gnu_ld=no
9922fi
9923fi
81ecdfbb
RW
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9925$as_echo "$acl_cv_prog_gnu_ld" >&6; }
3841debe
DJ
9926with_gnu_ld=$acl_cv_prog_gnu_ld
9927
9928
9929
81ecdfbb
RW
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9931$as_echo_n "checking for shared library run path origin... " >&6; }
9932if test "${acl_cv_rpath+set}" = set; then :
9933 $as_echo_n "(cached) " >&6
3841debe
DJ
9934else
9935
9936 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9937 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9938 . ./conftest.sh
9939 rm -f ./conftest.sh
9940 acl_cv_rpath=done
9941
9942fi
81ecdfbb
RW
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9944$as_echo "$acl_cv_rpath" >&6; }
3841debe
DJ
9945 wl="$acl_cv_wl"
9946 libext="$acl_cv_libext"
9947 shlibext="$acl_cv_shlibext"
9948 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9949 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9950 hardcode_direct="$acl_cv_hardcode_direct"
9951 hardcode_minus_L="$acl_cv_hardcode_minus_L"
81ecdfbb
RW
9952 # Check whether --enable-rpath was given.
9953if test "${enable_rpath+set}" = set; then :
9954 enableval=$enable_rpath; :
3841debe
DJ
9955else
9956 enable_rpath=yes
81ecdfbb
RW
9957fi
9958
3841debe
DJ
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968 use_additional=yes
9969
9970 acl_save_prefix="$prefix"
9971 prefix="$acl_final_prefix"
9972 acl_save_exec_prefix="$exec_prefix"
9973 exec_prefix="$acl_final_exec_prefix"
9974
9975 eval additional_includedir=\"$includedir\"
9976 eval additional_libdir=\"$libdir\"
9977
9978 exec_prefix="$acl_save_exec_prefix"
9979 prefix="$acl_save_prefix"
9980
9981
81ecdfbb
RW
9982# Check whether --with-libexpat-prefix was given.
9983if test "${with_libexpat_prefix+set}" = set; then :
9984 withval=$with_libexpat_prefix;
3841debe
DJ
9985 if test "X$withval" = "Xno"; then
9986 use_additional=no
9987 else
9988 if test "X$withval" = "X"; then
9989
9990 acl_save_prefix="$prefix"
9991 prefix="$acl_final_prefix"
9992 acl_save_exec_prefix="$exec_prefix"
9993 exec_prefix="$acl_final_exec_prefix"
9994
9995 eval additional_includedir=\"$includedir\"
9996 eval additional_libdir=\"$libdir\"
9997
9998 exec_prefix="$acl_save_exec_prefix"
9999 prefix="$acl_save_prefix"
10000
10001 else
10002 additional_includedir="$withval/include"
10003 additional_libdir="$withval/lib"
10004 fi
10005 fi
10006
81ecdfbb
RW
10007fi
10008
3841debe
DJ
10009 LIBEXPAT=
10010 LTLIBEXPAT=
10011 INCEXPAT=
10012 rpathdirs=
10013 ltrpathdirs=
10014 names_already_handled=
10015 names_next_round='expat '
10016 while test -n "$names_next_round"; do
10017 names_this_round="$names_next_round"
10018 names_next_round=
10019 for name in $names_this_round; do
10020 already_handled=
10021 for n in $names_already_handled; do
10022 if test "$n" = "$name"; then
10023 already_handled=yes
10024 break
10025 fi
10026 done
10027 if test -z "$already_handled"; then
10028 names_already_handled="$names_already_handled $name"
10029 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10030 eval value=\"\$HAVE_LIB$uppername\"
10031 if test -n "$value"; then
10032 if test "$value" = yes; then
10033 eval value=\"\$LIB$uppername\"
10034 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10035 eval value=\"\$LTLIB$uppername\"
10036 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10037 else
10038 :
10039 fi
10040 else
10041 found_dir=
10042 found_la=
10043 found_so=
10044 found_a=
10045 if test $use_additional = yes; then
10046 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10047 found_dir="$additional_libdir"
10048 found_so="$additional_libdir/lib$name.$shlibext"
10049 if test -f "$additional_libdir/lib$name.la"; then
10050 found_la="$additional_libdir/lib$name.la"
10051 fi
10052 else
10053 if test -f "$additional_libdir/lib$name.$libext"; then
10054 found_dir="$additional_libdir"
10055 found_a="$additional_libdir/lib$name.$libext"
10056 if test -f "$additional_libdir/lib$name.la"; then
10057 found_la="$additional_libdir/lib$name.la"
10058 fi
10059 fi
10060 fi
10061 fi
10062 if test "X$found_dir" = "X"; then
10063 for x in $LDFLAGS $LTLIBEXPAT; do
10064
10065 acl_save_prefix="$prefix"
10066 prefix="$acl_final_prefix"
10067 acl_save_exec_prefix="$exec_prefix"
10068 exec_prefix="$acl_final_exec_prefix"
10069 eval x=\"$x\"
10070 exec_prefix="$acl_save_exec_prefix"
10071 prefix="$acl_save_prefix"
10072
10073 case "$x" in
10074 -L*)
10075 dir=`echo "X$x" | sed -e 's/^X-L//'`
10076 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10077 found_dir="$dir"
10078 found_so="$dir/lib$name.$shlibext"
10079 if test -f "$dir/lib$name.la"; then
10080 found_la="$dir/lib$name.la"
10081 fi
10082 else
10083 if test -f "$dir/lib$name.$libext"; then
10084 found_dir="$dir"
10085 found_a="$dir/lib$name.$libext"
10086 if test -f "$dir/lib$name.la"; then
10087 found_la="$dir/lib$name.la"
10088 fi
10089 fi
10090 fi
10091 ;;
10092 esac
10093 if test "X$found_dir" != "X"; then
10094 break
10095 fi
10096 done
10097 fi
10098 if test "X$found_dir" != "X"; then
10099 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10100 if test "X$found_so" != "X"; then
10101 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10102 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10103 else
10104 haveit=
10105 for x in $ltrpathdirs; do
10106 if test "X$x" = "X$found_dir"; then
10107 haveit=yes
10108 break
10109 fi
10110 done
10111 if test -z "$haveit"; then
10112 ltrpathdirs="$ltrpathdirs $found_dir"
10113 fi
10114 if test "$hardcode_direct" = yes; then
10115 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10116 else
10117 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10118 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10119 haveit=
10120 for x in $rpathdirs; do
10121 if test "X$x" = "X$found_dir"; then
10122 haveit=yes
10123 break
10124 fi
10125 done
10126 if test -z "$haveit"; then
10127 rpathdirs="$rpathdirs $found_dir"
10128 fi
10129 else
10130 haveit=
10131 for x in $LDFLAGS $LIBEXPAT; do
10132
10133 acl_save_prefix="$prefix"
10134 prefix="$acl_final_prefix"
10135 acl_save_exec_prefix="$exec_prefix"
10136 exec_prefix="$acl_final_exec_prefix"
10137 eval x=\"$x\"
10138 exec_prefix="$acl_save_exec_prefix"
10139 prefix="$acl_save_prefix"
10140
10141 if test "X$x" = "X-L$found_dir"; then
10142 haveit=yes
10143 break
10144 fi
10145 done
10146 if test -z "$haveit"; then
10147 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10148 fi
10149 if test "$hardcode_minus_L" != no; then
10150 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10151 else
10152 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10153 fi
10154 fi
10155 fi
10156 fi
10157 else
10158 if test "X$found_a" != "X"; then
10159 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10160 else
10161 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10162 fi
10163 fi
10164 additional_includedir=
10165 case "$found_dir" in
10166 */lib | */lib/)
10167 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10168 additional_includedir="$basedir/include"
10169 ;;
10170 esac
10171 if test "X$additional_includedir" != "X"; then
10172 if test "X$additional_includedir" != "X/usr/include"; then
10173 haveit=
10174 if test "X$additional_includedir" = "X/usr/local/include"; then
10175 if test -n "$GCC"; then
10176 case $host_os in
10177 linux*) haveit=yes;;
10178 esac
10179 fi
10180 fi
10181 if test -z "$haveit"; then
10182 for x in $CPPFLAGS $INCEXPAT; do
10183
10184 acl_save_prefix="$prefix"
10185 prefix="$acl_final_prefix"
10186 acl_save_exec_prefix="$exec_prefix"
10187 exec_prefix="$acl_final_exec_prefix"
10188 eval x=\"$x\"
10189 exec_prefix="$acl_save_exec_prefix"
10190 prefix="$acl_save_prefix"
10191
10192 if test "X$x" = "X-I$additional_includedir"; then
10193 haveit=yes
10194 break
10195 fi
10196 done
10197 if test -z "$haveit"; then
10198 if test -d "$additional_includedir"; then
10199 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10200 fi
10201 fi
10202 fi
10203 fi
10204 fi
10205 if test -n "$found_la"; then
10206 save_libdir="$libdir"
10207 case "$found_la" in
10208 */* | *\\*) . "$found_la" ;;
10209 *) . "./$found_la" ;;
10210 esac
10211 libdir="$save_libdir"
10212 for dep in $dependency_libs; do
10213 case "$dep" in
10214 -L*)
10215 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10216 if test "X$additional_libdir" != "X/usr/lib"; then
10217 haveit=
10218 if test "X$additional_libdir" = "X/usr/local/lib"; then
10219 if test -n "$GCC"; then
10220 case $host_os in
10221 linux*) haveit=yes;;
10222 esac
10223 fi
10224 fi
10225 if test -z "$haveit"; then
10226 haveit=
10227 for x in $LDFLAGS $LIBEXPAT; do
10228
10229 acl_save_prefix="$prefix"
10230 prefix="$acl_final_prefix"
10231 acl_save_exec_prefix="$exec_prefix"
10232 exec_prefix="$acl_final_exec_prefix"
10233 eval x=\"$x\"
10234 exec_prefix="$acl_save_exec_prefix"
10235 prefix="$acl_save_prefix"
10236
10237 if test "X$x" = "X-L$additional_libdir"; then
10238 haveit=yes
10239 break
10240 fi
10241 done
10242 if test -z "$haveit"; then
10243 if test -d "$additional_libdir"; then
10244 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10245 fi
10246 fi
10247 haveit=
10248 for x in $LDFLAGS $LTLIBEXPAT; do
10249
10250 acl_save_prefix="$prefix"
10251 prefix="$acl_final_prefix"
10252 acl_save_exec_prefix="$exec_prefix"
10253 exec_prefix="$acl_final_exec_prefix"
10254 eval x=\"$x\"
10255 exec_prefix="$acl_save_exec_prefix"
10256 prefix="$acl_save_prefix"
10257
10258 if test "X$x" = "X-L$additional_libdir"; then
10259 haveit=yes
10260 break
10261 fi
10262 done
10263 if test -z "$haveit"; then
10264 if test -d "$additional_libdir"; then
10265 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10266 fi
10267 fi
10268 fi
10269 fi
10270 ;;
10271 -R*)
10272 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10273 if test "$enable_rpath" != no; then
10274 haveit=
10275 for x in $rpathdirs; do
10276 if test "X$x" = "X$dir"; then
10277 haveit=yes
10278 break
10279 fi
10280 done
10281 if test -z "$haveit"; then
10282 rpathdirs="$rpathdirs $dir"
10283 fi
10284 haveit=
10285 for x in $ltrpathdirs; do
10286 if test "X$x" = "X$dir"; then
10287 haveit=yes
10288 break
10289 fi
10290 done
10291 if test -z "$haveit"; then
10292 ltrpathdirs="$ltrpathdirs $dir"
10293 fi
10294 fi
10295 ;;
10296 -l*)
10297 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10298 ;;
10299 *.la)
10300 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10301 ;;
10302 *)
10303 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10304 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10305 ;;
81ecdfbb
RW
10306 esac
10307 done
10308 fi
10309 else
10310 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10311 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10312 fi
10313 fi
10314 fi
10315 done
10316 done
10317 if test "X$rpathdirs" != "X"; then
10318 if test -n "$hardcode_libdir_separator"; then
10319 alldirs=
10320 for found_dir in $rpathdirs; do
10321 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10322 done
10323 acl_save_libdir="$libdir"
10324 libdir="$alldirs"
10325 eval flag=\"$hardcode_libdir_flag_spec\"
10326 libdir="$acl_save_libdir"
10327 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10328 else
10329 for found_dir in $rpathdirs; do
10330 acl_save_libdir="$libdir"
10331 libdir="$found_dir"
10332 eval flag=\"$hardcode_libdir_flag_spec\"
10333 libdir="$acl_save_libdir"
10334 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10335 done
10336 fi
10337 fi
10338 if test "X$ltrpathdirs" != "X"; then
10339 for found_dir in $ltrpathdirs; do
10340 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10341 done
10342 fi
a9322a30
TT
10343
10344
81ecdfbb 10345 ac_save_CPPFLAGS="$CPPFLAGS"
a9322a30 10346
81ecdfbb
RW
10347 for element in $INCEXPAT; do
10348 haveit=
10349 for x in $CPPFLAGS; do
a9322a30 10350
81ecdfbb
RW
10351 acl_save_prefix="$prefix"
10352 prefix="$acl_final_prefix"
10353 acl_save_exec_prefix="$exec_prefix"
10354 exec_prefix="$acl_final_exec_prefix"
10355 eval x=\"$x\"
10356 exec_prefix="$acl_save_exec_prefix"
10357 prefix="$acl_save_prefix"
a8111142 10358
81ecdfbb
RW
10359 if test "X$x" = "X$element"; then
10360 haveit=yes
10361 break
10362 fi
10363 done
10364 if test -z "$haveit"; then
10365 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10366 fi
10367 done
a9322a30
TT
10368
10369
81ecdfbb
RW
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10371$as_echo_n "checking for libexpat... " >&6; }
10372if test "${ac_cv_libexpat+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
bec39cab 10374else
bec39cab 10375
81ecdfbb
RW
10376 ac_save_LIBS="$LIBS"
10377 LIBS="$LIBS $LIBEXPAT"
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 10379/* end confdefs.h. */
81ecdfbb
RW
10380#include "expat.h"
10381int
10382main ()
10383{
10384XML_Parser p = XML_ParserCreate (0);
10385 ;
10386 return 0;
10387}
bec39cab 10388_ACEOF
81ecdfbb
RW
10389if ac_fn_c_try_link "$LINENO"; then :
10390 ac_cv_libexpat=yes
c906108c 10391else
81ecdfbb 10392 ac_cv_libexpat=no
bec39cab 10393fi
81ecdfbb
RW
10394rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396 LIBS="$ac_save_LIBS"
c906108c 10397
95ca63c4 10398fi
81ecdfbb
RW
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10400$as_echo "$ac_cv_libexpat" >&6; }
10401 if test "$ac_cv_libexpat" = yes; then
10402 HAVE_LIBEXPAT=yes
bec39cab 10403
81ecdfbb 10404$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
bec39cab 10405
81ecdfbb
RW
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10407$as_echo_n "checking how to link with libexpat... " >&6; }
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10409$as_echo "$LIBEXPAT" >&6; }
10410 else
10411 HAVE_LIBEXPAT=no
10412 CPPFLAGS="$ac_save_CPPFLAGS"
10413 LIBEXPAT=
10414 LTLIBEXPAT=
10415 fi
95ca63c4
CF
10416
10417
10418
7cb9022a
MK
10419
10420
bec39cab 10421
81ecdfbb
RW
10422 if test "$HAVE_LIBEXPAT" != yes; then
10423 if test "$with_expat" = yes; then
10424 as_fn_error "expat is missing or unusable" "$LINENO" 5
10425 else
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10427$as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10428 fi
10429 else
10430 save_LIBS=$LIBS
10431 LIBS="$LIBS $LIBEXPAT"
10432 for ac_func in XML_StopParser
10433do :
10434 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10435if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
bec39cab 10436 cat >>confdefs.h <<_ACEOF
81ecdfbb 10437#define HAVE_XML_STOPPARSER 1
bec39cab 10438_ACEOF
95ca63c4 10439
bec39cab 10440fi
bec39cab 10441done
95ca63c4 10442
81ecdfbb
RW
10443 LIBS=$save_LIBS
10444 fi
a9322a30
TT
10445fi
10446
a9322a30 10447
a9322a30
TT
10448
10449
ec685c5e 10450
0c4a4063 10451
81ecdfbb
RW
10452# Check whether --with-python was given.
10453if test "${with_python+set}" = set; then :
10454 withval=$with_python;
bec39cab 10455else
81ecdfbb 10456 with_python=auto
bec39cab 10457fi
bec39cab 10458
81ecdfbb
RW
10459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10460$as_echo_n "checking whether to use python... " >&6; }
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10462$as_echo "$with_python" >&6; }
9a156167 10463
81ecdfbb
RW
10464if test "${with_python}" = no; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10466$as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10467 have_libpython=no
bec39cab 10468else
81ecdfbb 10469 case "${with_python}" in
81ecdfbb 10470 /*)
ec685c5e
DE
10471 if test -d ${with_python}; then
10472 # Assume the python binary is ${with_python}/bin/python.
ec685c5e 10473 python_prog="${with_python}/bin/python"
0c4a4063 10474 python_prefix=
e7a30f46 10475 if test ! -x "${python_prog}"; then
ec685c5e
DE
10476 # Fall back to gdb 7.0/7.1 behaviour.
10477 python_prog=missing
0c4a4063 10478 python_prefix=${with_python}
ec685c5e 10479 fi
e7a30f46 10480 elif test -x "${with_python}"; then
ec685c5e
DE
10481 # While we can't run python compiled for $host (unless host == build),
10482 # the user could write a script that provides the needed information,
10483 # so we support that.
ec685c5e 10484 python_prog=${with_python}
0c4a4063 10485 python_prefix=
ec685c5e
DE
10486 else
10487 as_fn_error "invalid value for --with-python" "$LINENO" 5
10488 fi
81ecdfbb 10489 ;;
ec685c5e
DE
10490 */*)
10491 # Disallow --with-python=foo/bar.
81ecdfbb
RW
10492 as_fn_error "invalid value for --with-python" "$LINENO" 5
10493 ;;
ec685c5e
DE
10494 *)
10495 # The user has either specified auto, yes, or the name of the python
10496 # program assumed to be in $PATH.
10497 python_prefix=
10498 case "${with_python}" in
10499 yes | auto)
10500 if test ${build} = ${host}; then
10501 # Extract the first word of "python", so it can be a program name with args.
10502set dummy python; ac_word=$2
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504$as_echo_n "checking for $ac_word... " >&6; }
10505if test "${ac_cv_path_python_prog_path+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10507else
10508 case $python_prog_path in
10509 [\\/]* | ?:[\\/]*)
10510 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10511 ;;
10512 *)
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514for as_dir in $PATH
10515do
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10520 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 break 2
10523 fi
10524done
10525 done
10526IFS=$as_save_IFS
10527
10528 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10529 ;;
10530esac
10531fi
10532python_prog_path=$ac_cv_path_python_prog_path
10533if test -n "$python_prog_path"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10535$as_echo "$python_prog_path" >&6; }
10536else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538$as_echo "no" >&6; }
10539fi
10540
10541
10542 if test "${python_prog_path}" = missing; then
10543 python_prog=missing
10544 else
10545 python_prog=${python_prog_path}
10546 fi
10547 else
10548 # Not much we can do except assume the cross-compiler will find the
10549 # right files.
10550 python_prog=missing
10551 fi
10552 ;;
10553 *)
10554 # While we can't run python compiled for $host (unless host == build),
10555 # the user could write a script that provides the needed information,
10556 # so we support that.
10557 python_prog="${with_python}"
10558 # Extract the first word of "${python_prog}", so it can be a program name with args.
10559set dummy ${python_prog}; ac_word=$2
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561$as_echo_n "checking for $ac_word... " >&6; }
10562if test "${ac_cv_path_python_prog_path+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10564else
10565 case $python_prog_path in
10566 [\\/]* | ?:[\\/]*)
10567 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10568 ;;
10569 *)
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571for as_dir in $PATH
10572do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10577 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 break 2
10580 fi
10581done
10582 done
10583IFS=$as_save_IFS
10584
10585 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10586 ;;
10587esac
10588fi
10589python_prog_path=$ac_cv_path_python_prog_path
10590if test -n "$python_prog_path"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10592$as_echo "$python_prog_path" >&6; }
10593else
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595$as_echo "no" >&6; }
10596fi
10597
10598
10599 if test "${python_prog_path}" = missing; then
10600 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10601 fi
10602 ;;
10603 esac
81ecdfbb
RW
10604 esac
10605
ec685c5e 10606 if test "${python_prog}" != missing; then
e7a30f46
DE
10607 # We have a python program to use, but it may be too old.
10608 # Don't flag an error for --with-python=auto (the default).
10609 have_python_config=yes
ec685c5e
DE
10610 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10611 if test $? != 0; then
e7a30f46
DE
10612 have_python_config=failed
10613 if test "${with_python}" != auto; then
10614 as_fn_error "failure running python-config --includes" "$LINENO" 5
10615 fi
ec685c5e
DE
10616 fi
10617 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10618 if test $? != 0; then
e7a30f46
DE
10619 have_python_config=failed
10620 if test "${with_python}" != auto; then
10621 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10622 fi
ec685c5e 10623 fi
0c4a4063
DE
10624 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10625 if test $? != 0; then
e7a30f46
DE
10626 have_python_config=failed
10627 if test "${with_python}" != auto; then
10628 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10629 fi
0c4a4063 10630 fi
ec685c5e
DE
10631 else
10632 # Fall back to gdb 7.0/7.1 behaviour.
10633 if test -z ${python_prefix}; then
10634 python_includes=
10635 python_libs=
10636 else
10637 python_includes="-I${python_prefix}/include"
10638 python_libs="-L${python_prefix}/lib"
10639 fi
0c4a4063 10640 have_python_config=no
ec685c5e 10641 fi
bec39cab 10642
ec685c5e
DE
10643 # Having "/pythonX.Y" in the include path is awkward.
10644 # All those python headers get bubbled up to the top inviting lots
10645 # of random collisions. GDB originally didn't use python-config to
10646 # find the compilation parameters and includes "pythonX.Y/" in the
10647 # path of the, umm, include file. So strip away this part of the
10648 # output of python-config --includes.
10649 python_includes=`echo "${python_includes} " \
0c4a4063 10650 | sed -e 's,/python[0-9]*[.][0-9]* , ,g'`
bec39cab 10651
ec685c5e
DE
10652 # If we have python-config, only try the configuration it provides.
10653 # Otherwise fallback on the old way of trying different versions of
10654 # python in turn.
81ecdfbb 10655
ec685c5e
DE
10656 have_libpython=no
10657 if test "${have_python_config}" = yes; then
10658 python_version=`echo " ${python_libs} " \
0c4a4063
DE
10659 | sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\) .*$,\1,'`
10660 case "${python_version}" in
10661 python*)
ec685c5e
DE
10662
10663 version=${python_version}
10664
10665 new_CPPFLAGS=${python_includes}
10666 new_LIBS=${python_libs}
81ecdfbb
RW
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10668$as_echo_n "checking for ${version}... " >&6; }
ec685c5e 10669 save_CPPFLAGS=$CPPFLAGS
81ecdfbb 10670 save_LIBS=$LIBS
ec685c5e
DE
10671 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10672 LIBS="$LIBS $new_LIBS"
10673 found_usable_python=no
81ecdfbb 10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 10675/* end confdefs.h. */
81ecdfbb
RW
10676#include "${version}/Python.h"
10677int
10678main ()
10679{
10680Py_Initialize ();
10681 ;
10682 return 0;
10683}
bec39cab 10684_ACEOF
81ecdfbb 10685if ac_fn_c_try_link "$LINENO"; then :
ec685c5e
DE
10686 have_libpython=${version}
10687 found_usable_python=yes
bec39cab 10688else
ec685c5e
DE
10689 CPPFLAGS=$save_CPPFLAGS
10690 LIBS=$save_LIBS
9a156167 10691fi
81ecdfbb
RW
10692rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
ec685c5e
DE
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10695$as_echo "${found_usable_python}" >&6; }
9a156167 10696
0c4a4063
DE
10697 ;;
10698 *)
ec685c5e 10699 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
0c4a4063
DE
10700 ;;
10701 esac
e7a30f46 10702 elif test "${have_python_config}" != failed; then
ec685c5e 10703 if test "${have_libpython}" = no; then
9a156167 10704
420697bb
TT
10705 version=python2.7
10706
10707 new_CPPFLAGS=${python_includes}
10708 new_LIBS="${python_libs} -lpython2.7"
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10710$as_echo_n "checking for ${version}... " >&6; }
10711 save_CPPFLAGS=$CPPFLAGS
10712 save_LIBS=$LIBS
10713 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10714 LIBS="$LIBS $new_LIBS"
10715 found_usable_python=no
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717/* end confdefs.h. */
10718#include "${version}/Python.h"
10719int
10720main ()
10721{
10722Py_Initialize ();
10723 ;
10724 return 0;
10725}
10726_ACEOF
10727if ac_fn_c_try_link "$LINENO"; then :
10728 have_libpython=${version}
10729 found_usable_python=yes
10730else
10731 CPPFLAGS=$save_CPPFLAGS
10732 LIBS=$save_LIBS
10733fi
10734rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10737$as_echo "${found_usable_python}" >&6; }
10738
10739 fi
10740 if test "${have_libpython}" = no; then
10741
ec685c5e
DE
10742 version=python2.6
10743
10744 new_CPPFLAGS=${python_includes}
10745 new_LIBS="${python_libs} -lpython2.6"
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10747$as_echo_n "checking for ${version}... " >&6; }
10748 save_CPPFLAGS=$CPPFLAGS
10749 save_LIBS=$LIBS
10750 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10751 LIBS="$LIBS $new_LIBS"
10752 found_usable_python=no
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754/* end confdefs.h. */
10755#include "${version}/Python.h"
10756int
10757main ()
10758{
10759Py_Initialize ();
10760 ;
10761 return 0;
10762}
10763_ACEOF
10764if ac_fn_c_try_link "$LINENO"; then :
10765 have_libpython=${version}
10766 found_usable_python=yes
10767else
10768 CPPFLAGS=$save_CPPFLAGS
10769 LIBS=$save_LIBS
10770fi
10771rm -f core conftest.err conftest.$ac_objext \
10772 conftest$ac_exeext conftest.$ac_ext
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10774$as_echo "${found_usable_python}" >&6; }
9a156167 10775
81ecdfbb 10776 fi
ec685c5e 10777 if test ${have_libpython} = no; then
9a156167 10778
81ecdfbb 10779 version=python2.5
9a156167 10780
ec685c5e
DE
10781 new_CPPFLAGS=${python_includes}
10782 new_LIBS="${python_libs} -lpython2.5"
81ecdfbb
RW
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10784$as_echo_n "checking for ${version}... " >&6; }
ec685c5e 10785 save_CPPFLAGS=$CPPFLAGS
81ecdfbb 10786 save_LIBS=$LIBS
ec685c5e
DE
10787 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10788 LIBS="$LIBS $new_LIBS"
10789 found_usable_python=no
81ecdfbb 10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
436868fb 10791/* end confdefs.h. */
81ecdfbb
RW
10792#include "${version}/Python.h"
10793int
10794main ()
10795{
10796Py_Initialize ();
10797 ;
10798 return 0;
10799}
436868fb 10800_ACEOF
81ecdfbb 10801if ac_fn_c_try_link "$LINENO"; then :
ec685c5e
DE
10802 have_libpython=${version}
10803 found_usable_python=yes
436868fb 10804else
ec685c5e
DE
10805 CPPFLAGS=$save_CPPFLAGS
10806 LIBS=$save_LIBS
436868fb 10807fi
81ecdfbb
RW
10808rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
ec685c5e
DE
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10811$as_echo "${found_usable_python}" >&6; }
a9322a30 10812
81ecdfbb 10813 fi
ec685c5e 10814 if test ${have_libpython} = no; then
a9322a30 10815
81ecdfbb 10816 version=python2.4
a9322a30 10817
ec685c5e
DE
10818 new_CPPFLAGS=${python_includes}
10819 new_LIBS="${python_libs} -lpython2.4"
81ecdfbb
RW
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10821$as_echo_n "checking for ${version}... " >&6; }
ec685c5e 10822 save_CPPFLAGS=$CPPFLAGS
81ecdfbb 10823 save_LIBS=$LIBS
ec685c5e
DE
10824 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10825 LIBS="$LIBS $new_LIBS"
10826 found_usable_python=no
81ecdfbb 10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
436868fb 10828/* end confdefs.h. */
81ecdfbb 10829#include "${version}/Python.h"
a9322a30
TT
10830int
10831main ()
10832{
81ecdfbb 10833Py_Initialize ();
a9322a30
TT
10834 ;
10835 return 0;
10836}
436868fb 10837_ACEOF
81ecdfbb 10838if ac_fn_c_try_link "$LINENO"; then :
ec685c5e
DE
10839 have_libpython=${version}
10840 found_usable_python=yes
436868fb 10841else
ec685c5e
DE
10842 CPPFLAGS=$save_CPPFLAGS
10843 LIBS=$save_LIBS
436868fb 10844fi
81ecdfbb
RW
10845rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
ec685c5e
DE
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10848$as_echo "${found_usable_python}" >&6; }
81ecdfbb 10849
ec685c5e
DE
10850 fi
10851 fi
11763c18
TT
10852 if test "${have_libpython}" = python2.7; then
10853
10854$as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10855
10856 elif test "${have_libpython}" = python2.6; then
ec685c5e
DE
10857
10858$as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10859
10860 elif test "${have_libpython}" = python2.5; then
10861
10862$as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10863
10864 elif test "${have_libpython}" = python2.4; then
81ecdfbb
RW
10865
10866$as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10867
81ecdfbb 10868 fi
ec685c5e
DE
10869
10870 if test "${have_libpython}" = no; then
81ecdfbb
RW
10871 case "${with_python}" in
10872 yes)
10873 as_fn_error "python is missing or unusable" "$LINENO" 5
10874 ;;
10875 auto)
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10877$as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10878 ;;
10879 *)
10880 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10881 ;;
10882 esac
0c4a4063
DE
10883 else
10884 if test -n "${python_prefix}"; then
10885
10886cat >>confdefs.h <<_ACEOF
10887#define WITH_PYTHON_PATH "${python_prefix}"
10888_ACEOF
10889
10890
10891 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10892 if test "x$prefix" = xNONE; then
10893 test_prefix=/usr/local
10894 else
10895 test_prefix=$prefix
10896 fi
10897 else
10898 test_prefix=$exec_prefix
10899 fi
10900 value=0
10901 case ${python_prefix} in
10902 "${test_prefix}"|"${test_prefix}/"*|\
10903 '${exec_prefix}'|'${exec_prefix}/'*)
10904 value=1
10905 ;;
10906 esac
10907
10908cat >>confdefs.h <<_ACEOF
10909#define PYTHON_PATH_RELOCATABLE $value
10910_ACEOF
10911
10912
10913 fi
81ecdfbb 10914 fi
436868fb 10915fi
436868fb 10916
ec685c5e 10917if test "${have_libpython}" != no; then
436868fb 10918
81ecdfbb 10919$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
436868fb 10920
81ecdfbb
RW
10921 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10922 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10923 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
94f7449c 10924 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
81ecdfbb 10925 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
436868fb 10926
81ecdfbb
RW
10927 # Flags needed to compile Python code (taken from python-config --cflags).
10928 # We cannot call python-config directly because it will output whatever was
10929 # used when compiling the Python interpreter itself, including flags which
10930 # would make the python-related objects be compiled differently from the
10931 # rest of GDB (e.g., -O2 and -fPIC).
10932 if test "${GCC}" = yes; then
10933 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10934 fi
436868fb 10935
81ecdfbb
RW
10936 if test "x${tentative_python_cflags}" != x; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10938$as_echo_n "checking compiler flags for python code... " >&6; }
10939 for flag in ${tentative_python_cflags}; do
10940 # Check that the compiler accepts it
10941 saved_CFLAGS="$CFLAGS"
10942 CFLAGS="$CFLAGS $flag"
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 10944/* end confdefs.h. */
81ecdfbb 10945
a9322a30
TT
10946int
10947main ()
10948{
a9322a30
TT
10949
10950 ;
10951 return 0;
10952}
bec39cab 10953_ACEOF
81ecdfbb
RW
10954if ac_fn_c_try_compile "$LINENO"; then :
10955 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
bec39cab 10956fi
81ecdfbb
RW
10957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 CFLAGS="$saved_CFLAGS"
10959 done
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10961$as_echo "${PYTHON_CFLAGS}" >&6; }
10962 fi
10963else
10964 # Even if Python support is not compiled in, we need to have these files
88a1906b
DE
10965 # included.
10966 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10967 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
10968 python/py-prettyprint.c python/py-auto-load.c"
a9322a30 10969fi
9a156167 10970
9a156167 10971
81ecdfbb
RW
10972# ------------------------- #
10973# Checks for header files. #
10974# ------------------------- #
c890192f 10975
81ecdfbb
RW
10976ac_header_dirent=no
10977for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10978 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10980$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10982 $as_echo_n "(cached) " >&6
bec39cab 10983else
81ecdfbb 10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 10985/* end confdefs.h. */
81ecdfbb
RW
10986#include <sys/types.h>
10987#include <$ac_hdr>
10988
a9322a30
TT
10989int
10990main ()
10991{
81ecdfbb
RW
10992if ((DIR *) 0)
10993return 0;
a9322a30
TT
10994 ;
10995 return 0;
10996}
bec39cab 10997_ACEOF
81ecdfbb
RW
10998if ac_fn_c_try_compile "$LINENO"; then :
10999 eval "$as_ac_Header=yes"
bec39cab 11000else
81ecdfbb 11001 eval "$as_ac_Header=no"
bec39cab 11002fi
81ecdfbb 11003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a9322a30 11004fi
81ecdfbb
RW
11005eval ac_res=\$$as_ac_Header
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11007$as_echo "$ac_res" >&6; }
11008eval as_val=\$$as_ac_Header
11009 if test "x$as_val" = x""yes; then :
11010 cat >>confdefs.h <<_ACEOF
11011#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
bec39cab 11012_ACEOF
bec39cab 11013
81ecdfbb
RW
11014ac_header_dirent=$ac_hdr; break
11015fi
bec39cab 11016
81ecdfbb
RW
11017done
11018# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11019if test $ac_header_dirent = dirent.h; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11021$as_echo_n "checking for library containing opendir... " >&6; }
11022if test "${ac_cv_search_opendir+set}" = set; then :
11023 $as_echo_n "(cached) " >&6
c890192f 11024else
81ecdfbb
RW
11025 ac_func_search_save_LIBS=$LIBS
11026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027/* end confdefs.h. */
11028
11029/* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
11032#ifdef __cplusplus
11033extern "C"
11034#endif
11035char opendir ();
11036int
11037main ()
11038{
11039return opendir ();
11040 ;
11041 return 0;
11042}
bec39cab 11043_ACEOF
81ecdfbb
RW
11044for ac_lib in '' dir; do
11045 if test -z "$ac_lib"; then
11046 ac_res="none required"
11047 else
11048 ac_res=-l$ac_lib
11049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11050 fi
11051 if ac_fn_c_try_link "$LINENO"; then :
11052 ac_cv_search_opendir=$ac_res
11053fi
11054rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext
11056 if test "${ac_cv_search_opendir+set}" = set; then :
11057 break
11058fi
11059done
11060if test "${ac_cv_search_opendir+set}" = set; then :
c890192f 11061
81ecdfbb
RW
11062else
11063 ac_cv_search_opendir=no
11064fi
11065rm conftest.$ac_ext
11066LIBS=$ac_func_search_save_LIBS
11067fi
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11069$as_echo "$ac_cv_search_opendir" >&6; }
11070ac_res=$ac_cv_search_opendir
11071if test "$ac_res" != no; then :
11072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
bec39cab 11073
bec39cab 11074fi
81ecdfbb 11075
bec39cab 11076else
81ecdfbb
RW
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11078$as_echo_n "checking for library containing opendir... " >&6; }
11079if test "${ac_cv_search_opendir+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
11081else
11082 ac_func_search_save_LIBS=$LIBS
11083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11084/* end confdefs.h. */
81ecdfbb
RW
11085
11086/* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11089#ifdef __cplusplus
11090extern "C"
11091#endif
11092char opendir ();
a9322a30
TT
11093int
11094main ()
11095{
81ecdfbb 11096return opendir ();
a9322a30
TT
11097 ;
11098 return 0;
11099}
bec39cab 11100_ACEOF
81ecdfbb
RW
11101for ac_lib in '' x; do
11102 if test -z "$ac_lib"; then
11103 ac_res="none required"
11104 else
11105 ac_res=-l$ac_lib
11106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11107 fi
11108 if ac_fn_c_try_link "$LINENO"; then :
11109 ac_cv_search_opendir=$ac_res
11110fi
11111rm -f core conftest.err conftest.$ac_objext \
11112 conftest$ac_exeext
11113 if test "${ac_cv_search_opendir+set}" = set; then :
11114 break
11115fi
11116done
11117if test "${ac_cv_search_opendir+set}" = set; then :
bec39cab 11118
81ecdfbb
RW
11119else
11120 ac_cv_search_opendir=no
bec39cab 11121fi
81ecdfbb
RW
11122rm conftest.$ac_ext
11123LIBS=$ac_func_search_save_LIBS
a9322a30 11124fi
81ecdfbb
RW
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11126$as_echo "$ac_cv_search_opendir" >&6; }
11127ac_res=$ac_cv_search_opendir
11128if test "$ac_res" != no; then :
11129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
bec39cab 11130
81ecdfbb 11131fi
bec39cab 11132
81ecdfbb 11133fi
bec39cab 11134
81ecdfbb
RW
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11136$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11137if test "${ac_cv_header_stat_broken+set}" = set; then :
11138 $as_echo_n "(cached) " >&6
9a156167 11139else
81ecdfbb
RW
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141/* end confdefs.h. */
11142#include <sys/types.h>
11143#include <sys/stat.h>
11144
11145#if defined S_ISBLK && defined S_IFDIR
11146extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11147#endif
11148
11149#if defined S_ISBLK && defined S_IFCHR
11150extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11151#endif
11152
11153#if defined S_ISLNK && defined S_IFREG
11154extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11155#endif
11156
11157#if defined S_ISSOCK && defined S_IFREG
11158extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11159#endif
11160
bec39cab 11161_ACEOF
81ecdfbb
RW
11162if ac_fn_c_try_compile "$LINENO"; then :
11163 ac_cv_header_stat_broken=no
11164else
11165 ac_cv_header_stat_broken=yes
11166fi
11167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11168fi
11169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11170$as_echo "$ac_cv_header_stat_broken" >&6; }
11171if test $ac_cv_header_stat_broken = yes; then
9a156167 11172
81ecdfbb 11173$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
06825bd1 11174
bec39cab 11175fi
81ecdfbb
RW
11176
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11178$as_echo_n "checking for ANSI C header files... " >&6; }
11179if test "${ac_cv_header_stdc+set}" = set; then :
11180 $as_echo_n "(cached) " >&6
bec39cab 11181else
81ecdfbb 11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11183/* end confdefs.h. */
81ecdfbb
RW
11184#include <stdlib.h>
11185#include <stdarg.h>
11186#include <string.h>
11187#include <float.h>
11188
a9322a30
TT
11189int
11190main ()
11191{
a9322a30
TT
11192
11193 ;
11194 return 0;
11195}
bec39cab 11196_ACEOF
81ecdfbb
RW
11197if ac_fn_c_try_compile "$LINENO"; then :
11198 ac_cv_header_stdc=yes
bec39cab 11199else
81ecdfbb 11200 ac_cv_header_stdc=no
a9322a30 11201fi
81ecdfbb 11202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 11203
81ecdfbb
RW
11204if test $ac_cv_header_stdc = yes; then
11205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207/* end confdefs.h. */
11208#include <string.h>
bec39cab 11209
81ecdfbb
RW
11210_ACEOF
11211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11212 $EGREP "memchr" >/dev/null 2>&1; then :
bec39cab 11213
bec39cab 11214else
81ecdfbb
RW
11215 ac_cv_header_stdc=no
11216fi
11217rm -f conftest*
11218
11219fi
11220
11221if test $ac_cv_header_stdc = yes; then
11222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224/* end confdefs.h. */
11225#include <stdlib.h>
11226
bec39cab 11227_ACEOF
81ecdfbb
RW
11228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11229 $EGREP "free" >/dev/null 2>&1; then :
06825bd1 11230
81ecdfbb
RW
11231else
11232 ac_cv_header_stdc=no
11233fi
11234rm -f conftest*
bec39cab 11235
bec39cab 11236fi
81ecdfbb
RW
11237
11238if test $ac_cv_header_stdc = yes; then
11239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11240 if test "$cross_compiling" = yes; then :
11241 :
bec39cab 11242else
81ecdfbb 11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11244/* end confdefs.h. */
81ecdfbb
RW
11245#include <ctype.h>
11246#include <stdlib.h>
11247#if ((' ' & 0x0FF) == 0x020)
11248# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11249# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11250#else
11251# define ISLOWER(c) \
11252 (('a' <= (c) && (c) <= 'i') \
11253 || ('j' <= (c) && (c) <= 'r') \
11254 || ('s' <= (c) && (c) <= 'z'))
11255# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11256#endif
11257
11258#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
a9322a30
TT
11259int
11260main ()
11261{
81ecdfbb
RW
11262 int i;
11263 for (i = 0; i < 256; i++)
11264 if (XOR (islower (i), ISLOWER (i))
11265 || toupper (i) != TOUPPER (i))
11266 return 2;
a9322a30
TT
11267 return 0;
11268}
bec39cab 11269_ACEOF
81ecdfbb
RW
11270if ac_fn_c_try_run "$LINENO"; then :
11271
bec39cab 11272else
81ecdfbb
RW
11273 ac_cv_header_stdc=no
11274fi
11275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11276 conftest.$ac_objext conftest.beam conftest.$ac_ext
11277fi
bec39cab 11278
bec39cab 11279fi
a9322a30 11280fi
81ecdfbb
RW
11281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11282$as_echo "$ac_cv_header_stdc" >&6; }
11283if test $ac_cv_header_stdc = yes; then
bec39cab 11284
81ecdfbb 11285$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5ee754fc 11286
81ecdfbb 11287fi
bec39cab 11288
81ecdfbb
RW
11289# elf_hp.h is for HP/UX 64-bit shared library support.
11290# FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11291# unconditionally, so what's the point in checking these?
11292for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11293 thread_db.h gnu/libc-version.h signal.h stddef.h \
11294 stdlib.h string.h memory.h strings.h sys/fault.h \
11295 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11296 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11297 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11298 sys/types.h sys/wait.h wait.h termios.h termio.h \
11299 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
11300do :
11301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11302ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11303eval as_val=\$$as_ac_Header
11304 if test "x$as_val" = x""yes; then :
bec39cab 11305 cat >>confdefs.h <<_ACEOF
81ecdfbb 11306#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 11307_ACEOF
c906108c 11308
bec39cab 11309fi
81ecdfbb
RW
11310
11311done
11312
11313for ac_header in link.h
11314do :
11315 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11316# include <sys/types.h>
11317#endif
11318#if HAVE_NLIST_H
11319# include <nlist.h>
a9322a30
TT
11320#endif
11321
81ecdfbb
RW
11322"
11323if test "x$ac_cv_header_link_h" = x""yes; then :
11324 cat >>confdefs.h <<_ACEOF
11325#define HAVE_LINK_H 1
bec39cab 11326_ACEOF
bec39cab 11327
a9322a30 11328fi
bec39cab 11329
81ecdfbb 11330done
c906108c 11331
81ecdfbb
RW
11332for ac_header in sys/proc.h
11333do :
11334 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11335# include <sys/param.h>
11336#endif
c906108c 11337
81ecdfbb
RW
11338"
11339if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
bec39cab 11340 cat >>confdefs.h <<_ACEOF
81ecdfbb 11341#define HAVE_SYS_PROC_H 1
bec39cab 11342_ACEOF
5ee754fc 11343
bec39cab 11344fi
81ecdfbb
RW
11345
11346done
11347
11348for ac_header in sys/user.h
11349do :
11350 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11351# include <sys/param.h>
a9322a30
TT
11352#endif
11353
81ecdfbb
RW
11354"
11355if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11356 cat >>confdefs.h <<_ACEOF
11357#define HAVE_SYS_USER_H 1
bec39cab 11358_ACEOF
bec39cab 11359
a9322a30 11360fi
bec39cab 11361
81ecdfbb 11362done
5ee754fc 11363
5ee754fc 11364
81ecdfbb
RW
11365# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11366# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11367# think that we don't have <curses.h> if we're using GCC.
11368case $host_os in
11369 solaris2.[789])
11370 if test "$GCC" = yes; then
11371
11372$as_echo "#define _MSE_INT_H 1" >>confdefs.h
11373
11374 fi ;;
11375esac
11376for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11377do :
11378 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11379ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11380eval as_val=\$$as_ac_Header
11381 if test "x$as_val" = x""yes; then :
bec39cab 11382 cat >>confdefs.h <<_ACEOF
81ecdfbb 11383#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 11384_ACEOF
5ee754fc
MK
11385
11386fi
11387
81ecdfbb 11388done
bec39cab 11389
81ecdfbb
RW
11390for ac_header in term.h
11391do :
11392 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11393# include <curses.h>
11394#endif
bec39cab 11395
81ecdfbb
RW
11396"
11397if test "x$ac_cv_header_term_h" = x""yes; then :
11398 cat >>confdefs.h <<_ACEOF
11399#define HAVE_TERM_H 1
a8111142 11400_ACEOF
a8111142 11401
a8111142 11402fi
a8111142 11403
81ecdfbb 11404done
a8111142
TT
11405
11406
81ecdfbb
RW
11407# ------------------------- #
11408# Checks for declarations. #
11409# ------------------------- #
a9322a30 11410
81ecdfbb
RW
11411ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11412if test "x$ac_cv_have_decl_free" = x""yes; then :
11413 ac_have_decl=1
bec39cab 11414else
81ecdfbb
RW
11415 ac_have_decl=0
11416fi
11417
11418cat >>confdefs.h <<_ACEOF
11419#define HAVE_DECL_FREE $ac_have_decl
bec39cab 11420_ACEOF
81ecdfbb
RW
11421ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11422if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11423 ac_have_decl=1
11424else
11425 ac_have_decl=0
11426fi
11427
11428cat >>confdefs.h <<_ACEOF
11429#define HAVE_DECL_MALLOC $ac_have_decl
bec39cab 11430_ACEOF
81ecdfbb
RW
11431ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11432if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11433 ac_have_decl=1
bec39cab 11434else
81ecdfbb
RW
11435 ac_have_decl=0
11436fi
bec39cab 11437
81ecdfbb
RW
11438cat >>confdefs.h <<_ACEOF
11439#define HAVE_DECL_REALLOC $ac_have_decl
bec39cab 11440_ACEOF
81ecdfbb
RW
11441ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11442if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11443 ac_have_decl=1
11444else
11445 ac_have_decl=0
11446fi
11447
11448cat >>confdefs.h <<_ACEOF
11449#define HAVE_DECL_STRERROR $ac_have_decl
bec39cab 11450_ACEOF
81ecdfbb
RW
11451ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11452if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11453 ac_have_decl=1
bec39cab 11454else
81ecdfbb
RW
11455 ac_have_decl=0
11456fi
5ee754fc 11457
81ecdfbb
RW
11458cat >>confdefs.h <<_ACEOF
11459#define HAVE_DECL_STRSTR $ac_have_decl
11460_ACEOF
11461ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11462if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11463 ac_have_decl=1
11464else
11465 ac_have_decl=0
5ee754fc 11466fi
81ecdfbb
RW
11467
11468cat >>confdefs.h <<_ACEOF
11469#define HAVE_DECL_GETOPT $ac_have_decl
11470_ACEOF
11471ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11472if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11473 ac_have_decl=1
11474else
11475 ac_have_decl=0
5ee754fc 11476fi
81ecdfbb
RW
11477
11478cat >>confdefs.h <<_ACEOF
11479#define HAVE_DECL_SNPRINTF $ac_have_decl
11480_ACEOF
11481ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11482if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11483 ac_have_decl=1
11484else
11485 ac_have_decl=0
5ee754fc
MK
11486fi
11487
a9322a30 11488cat >>confdefs.h <<_ACEOF
81ecdfbb 11489#define HAVE_DECL_VSNPRINTF $ac_have_decl
a9322a30 11490_ACEOF
5ee754fc 11491
5ee754fc 11492
81ecdfbb
RW
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11494$as_echo_n "checking for LC_MESSAGES... " >&6; }
11495if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
bec39cab 11497else
81ecdfbb 11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11499/* end confdefs.h. */
81ecdfbb 11500#include <locale.h>
a9322a30
TT
11501int
11502main ()
11503{
81ecdfbb 11504return LC_MESSAGES
a9322a30
TT
11505 ;
11506 return 0;
11507}
bec39cab 11508_ACEOF
81ecdfbb
RW
11509if ac_fn_c_try_link "$LINENO"; then :
11510 am_cv_val_LC_MESSAGES=yes
bec39cab 11511else
81ecdfbb
RW
11512 am_cv_val_LC_MESSAGES=no
11513fi
11514rm -f core conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516fi
11517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11518$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11519 if test $am_cv_val_LC_MESSAGES = yes; then
bec39cab 11520
81ecdfbb
RW
11521$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11522
11523 fi
11524
11525
11526# ----------------------- #
11527# Checks for structures. #
11528# ----------------------- #
11529
11530ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11531if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11532
11533cat >>confdefs.h <<_ACEOF
11534#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7eb368b3 11535_ACEOF
7eb368b3 11536
81ecdfbb 11537
7eb368b3 11538fi
81ecdfbb
RW
11539ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11540if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
7eb368b3 11541
a9322a30
TT
11542cat >>confdefs.h <<_ACEOF
11543#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7eb368b3
NR
11544_ACEOF
11545
a9322a30 11546
7eb368b3
NR
11547fi
11548
7eb368b3 11549
a9322a30
TT
11550# ------------------ #
11551# Checks for types. #
11552# ------------------ #
7eb368b3 11553
81ecdfbb
RW
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11555$as_echo_n "checking return type of signal handlers... " >&6; }
11556if test "${ac_cv_type_signal+set}" = set; then :
11557 $as_echo_n "(cached) " >&6
bec39cab 11558else
81ecdfbb 11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11560/* end confdefs.h. */
a9322a30
TT
11561#include <sys/types.h>
11562#include <signal.h>
7cb9022a 11563
a9322a30
TT
11564int
11565main ()
11566{
81ecdfbb 11567return *(signal (0, 0)) (0) == 1;
a9322a30
TT
11568 ;
11569 return 0;
11570}
bec39cab 11571_ACEOF
81ecdfbb
RW
11572if ac_fn_c_try_compile "$LINENO"; then :
11573 ac_cv_type_signal=int
bec39cab 11574else
81ecdfbb 11575 ac_cv_type_signal=void
bec39cab 11576fi
81ecdfbb 11577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11578fi
81ecdfbb
RW
11579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11580$as_echo "$ac_cv_type_signal" >&6; }
bec39cab 11581
a9322a30
TT
11582cat >>confdefs.h <<_ACEOF
11583#define RETSIGTYPE $ac_cv_type_signal
11584_ACEOF
5ee754fc 11585
bec39cab 11586
81ecdfbb 11587ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
a9322a30
TT
11588#include <sys/socket.h>
11589
81ecdfbb
RW
11590"
11591if test "x$ac_cv_type_socklen_t" = x""yes; then :
bec39cab 11592
a9322a30
TT
11593cat >>confdefs.h <<_ACEOF
11594#define HAVE_SOCKLEN_T 1
11595_ACEOF
11596
11597
11598fi
11599
11600
11601# ------------------------------------- #
11602# Checks for compiler characteristics. #
11603# ------------------------------------- #
11604
81ecdfbb
RW
11605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11606$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11607if test "${ac_cv_c_const+set}" = set; then :
11608 $as_echo_n "(cached) " >&6
a9322a30 11609else
81ecdfbb 11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11611/* end confdefs.h. */
a9322a30
TT
11612
11613int
11614main ()
11615{
11616/* FIXME: Include the comments suggested by Paul. */
11617#ifndef __cplusplus
11618 /* Ultrix mips cc rejects this. */
11619 typedef int charset[2];
81ecdfbb 11620 const charset cs;
a9322a30 11621 /* SunOS 4.1.1 cc rejects this. */
81ecdfbb
RW
11622 char const *const *pcpcc;
11623 char **ppc;
a9322a30
TT
11624 /* NEC SVR4.0.2 mips cc rejects this. */
11625 struct point {int x, y;};
11626 static struct point const zero = {0,0};
11627 /* AIX XL C 1.02.0.0 rejects this.
11628 It does not let you subtract one const X* pointer from another in
11629 an arm of an if-expression whose if-part is not a constant
11630 expression */
11631 const char *g = "string";
81ecdfbb 11632 pcpcc = &g + (g ? g-g : 0);
a9322a30 11633 /* HPUX 7.0 cc rejects these. */
81ecdfbb
RW
11634 ++pcpcc;
11635 ppc = (char**) pcpcc;
11636 pcpcc = (char const *const *) ppc;
a9322a30
TT
11637 { /* SCO 3.2v4 cc rejects this. */
11638 char *t;
11639 char const *s = 0 ? (char *) 0 : (char const *) 0;
11640
11641 *t++ = 0;
81ecdfbb 11642 if (s) return 0;
a9322a30
TT
11643 }
11644 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11645 int x[] = {25, 17};
11646 const int *foo = &x[0];
11647 ++foo;
11648 }
11649 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11650 typedef const int *iptr;
11651 iptr p = 0;
11652 ++p;
11653 }
11654 { /* AIX XL C 1.02.0.0 rejects this saying
11655 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11656 struct s { int j; const int *ap[3]; };
11657 struct s *b; b->j = 5;
11658 }
11659 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11660 const int foo = 10;
81ecdfbb 11661 if (!foo) return 0;
a9322a30 11662 }
81ecdfbb 11663 return !cs[0] && !zero.x;
a9322a30
TT
11664#endif
11665
11666 ;
11667 return 0;
11668}
bec39cab 11669_ACEOF
81ecdfbb 11670if ac_fn_c_try_compile "$LINENO"; then :
a9322a30 11671 ac_cv_c_const=yes
5ee754fc 11672else
81ecdfbb 11673 ac_cv_c_const=no
5ee754fc 11674fi
81ecdfbb 11675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11676fi
81ecdfbb
RW
11677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11678$as_echo "$ac_cv_c_const" >&6; }
a9322a30 11679if test $ac_cv_c_const = no; then
bec39cab 11680
81ecdfbb 11681$as_echo "#define const /**/" >>confdefs.h
bec39cab 11682
5ee754fc 11683fi
bec39cab 11684
81ecdfbb
RW
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11686$as_echo_n "checking for inline... " >&6; }
11687if test "${ac_cv_c_inline+set}" = set; then :
11688 $as_echo_n "(cached) " >&6
bec39cab 11689else
a9322a30
TT
11690 ac_cv_c_inline=no
11691for ac_kw in inline __inline__ __inline; do
81ecdfbb 11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11693/* end confdefs.h. */
a9322a30
TT
11694#ifndef __cplusplus
11695typedef int foo_t;
11696static $ac_kw foo_t static_foo () {return 0; }
11697$ac_kw foo_t foo () {return 0; }
11698#endif
11699
bec39cab 11700_ACEOF
81ecdfbb
RW
11701if ac_fn_c_try_compile "$LINENO"; then :
11702 ac_cv_c_inline=$ac_kw
bec39cab 11703fi
81ecdfbb
RW
11704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 test "$ac_cv_c_inline" != no && break
a9322a30 11706done
bec39cab 11707
5ee754fc 11708fi
81ecdfbb
RW
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11710$as_echo "$ac_cv_c_inline" >&6; }
5ee754fc 11711
a9322a30
TT
11712case $ac_cv_c_inline in
11713 inline | yes) ;;
11714 *)
11715 case $ac_cv_c_inline in
11716 no) ac_val=;;
11717 *) ac_val=$ac_cv_c_inline;;
11718 esac
11719 cat >>confdefs.h <<_ACEOF
11720#ifndef __cplusplus
11721#define inline $ac_val
11722#endif
11723_ACEOF
bec39cab
AC
11724 ;;
11725esac
bec39cab 11726
81ecdfbb
RW
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11728$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11729if test "${ac_cv_c_bigendian+set}" = set; then :
11730 $as_echo_n "(cached) " >&6
bec39cab 11731else
81ecdfbb
RW
11732 ac_cv_c_bigendian=unknown
11733 # See if we're dealing with a universal compiler.
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735/* end confdefs.h. */
11736#ifndef __APPLE_CC__
11737 not a universal capable compiler
11738 #endif
11739 typedef int dummy;
11740
11741_ACEOF
11742if ac_fn_c_try_compile "$LINENO"; then :
11743
11744 # Check for potential -arch flags. It is not universal unless
11745 # there are at least two -arch flags with different values.
11746 ac_arch=
11747 ac_prev=
11748 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11749 if test -n "$ac_prev"; then
11750 case $ac_word in
11751 i?86 | x86_64 | ppc | ppc64)
11752 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11753 ac_arch=$ac_word
11754 else
11755 ac_cv_c_bigendian=universal
11756 break
11757 fi
11758 ;;
11759 esac
11760 ac_prev=
11761 elif test "x$ac_word" = "x-arch"; then
11762 ac_prev=arch
11763 fi
11764 done
11765fi
11766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767 if test $ac_cv_c_bigendian = unknown; then
11768 # See if sys/param.h defines the BYTE_ORDER macro.
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11770/* end confdefs.h. */
a9322a30 11771#include <sys/types.h>
81ecdfbb 11772 #include <sys/param.h>
a9322a30
TT
11773
11774int
11775main ()
11776{
81ecdfbb
RW
11777#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11778 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11779 && LITTLE_ENDIAN)
11780 bogus endian macros
11781 #endif
a9322a30
TT
11782
11783 ;
11784 return 0;
11785}
bec39cab 11786_ACEOF
81ecdfbb 11787if ac_fn_c_try_compile "$LINENO"; then :
a9322a30 11788 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11790/* end confdefs.h. */
a9322a30 11791#include <sys/types.h>
81ecdfbb 11792 #include <sys/param.h>
a9322a30
TT
11793
11794int
11795main ()
11796{
11797#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
11798 not big endian
11799 #endif
a9322a30
TT
11800
11801 ;
11802 return 0;
11803}
bec39cab 11804_ACEOF
81ecdfbb 11805if ac_fn_c_try_compile "$LINENO"; then :
a9322a30 11806 ac_cv_c_bigendian=yes
5ee754fc 11807else
81ecdfbb 11808 ac_cv_c_bigendian=no
5ee754fc 11809fi
81ecdfbb
RW
11810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811fi
11812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 fi
11814 if test $ac_cv_c_bigendian = unknown; then
11815 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817/* end confdefs.h. */
11818#include <limits.h>
bec39cab 11819
81ecdfbb
RW
11820int
11821main ()
11822{
11823#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11824 bogus endian macros
11825 #endif
11826
11827 ;
11828 return 0;
11829}
7eb368b3 11830_ACEOF
81ecdfbb
RW
11831if ac_fn_c_try_compile "$LINENO"; then :
11832 # It does; now see whether it defined to _BIG_ENDIAN or not.
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eb368b3 11834/* end confdefs.h. */
81ecdfbb
RW
11835#include <limits.h>
11836
7eb368b3
NR
11837int
11838main ()
11839{
81ecdfbb
RW
11840#ifndef _BIG_ENDIAN
11841 not big endian
11842 #endif
11843
7eb368b3
NR
11844 ;
11845 return 0;
11846}
11847_ACEOF
81ecdfbb 11848if ac_fn_c_try_compile "$LINENO"; then :
a9322a30 11849 ac_cv_c_bigendian=yes
81ecdfbb
RW
11850else
11851 ac_cv_c_bigendian=no
a9322a30 11852fi
81ecdfbb 11853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a9322a30 11854fi
81ecdfbb
RW
11855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 fi
11857 if test $ac_cv_c_bigendian = unknown; then
11858 # Compile a test program.
11859 if test "$cross_compiling" = yes; then :
11860 # Try to guess by grepping values from an object file.
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862/* end confdefs.h. */
11863short int ascii_mm[] =
11864 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11865 short int ascii_ii[] =
11866 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11867 int use_ascii (int i) {
11868 return ascii_mm[i] + ascii_ii[i];
11869 }
11870 short int ebcdic_ii[] =
11871 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11872 short int ebcdic_mm[] =
11873 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11874 int use_ebcdic (int i) {
11875 return ebcdic_mm[i] + ebcdic_ii[i];
11876 }
11877 extern int foo;
7eb368b3 11878
81ecdfbb
RW
11879int
11880main ()
11881{
11882return use_ascii (foo) == use_ebcdic (foo);
11883 ;
11884 return 0;
11885}
11886_ACEOF
11887if ac_fn_c_try_compile "$LINENO"; then :
11888 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11889 ac_cv_c_bigendian=yes
11890 fi
11891 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11892 if test "$ac_cv_c_bigendian" = unknown; then
11893 ac_cv_c_bigendian=no
11894 else
11895 # finding both strings is unlikely to happen, but who knows?
11896 ac_cv_c_bigendian=unknown
11897 fi
11898 fi
7eb368b3 11899fi
81ecdfbb 11900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 11901else
81ecdfbb 11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11903/* end confdefs.h. */
81ecdfbb 11904$ac_includes_default
d3ea6809
MM
11905int
11906main ()
11907{
81ecdfbb
RW
11908
11909 /* Are we little or big endian? From Harbison&Steele. */
11910 union
11911 {
11912 long int l;
11913 char c[sizeof (long int)];
11914 } u;
11915 u.l = 1;
11916 return u.c[sizeof (long int) - 1] == 1;
11917
11918 ;
11919 return 0;
d3ea6809
MM
11920}
11921_ACEOF
81ecdfbb 11922if ac_fn_c_try_run "$LINENO"; then :
a9322a30 11923 ac_cv_c_bigendian=no
d3ea6809 11924else
81ecdfbb 11925 ac_cv_c_bigendian=yes
d3ea6809 11926fi
81ecdfbb
RW
11927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11928 conftest.$ac_objext conftest.beam conftest.$ac_ext
a9322a30 11929fi
a9322a30 11930
81ecdfbb
RW
11931 fi
11932fi
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11934$as_echo "$ac_cv_c_bigendian" >&6; }
11935 case $ac_cv_c_bigendian in #(
11936 yes)
11937 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11938;; #(
11939 no)
11940 ;; #(
11941 universal)
11942
11943$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11944
11945 ;; #(
11946 *)
11947 as_fn_error "unknown endianness
11948 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11949 esac
d3ea6809
MM
11950
11951
a9322a30
TT
11952# ------------------------------ #
11953# Checks for library functions. #
11954# ------------------------------ #
d3ea6809 11955
a9322a30
TT
11956# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11957# for constant arguments. Useless!
81ecdfbb
RW
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11959$as_echo_n "checking for working alloca.h... " >&6; }
11960if test "${ac_cv_working_alloca_h+set}" = set; then :
11961 $as_echo_n "(cached) " >&6
d3ea6809 11962else
81ecdfbb 11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d3ea6809 11964/* end confdefs.h. */
a9322a30 11965#include <alloca.h>
bec39cab
AC
11966int
11967main ()
11968{
a9322a30 11969char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 11970 if (p) return 0;
bec39cab
AC
11971 ;
11972 return 0;
11973}
11974_ACEOF
81ecdfbb 11975if ac_fn_c_try_link "$LINENO"; then :
a9322a30 11976 ac_cv_working_alloca_h=yes
bec39cab 11977else
81ecdfbb 11978 ac_cv_working_alloca_h=no
bec39cab 11979fi
81ecdfbb
RW
11980rm -f core conftest.err conftest.$ac_objext \
11981 conftest$ac_exeext conftest.$ac_ext
bec39cab 11982fi
81ecdfbb
RW
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11984$as_echo "$ac_cv_working_alloca_h" >&6; }
a9322a30
TT
11985if test $ac_cv_working_alloca_h = yes; then
11986
81ecdfbb 11987$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c906108c 11988
c906108c 11989fi
bec39cab 11990
81ecdfbb
RW
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11992$as_echo_n "checking for alloca... " >&6; }
11993if test "${ac_cv_func_alloca_works+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
bec39cab 11995else
81ecdfbb 11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11997/* end confdefs.h. */
a9322a30
TT
11998#ifdef __GNUC__
11999# define alloca __builtin_alloca
b4e70030 12000#else
a9322a30
TT
12001# ifdef _MSC_VER
12002# include <malloc.h>
12003# define alloca _alloca
12004# else
81ecdfbb 12005# ifdef HAVE_ALLOCA_H
a9322a30
TT
12006# include <alloca.h>
12007# else
12008# ifdef _AIX
12009 #pragma alloca
12010# else
12011# ifndef alloca /* predefined by HP cc +Olibcalls */
12012char *alloca ();
12013# endif
12014# endif
12015# endif
12016# endif
c906108c 12017#endif
97bf5e38 12018
bec39cab
AC
12019int
12020main ()
12021{
a9322a30 12022char *p = (char *) alloca (1);
81ecdfbb 12023 if (p) return 0;
bec39cab
AC
12024 ;
12025 return 0;
12026}
12027_ACEOF
81ecdfbb 12028if ac_fn_c_try_link "$LINENO"; then :
a9322a30 12029 ac_cv_func_alloca_works=yes
bec39cab 12030else
81ecdfbb 12031 ac_cv_func_alloca_works=no
bec39cab 12032fi
81ecdfbb
RW
12033rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
bec39cab 12035fi
81ecdfbb
RW
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12037$as_echo "$ac_cv_func_alloca_works" >&6; }
a9322a30
TT
12038
12039if test $ac_cv_func_alloca_works = yes; then
12040
81ecdfbb 12041$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c906108c 12042
a9322a30
TT
12043else
12044 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12045# that cause trouble. Some versions do not even contain alloca or
12046# contain a buggy version. If you still want to use their alloca,
12047# use ar to extract alloca.o from them instead of compiling alloca.c.
12048
81ecdfbb 12049ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a9322a30 12050
81ecdfbb 12051$as_echo "#define C_ALLOCA 1" >>confdefs.h
c906108c 12052
bec39cab 12053
81ecdfbb
RW
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12055$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12056if test "${ac_cv_os_cray+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
a9322a30 12058else
81ecdfbb 12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9322a30 12060/* end confdefs.h. */
81ecdfbb 12061#if defined CRAY && ! defined CRAY2
a9322a30
TT
12062webecray
12063#else
12064wenotbecray
12065#endif
12066
12067_ACEOF
12068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 12069 $EGREP "webecray" >/dev/null 2>&1; then :
a9322a30
TT
12070 ac_cv_os_cray=yes
12071else
81ecdfbb 12072 ac_cv_os_cray=no
bec39cab 12073fi
81ecdfbb
RW
12074rm -f conftest*
12075
bec39cab 12076fi
81ecdfbb
RW
12077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12078$as_echo "$ac_cv_os_cray" >&6; }
12079if test $ac_cv_os_cray = yes; then
12080 for ac_func in _getb67 GETB67 getb67; do
12081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12083eval as_val=\$$as_ac_var
12084 if test "x$as_val" = x""yes; then :
a9322a30
TT
12085
12086cat >>confdefs.h <<_ACEOF
12087#define CRAY_STACKSEG_END $ac_func
bec39cab 12088_ACEOF
c906108c 12089
a9322a30 12090 break
c906108c
SS
12091fi
12092
a9322a30
TT
12093 done
12094fi
bec39cab 12095
81ecdfbb
RW
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12097$as_echo_n "checking stack direction for C alloca... " >&6; }
12098if test "${ac_cv_c_stack_direction+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
a9322a30 12100else
81ecdfbb 12101 if test "$cross_compiling" = yes; then :
a9322a30 12102 ac_cv_c_stack_direction=0
bec39cab 12103else
81ecdfbb 12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12105/* end confdefs.h. */
81ecdfbb 12106$ac_includes_default
a9322a30
TT
12107int
12108find_stack_direction ()
b4e70030 12109{
a9322a30
TT
12110 static char *addr = 0;
12111 auto char dummy;
12112 if (addr == 0)
12113 {
12114 addr = &dummy;
12115 return find_stack_direction ();
12116 }
12117 else
12118 return (&dummy > addr) ? 1 : -1;
b4e70030 12119}
b757528f 12120
bec39cab
AC
12121int
12122main ()
12123{
81ecdfbb 12124 return find_stack_direction () < 0;
bec39cab
AC
12125}
12126_ACEOF
81ecdfbb 12127if ac_fn_c_try_run "$LINENO"; then :
a9322a30
TT
12128 ac_cv_c_stack_direction=1
12129else
81ecdfbb 12130 ac_cv_c_stack_direction=-1
a9322a30 12131fi
81ecdfbb
RW
12132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12133 conftest.$ac_objext conftest.beam conftest.$ac_ext
a9322a30 12134fi
a9322a30 12135
81ecdfbb
RW
12136fi
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12138$as_echo "$ac_cv_c_stack_direction" >&6; }
a9322a30
TT
12139cat >>confdefs.h <<_ACEOF
12140#define STACK_DIRECTION $ac_cv_c_stack_direction
12141_ACEOF
12142
12143
12144fi
12145
a9322a30 12146for ac_header in stdlib.h unistd.h
81ecdfbb
RW
12147do :
12148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12149ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12150eval as_val=\$$as_ac_Header
12151 if test "x$as_val" = x""yes; then :
bec39cab 12152 cat >>confdefs.h <<_ACEOF
81ecdfbb 12153#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 12154_ACEOF
b757528f 12155
b757528f 12156fi
bec39cab 12157
a9322a30 12158done
a3828db0 12159
a9322a30 12160for ac_func in getpagesize
81ecdfbb
RW
12161do :
12162 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12163if test "x$ac_cv_func_getpagesize" = x""yes; then :
bec39cab 12164 cat >>confdefs.h <<_ACEOF
81ecdfbb 12165#define HAVE_GETPAGESIZE 1
bec39cab 12166_ACEOF
bcb3dc3d 12167
bcb3dc3d
MK
12168fi
12169done
12170
81ecdfbb
RW
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12172$as_echo_n "checking for working mmap... " >&6; }
12173if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
a9322a30 12175else
81ecdfbb 12176 if test "$cross_compiling" = yes; then :
a9322a30 12177 ac_cv_func_mmap_fixed_mapped=no
bec39cab 12178else
81ecdfbb 12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12180/* end confdefs.h. */
a9322a30
TT
12181$ac_includes_default
12182/* malloc might have been renamed as rpl_malloc. */
12183#undef malloc
bec39cab 12184
a9322a30
TT
12185/* Thanks to Mike Haertel and Jim Avera for this test.
12186 Here is a matrix of mmap possibilities:
12187 mmap private not fixed
12188 mmap private fixed at somewhere currently unmapped
12189 mmap private fixed at somewhere already mapped
12190 mmap shared not fixed
12191 mmap shared fixed at somewhere currently unmapped
12192 mmap shared fixed at somewhere already mapped
12193 For private mappings, we should verify that changes cannot be read()
12194 back from the file, nor mmap's back from the file at a different
12195 address. (There have been systems where private was not correctly
12196 implemented like the infamous i386 svr4.0, and systems where the
12197 VM page cache was not coherent with the file system buffer cache
12198 like early versions of FreeBSD and possibly contemporary NetBSD.)
12199 For shared mappings, we should conversely verify that changes get
12200 propagated back to all the places they're supposed to be.
bec39cab 12201
a9322a30
TT
12202 Grep wants private fixed already mapped.
12203 The main things grep needs to know about mmap are:
12204 * does it exist and is it safe to write into the mmap'd area
12205 * how to use it (BSD variants) */
8b9cf735 12206
a9322a30
TT
12207#include <fcntl.h>
12208#include <sys/mman.h>
8b9cf735 12209
81ecdfbb 12210#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
a9322a30 12211char *malloc ();
a3828db0
MK
12212#endif
12213
a9322a30 12214/* This mess was copied from the GNU getpagesize.h. */
81ecdfbb 12215#ifndef HAVE_GETPAGESIZE
a9322a30 12216/* Assume that all systems that can run configure have sys/param.h. */
81ecdfbb 12217# ifndef HAVE_SYS_PARAM_H
a9322a30
TT
12218# define HAVE_SYS_PARAM_H 1
12219# endif
12220
12221# ifdef _SC_PAGESIZE
12222# define getpagesize() sysconf(_SC_PAGESIZE)
12223# else /* no _SC_PAGESIZE */
81ecdfbb 12224# ifdef HAVE_SYS_PARAM_H
a9322a30
TT
12225# include <sys/param.h>
12226# ifdef EXEC_PAGESIZE
12227# define getpagesize() EXEC_PAGESIZE
12228# else /* no EXEC_PAGESIZE */
12229# ifdef NBPG
12230# define getpagesize() NBPG * CLSIZE
12231# ifndef CLSIZE
12232# define CLSIZE 1
12233# endif /* no CLSIZE */
12234# else /* no NBPG */
12235# ifdef NBPC
12236# define getpagesize() NBPC
12237# else /* no NBPC */
12238# ifdef PAGESIZE
12239# define getpagesize() PAGESIZE
12240# endif /* PAGESIZE */
12241# endif /* no NBPC */
12242# endif /* no NBPG */
12243# endif /* no EXEC_PAGESIZE */
12244# else /* no HAVE_SYS_PARAM_H */
12245# define getpagesize() 8192 /* punt totally */
12246# endif /* no HAVE_SYS_PARAM_H */
12247# endif /* no _SC_PAGESIZE */
12248
12249#endif /* no HAVE_GETPAGESIZE */
12250
bec39cab
AC
12251int
12252main ()
12253{
a9322a30
TT
12254 char *data, *data2, *data3;
12255 int i, pagesize;
12256 int fd;
12257
12258 pagesize = getpagesize ();
12259
12260 /* First, make a file with some known garbage in it. */
12261 data = (char *) malloc (pagesize);
12262 if (!data)
81ecdfbb 12263 return 1;
a9322a30
TT
12264 for (i = 0; i < pagesize; ++i)
12265 *(data + i) = rand ();
12266 umask (0);
12267 fd = creat ("conftest.mmap", 0600);
12268 if (fd < 0)
81ecdfbb 12269 return 1;
a9322a30 12270 if (write (fd, data, pagesize) != pagesize)
81ecdfbb 12271 return 1;
a9322a30
TT
12272 close (fd);
12273
12274 /* Next, try to mmap the file at a fixed address which already has
12275 something else allocated at it. If we can, also make sure that
12276 we see the same garbage. */
12277 fd = open ("conftest.mmap", O_RDWR);
12278 if (fd < 0)
81ecdfbb 12279 return 1;
a9322a30
TT
12280 data2 = (char *) malloc (2 * pagesize);
12281 if (!data2)
81ecdfbb
RW
12282 return 1;
12283 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
a9322a30
TT
12284 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12285 MAP_PRIVATE | MAP_FIXED, fd, 0L))
81ecdfbb 12286 return 1;
a9322a30
TT
12287 for (i = 0; i < pagesize; ++i)
12288 if (*(data + i) != *(data2 + i))
81ecdfbb 12289 return 1;
a9322a30
TT
12290
12291 /* Finally, make sure that changes to the mapped area do not
12292 percolate back to the file as seen by read(). (This is a bug on
12293 some variants of i386 svr4.0.) */
12294 for (i = 0; i < pagesize; ++i)
12295 *(data2 + i) = *(data2 + i) + 1;
12296 data3 = (char *) malloc (pagesize);
12297 if (!data3)
81ecdfbb 12298 return 1;
a9322a30 12299 if (read (fd, data3, pagesize) != pagesize)
81ecdfbb 12300 return 1;
a9322a30
TT
12301 for (i = 0; i < pagesize; ++i)
12302 if (*(data + i) != *(data3 + i))
81ecdfbb 12303 return 1;
a9322a30 12304 close (fd);
81ecdfbb 12305 return 0;
bec39cab
AC
12306}
12307_ACEOF
81ecdfbb 12308if ac_fn_c_try_run "$LINENO"; then :
a9322a30 12309 ac_cv_func_mmap_fixed_mapped=yes
086ec9eb 12310else
81ecdfbb 12311 ac_cv_func_mmap_fixed_mapped=no
a3828db0 12312fi
81ecdfbb
RW
12313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12314 conftest.$ac_objext conftest.beam conftest.$ac_ext
a3828db0 12315fi
81ecdfbb 12316
a9322a30 12317fi
81ecdfbb
RW
12318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12319$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
a9322a30
TT
12320if test $ac_cv_func_mmap_fixed_mapped = yes; then
12321
81ecdfbb 12322$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a3828db0 12323
086ec9eb 12324fi
a9322a30 12325rm -f conftest.mmap
a3828db0 12326
81ecdfbb
RW
12327ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12328if test "x$ac_cv_type_pid_t" = x""yes; then :
bec39cab 12329
a9322a30
TT
12330else
12331
12332cat >>confdefs.h <<_ACEOF
12333#define pid_t int
bec39cab 12334_ACEOF
086ec9eb
MK
12335
12336fi
12337
81ecdfbb
RW
12338for ac_header in vfork.h
12339do :
12340 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12341if test "x$ac_cv_header_vfork_h" = x""yes; then :
a3828db0 12342 cat >>confdefs.h <<_ACEOF
81ecdfbb 12343#define HAVE_VFORK_H 1
bec39cab 12344_ACEOF
c906108c
SS
12345
12346fi
a9322a30 12347
a3828db0 12348done
c906108c 12349
a9322a30 12350for ac_func in fork vfork
81ecdfbb
RW
12351do :
12352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12353ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12354eval as_val=\$$as_ac_var
12355 if test "x$as_val" = x""yes; then :
a3828db0 12356 cat >>confdefs.h <<_ACEOF
81ecdfbb 12357#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 12358_ACEOF
b83266a0 12359
97bf5e38 12360fi
a3828db0 12361done
b83266a0 12362
a9322a30 12363if test "x$ac_cv_func_fork" = xyes; then
81ecdfbb
RW
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12365$as_echo_n "checking for working fork... " >&6; }
12366if test "${ac_cv_func_fork_works+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
a9322a30 12368else
81ecdfbb 12369 if test "$cross_compiling" = yes; then :
a9322a30
TT
12370 ac_cv_func_fork_works=cross
12371else
81ecdfbb
RW
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373/* end confdefs.h. */
12374$ac_includes_default
12375int
12376main ()
12377{
12378
12379 /* By Ruediger Kuhlmann. */
12380 return fork () < 0;
12381
12382 ;
12383 return 0;
12384}
a9322a30 12385_ACEOF
81ecdfbb 12386if ac_fn_c_try_run "$LINENO"; then :
a9322a30
TT
12387 ac_cv_func_fork_works=yes
12388else
81ecdfbb 12389 ac_cv_func_fork_works=no
a9322a30 12390fi
81ecdfbb
RW
12391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12392 conftest.$ac_objext conftest.beam conftest.$ac_ext
a9322a30 12393fi
81ecdfbb 12394
a9322a30 12395fi
81ecdfbb
RW
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12397$as_echo "$ac_cv_func_fork_works" >&6; }
a9322a30
TT
12398
12399else
12400 ac_cv_func_fork_works=$ac_cv_func_fork
12401fi
12402if test "x$ac_cv_func_fork_works" = xcross; then
12403 case $host in
12404 *-*-amigaos* | *-*-msdosdjgpp*)
12405 # Override, as these systems have only a dummy fork() stub
12406 ac_cv_func_fork_works=no
12407 ;;
12408 *)
12409 ac_cv_func_fork_works=yes
12410 ;;
12411 esac
81ecdfbb
RW
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12413$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a9322a30
TT
12414fi
12415ac_cv_func_vfork_works=$ac_cv_func_vfork
12416if test "x$ac_cv_func_vfork" = xyes; then
81ecdfbb
RW
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12418$as_echo_n "checking for working vfork... " >&6; }
12419if test "${ac_cv_func_vfork_works+set}" = set; then :
12420 $as_echo_n "(cached) " >&6
a9322a30 12421else
81ecdfbb 12422 if test "$cross_compiling" = yes; then :
a9322a30
TT
12423 ac_cv_func_vfork_works=cross
12424else
81ecdfbb 12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9322a30
TT
12426/* end confdefs.h. */
12427/* Thanks to Paul Eggert for this test. */
81ecdfbb 12428$ac_includes_default
a9322a30 12429#include <sys/wait.h>
81ecdfbb 12430#ifdef HAVE_VFORK_H
a9322a30
TT
12431# include <vfork.h>
12432#endif
12433/* On some sparc systems, changes by the child to local and incoming
12434 argument registers are propagated back to the parent. The compiler
12435 is told about this with #include <vfork.h>, but some compilers
12436 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12437 static variable whose address is put into a register that is
12438 clobbered by the vfork. */
12439static void
12440#ifdef __cplusplus
12441sparc_address_test (int arg)
12442# else
12443sparc_address_test (arg) int arg;
12444#endif
12445{
12446 static pid_t child;
12447 if (!child) {
12448 child = vfork ();
12449 if (child < 0) {
12450 perror ("vfork");
12451 _exit(2);
12452 }
12453 if (!child) {
12454 arg = getpid();
12455 write(-1, "", 0);
12456 _exit (arg);
12457 }
12458 }
12459}
12460
12461int
12462main ()
12463{
12464 pid_t parent = getpid ();
12465 pid_t child;
12466
12467 sparc_address_test (0);
12468
12469 child = vfork ();
12470
12471 if (child == 0) {
12472 /* Here is another test for sparc vfork register problems. This
12473 test uses lots of local variables, at least as many local
12474 variables as main has allocated so far including compiler
12475 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12476 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12477 reuse the register of parent for one of the local variables,
12478 since it will think that parent can't possibly be used any more
12479 in this routine. Assigning to the local variable will thus
12480 munge parent in the parent process. */
12481 pid_t
12482 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12483 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12484 /* Convince the compiler that p..p7 are live; otherwise, it might
12485 use the same hardware register for all 8 local variables. */
12486 if (p != p1 || p != p2 || p != p3 || p != p4
12487 || p != p5 || p != p6 || p != p7)
12488 _exit(1);
12489
12490 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12491 from child file descriptors. If the child closes a descriptor
12492 before it execs or exits, this munges the parent's descriptor
12493 as well. Test for this by closing stdout in the child. */
12494 _exit(close(fileno(stdout)) != 0);
12495 } else {
12496 int status;
12497 struct stat st;
12498
12499 while (wait(&status) != child)
12500 ;
81ecdfbb 12501 return (
a9322a30
TT
12502 /* Was there some problem with vforking? */
12503 child < 0
12504
12505 /* Did the child fail? (This shouldn't happen.) */
12506 || status
12507
12508 /* Did the vfork/compiler bug occur? */
12509 || parent != getpid()
12510
12511 /* Did the file descriptor bug occur? */
12512 || fstat(fileno(stdout), &st) != 0
12513 );
12514 }
12515}
12516_ACEOF
81ecdfbb 12517if ac_fn_c_try_run "$LINENO"; then :
a9322a30
TT
12518 ac_cv_func_vfork_works=yes
12519else
81ecdfbb 12520 ac_cv_func_vfork_works=no
a9322a30 12521fi
81ecdfbb
RW
12522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12523 conftest.$ac_objext conftest.beam conftest.$ac_ext
a9322a30 12524fi
81ecdfbb 12525
a9322a30 12526fi
81ecdfbb
RW
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12528$as_echo "$ac_cv_func_vfork_works" >&6; }
a9322a30
TT
12529
12530fi;
12531if test "x$ac_cv_func_fork_works" = xcross; then
12532 ac_cv_func_vfork_works=$ac_cv_func_vfork
81ecdfbb
RW
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12534$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
a9322a30
TT
12535fi
12536
12537if test "x$ac_cv_func_vfork_works" = xyes; then
12538
81ecdfbb 12539$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a9322a30
TT
12540
12541else
12542
81ecdfbb 12543$as_echo "#define vfork fork" >>confdefs.h
a9322a30
TT
12544
12545fi
12546if test "x$ac_cv_func_fork_works" = xyes; then
12547
81ecdfbb 12548$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a9322a30
TT
12549
12550fi
12551
a9322a30 12552for ac_func in canonicalize_file_name realpath getrusage getuid \
db5e03ae 12553 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
a9322a30 12554 sigaction sigprocmask sigsetmask socketpair syscall \
110ed339 12555 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
0a4f61e3 12556 setrlimit getrlimit posix_madvise waitpid
81ecdfbb
RW
12557do :
12558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12559ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12560eval as_val=\$$as_ac_var
12561 if test "x$as_val" = x""yes; then :
6c7a06a3 12562 cat >>confdefs.h <<_ACEOF
81ecdfbb 12563#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6c7a06a3
TT
12564_ACEOF
12565
12566fi
12567done
12568
12569
81ecdfbb
RW
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12571$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12572if test "${am_cv_langinfo_codeset+set}" = set; then :
12573 $as_echo_n "(cached) " >&6
6c7a06a3 12574else
81ecdfbb 12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6c7a06a3
TT
12576/* end confdefs.h. */
12577#include <langinfo.h>
12578int
12579main ()
12580{
12581char* cs = nl_langinfo(CODESET);
bec39cab
AC
12582 ;
12583 return 0;
12584}
12585_ACEOF
81ecdfbb 12586if ac_fn_c_try_link "$LINENO"; then :
6c7a06a3 12587 am_cv_langinfo_codeset=yes
a4db0f07 12588else
81ecdfbb 12589 am_cv_langinfo_codeset=no
a4db0f07 12590fi
81ecdfbb
RW
12591rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
6c7a06a3 12593
a4db0f07 12594fi
81ecdfbb
RW
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12596$as_echo "$am_cv_langinfo_codeset" >&6; }
6c7a06a3
TT
12597 if test $am_cv_langinfo_codeset = yes; then
12598
81ecdfbb 12599$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
a4db0f07 12600
6c7a06a3 12601 fi
c906108c 12602
06825bd1 12603
a3828db0
MK
12604# Check the return and argument types of ptrace. No canned test for
12605# this, so roll our own.
12606gdb_ptrace_headers='
12607#if HAVE_SYS_TYPES_H
12608# include <sys/types.h>
12609#endif
12610#if HAVE_SYS_PTRACE_H
12611# include <sys/ptrace.h>
12612#endif
12613#if HAVE_UNISTD_H
12614# include <unistd.h>
12615#endif
12616'
12617# There is no point in checking if we don't have a prototype.
81ecdfbb
RW
12618ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12619"
12620if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12621 ac_have_decl=1
06825bd1 12622else
81ecdfbb 12623 ac_have_decl=0
06825bd1 12624fi
06825bd1 12625
a3828db0 12626cat >>confdefs.h <<_ACEOF
81ecdfbb 12627#define HAVE_DECL_PTRACE $ac_have_decl
a3828db0 12628_ACEOF
81ecdfbb 12629if test $ac_have_decl = 1; then :
bec39cab 12630
a3828db0 12631else
a3828db0
MK
12632
12633 : ${gdb_cv_func_ptrace_ret='int'}
12634 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12635
06825bd1
MK
12636fi
12637
064ef605
DJ
12638# Check return type. Varargs (used on GNU/Linux) conflict with the
12639# empty argument list, so check for that explicitly.
81ecdfbb
RW
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12641$as_echo_n "checking return type of ptrace... " >&6; }
12642if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
bec39cab 12644else
81ecdfbb 12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12646/* end confdefs.h. */
a3828db0 12647$gdb_ptrace_headers
bec39cab
AC
12648int
12649main ()
12650{
064ef605
DJ
12651extern long ptrace (enum __ptrace_request, ...);
12652 ;
12653 return 0;
12654}
12655_ACEOF
81ecdfbb 12656if ac_fn_c_try_compile "$LINENO"; then :
064ef605
DJ
12657 gdb_cv_func_ptrace_ret='long'
12658else
81ecdfbb 12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
064ef605
DJ
12660/* end confdefs.h. */
12661$gdb_ptrace_headers
12662int
12663main ()
12664{
a3828db0 12665extern int ptrace ();
bec39cab
AC
12666 ;
12667 return 0;
12668}
12669_ACEOF
81ecdfbb 12670if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 12671 gdb_cv_func_ptrace_ret='int'
70f9f479 12672else
81ecdfbb 12673 gdb_cv_func_ptrace_ret='long'
70f9f479 12674fi
81ecdfbb 12675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 12676fi
81ecdfbb 12677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
064ef605 12678fi
81ecdfbb
RW
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12680$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
bec39cab 12681
a3828db0
MK
12682cat >>confdefs.h <<_ACEOF
12683#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 12684_ACEOF
70f9f479 12685
a3828db0 12686# Check argument types.
81ecdfbb
RW
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12688$as_echo_n "checking types of arguments for ptrace... " >&6; }
12689if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
bec39cab 12691else
a3828db0 12692
81ecdfbb 12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
064ef605
DJ
12694/* end confdefs.h. */
12695$gdb_ptrace_headers
12696int
12697main ()
12698{
12699extern long ptrace (enum __ptrace_request, ...);
12700 ;
12701 return 0;
12702}
12703_ACEOF
81ecdfbb 12704if ac_fn_c_try_compile "$LINENO"; then :
064ef605
DJ
12705 gdb_cv_func_ptrace_args='int,int,long,long'
12706else
064ef605 12707
a3828db0
MK
12708for gdb_arg1 in 'int' 'long'; do
12709 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5ed10e6e 12710 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
a3828db0 12711 for gdb_arg4 in 'int' 'long'; do
81ecdfbb 12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12713/* end confdefs.h. */
a3828db0 12714$gdb_ptrace_headers
bec39cab
AC
12715int
12716main ()
12717{
a3828db0
MK
12718
12719extern $gdb_cv_func_ptrace_ret
12720 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12721
bec39cab
AC
12722 ;
12723 return 0;
12724}
12725_ACEOF
81ecdfbb 12726if ac_fn_c_try_compile "$LINENO"; then :
a3828db0
MK
12727 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12728 break 4;
5c7f2947 12729fi
81ecdfbb 12730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0 12731 for gdb_arg5 in 'int *' 'int' 'long'; do
81ecdfbb 12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12733/* end confdefs.h. */
a3828db0 12734$gdb_ptrace_headers
bec39cab
AC
12735int
12736main ()
12737{
a3828db0
MK
12738
12739extern $gdb_cv_func_ptrace_ret
12740 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12741
bec39cab
AC
12742 ;
12743 return 0;
12744}
12745_ACEOF
81ecdfbb 12746if ac_fn_c_try_compile "$LINENO"; then :
a3828db0
MK
12747
12748gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12749 break 5;
78434e59 12750fi
81ecdfbb 12751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
12752 done
12753 done
12754 done
12755 done
12756done
12757# Provide a safe default value.
12758: ${gdb_cv_func_ptrace_args='int,int,long,long'}
12759
064ef605 12760fi
81ecdfbb 12761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78434e59 12762fi
81ecdfbb
RW
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12764$as_echo "$gdb_cv_func_ptrace_args" >&6; }
a3828db0
MK
12765ac_save_IFS=$IFS; IFS=','
12766set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12767IFS=$ac_save_IFS
12768shift
bec39cab 12769
a3828db0
MK
12770cat >>confdefs.h <<_ACEOF
12771#define PTRACE_TYPE_ARG3 $3
12772_ACEOF
12773
12774if test -n "$5"; then
12775
12776cat >>confdefs.h <<_ACEOF
12777#define PTRACE_TYPE_ARG5 $5
bec39cab 12778_ACEOF
78434e59
MK
12779
12780fi
12781
a3828db0 12782if test "$cross_compiling" = no; then
81ecdfbb
RW
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12784$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12785if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
a3828db0 12787else
81ecdfbb
RW
12788 if test "$cross_compiling" = yes; then :
12789 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
bec39cab 12790else
81ecdfbb 12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12792/* end confdefs.h. */
81ecdfbb 12793$ac_includes_default
bec39cab
AC
12794int
12795main ()
12796{
a3828db0
MK
12797/* If this system has a BSD-style setpgrp which takes arguments,
12798 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12799 exit successfully. */
81ecdfbb 12800 return setpgrp (1,1) != -1;
bec39cab
AC
12801 ;
12802 return 0;
12803}
12804_ACEOF
81ecdfbb 12805if ac_fn_c_try_run "$LINENO"; then :
a3828db0 12806 ac_cv_func_setpgrp_void=no
c906108c 12807else
81ecdfbb 12808 ac_cv_func_setpgrp_void=yes
c906108c 12809fi
81ecdfbb
RW
12810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12811 conftest.$ac_objext conftest.beam conftest.$ac_ext
97bf5e38 12812fi
81ecdfbb 12813
a3828db0 12814fi
81ecdfbb
RW
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12816$as_echo "$ac_cv_func_setpgrp_void" >&6; }
a3828db0
MK
12817if test $ac_cv_func_setpgrp_void = yes; then
12818
81ecdfbb 12819$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
97bf5e38
MK
12820
12821fi
a3828db0
MK
12822
12823else
81ecdfbb
RW
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12825$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12826if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12827 $as_echo_n "(cached) " >&6
97bf5e38 12828else
81ecdfbb 12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12830/* end confdefs.h. */
a3828db0
MK
12831
12832#include <unistd.h>
12833
bec39cab
AC
12834int
12835main ()
12836{
a3828db0
MK
12837
12838 if (setpgrp(1,1) == -1)
12839 exit (0);
12840 else
12841 exit (1);
12842
bec39cab
AC
12843 ;
12844 return 0;
12845}
12846_ACEOF
81ecdfbb 12847if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 12848 ac_cv_func_setpgrp_void=no
c906108c 12849else
81ecdfbb 12850 ac_cv_func_setpgrp_void=yes
c906108c 12851fi
81ecdfbb 12852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12853fi
81ecdfbb
RW
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12855$as_echo "$ac_cv_func_setpgrp_void" >&6; }
a3828db0 12856if test $ac_cv_func_setpgrp_void = yes; then
81ecdfbb 12857 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
c3f6f71d 12858
a3828db0 12859fi
c906108c
SS
12860fi
12861
a3828db0
MK
12862# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12863# since sigsetjmp might only be defined as a macro.
81ecdfbb
RW
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12865$as_echo_n "checking for sigsetjmp... " >&6; }
12866if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
bec39cab 12868else
81ecdfbb 12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12870/* end confdefs.h. */
a3828db0
MK
12871
12872#include <setjmp.h>
12873
bec39cab
AC
12874int
12875main ()
12876{
a3828db0 12877sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
12878 ;
12879 return 0;
12880}
12881_ACEOF
81ecdfbb 12882if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 12883 gdb_cv_func_sigsetjmp=yes
c906108c 12884else
81ecdfbb 12885 gdb_cv_func_sigsetjmp=no
c906108c 12886fi
81ecdfbb 12887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12888fi
81ecdfbb
RW
12889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12890$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
a3828db0 12891if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 12892
81ecdfbb 12893$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
c906108c 12894
97bf5e38 12895fi
c906108c 12896
a3828db0
MK
12897# Assume we'll default to using the included libiberty regex.
12898gdb_use_included_regex=yes
12899
12900# However, if the system regex is GNU regex, then default to *not*
12901# using the included regex.
81ecdfbb
RW
12902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12903$as_echo_n "checking for GNU regex... " >&6; }
12904if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
bec39cab 12906else
81ecdfbb 12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12908/* end confdefs.h. */
a3828db0 12909#include <gnu-versions.h>
bec39cab
AC
12910int
12911main ()
12912{
81ecdfbb
RW
12913#define REGEX_INTERFACE_VERSION 1
12914#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12915# error "Version mismatch"
12916#endif
5c45e068
MK
12917 ;
12918 return 0;
12919}
12920_ACEOF
81ecdfbb
RW
12921if ac_fn_c_try_compile "$LINENO"; then :
12922 gdb_cv_have_gnu_regex=yes
5c45e068 12923else
81ecdfbb
RW
12924 gdb_cv_have_gnu_regex=no
12925fi
12926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927fi
12928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12929$as_echo "$gdb_cv_have_gnu_regex" >&6; }
12930if test $gdb_cv_have_gnu_regex = yes; then
12931 gdb_use_included_regex=no
5c45e068 12932fi
81ecdfbb
RW
12933
12934
12935# Check whether --with-included-regex was given.
12936if test "${with_included_regex+set}" = set; then :
12937 withval=$with_included_regex; gdb_with_regex=$withval
12938else
12939 gdb_with_regex=$gdb_use_included_regex
c906108c 12940fi
81ecdfbb
RW
12941
12942if test "$gdb_with_regex" = yes; then
12943
12944$as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12945
c906108c 12946fi
81ecdfbb
RW
12947
12948# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12949ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12950#include <sys/proc.h>
12951
12952"
12953if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
c906108c 12954
5c45e068 12955cat >>confdefs.h <<_ACEOF
a3828db0 12956#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 12957_ACEOF
c906108c 12958
5c45e068 12959
97bf5e38 12960fi
c906108c 12961
5c45e068 12962
a3828db0 12963# See if <sys/lwp.h> defines `struct lwp`.
81ecdfbb
RW
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12965$as_echo_n "checking for struct lwp... " >&6; }
12966if test "${gdb_cv_struct_lwp+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
bec39cab 12968else
81ecdfbb 12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12970/* end confdefs.h. */
a3828db0
MK
12971#include <sys/param.h>
12972#include <sys/lwp.h>
bec39cab
AC
12973int
12974main ()
12975{
a3828db0 12976struct lwp l;
bec39cab
AC
12977 ;
12978 return 0;
12979}
12980_ACEOF
81ecdfbb 12981if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 12982 gdb_cv_struct_lwp=yes
c906108c 12983else
81ecdfbb 12984 gdb_cv_struct_lwp=no
c906108c 12985fi
81ecdfbb 12986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12987fi
81ecdfbb
RW
12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12989$as_echo "$gdb_cv_struct_lwp" >&6; }
a3828db0 12990if test $gdb_cv_struct_lwp = yes; then
c906108c 12991
81ecdfbb 12992$as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
c906108c 12993
97bf5e38 12994fi
c906108c 12995
a3828db0 12996# See if <machine/reg.h> degines `struct reg'.
81ecdfbb
RW
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12998$as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12999if test "${gdb_cv_struct_reg+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
bec39cab 13001else
81ecdfbb 13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13003/* end confdefs.h. */
a3828db0
MK
13004#include <sys/types.h>
13005#include <machine/reg.h>
bec39cab
AC
13006int
13007main ()
13008{
a3828db0 13009struct reg r;
bec39cab
AC
13010 ;
13011 return 0;
13012}
13013_ACEOF
81ecdfbb 13014if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 13015 gdb_cv_struct_reg=yes
27ca5dad 13016else
81ecdfbb 13017 gdb_cv_struct_reg=no
27ca5dad 13018fi
81ecdfbb 13019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 13020fi
81ecdfbb
RW
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13022$as_echo "$gdb_cv_struct_reg" >&6; }
a3828db0 13023if test $gdb_cv_struct_reg = yes; then
bec39cab 13024
81ecdfbb 13025$as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
27ca5dad
MC
13026
13027fi
97bf5e38 13028
a3828db0
MK
13029# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13030# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
81ecdfbb
RW
13031ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13032"
13033if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
5c45e068
MK
13034
13035cat >>confdefs.h <<_ACEOF
a3828db0 13036#define HAVE_STRUCT_REG_R_FS 1
bec39cab 13037_ACEOF
3862412b 13038
5c45e068 13039
97bf5e38 13040fi
81ecdfbb
RW
13041ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13042"
13043if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
5c45e068
MK
13044
13045cat >>confdefs.h <<_ACEOF
a3828db0 13046#define HAVE_STRUCT_REG_R_GS 1
bec39cab 13047_ACEOF
3862412b 13048
5c45e068 13049
97bf5e38 13050fi
3862412b 13051
5c45e068 13052
a3828db0 13053# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
81ecdfbb
RW
13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13055$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13056if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13057 $as_echo_n "(cached) " >&6
451928c5 13058else
81ecdfbb 13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13060/* end confdefs.h. */
a3828db0 13061#include <sys/ptrace.h>
bec39cab
AC
13062int
13063main ()
13064{
a3828db0 13065PTRACE_GETREGS;
bec39cab
AC
13066 ;
13067 return 0;
13068}
13069_ACEOF
81ecdfbb 13070if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 13071 gdb_cv_have_ptrace_getregs=yes
451928c5 13072else
81ecdfbb 13073 gdb_cv_have_ptrace_getregs=no
451928c5 13074fi
81ecdfbb 13075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
13076fi
13077
81ecdfbb
RW
13078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13079$as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
a3828db0 13080if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f 13081
81ecdfbb 13082$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
451928c5 13083
97bf5e38 13084fi
451928c5 13085
a3828db0 13086# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
81ecdfbb
RW
13087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13088$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13089if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13090 $as_echo_n "(cached) " >&6
451928c5 13091else
81ecdfbb 13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13093/* end confdefs.h. */
a3828db0 13094#include <sys/ptrace.h>
bec39cab
AC
13095int
13096main ()
13097{
a3828db0 13098PTRACE_GETFPXREGS;
bec39cab
AC
13099 ;
13100 return 0;
13101}
13102_ACEOF
81ecdfbb 13103if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 13104 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 13105else
81ecdfbb 13106 gdb_cv_have_ptrace_getfpxregs=no
451928c5 13107fi
81ecdfbb 13108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
13109fi
13110
81ecdfbb
RW
13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13112$as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
a3828db0 13113if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f 13114
81ecdfbb 13115$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
451928c5 13116
97bf5e38 13117fi
451928c5 13118
a3828db0 13119# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
81ecdfbb
RW
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13121$as_echo_n "checking for PT_GETDBREGS... " >&6; }
13122if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
3862412b 13124else
81ecdfbb 13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13126/* end confdefs.h. */
a3828db0
MK
13127#include <sys/types.h>
13128#include <sys/ptrace.h>
bec39cab
AC
13129int
13130main ()
13131{
a3828db0 13132PT_GETDBREGS;
bec39cab
AC
13133 ;
13134 return 0;
13135}
13136_ACEOF
81ecdfbb 13137if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 13138 gdb_cv_have_pt_getdbregs=yes
3862412b 13139else
81ecdfbb 13140 gdb_cv_have_pt_getdbregs=no
3862412b 13141fi
81ecdfbb 13142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
13143fi
13144
81ecdfbb
RW
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13146$as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
a3828db0 13147if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f 13148
81ecdfbb 13149$as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
3862412b 13150
97bf5e38 13151fi
3862412b 13152
a3828db0 13153# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
81ecdfbb
RW
13154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13155$as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13156if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
3862412b 13158else
81ecdfbb 13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13160/* end confdefs.h. */
a3828db0
MK
13161#include <sys/types.h>
13162#include <sys/ptrace.h>
bec39cab
AC
13163int
13164main ()
13165{
a3828db0 13166PT_GETXMMREGS;
bec39cab
AC
13167 ;
13168 return 0;
13169}
13170_ACEOF
81ecdfbb 13171if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 13172 gdb_cv_have_pt_getxmmregs=yes
3862412b 13173else
81ecdfbb 13174 gdb_cv_have_pt_getxmmregs=no
3862412b 13175fi
81ecdfbb 13176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
13177fi
13178
81ecdfbb
RW
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13180$as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
a3828db0 13181if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f 13182
81ecdfbb 13183$as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
3862412b 13184
97bf5e38 13185fi
3862412b 13186
eb368090 13187# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
13188
13189if test "${target}" = "${host}"; then
13190 case "${host}" in
97bf5e38 13191 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f 13192
81ecdfbb 13193$as_echo "#define NEW_PROC_API 1" >>confdefs.h
97bf5e38
MK
13194
13195 ;;
c162e8c9 13196 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
60ca704f 13197
81ecdfbb 13198$as_echo "#define NEW_PROC_API 1" >>confdefs.h
c960c18f
AC
13199
13200 ;;
13201 mips-sgi-irix5*)
13202 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f 13203
81ecdfbb 13204$as_echo "#define _KMEMUSER 1" >>confdefs.h
97bf5e38
MK
13205
13206 ;;
13207 esac
13208fi
13209
13210if test "$ac_cv_header_sys_procfs_h" = yes; then
81ecdfbb
RW
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13212$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13213 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
bec39cab 13215else
81ecdfbb 13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13217/* end confdefs.h. */
596c9d4b
KB
13218
13219#define _SYSCALL32
d30c5336
JK
13220/* Needed for new procfs interface on sparc-solaris. */
13221#define _STRUCTURED_PROC 1
596c9d4b 13222#include <sys/procfs.h>
bec39cab
AC
13223int
13224main ()
13225{
97bf5e38 13226pstatus_t avar
bec39cab
AC
13227 ;
13228 return 0;
13229}
13230_ACEOF
81ecdfbb 13231if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13232 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 13233else
81ecdfbb 13234 bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 13235
596c9d4b 13236fi
81ecdfbb 13237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
13238fi
13239
97bf5e38 13240 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab 13241
81ecdfbb 13242$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
596c9d4b
KB
13243
13244 fi
81ecdfbb
RW
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13246$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
596c9d4b 13247
81ecdfbb
RW
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13249$as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13250 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13251 $as_echo_n "(cached) " >&6
596c9d4b 13252else
81ecdfbb 13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13254/* end confdefs.h. */
596c9d4b
KB
13255
13256#define _SYSCALL32
d30c5336
JK
13257/* Needed for new procfs interface on sparc-solaris. */
13258#define _STRUCTURED_PROC 1
596c9d4b 13259#include <sys/procfs.h>
bec39cab
AC
13260int
13261main ()
13262{
97bf5e38 13263prrun_t avar
bec39cab
AC
13264 ;
13265 return 0;
13266}
13267_ACEOF
81ecdfbb 13268if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13269 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 13270else
81ecdfbb 13271 bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 13272
596c9d4b 13273fi
81ecdfbb 13274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
13275fi
13276
97bf5e38 13277 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab 13278
81ecdfbb 13279$as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
596c9d4b
KB
13280
13281 fi
81ecdfbb
RW
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13283$as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
596c9d4b 13284
81ecdfbb
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13286$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13287 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
596c9d4b 13289else
81ecdfbb 13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13291/* end confdefs.h. */
596c9d4b
KB
13292
13293#define _SYSCALL32
d30c5336
JK
13294/* Needed for new procfs interface on sparc-solaris. */
13295#define _STRUCTURED_PROC 1
596c9d4b 13296#include <sys/procfs.h>
bec39cab
AC
13297int
13298main ()
13299{
97bf5e38 13300gregset_t avar
bec39cab
AC
13301 ;
13302 return 0;
13303}
13304_ACEOF
81ecdfbb 13305if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13306 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 13307else
81ecdfbb 13308 bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 13309
596c9d4b 13310fi
81ecdfbb 13311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
13312fi
13313
97bf5e38 13314 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab 13315
81ecdfbb 13316$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
596c9d4b
KB
13317
13318 fi
81ecdfbb
RW
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13320$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
451928c5 13321
81ecdfbb
RW
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13323$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13324 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13325 $as_echo_n "(cached) " >&6
d84dd0c5 13326else
81ecdfbb 13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13328/* end confdefs.h. */
97bf5e38
MK
13329
13330#define _SYSCALL32
d30c5336
JK
13331/* Needed for new procfs interface on sparc-solaris. */
13332#define _STRUCTURED_PROC 1
d84dd0c5 13333#include <sys/procfs.h>
bec39cab
AC
13334int
13335main ()
13336{
97bf5e38 13337fpregset_t avar
bec39cab
AC
13338 ;
13339 return 0;
13340}
13341_ACEOF
81ecdfbb 13342if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13343 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 13344else
81ecdfbb 13345 bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 13346
d84dd0c5 13347fi
81ecdfbb 13348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
13349fi
13350
97bf5e38 13351 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab 13352
81ecdfbb 13353$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
d84dd0c5 13354
97bf5e38 13355 fi
81ecdfbb
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13357$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
d84dd0c5 13358
81ecdfbb
RW
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13360$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13361 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13362 $as_echo_n "(cached) " >&6
c906108c 13363else
81ecdfbb 13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13365/* end confdefs.h. */
c906108c 13366
97bf5e38 13367#define _SYSCALL32
d30c5336
JK
13368/* Needed for new procfs interface on sparc-solaris. */
13369#define _STRUCTURED_PROC 1
97bf5e38 13370#include <sys/procfs.h>
bec39cab
AC
13371int
13372main ()
13373{
97bf5e38 13374prgregset_t avar
bec39cab
AC
13375 ;
13376 return 0;
13377}
13378_ACEOF
81ecdfbb 13379if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13380 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 13381else
81ecdfbb 13382 bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 13383
c906108c 13384fi
81ecdfbb 13385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
13386fi
13387
97bf5e38 13388 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab 13389
81ecdfbb 13390$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
c906108c 13391
97bf5e38 13392 fi
81ecdfbb
RW
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13394$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
c906108c 13395
81ecdfbb
RW
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13397$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13398 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13399 $as_echo_n "(cached) " >&6
d45fe813 13400else
81ecdfbb 13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13402/* end confdefs.h. */
97bf5e38
MK
13403
13404#define _SYSCALL32
d30c5336
JK
13405/* Needed for new procfs interface on sparc-solaris. */
13406#define _STRUCTURED_PROC 1
97bf5e38 13407#include <sys/procfs.h>
bec39cab
AC
13408int
13409main ()
13410{
97bf5e38 13411prfpregset_t avar
bec39cab
AC
13412 ;
13413 return 0;
13414}
13415_ACEOF
81ecdfbb 13416if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13417 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 13418else
81ecdfbb 13419 bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 13420
d45fe813 13421fi
81ecdfbb 13422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
13423fi
13424
97bf5e38 13425 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab 13426
81ecdfbb 13427$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
d45fe813 13428
97bf5e38 13429 fi
81ecdfbb
RW
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13431$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
d45fe813 13432
81ecdfbb
RW
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13434$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13435 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13436 $as_echo_n "(cached) " >&6
d45fe813 13437else
81ecdfbb 13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13439/* end confdefs.h. */
97bf5e38
MK
13440
13441#define _SYSCALL32
d30c5336
JK
13442/* Needed for new procfs interface on sparc-solaris. */
13443#define _STRUCTURED_PROC 1
97bf5e38 13444#include <sys/procfs.h>
bec39cab
AC
13445int
13446main ()
13447{
97bf5e38 13448prgregset32_t avar
bec39cab
AC
13449 ;
13450 return 0;
13451}
13452_ACEOF
81ecdfbb 13453if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13454 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 13455else
81ecdfbb 13456 bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 13457
d45fe813 13458fi
81ecdfbb 13459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
13460fi
13461
97bf5e38 13462 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab 13463
81ecdfbb 13464$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
d45fe813 13465
97bf5e38 13466 fi
81ecdfbb
RW
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13468$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
d45fe813 13469
81ecdfbb
RW
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13471$as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13472 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
d45fe813 13474else
81ecdfbb 13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13476/* end confdefs.h. */
97bf5e38
MK
13477
13478#define _SYSCALL32
d30c5336
JK
13479/* Needed for new procfs interface on sparc-solaris. */
13480#define _STRUCTURED_PROC 1
97bf5e38 13481#include <sys/procfs.h>
bec39cab
AC
13482int
13483main ()
13484{
97bf5e38 13485prfpregset32_t avar
bec39cab
AC
13486 ;
13487 return 0;
13488}
13489_ACEOF
81ecdfbb 13490if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13491 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 13492else
81ecdfbb 13493 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 13494
d45fe813 13495fi
81ecdfbb 13496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
13497fi
13498
97bf5e38 13499 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab 13500
81ecdfbb 13501$as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
d45fe813 13502
97bf5e38 13503 fi
81ecdfbb
RW
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13505$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
d45fe813 13506
81ecdfbb
RW
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13508$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13509 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13510 $as_echo_n "(cached) " >&6
d45fe813 13511else
81ecdfbb 13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13513/* end confdefs.h. */
97bf5e38 13514
d45fe813 13515#define _SYSCALL32
d30c5336
JK
13516/* Needed for new procfs interface on sparc-solaris. */
13517#define _STRUCTURED_PROC 1
97bf5e38 13518#include <sys/procfs.h>
bec39cab
AC
13519int
13520main ()
13521{
97bf5e38 13522lwpid_t avar
bec39cab
AC
13523 ;
13524 return 0;
13525}
13526_ACEOF
81ecdfbb 13527if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13528 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 13529else
81ecdfbb 13530 bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 13531
d45fe813 13532fi
81ecdfbb 13533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
13534fi
13535
97bf5e38 13536 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab 13537
81ecdfbb 13538$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
d45fe813 13539
97bf5e38 13540 fi
81ecdfbb
RW
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13542$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
c906108c 13543
81ecdfbb
RW
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13545$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13546 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13547 $as_echo_n "(cached) " >&6
c906108c 13548else
81ecdfbb 13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13550/* end confdefs.h. */
c906108c 13551
97bf5e38 13552#define _SYSCALL32
d30c5336
JK
13553/* Needed for new procfs interface on sparc-solaris. */
13554#define _STRUCTURED_PROC 1
97bf5e38 13555#include <sys/procfs.h>
bec39cab
AC
13556int
13557main ()
13558{
97bf5e38 13559psaddr_t avar
bec39cab
AC
13560 ;
13561 return 0;
13562}
13563_ACEOF
81ecdfbb 13564if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13565 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 13566else
81ecdfbb 13567 bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 13568
c906108c 13569fi
81ecdfbb 13570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
13571fi
13572
97bf5e38 13573 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab 13574
81ecdfbb 13575$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
c906108c 13576
97bf5e38 13577 fi
81ecdfbb
RW
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13579$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
c906108c 13580
81ecdfbb
RW
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13582$as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13583 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13584 $as_echo_n "(cached) " >&6
c906108c 13585else
81ecdfbb 13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13587/* end confdefs.h. */
c906108c 13588
97bf5e38 13589#define _SYSCALL32
d30c5336
JK
13590/* Needed for new procfs interface on sparc-solaris. */
13591#define _STRUCTURED_PROC 1
97bf5e38 13592#include <sys/procfs.h>
bec39cab
AC
13593int
13594main ()
13595{
97bf5e38 13596prsysent_t avar
bec39cab
AC
13597 ;
13598 return 0;
13599}
13600_ACEOF
81ecdfbb 13601if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13602 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 13603else
81ecdfbb 13604 bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 13605
c906108c 13606fi
81ecdfbb 13607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
13608fi
13609
97bf5e38 13610 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab 13611
81ecdfbb 13612$as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
c906108c 13613
97bf5e38 13614 fi
81ecdfbb
RW
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13616$as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
c906108c 13617
81ecdfbb
RW
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13619$as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13620 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13621 $as_echo_n "(cached) " >&6
c906108c 13622else
81ecdfbb 13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13624/* end confdefs.h. */
c906108c 13625
97bf5e38 13626#define _SYSCALL32
d30c5336
JK
13627/* Needed for new procfs interface on sparc-solaris. */
13628#define _STRUCTURED_PROC 1
97bf5e38 13629#include <sys/procfs.h>
bec39cab
AC
13630int
13631main ()
13632{
97bf5e38 13633pr_sigset_t avar
bec39cab
AC
13634 ;
13635 return 0;
13636}
13637_ACEOF
81ecdfbb 13638if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13639 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 13640else
81ecdfbb 13641 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 13642
c906108c 13643fi
81ecdfbb 13644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
13645fi
13646
97bf5e38 13647 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab 13648
81ecdfbb 13649$as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
c906108c 13650
97bf5e38 13651 fi
81ecdfbb
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13653$as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
c906108c 13654
81ecdfbb
RW
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13656$as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13657 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13658 $as_echo_n "(cached) " >&6
c906108c 13659else
81ecdfbb 13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13661/* end confdefs.h. */
c906108c 13662
97bf5e38 13663#define _SYSCALL32
d30c5336
JK
13664/* Needed for new procfs interface on sparc-solaris. */
13665#define _STRUCTURED_PROC 1
97bf5e38 13666#include <sys/procfs.h>
bec39cab
AC
13667int
13668main ()
13669{
97bf5e38 13670pr_sigaction64_t avar
bec39cab
AC
13671 ;
13672 return 0;
13673}
13674_ACEOF
81ecdfbb 13675if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13676 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 13677else
81ecdfbb 13678 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 13679
c906108c 13680fi
81ecdfbb 13681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
13682fi
13683
97bf5e38 13684 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab 13685
81ecdfbb 13686$as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
c906108c 13687
97bf5e38 13688 fi
81ecdfbb
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13690$as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
97bf5e38 13691
81ecdfbb
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13693$as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13694 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13695 $as_echo_n "(cached) " >&6
97bf5e38 13696else
81ecdfbb 13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13698/* end confdefs.h. */
97bf5e38
MK
13699
13700#define _SYSCALL32
d30c5336
JK
13701/* Needed for new procfs interface on sparc-solaris. */
13702#define _STRUCTURED_PROC 1
97bf5e38 13703#include <sys/procfs.h>
bec39cab
AC
13704int
13705main ()
13706{
97bf5e38 13707pr_siginfo64_t avar
bec39cab
AC
13708 ;
13709 return 0;
13710}
13711_ACEOF
81ecdfbb 13712if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38
MK
13713 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13714else
81ecdfbb 13715 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 13716
97bf5e38 13717fi
81ecdfbb 13718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13719fi
c906108c 13720
97bf5e38 13721 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab 13722
81ecdfbb 13723$as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
c906108c 13724
97bf5e38 13725 fi
81ecdfbb
RW
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13727$as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
bec39cab
AC
13728
13729
97bf5e38
MK
13730
13731
13732
97bf5e38 13733 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
81ecdfbb
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13735$as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13736 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13737 $as_echo_n "(cached) " >&6
c906108c 13738else
81ecdfbb 13739 if test "$cross_compiling" = yes; then :
97bf5e38 13740 gdb_cv_prfpregset_t_broken=yes
c906108c 13741else
81ecdfbb 13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13743/* end confdefs.h. */
97bf5e38
MK
13744#include <sys/procfs.h>
13745 int main ()
13746 {
13747 if (sizeof (prfpregset_t) == sizeof (void *))
13748 return 1;
13749 return 0;
13750 }
bec39cab 13751_ACEOF
81ecdfbb 13752if ac_fn_c_try_run "$LINENO"; then :
97bf5e38 13753 gdb_cv_prfpregset_t_broken=no
81ecdfbb
RW
13754else
13755 gdb_cv_prfpregset_t_broken=yes
c906108c 13756fi
81ecdfbb
RW
13757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13758 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 13759fi
81ecdfbb 13760
c906108c
SS
13761fi
13762
81ecdfbb
RW
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13764$as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
97bf5e38 13765 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f 13766
81ecdfbb 13767$as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
c906108c 13768
97bf5e38
MK
13769 fi
13770 fi
c906108c 13771
bec39cab 13772
81ecdfbb
RW
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13774$as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13775 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13776 $as_echo_n "(cached) " >&6
c906108c 13777else
81ecdfbb 13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13779/* end confdefs.h. */
97bf5e38
MK
13780#include <unistd.h>
13781#include <sys/types.h>
13782#include <sys/procfs.h>
13783
bec39cab
AC
13784int
13785main ()
13786{
97bf5e38
MK
13787
13788 int dummy;;
13789 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
13790
13791 ;
13792 return 0;
13793}
13794_ACEOF
81ecdfbb 13795if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13796 gdb_cv_have_procfs_piocset=yes
c906108c 13797else
81ecdfbb 13798 gdb_cv_have_procfs_piocset=no
c906108c 13799fi
81ecdfbb 13800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13801fi
97bf5e38 13802
81ecdfbb
RW
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13804$as_echo "$gdb_cv_have_procfs_piocset" >&6; }
97bf5e38 13805 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f 13806
81ecdfbb 13807$as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
97bf5e38
MK
13808
13809 fi
c906108c 13810fi
c906108c 13811
97bf5e38 13812if test ${host} = ${target} ; then
bec39cab 13813
81ecdfbb
RW
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13815$as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13816 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13817 $as_echo_n "(cached) " >&6
bec39cab 13818else
81ecdfbb 13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13820/* end confdefs.h. */
97bf5e38 13821#include <link.h>
bec39cab
AC
13822int
13823main ()
13824{
97bf5e38 13825struct link_map lm; (void) lm.l_addr;
bec39cab
AC
13826 ;
13827 return 0;
13828}
13829_ACEOF
81ecdfbb 13830if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13831 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 13832else
81ecdfbb 13833 gdb_cv_have_struct_link_map_with_l_members=no
c906108c 13834fi
81ecdfbb 13835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
13836fi
13837
81ecdfbb
RW
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13839$as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
97bf5e38 13840 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f 13841
81ecdfbb 13842$as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
97bf5e38
MK
13843
13844 fi
13845
bec39cab 13846
81ecdfbb
RW
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13848$as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13849 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13850 $as_echo_n "(cached) " >&6
c906108c 13851else
81ecdfbb 13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13853/* end confdefs.h. */
97bf5e38
MK
13854#include <sys/types.h>
13855#include <link.h>
bec39cab
AC
13856int
13857main ()
13858{
97bf5e38 13859struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
13860 ;
13861 return 0;
13862}
13863_ACEOF
81ecdfbb 13864if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38
MK
13865 gdb_cv_have_struct_link_map_with_lm_members=yes
13866else
81ecdfbb 13867 gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 13868fi
81ecdfbb 13869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13870fi
c906108c 13871
81ecdfbb
RW
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13873$as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
97bf5e38 13874 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f 13875
81ecdfbb 13876$as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
97bf5e38
MK
13877
13878 fi
13879
bec39cab 13880
81ecdfbb
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13882$as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13883 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13884 $as_echo_n "(cached) " >&6
c906108c 13885else
81ecdfbb 13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13887/* end confdefs.h. */
97bf5e38
MK
13888#include <sys/types.h>
13889#ifdef HAVE_NLIST_H
13890#include <nlist.h>
13891#endif
13892#include <link.h>
bec39cab
AC
13893int
13894main ()
13895{
97bf5e38 13896struct so_map lm; (void) lm.som_addr;
bec39cab
AC
13897 ;
13898 return 0;
13899}
13900_ACEOF
81ecdfbb 13901if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38
MK
13902 gdb_cv_have_struct_so_map_with_som_members=yes
13903else
81ecdfbb 13904 gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 13905fi
81ecdfbb 13906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 13907fi
c906108c 13908
81ecdfbb
RW
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13910$as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
97bf5e38 13911 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f 13912
81ecdfbb 13913$as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
c906108c 13914
97bf5e38 13915 fi
c906108c 13916
bec39cab 13917
81ecdfbb
RW
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13919$as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13920 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
97bf5e38 13922else
81ecdfbb 13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13924/* end confdefs.h. */
97bf5e38
MK
13925#define _SYSCALL32
13926#include <sys/link.h>
bec39cab
AC
13927int
13928main ()
13929{
97bf5e38 13930struct link_map32 l;
bec39cab
AC
13931 ;
13932 return 0;
13933}
13934_ACEOF
81ecdfbb 13935if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38
MK
13936 gdb_cv_have_struct_link_map32=yes
13937else
81ecdfbb 13938 gdb_cv_have_struct_link_map32=no
97bf5e38 13939fi
81ecdfbb 13940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 13941fi
c906108c 13942
81ecdfbb
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13944$as_echo "$gdb_cv_have_struct_link_map32" >&6; }
97bf5e38 13945 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f 13946
81ecdfbb 13947$as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
c906108c 13948
60ca704f 13949
81ecdfbb 13950$as_echo "#define _SYSCALL32 1" >>confdefs.h
c906108c 13951
97bf5e38
MK
13952 fi
13953fi
c906108c 13954
bc8bcb4b 13955# Check if the compiler supports the `long long' type.
c906108c 13956
81ecdfbb
RW
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13958$as_echo_n "checking for long long support in compiler... " >&6; }
13959if test "${gdb_cv_c_long_long+set}" = set; then :
13960 $as_echo_n "(cached) " >&6
97bf5e38 13961else
81ecdfbb 13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13963/* end confdefs.h. */
bc8bcb4b 13964extern long long foo;
bec39cab
AC
13965int
13966main ()
13967{
bc8bcb4b 13968switch (foo & 2) { case 0: return 1; }
bec39cab
AC
13969 ;
13970 return 0;
13971}
13972_ACEOF
81ecdfbb 13973if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38
MK
13974 gdb_cv_c_long_long=yes
13975else
81ecdfbb 13976 gdb_cv_c_long_long=no
97bf5e38 13977fi
81ecdfbb 13978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 13979fi
81ecdfbb
RW
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13981$as_echo "$gdb_cv_c_long_long" >&6; }
97bf5e38 13982if test $gdb_cv_c_long_long = yes; then
bc8bcb4b 13983
81ecdfbb 13984$as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
97bf5e38
MK
13985
13986fi
13987
bc8bcb4b 13988# Check if the compiler and runtime support printing long longs.
97bf5e38 13989
81ecdfbb
RW
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13991$as_echo_n "checking for long long support in printf... " >&6; }
13992if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13993 $as_echo_n "(cached) " >&6
97bf5e38 13994else
81ecdfbb 13995 if test "$cross_compiling" = yes; then :
97bf5e38
MK
13996 gdb_cv_printf_has_long_long=no
13997else
81ecdfbb 13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13999/* end confdefs.h. */
bc8bcb4b
MK
14000$ac_includes_default
14001int
14002main ()
14003{
14004char buf[32];
97bf5e38
MK
14005 long long l = 0;
14006 l = (l << 16) + 0x0123;
14007 l = (l << 16) + 0x4567;
14008 l = (l << 16) + 0x89ab;
14009 l = (l << 16) + 0xcdef;
14010 sprintf (buf, "0x%016llx", l);
14011 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
14012 ;
14013 return 0;
c906108c 14014}
bec39cab 14015_ACEOF
81ecdfbb 14016if ac_fn_c_try_run "$LINENO"; then :
97bf5e38
MK
14017 gdb_cv_printf_has_long_long=yes
14018else
81ecdfbb 14019 gdb_cv_printf_has_long_long=no
97bf5e38 14020fi
81ecdfbb
RW
14021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14022 conftest.$ac_objext conftest.beam conftest.$ac_ext
97bf5e38 14023fi
81ecdfbb 14024
97bf5e38 14025fi
81ecdfbb
RW
14026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14027$as_echo "$gdb_cv_printf_has_long_long" >&6; }
97bf5e38 14028if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b 14029
81ecdfbb 14030$as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
97bf5e38
MK
14031
14032fi
97bf5e38 14033
1a619819
LM
14034# Check if the compiler and runtime support printing decfloats.
14035
81ecdfbb
RW
14036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14037$as_echo_n "checking for decfloat support in printf... " >&6; }
14038if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
1a619819 14040else
81ecdfbb 14041 if test "$cross_compiling" = yes; then :
1a619819
LM
14042 gdb_cv_printf_has_decfloat=no
14043else
81ecdfbb 14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1a619819
LM
14045/* end confdefs.h. */
14046$ac_includes_default
14047int
14048main ()
14049{
14050char buf[64];
14051 _Decimal32 d32 = 1.2345df;
14052 _Decimal64 d64 = 1.2345dd;
14053 _Decimal128 d128 = 1.2345dl;
14054 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14055 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14056 ;
14057 return 0;
14058}
14059_ACEOF
81ecdfbb 14060if ac_fn_c_try_run "$LINENO"; then :
1a619819
LM
14061 gdb_cv_printf_has_decfloat=yes
14062else
81ecdfbb 14063 gdb_cv_printf_has_decfloat=no
1a619819 14064fi
81ecdfbb
RW
14065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14066 conftest.$ac_objext conftest.beam conftest.$ac_ext
1a619819 14067fi
81ecdfbb 14068
1a619819 14069fi
81ecdfbb
RW
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14071$as_echo "$gdb_cv_printf_has_decfloat" >&6; }
1a619819
LM
14072if test $gdb_cv_printf_has_decfloat = yes; then
14073
81ecdfbb 14074$as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
1a619819
LM
14075
14076fi
14077
bc8bcb4b
MK
14078# Check if the compiler supports the `long double' type. We can't use
14079# AC_C_LONG_DOUBLE because that one does additional checks on the
14080# constants defined in <float.h> that fail on some systems,
14081# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 14082
81ecdfbb
RW
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14084$as_echo_n "checking for long double support in compiler... " >&6; }
14085if test "${gdb_cv_c_long_double+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
97bf5e38 14087else
81ecdfbb 14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14089/* end confdefs.h. */
97bf5e38 14090long double foo;
bec39cab 14091_ACEOF
81ecdfbb 14092if ac_fn_c_try_compile "$LINENO"; then :
bc8bcb4b 14093 gdb_cv_c_long_double=yes
97bf5e38 14094else
81ecdfbb 14095 gdb_cv_c_long_double=no
97bf5e38 14096fi
81ecdfbb 14097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 14098fi
81ecdfbb
RW
14099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14100$as_echo "$gdb_cv_c_long_double" >&6; }
bc8bcb4b 14101if test $gdb_cv_c_long_double = yes; then
c906108c 14102
81ecdfbb 14103$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
97bf5e38
MK
14104
14105fi
14106
bc8bcb4b 14107# Check if the compiler and runtime support printing long doubles.
97bf5e38 14108
81ecdfbb
RW
14109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14110$as_echo_n "checking for long double support in printf... " >&6; }
14111if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
97bf5e38 14113else
81ecdfbb 14114 if test "$cross_compiling" = yes; then :
97bf5e38
MK
14115 gdb_cv_printf_has_long_double=no
14116else
81ecdfbb 14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14118/* end confdefs.h. */
bc8bcb4b
MK
14119$ac_includes_default
14120int
14121main ()
14122{
14123char buf[16];
97bf5e38
MK
14124 long double f = 3.141592653;
14125 sprintf (buf, "%Lg", f);
14126 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
14127 ;
14128 return 0;
97bf5e38 14129}
bec39cab 14130_ACEOF
81ecdfbb 14131if ac_fn_c_try_run "$LINENO"; then :
97bf5e38 14132 gdb_cv_printf_has_long_double=yes
c906108c 14133else
81ecdfbb 14134 gdb_cv_printf_has_long_double=no
c906108c 14135fi
81ecdfbb
RW
14136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14137 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 14138fi
81ecdfbb 14139
c906108c 14140fi
81ecdfbb
RW
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14142$as_echo "$gdb_cv_printf_has_long_double" >&6; }
97bf5e38 14143if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b 14144
81ecdfbb 14145$as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
97bf5e38
MK
14146
14147fi
97bf5e38 14148
bc8bcb4b 14149# Check if the compiler and runtime support scanning long doubles.
97bf5e38 14150
81ecdfbb
RW
14151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14152$as_echo_n "checking for long double support in scanf... " >&6; }
14153if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14154 $as_echo_n "(cached) " >&6
97bf5e38 14155else
81ecdfbb 14156 if test "$cross_compiling" = yes; then :
97bf5e38
MK
14157 gdb_cv_scanf_has_long_double=no
14158else
81ecdfbb 14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14160/* end confdefs.h. */
bc8bcb4b
MK
14161#include <stdio.h>
14162int
14163main ()
14164{
14165char *buf = "3.141592653";
97bf5e38
MK
14166 long double f = 0;
14167 sscanf (buf, "%Lg", &f);
14168 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
14169 ;
14170 return 0;
97bf5e38 14171}
bec39cab 14172_ACEOF
81ecdfbb 14173if ac_fn_c_try_run "$LINENO"; then :
97bf5e38
MK
14174 gdb_cv_scanf_has_long_double=yes
14175else
81ecdfbb 14176 gdb_cv_scanf_has_long_double=no
97bf5e38 14177fi
81ecdfbb
RW
14178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14179 conftest.$ac_objext conftest.beam conftest.$ac_ext
97bf5e38 14180fi
81ecdfbb 14181
c906108c 14182fi
81ecdfbb
RW
14183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14184$as_echo "$gdb_cv_scanf_has_long_double" >&6; }
97bf5e38 14185if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b 14186
81ecdfbb 14187$as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
97bf5e38
MK
14188
14189fi
c906108c 14190
438013df
AO
14191case ${host_os} in
14192aix*)
81ecdfbb
RW
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14194$as_echo_n "checking for -bbigtoc option... " >&6; }
14195if test "${gdb_cv_bigtoc+set}" = set; then :
14196 $as_echo_n "(cached) " >&6
438013df 14197else
bec39cab 14198
438013df
AO
14199 SAVE_LDFLAGS=$LDFLAGS
14200
14201 case $GCC in
14202 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14203 *) gdb_cv_bigtoc=-bbigtoc ;;
14204 esac
14205
14206 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
81ecdfbb 14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14208/* end confdefs.h. */
438013df 14209
bec39cab
AC
14210int
14211main ()
14212{
438013df 14213int i;
bec39cab
AC
14214 ;
14215 return 0;
14216}
14217_ACEOF
81ecdfbb 14218if ac_fn_c_try_link "$LINENO"; then :
bec39cab 14219
81ecdfbb
RW
14220else
14221 gdb_cv_bigtoc=
438013df 14222fi
81ecdfbb
RW
14223rm -f core conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
ec76baa5 14225 LDFLAGS="${SAVE_LDFLAGS}"
438013df 14226
bec39cab 14227fi
81ecdfbb
RW
14228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14229$as_echo "$gdb_cv_bigtoc" >&6; }
438013df
AO
14230 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14231 ;;
14232esac
14233
38f6b338 14234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
f6528abd 14235$as_echo_n "checking for the dynamic export flag... " >&6; }
38f6b338
JK
14236dynamic_list=false
14237if test "${gdb_native}" = yes; then
14238 # The dynamically loaded libthread_db needs access to symbols in the gdb
14239 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14240 # may not be supported there.
14241 old_LDFLAGS="$LDFLAGS"
14242 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14243 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14244 LDFLAGS="$LDFLAGS $RDYNAMIC"
14245 if test "${have_libpython}" = no; then
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f6528abd
JK
14247/* end confdefs.h. */
14248
14249int
14250main ()
14251{
14252
14253 ;
14254 return 0;
14255}
14256_ACEOF
14257if ac_fn_c_try_link "$LINENO"; then :
3bebe2f2
JK
14258 dynamic_list=true
14259fi
14260rm -f core conftest.err conftest.$ac_objext \
14261 conftest$ac_exeext conftest.$ac_ext
38f6b338
JK
14262 else
14263 # Workaround http://bugs.python.org/issue4434 where static
14264 # libpythonX.Y.a would get its symbols required for
14265 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14266 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14267 old_CFLAGS="$CFLAGS"
14268 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14269 if test "$cross_compiling" = yes; then :
3bebe2f2 14270 true
f6528abd 14271else
3bebe2f2
JK
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273/* end confdefs.h. */
14274#include "${have_libpython}/Python.h"
14275int
14276main ()
14277{
14278int err;
38f6b338
JK
14279 Py_Initialize ();
14280 err = PyRun_SimpleString ("import itertools\n");
14281 Py_Finalize ();
14282 return err == 0 ? 0 : 1;
3bebe2f2
JK
14283 ;
14284 return 0;
14285}
14286_ACEOF
14287if ac_fn_c_try_run "$LINENO"; then :
14288 dynamic_list=true
14289fi
14290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14291 conftest.$ac_objext conftest.beam conftest.$ac_ext
14292fi
14293
38f6b338
JK
14294 CFLAGS="$old_CFLAGS"
14295 fi
14296 LDFLAGS="$old_LDFLAGS"
14297fi
14298if $dynamic_list; then
14299 found="-Wl,--dynamic-list"
14300 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
f6528abd 14301else
38f6b338
JK
14302 found="-rdynamic"
14303 RDYNAMIC="-rdynamic"
f6528abd 14304fi
f6528abd 14305
38f6b338 14306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
f6528abd 14307$as_echo "$found" >&6; }
0407b3f1 14308
f6528abd 14309
0407b3f1 14310if test ${build} = ${host} -a ${host} = ${target} ; then
c906108c
SS
14311 case ${host_os} in
14312 hpux*)
81ecdfbb
RW
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
14314$as_echo_n "checking for HPUX/OSF thread support... " >&6; }
c906108c
SS
14315 if test -f /usr/include/dce/cma_config.h ; then
14316 if test "$GCC" = "yes" ; then
81ecdfbb
RW
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14318$as_echo "yes" >&6; }
60ca704f 14319
81ecdfbb 14320$as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
c906108c 14321
3483b318 14322 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
14323 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
14324 else
81ecdfbb
RW
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
14326$as_echo "no (suppressed because you are not using GCC)" >&6; }
c906108c
SS
14327 fi
14328 else
81ecdfbb
RW
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330$as_echo "no" >&6; }
c906108c
SS
14331 fi
14332 ;;
14333 solaris*)
d92419e5
JB
14334 # See if thread_db library is around for Solaris thread debugging.
14335 # Note that we must explicitly test for version 1 of the library
14336 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14337 # the same API.
81ecdfbb
RW
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14339$as_echo_n "checking for Solaris thread debugging library... " >&6; }
c906108c 14340 if test -f /usr/lib/libthread_db.so.1 ; then
81ecdfbb
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14342$as_echo "yes" >&6; }
60ca704f 14343
81ecdfbb 14344$as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
c906108c 14345
3483b318 14346 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 14347 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
81ecdfbb
RW
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14349$as_echo_n "checking for dlopen in -ldl... " >&6; }
14350if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14351 $as_echo_n "(cached) " >&6
c906108c 14352else
bec39cab 14353 ac_check_lib_save_LIBS=$LIBS
c906108c 14354LIBS="-ldl $LIBS"
81ecdfbb 14355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
14356/* end confdefs.h. */
14357
81ecdfbb
RW
14358/* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
bec39cab
AC
14361#ifdef __cplusplus
14362extern "C"
14363#endif
bec39cab
AC
14364char dlopen ();
14365int
14366main ()
14367{
81ecdfbb 14368return dlopen ();
bec39cab
AC
14369 ;
14370 return 0;
14371}
14372_ACEOF
81ecdfbb 14373if ac_fn_c_try_link "$LINENO"; then :
bec39cab
AC
14374 ac_cv_lib_dl_dlopen=yes
14375else
81ecdfbb 14376 ac_cv_lib_dl_dlopen=no
bec39cab 14377fi
81ecdfbb
RW
14378rm -f core conftest.err conftest.$ac_objext \
14379 conftest$ac_exeext conftest.$ac_ext
bec39cab
AC
14380LIBS=$ac_check_lib_save_LIBS
14381fi
81ecdfbb
RW
14382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14383$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14384if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
bec39cab
AC
14385 cat >>confdefs.h <<_ACEOF
14386#define HAVE_LIBDL 1
14387_ACEOF
c906108c
SS
14388
14389 LIBS="-ldl $LIBS"
14390
c906108c
SS
14391fi
14392
f6528abd 14393 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
c906108c
SS
14394 # Sun randomly tweaked the prototypes in <proc_service.h>
14395 # at one point.
81ecdfbb
RW
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14397$as_echo_n "checking if <proc_service.h> is old... " >&6; }
14398 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14399 $as_echo_n "(cached) " >&6
c906108c 14400else
bec39cab 14401
81ecdfbb 14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14403/* end confdefs.h. */
c906108c
SS
14404
14405 #include <proc_service.h>
14406 ps_err_e ps_pdwrite
14407 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 14408
bec39cab
AC
14409int
14410main ()
14411{
14412
14413 ;
14414 return 0;
14415}
14416_ACEOF
81ecdfbb 14417if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
14418 gdb_cv_proc_service_is_old=no
14419else
81ecdfbb 14420 gdb_cv_proc_service_is_old=yes
c906108c 14421fi
81ecdfbb 14422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 14423
c906108c
SS
14424fi
14425
81ecdfbb
RW
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14427$as_echo "$gdb_cv_proc_service_is_old" >&6; }
c906108c 14428 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f 14429
81ecdfbb 14430$as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
c906108c
SS
14431
14432 fi
14433 else
81ecdfbb
RW
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435$as_echo "no" >&6; }
c906108c
SS
14436 fi
14437 ;;
d92419e5 14438 aix*)
81ecdfbb
RW
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14440$as_echo_n "checking for AiX thread debugging library... " >&6; }
14441 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
bec39cab 14443else
81ecdfbb 14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14445/* end confdefs.h. */
d92419e5 14446#include <sys/pthdebug.h>
bec39cab
AC
14447int
14448main ()
14449{
d92419e5
JB
14450#ifndef PTHDB_VERSION_3
14451 #error
14452 #endif
bec39cab
AC
14453 ;
14454 return 0;
14455}
14456_ACEOF
81ecdfbb 14457if ac_fn_c_try_compile "$LINENO"; then :
d92419e5
JB
14458 gdb_cv_have_aix_thread_debug=yes
14459else
81ecdfbb 14460 gdb_cv_have_aix_thread_debug=no
d92419e5 14461fi
81ecdfbb 14462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
14463fi
14464
81ecdfbb
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14466$as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
d92419e5
JB
14467 if test $gdb_cv_have_aix_thread_debug = yes; then
14468 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 14469 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
14470 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14471 fi
14472 ;;
c906108c 14473 esac
bec39cab 14474
c906108c
SS
14475fi
14476
3f47be5c 14477if test "x$ac_cv_header_thread_db_h" = "xyes"; then
81ecdfbb
RW
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14479$as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14480if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
bec39cab 14482else
81ecdfbb 14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14484/* end confdefs.h. */
3f47be5c 14485#include <thread_db.h>
bec39cab
AC
14486int
14487main ()
14488{
3f47be5c 14489int i = TD_NOTALLOC;
bec39cab
AC
14490 ;
14491 return 0;
14492}
14493_ACEOF
81ecdfbb 14494if ac_fn_c_try_compile "$LINENO"; then :
3f47be5c
EZ
14495 gdb_cv_thread_db_h_has_td_notalloc=yes
14496else
81ecdfbb 14497 gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 14498
3f47be5c 14499fi
81ecdfbb 14500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 14501
bec39cab 14502fi
81ecdfbb
RW
14503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14504$as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14506$as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14507if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14508 $as_echo_n "(cached) " >&6
59f80f10 14509else
81ecdfbb 14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59f80f10
DJ
14511/* end confdefs.h. */
14512#include <thread_db.h>
14513int
14514main ()
14515{
14516int i = TD_VERSION;
14517 ;
14518 return 0;
14519}
14520_ACEOF
81ecdfbb 14521if ac_fn_c_try_compile "$LINENO"; then :
59f80f10
DJ
14522 gdb_cv_thread_db_h_has_td_version=yes
14523else
81ecdfbb 14524 gdb_cv_thread_db_h_has_td_version=no
59f80f10
DJ
14525
14526fi
81ecdfbb 14527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59f80f10
DJ
14528
14529fi
81ecdfbb
RW
14530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14531$as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14533$as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14534if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14535 $as_echo_n "(cached) " >&6
59f80f10 14536else
81ecdfbb 14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59f80f10
DJ
14538/* end confdefs.h. */
14539#include <thread_db.h>
14540int
14541main ()
14542{
14543int i = TD_NOTLS;
14544 ;
14545 return 0;
14546}
14547_ACEOF
81ecdfbb 14548if ac_fn_c_try_compile "$LINENO"; then :
59f80f10
DJ
14549 gdb_cv_thread_db_h_has_td_notls=yes
14550else
81ecdfbb 14551 gdb_cv_thread_db_h_has_td_notls=no
59f80f10
DJ
14552
14553fi
81ecdfbb 14554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59f80f10
DJ
14555
14556fi
81ecdfbb
RW
14557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14558$as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
3f47be5c
EZ
14559fi
14560if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab 14561
81ecdfbb 14562$as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
3f47be5c 14563
59f80f10
DJ
14564fi
14565if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14566
81ecdfbb 14567$as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
59f80f10
DJ
14568
14569fi
14570if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14571
81ecdfbb 14572$as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
59f80f10 14573
3f47be5c
EZ
14574fi
14575
b757528f 14576if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
81ecdfbb
RW
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14578$as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14579if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14580 $as_echo_n "(cached) " >&6
bec39cab 14581else
81ecdfbb 14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14583/* end confdefs.h. */
b757528f 14584#include <sys/syscall.h>
bec39cab
AC
14585int
14586main ()
14587{
b757528f 14588int i = __NR_tkill;
bec39cab
AC
14589 ;
14590 return 0;
14591}
14592_ACEOF
81ecdfbb 14593if ac_fn_c_try_compile "$LINENO"; then :
b757528f
JJ
14594 gdb_cv_sys_syscall_h_has_tkill=yes
14595else
81ecdfbb 14596 gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 14597
b757528f 14598fi
81ecdfbb 14599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 14600
bec39cab 14601fi
81ecdfbb
RW
14602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14603$as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
b757528f
JJ
14604fi
14605if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab 14606
81ecdfbb 14607$as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
b757528f
JJ
14608
14609fi
14610
81ecdfbb
RW
14611ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14612"
14613if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14614 ac_have_decl=1
10568435 14615else
81ecdfbb 14616 ac_have_decl=0
10568435 14617fi
10568435
JK
14618
14619cat >>confdefs.h <<_ACEOF
81ecdfbb 14620#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
10568435
JK
14621_ACEOF
14622
14623
81ecdfbb
RW
14624if test "$cross_compiling" = yes; then :
14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568435
JK
14626/* end confdefs.h. */
14627#include <sys/personality.h>
14628int
14629main ()
14630{
14631
14632# if !HAVE_DECL_ADDR_NO_RANDOMIZE
14633# define ADDR_NO_RANDOMIZE 0x0040000
14634# endif
14635 /* Test the flag could be set and stays set. */
14636 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14637 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14638 return 1
14639 ;
14640 return 0;
14641}
14642_ACEOF
81ecdfbb 14643if ac_fn_c_try_link "$LINENO"; then :
10568435
JK
14644 have_personality=true
14645else
81ecdfbb 14646 have_personality=false
10568435 14647fi
81ecdfbb
RW
14648rm -f core conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext conftest.$ac_ext
10568435 14650else
81ecdfbb 14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568435
JK
14652/* end confdefs.h. */
14653#include <sys/personality.h>
14654int
14655main ()
14656{
14657
14658# if !HAVE_DECL_ADDR_NO_RANDOMIZE
14659# define ADDR_NO_RANDOMIZE 0x0040000
14660# endif
14661 /* Test the flag could be set and stays set. */
14662 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14663 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14664 return 1
14665 ;
14666 return 0;
14667}
14668_ACEOF
81ecdfbb 14669if ac_fn_c_try_run "$LINENO"; then :
10568435
JK
14670 have_personality=true
14671else
81ecdfbb 14672 have_personality=false
10568435 14673fi
81ecdfbb
RW
14674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14675 conftest.$ac_objext conftest.beam conftest.$ac_ext
10568435 14676fi
81ecdfbb 14677
10568435
JK
14678if $have_personality
14679then
14680
81ecdfbb 14681$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
10568435
JK
14682
14683fi
14684
fb40c209 14685
b14b1491 14686target_sysroot_reloc=0
bec39cab 14687
81ecdfbb
RW
14688# Check whether --with-sysroot was given.
14689if test "${with_sysroot+set}" = set; then :
14690 withval=$with_sysroot;
030292b7 14691 case ${with_sysroot} in
715d1656 14692 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
14693 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14694 esac
14695
14696 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14697
07abfebf
RS
14698 if test "x$prefix" = xNONE; then
14699 test_prefix=/usr/local
14700 else
14701 test_prefix=$prefix
14702 fi
aa28a74e 14703 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 14704 test_exec_prefix=$test_prefix
030292b7 14705 else
07abfebf 14706 test_exec_prefix=$exec_prefix
030292b7
DJ
14707 fi
14708 case ${TARGET_SYSTEM_ROOT} in
715d1656 14709 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
14710 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14711 '${prefix}'|'${prefix}/'*|\
715d1656 14712 '${exec_prefix}'|'${exec_prefix}/'*)
b14b1491 14713 target_sysroot_reloc=1
030292b7
DJ
14714 ;;
14715 esac
14716
14717else
bec39cab 14718
030292b7
DJ
14719 TARGET_SYSTEM_ROOT=
14720 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14721
81ecdfbb 14722fi
b14b1491 14723
81ecdfbb 14724TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
030292b7
DJ
14725
14726
14727
16e7150e 14728
16e7150e 14729
81ecdfbb
RW
14730# Check whether --with-system-gdbinit was given.
14731if test "${with_system_gdbinit+set}" = set; then :
14732 withval=$with_system_gdbinit;
b14b1491
TT
14733 SYSTEM_GDBINIT=$withval
14734else
14735 SYSTEM_GDBINIT=
81ecdfbb
RW
14736fi
14737
16e7150e
JG
14738
14739 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14740 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b14b1491 14741 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
16e7150e
JG
14742 ac_define_dir=`eval echo $ac_define_dir`
14743
14744cat >>confdefs.h <<_ACEOF
14745#define SYSTEM_GDBINIT "$ac_define_dir"
14746_ACEOF
14747
14748
14749
0c4a4063 14750
b14b1491
TT
14751 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14752 if test "x$prefix" = xNONE; then
14753 test_prefix=/usr/local
14754 else
14755 test_prefix=$prefix
14756 fi
14757 else
14758 test_prefix=$exec_prefix
14759 fi
14760 value=0
14761 case ${ac_define_dir} in
14762 "${test_prefix}"|"${test_prefix}/"*|\
14763 '${exec_prefix}'|'${exec_prefix}/'*)
14764 value=1
14765 ;;
14766 esac
16e7150e 14767
b14b1491
TT
14768cat >>confdefs.h <<_ACEOF
14769#define SYSTEM_GDBINIT_RELOCATABLE $value
16e7150e
JG
14770_ACEOF
14771
b14b1491 14772
16e7150e 14773
0c4a4063 14774
81ecdfbb
RW
14775# Check whether --enable-werror was given.
14776if test "${enable_werror+set}" = set; then :
14777 enableval=$enable_werror; case "${enableval}" in
094a342e
MK
14778 yes | y) ERROR_ON_WARNING="yes" ;;
14779 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 14780 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
094a342e 14781 esac
81ecdfbb
RW
14782fi
14783
094a342e
MK
14784
14785# Enable -Werror by default when using gcc
14786if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14787 ERROR_ON_WARNING=yes
14788fi
14789
14790WERROR_CFLAGS=""
14791if test "${ERROR_ON_WARNING}" = yes ; then
14792 WERROR_CFLAGS="-Werror"
14793fi
14794
aa79a185
DJ
14795# The entries after -Wno-pointer-sign are disabled warnings which may
14796# be enabled in the future, which can not currently be used to build
14797# GDB.
14798# NOTE: If you change this list, remember to update
3b851bce 14799# gdb/doc/gdbint.texinfo.
aa79a185
DJ
14800build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14801-Wformat-nonliteral -Wno-pointer-sign \
1cb5e2a4
JB
14802-Wno-unused -Wunused-value -Wunused-function \
14803-Wno-switch -Wno-char-subscripts"
a3b362c4 14804
3526781e
DJ
14805# Enable -Wno-format by default when using gcc on mingw since many
14806# GCC versions complain about %I64.
14807case "${host}" in
14808 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14809esac
14810
81ecdfbb
RW
14811# Check whether --enable-build-warnings was given.
14812if test "${enable_build_warnings+set}" = set; then :
14813 enableval=$enable_build_warnings; case "${enableval}" in
c906108c
SS
14814 yes) ;;
14815 no) build_warnings="-w";;
14816 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14817 build_warnings="${build_warnings} ${t}";;
14818 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14819 build_warnings="${t} ${build_warnings}";;
14820 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14821esac
d4f3574e 14822if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 14823 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 14824fi
81ecdfbb
RW
14825fi
14826# Check whether --enable-gdb-build-warnings was given.
14827if test "${enable_gdb_build_warnings+set}" = set; then :
14828 enableval=$enable_gdb_build_warnings; case "${enableval}" in
3b851bce
AC
14829 yes) ;;
14830 no) build_warnings="-w";;
14831 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14832 build_warnings="${build_warnings} ${t}";;
14833 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14834 build_warnings="${t} ${build_warnings}";;
14835 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14836esac
14837if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14838 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14839fi
81ecdfbb
RW
14840fi
14841WARN_CFLAGS=""
c906108c
SS
14842if test "x${build_warnings}" != x -a "x$GCC" = xyes
14843then
81ecdfbb
RW
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14845$as_echo_n "checking compiler warning flags... " >&6; }
746a987d
AC
14846 # Separate out the -Werror flag as some files just cannot be
14847 # compiled with it enabled.
14848 for w in ${build_warnings}; do
14849 case $w in
14850 -Werr*) WERROR_CFLAGS=-Werror ;;
14851 *) # Check that GCC accepts it
4536bbc6
AC
14852 saved_CFLAGS="$CFLAGS"
14853 CFLAGS="$CFLAGS $w"
81ecdfbb 14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14855/* end confdefs.h. */
4536bbc6 14856
bec39cab
AC
14857int
14858main ()
14859{
4536bbc6 14860
bec39cab
AC
14861 ;
14862 return 0;
14863}
14864_ACEOF
81ecdfbb 14865if ac_fn_c_try_compile "$LINENO"; then :
4536bbc6 14866 WARN_CFLAGS="${WARN_CFLAGS} $w"
4536bbc6 14867fi
81ecdfbb 14868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 14869 CFLAGS="$saved_CFLAGS"
746a987d
AC
14870 esac
14871 done
81ecdfbb
RW
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14873$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
c906108c
SS
14874fi
14875
14876
104c1213 14877
7a292a7a 14878# In the Cygwin environment, we need some additional flags.
81ecdfbb
RW
14879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14880$as_echo_n "checking for cygwin... " >&6; }
14881if test "${gdb_cv_os_cygwin+set}" = set; then :
14882 $as_echo_n "(cached) " >&6
bec39cab 14883else
81ecdfbb 14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14885/* end confdefs.h. */
7a292a7a
SS
14886
14887#if defined (__CYGWIN__) || defined (__CYGWIN32__)
14888lose
14889#endif
bec39cab 14890_ACEOF
7a292a7a 14891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 14892 $EGREP "lose" >/dev/null 2>&1; then :
7a292a7a
SS
14893 gdb_cv_os_cygwin=yes
14894else
7a292a7a
SS
14895 gdb_cv_os_cygwin=no
14896fi
14897rm -f conftest*
14898
14899fi
81ecdfbb
RW
14900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14901$as_echo "$gdb_cv_os_cygwin" >&6; }
7a292a7a 14902
aff38e61 14903
3eb25fda 14904SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 14905case ${host} in
95cbc983
AC
14906 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14907 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 14908 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
14909esac
14910
14911
cd0fc7c3
SS
14912# libreadline needs libuser32.a in a cygwin environment
14913WIN32LIBS=
14914if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
14915 WIN32LIBS="-luser32"
14916 case "${target}" in
14917 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14918 ;;
14919 esac
cd0fc7c3 14920fi
c906108c 14921
b4505029
MM
14922# The ser-tcp.c module requires sockets.
14923case ${host} in
14924 *mingw32*)
14925
81ecdfbb 14926$as_echo "#define USE_WIN32API 1" >>confdefs.h
b4505029
MM
14927
14928 WIN32LIBS="$WIN32LIBS -lws2_32"
14929 ;;
14930esac
14931
7a292a7a 14932
31d99776
DJ
14933# Add ELF support to GDB, but only if BFD includes ELF support.
14934OLD_CFLAGS=$CFLAGS
14935OLD_LDFLAGS=$LDFLAGS
14936OLD_LIBS=$LIBS
cab58a69 14937CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 14938LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9 14939intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
0f72fb1c 14940LIBS="-lbfd -liberty $intl $LIBS"
81ecdfbb
RW
14941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14942$as_echo_n "checking for ELF support in BFD... " >&6; }
14943if test "${gdb_cv_var_elf+set}" = set; then :
14944 $as_echo_n "(cached) " >&6
31d99776 14945else
81ecdfbb 14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31d99776
DJ
14947/* end confdefs.h. */
14948#include <stdlib.h>
14949#include "bfd.h"
14950#include "elf-bfd.h"
14951
14952int
14953main ()
14954{
14955bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14956 ;
14957 return 0;
14958}
14959_ACEOF
81ecdfbb 14960if ac_fn_c_try_link "$LINENO"; then :
31d99776
DJ
14961 gdb_cv_var_elf=yes
14962else
81ecdfbb 14963 gdb_cv_var_elf=no
31d99776 14964fi
81ecdfbb
RW
14965rm -f core conftest.err conftest.$ac_objext \
14966 conftest$ac_exeext conftest.$ac_ext
31d99776 14967fi
81ecdfbb
RW
14968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14969$as_echo "$gdb_cv_var_elf" >&6; }
31d99776
DJ
14970if test $gdb_cv_var_elf = yes; then
14971 CONFIG_OBS="$CONFIG_OBS elfread.o"
14972
81ecdfbb 14973$as_echo "#define HAVE_ELF 1" >>confdefs.h
31d99776
DJ
14974
14975fi
14976CFLAGS=$OLD_CFLAGS
14977LDFLAGS=$OLD_LDFLAGS
14978LIBS=$OLD_LIBS
14979
121ce6e5
DJ
14980# Add any host-specific objects to GDB.
14981CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14982
3fc11d3e
JM
14983LIBGUI="../libgui/src/libgui.a"
14984GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14985
14986
7a292a7a 14987
3fc11d3e
JM
14988WIN32LDAPP=
14989
14990
14991
d91670b9 14992case "${host}" in
686a5eed 14993*-*-cygwin* | *-*-mingw* )
d91670b9
CV
14994 configdir="win"
14995 ;;
14996*)
14997 configdir="unix"
14998 ;;
14999esac
3fc11d3e
JM
15000
15001GDBTKLIBS=
15002if test "${enable_gdbtk}" = "yes"; then
15003
d1c3b63a
KS
15004 # Gdbtk must have an absolute path to srcdir in order to run
15005 # properly when not installed.
15006 here=`pwd`
15007 cd ${srcdir}
15008 GDBTK_SRC_DIR=`pwd`
15009 cd $here
15010
bec39cab 15011
5062cc19
KS
15012 #
15013 # Ok, lets find the tcl configuration
15014 # First, look for one uninstalled.
15015 # the alternative search directory is invoked by --with-tcl
15016 #
3fc11d3e 15017
5062cc19
KS
15018 if test x"${no_tcl}" = x ; then
15019 # we reset no_tcl in case something fails here
15020 no_tcl=true
bec39cab 15021
81ecdfbb
RW
15022# Check whether --with-tcl was given.
15023if test "${with_tcl+set}" = set; then :
15024 withval=$with_tcl; with_tclconfig=${withval}
15025fi
15026
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15028$as_echo_n "checking for Tcl configuration... " >&6; }
15029 if test "${ac_cv_c_tclconfig+set}" = set; then :
15030 $as_echo_n "(cached) " >&6
3fc11d3e 15031else
bec39cab 15032
3fc11d3e 15033
5062cc19
KS
15034 # First check to see if --with-tcl was specified.
15035 case "${host}" in
15036 *-*-cygwin*) platDir="win" ;;
15037 *) platDir="unix" ;;
15038 esac
15039 if test x"${with_tclconfig}" != x ; then
15040 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15041 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15042 else
81ecdfbb 15043 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
5062cc19
KS
15044 fi
15045 fi
15046
15047 # then check for a private Tcl installation
15048 if test x"${ac_cv_c_tclconfig}" = x ; then
15049 for i in \
15050 ../tcl \
15051 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15052 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15053 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15054 ../../tcl \
15055 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15056 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15057 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15058 ../../../tcl \
15059 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15060 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15061 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15062 if test -f "$i/$platDir/tclConfig.sh" ; then
15063 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15064 break
15065 fi
15066 done
15067 fi
15068
15069 # on Darwin, check in Framework installation locations
15070 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15071 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15072 `ls -d /Library/Frameworks 2>/dev/null` \
15073 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15074 `ls -d /System/Library/Frameworks 2>/dev/null` \
15075 ; do
15076 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15077 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15078 break
15079 fi
15080 done
15081 fi
15082
15083 # check in a few common install locations
15084 if test x"${ac_cv_c_tclconfig}" = x ; then
15085 for i in `ls -d ${libdir} 2>/dev/null` \
15086 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15087 `ls -d ${prefix}/lib 2>/dev/null` \
15088 `ls -d /usr/local/lib 2>/dev/null` \
15089 `ls -d /usr/contrib/lib 2>/dev/null` \
15090 `ls -d /usr/lib 2>/dev/null` \
15091 ; do
15092 if test -f "$i/tclConfig.sh" ; then
15093 ac_cv_c_tclconfig=`(cd $i; pwd)`
15094 break
15095 fi
15096 done
15097 fi
3fc11d3e 15098
5062cc19
KS
15099 # check in a few other private locations
15100 if test x"${ac_cv_c_tclconfig}" = x ; then
15101 for i in \
15102 ${srcdir}/../tcl \
15103 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15104 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15105 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15106 if test -f "$i/$platDir/tclConfig.sh" ; then
15107 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15108 break
15109 fi
15110 done
15111 fi
bec39cab 15112
3fc11d3e
JM
15113fi
15114
5062cc19
KS
15115
15116 if test x"${ac_cv_c_tclconfig}" = x ; then
15117 TCL_BIN_DIR="# no Tcl configs found"
81ecdfbb
RW
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15119$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
5062cc19
KS
15120 else
15121 no_tcl=
15122 TCL_BIN_DIR=${ac_cv_c_tclconfig}
81ecdfbb
RW
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15124$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
5062cc19
KS
15125 fi
15126 fi
3fc11d3e 15127
bec39cab 15128
85541719
DE
15129 # If $no_tk is nonempty, then we can't do Tk, and there is no
15130 # point to doing Tcl.
bec39cab 15131
5062cc19
KS
15132 #
15133 # Ok, lets find the tk configuration
15134 # First, look for one uninstalled.
15135 # the alternative search directory is invoked by --with-tk
15136 #
3fc11d3e 15137
5062cc19
KS
15138 if test x"${no_tk}" = x ; then
15139 # we reset no_tk in case something fails here
15140 no_tk=true
bec39cab 15141
81ecdfbb
RW
15142# Check whether --with-tk was given.
15143if test "${with_tk+set}" = set; then :
15144 withval=$with_tk; with_tkconfig=${withval}
15145fi
15146
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15148$as_echo_n "checking for Tk configuration... " >&6; }
15149 if test "${ac_cv_c_tkconfig+set}" = set; then :
15150 $as_echo_n "(cached) " >&6
bec39cab 15151else
3fc11d3e
JM
15152
15153
5062cc19
KS
15154 # First check to see if --with-tkconfig was specified.
15155 if test x"${with_tkconfig}" != x ; then
15156 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15157 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15158 else
81ecdfbb 15159 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
5062cc19
KS
15160 fi
15161 fi
3fc11d3e 15162
5062cc19
KS
15163 # then check for a private Tk library
15164 case "${host}" in
15165 *-*-cygwin*) platDir="win" ;;
15166 *) platDir="unix" ;;
15167 esac
15168 if test x"${ac_cv_c_tkconfig}" = x ; then
15169 for i in \
15170 ../tk \
15171 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15172 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15173 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15174 ../../tk \
15175 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15176 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15177 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15178 ../../../tk \
15179 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15180 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15181 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15182 if test -f "$i/$platDir/tkConfig.sh" ; then
15183 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15184 break
15185 fi
15186 done
15187 fi
15188
15189 # on Darwin, check in Framework installation locations
15190 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15191 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15192 `ls -d /Library/Frameworks 2>/dev/null` \
15193 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15194 `ls -d /System/Library/Frameworks 2>/dev/null` \
15195 ; do
15196 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15197 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15198 break
15199 fi
15200 done
15201 fi
15202
15203 # check in a few common install locations
15204 if test x"${ac_cv_c_tkconfig}" = x ; then
15205 for i in `ls -d ${libdir} 2>/dev/null` \
15206 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15207 `ls -d ${prefix}/lib 2>/dev/null` \
15208 `ls -d /usr/local/lib 2>/dev/null` \
15209 `ls -d /usr/contrib/lib 2>/dev/null` \
15210 `ls -d /usr/lib 2>/dev/null` \
15211 ; do
15212 if test -f "$i/tkConfig.sh" ; then
15213 ac_cv_c_tkconfig=`(cd $i; pwd)`
15214 break
15215 fi
15216 done
15217 fi
15218 # check in a few other private locations
15219 if test x"${ac_cv_c_tkconfig}" = x ; then
15220 for i in \
15221 ${srcdir}/../tk \
15222 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15223 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15224 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15225 if test -f "$i/$platDir/tkConfig.sh" ; then
15226 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15227 break
15228 fi
15229 done
15230 fi
3fc11d3e 15231
3fc11d3e
JM
15232fi
15233
15234
5062cc19
KS
15235 if test x"${ac_cv_c_tkconfig}" = x ; then
15236 TK_BIN_DIR="# no Tk configs found"
81ecdfbb
RW
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15238$as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
5062cc19
KS
15239 else
15240 no_tk=
15241 TK_BIN_DIR=${ac_cv_c_tkconfig}
81ecdfbb
RW
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15243$as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
5062cc19 15244 fi
3fc11d3e 15245 fi
dd2504ab 15246
dd2504ab 15247
85541719
DE
15248 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15249
81ecdfbb
RW
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15251$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
85541719
DE
15252
15253 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
81ecdfbb
RW
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15255$as_echo "loading" >&6; }
85541719
DE
15256 . ${TCL_BIN_DIR}/tclConfig.sh
15257 else
81ecdfbb
RW
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15259$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
85541719
DE
15260 fi
15261
15262 # eval is required to do the TCL_DBGX substitution
15263 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15264 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15265
15266 # If the TCL_BIN_DIR is the build directory (not the install directory),
15267 # then set the common variable name to the value of the build variables.
15268 # For example, the variable TCL_LIB_SPEC will be set to the value
15269 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15270 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15271 # installed and uninstalled version of Tcl.
15272 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15273 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15274 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15275 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15276 elif test "`uname -s`" = "Darwin"; then
15277 # If Tcl was built as a framework, attempt to use the libraries
15278 # from the framework at the given location so that linking works
15279 # against Tcl.framework installed in an arbitary location.
15280 case ${TCL_DEFS} in
15281 *TCL_FRAMEWORK*)
15282 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15283 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15284 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15285 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15286 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15287 break
15288 fi
15289 done
15290 fi
15291 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15292 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15293 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15294 fi
15295 ;;
15296 esac
15297 fi
15298
15299 # eval is required to do the TCL_DBGX substitution
15300 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15301 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15302 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15303 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319 # Check for in-tree tcl
15320 here=`pwd`
15321 cd ${srcdir}/..
15322 topdir=`pwd`
15323 cd ${here}
15324
15325 intree="no"
15326 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15327 intree="yes"
15328 fi
15329
15330 # Find Tcl private headers
15331 if test x"${intree}" = xno; then
15332
81ecdfbb
RW
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15334$as_echo_n "checking for Tcl private headers... " >&6; }
85541719
DE
15335 private_dir=""
15336 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15337 if test -f ${dir}/tclInt.h ; then
15338 private_dir=${dir}
15339 fi
15340
15341 if test x"${private_dir}" = x; then
81ecdfbb 15342 as_fn_error "could not find private Tcl headers" "$LINENO" 5
85541719
DE
15343 else
15344 TCL_PRIVATE_INCLUDE="-I${private_dir}"
81ecdfbb
RW
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15346$as_echo "${private_dir}" >&6; }
85541719
DE
15347 fi
15348
15349 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15350 TCL_LIBRARY="${TCL_LIB_SPEC}"
15351 TCL_DEPS=""
15352 else
15353 # If building tcl in the same src tree, private headers
15354 # are not needed, but we need to be sure to use the right
15355 # headers library
15356 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15357 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15358 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15359 fi
15360
15361
15362
15363
15364
81ecdfbb
RW
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15366$as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
dd2504ab 15367
5062cc19 15368 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
81ecdfbb
RW
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15370$as_echo "loading" >&6; }
5062cc19 15371 . ${TK_BIN_DIR}/tkConfig.sh
3fc11d3e 15372 else
81ecdfbb
RW
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15374$as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
3fc11d3e 15375 fi
bec39cab 15376
5062cc19
KS
15377 # eval is required to do the TK_DBGX substitution
15378 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15379 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15380
15381 # If the TK_BIN_DIR is the build directory (not the install directory),
15382 # then set the common variable name to the value of the build variables.
15383 # For example, the variable TK_LIB_SPEC will be set to the value
15384 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15385 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15386 # installed and uninstalled version of Tcl.
85541719 15387 if test -f "${TK_BIN_DIR}/Makefile" ; then
5062cc19
KS
15388 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15389 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15390 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15391 elif test "`uname -s`" = "Darwin"; then
15392 # If Tk was built as a framework, attempt to use the libraries
15393 # from the framework at the given location so that linking works
15394 # against Tk.framework installed in an arbitary location.
15395 case ${TK_DEFS} in
15396 *TK_FRAMEWORK*)
85541719 15397 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
5062cc19
KS
15398 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15399 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15400 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15401 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15402 break
15403 fi
15404 done
15405 fi
85541719 15406 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
5062cc19
KS
15407 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15408 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15409 fi
15410 ;;
15411 esac
3fc11d3e
JM
15412 fi
15413
5062cc19
KS
15414 # eval is required to do the TK_DBGX substitution
15415 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15416 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15417 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15418 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
3fc11d3e 15419
3fc11d3e
JM
15420
15421
bec39cab
AC
15422
15423
15424
15425
15426
15427
15428
3fc11d3e 15429
3fc11d3e 15430
bec39cab 15431
bec39cab 15432
85541719
DE
15433 # Check for in-tree Tk
15434 intree="no"
15435 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15436 intree="yes"
15437 fi
3fc11d3e 15438
85541719
DE
15439 # Find Tk private headers
15440 if test x"${intree}" = xno; then
3fc11d3e 15441
81ecdfbb
RW
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15443$as_echo_n "checking for Tk private headers... " >&6; }
5062cc19
KS
15444 private_dir=""
15445 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15446 if test -f ${dir}/tkInt.h; then
15447 private_dir=${dir}
3fc11d3e 15448 fi
bec39cab 15449
5062cc19 15450 if test x"${private_dir}" = x; then
81ecdfbb 15451 as_fn_error "could not find Tk private headers" "$LINENO" 5
3fc11d3e 15452 else
5062cc19 15453 TK_PRIVATE_INCLUDE="-I${private_dir}"
81ecdfbb
RW
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15455$as_echo "${private_dir}" >&6; }
3fc11d3e 15456 fi
3fc11d3e 15457
85541719
DE
15458 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15459 TK_LIBRARY=${TK_LIB_SPEC}
15460 TK_DEPS=""
15461 else
15462 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15463 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15464 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15465 fi
3fc11d3e
JM
15466
15467
3fc11d3e
JM
15468
15469
3fc11d3e 15470
85541719 15471 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e 15472
85541719
DE
15473 # Include some libraries that Tcl and Tk want.
15474 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15475 # Yes, the ordering seems wrong here. But it isn't.
15476 # TK_LIBS is the list of libraries that need to be linked
15477 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15478 # were in LIBS then any link tests after this point would
15479 # try to include things like `$(LIBGUI)', which wouldn't work.
15480 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5 15481
85541719
DE
15482 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15483 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15484 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15485 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15486 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15487 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15488 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e 15489
85541719
DE
15490 if test x$gdb_cv_os_cygwin = xyes; then
15491 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15492 WIN32LDAPP="-Wl,--subsystem,console"
15493 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
3fc11d3e 15494 fi
ffc6a242 15495
81ecdfbb 15496 subdirs="$subdirs gdbtk"
3ace7edb 15497
85541719 15498 fi
3fc11d3e
JM
15499fi
15500
15501
15502
15503
15504
15505
15506
15507
81ecdfbb
RW
15508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15509$as_echo_n "checking for X... " >&6; }
bec39cab 15510
c906108c 15511
81ecdfbb
RW
15512# Check whether --with-x was given.
15513if test "${with_x+set}" = set; then :
15514 withval=$with_x;
15515fi
c906108c
SS
15516
15517# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15518if test "x$with_x" = xno; then
15519 # The user explicitly disabled X.
15520 have_x=disabled
15521else
81ecdfbb
RW
15522 case $x_includes,$x_libraries in #(
15523 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15524 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15525 $as_echo_n "(cached) " >&6
c906108c
SS
15526else
15527 # One or both of the vars are not set, and there is no cached value.
bec39cab 15528ac_x_includes=no ac_x_libraries=no
81ecdfbb 15529rm -f -r conftest.dir
bec39cab
AC
15530if mkdir conftest.dir; then
15531 cd conftest.dir
bec39cab 15532 cat >Imakefile <<'_ACEOF'
81ecdfbb
RW
15533incroot:
15534 @echo incroot='${INCROOT}'
15535usrlibdir:
15536 @echo usrlibdir='${USRLIBDIR}'
15537libdir:
15538 @echo libdir='${LIBDIR}'
15539_ACEOF
15540 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c 15541 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
15542 for ac_var in incroot usrlibdir libdir; do
15543 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15544 done
c906108c 15545 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
81ecdfbb
RW
15546 for ac_extension in a so sl dylib la dll; do
15547 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15548 test -f "$ac_im_libdir/libX11.$ac_extension"; then
bec39cab 15549 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
15550 fi
15551 done
15552 # Screen out bogus values from the imake configuration. They are
15553 # bogus both because they are the default anyway, and because
15554 # using them would break gcc on systems where it needs fixed includes.
bec39cab 15555 case $ac_im_incroot in
81ecdfbb 15556 /usr/include) ac_x_includes= ;;
bec39cab 15557 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 15558 esac
bec39cab 15559 case $ac_im_usrlibdir in
81ecdfbb 15560 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
bec39cab 15561 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
15562 esac
15563 fi
15564 cd ..
81ecdfbb 15565 rm -f -r conftest.dir
c906108c
SS
15566fi
15567
bec39cab
AC
15568# Standard set of common directories for X headers.
15569# Check X11 before X11Rn because it is often a symlink to the current release.
15570ac_x_header_dirs='
15571/usr/X11/include
81ecdfbb 15572/usr/X11R7/include
bec39cab
AC
15573/usr/X11R6/include
15574/usr/X11R5/include
15575/usr/X11R4/include
15576
15577/usr/include/X11
81ecdfbb 15578/usr/include/X11R7
bec39cab
AC
15579/usr/include/X11R6
15580/usr/include/X11R5
15581/usr/include/X11R4
15582
15583/usr/local/X11/include
81ecdfbb 15584/usr/local/X11R7/include
bec39cab
AC
15585/usr/local/X11R6/include
15586/usr/local/X11R5/include
15587/usr/local/X11R4/include
15588
15589/usr/local/include/X11
81ecdfbb 15590/usr/local/include/X11R7
bec39cab
AC
15591/usr/local/include/X11R6
15592/usr/local/include/X11R5
15593/usr/local/include/X11R4
15594
15595/usr/X386/include
15596/usr/x386/include
15597/usr/XFree86/include/X11
15598
15599/usr/include
15600/usr/local/include
15601/usr/unsupported/include
15602/usr/athena/include
15603/usr/local/x11r5/include
15604/usr/lpp/Xamples/include
15605
15606/usr/openwin/include
15607/usr/openwin/share/include'
15608
15609if test "$ac_x_includes" = no; then
81ecdfbb 15610 # Guess where to find include files, by looking for Xlib.h.
c906108c 15611 # First, try using that file with no special directory specified.
81ecdfbb 15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 15613/* end confdefs.h. */
81ecdfbb 15614#include <X11/Xlib.h>
bec39cab 15615_ACEOF
81ecdfbb 15616if ac_fn_c_try_cpp "$LINENO"; then :
c906108c
SS
15617 # We can compile using X headers with no special include directory.
15618ac_x_includes=
15619else
bec39cab 15620 for ac_dir in $ac_x_header_dirs; do
81ecdfbb 15621 if test -r "$ac_dir/X11/Xlib.h"; then
bec39cab
AC
15622 ac_x_includes=$ac_dir
15623 break
15624 fi
15625done
c906108c 15626fi
bec39cab
AC
15627rm -f conftest.err conftest.$ac_ext
15628fi # $ac_x_includes = no
c906108c 15629
bec39cab 15630if test "$ac_x_libraries" = no; then
c906108c 15631 # Check for the libraries.
c906108c
SS
15632 # See if we find them without any special options.
15633 # Don't add to $LIBS permanently.
bec39cab 15634 ac_save_LIBS=$LIBS
81ecdfbb
RW
15635 LIBS="-lX11 $LIBS"
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 15637/* end confdefs.h. */
81ecdfbb 15638#include <X11/Xlib.h>
bec39cab
AC
15639int
15640main ()
15641{
81ecdfbb 15642XrmInitialize ()
bec39cab
AC
15643 ;
15644 return 0;
15645}
15646_ACEOF
81ecdfbb 15647if ac_fn_c_try_link "$LINENO"; then :
bec39cab 15648 LIBS=$ac_save_LIBS
c906108c
SS
15649# We can link X programs with no special library path.
15650ac_x_libraries=
15651else
81ecdfbb
RW
15652 LIBS=$ac_save_LIBS
15653for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 15654do
bec39cab 15655 # Don't even attempt the hair of trying to link an X program!
81ecdfbb
RW
15656 for ac_extension in a so sl dylib la dll; do
15657 if test -r "$ac_dir/libX11.$ac_extension"; then
c906108c
SS
15658 ac_x_libraries=$ac_dir
15659 break 2
15660 fi
15661 done
15662done
15663fi
81ecdfbb
RW
15664rm -f core conftest.err conftest.$ac_objext \
15665 conftest$ac_exeext conftest.$ac_ext
bec39cab 15666fi # $ac_x_libraries = no
c906108c 15667
81ecdfbb
RW
15668case $ac_x_includes,$ac_x_libraries in #(
15669 no,* | *,no | *\'*)
15670 # Didn't find X, or a directory has "'" in its name.
15671 ac_cv_have_x="have_x=no";; #(
15672 *)
15673 # Record where we found X for the cache.
15674 ac_cv_have_x="have_x=yes\
15675 ac_x_includes='$ac_x_includes'\
15676 ac_x_libraries='$ac_x_libraries'"
15677esac
c906108c 15678fi
81ecdfbb
RW
15679;; #(
15680 *) have_x=yes;;
15681 esac
c906108c
SS
15682 eval "$ac_cv_have_x"
15683fi # $with_x != no
15684
15685if test "$have_x" != yes; then
81ecdfbb
RW
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15687$as_echo "$have_x" >&6; }
c906108c
SS
15688 no_x=yes
15689else
15690 # If each of the values was on the command line, it overrides each guess.
15691 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15692 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15693 # Update the cache value to reflect the command line values.
81ecdfbb
RW
15694 ac_cv_have_x="have_x=yes\
15695 ac_x_includes='$x_includes'\
15696 ac_x_libraries='$x_libraries'"
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15698$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
c906108c
SS
15699fi
15700
15701
bec39cab 15702# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 15703# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
15704# This code just checks for a few cases where we'd like to ignore those
15705# definitions, even when they're present in the '.mt' file. These cases
15706# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 15707# not part of the source tree.
7a292a7a 15708#
81ecdfbb
RW
15709# Check whether --enable-sim was given.
15710if test "${enable_sim+set}" = set; then :
15711 enableval=$enable_sim; echo "enable_sim = $enable_sim";
7a292a7a
SS
15712 echo "enableval = ${enableval}";
15713 case "${enableval}" in
15714 yes) ignore_sim=false ;;
15715 no) ignore_sim=true ;;
15716 *) ignore_sim=false ;;
15717 esac
15718else
15719 ignore_sim=false
81ecdfbb
RW
15720fi
15721
7a292a7a
SS
15722
15723if test ! -d "${srcdir}/../sim"; then
15724 ignore_sim=true
15725fi
15726
9b624dbe
UW
15727SIM=
15728SIM_OBS=
15729if test "${ignore_sim}" = "false"; then
15730 if test x"${gdb_sim}" != x ; then
15731 SIM="${gdb_sim}"
15732 SIM_OBS="remote-sim.o"
60ca704f 15733
81ecdfbb 15734$as_echo "#define WITH_SIM 1" >>confdefs.h
7a292a7a 15735
9b624dbe 15736 fi
7a292a7a
SS
15737fi
15738
15739
15740
c906108c
SS
15741
15742
15743
15744
15745
15746
dfcd3bfb 15747
e56ac5c3
AC
15748
15749
b3a90332
AC
15750
15751
c35f4ffc 15752# List of host floatformats.
bec39cab
AC
15753
15754cat >>confdefs.h <<_ACEOF
c35f4ffc 15755#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 15756_ACEOF
c35f4ffc 15757
bec39cab
AC
15758
15759cat >>confdefs.h <<_ACEOF
c35f4ffc 15760#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
15761_ACEOF
15762
c35f4ffc 15763
bec39cab 15764cat >>confdefs.h <<_ACEOF
c35f4ffc 15765#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 15766_ACEOF
c35f4ffc
AC
15767
15768
c906108c
SS
15769# target_subdir is used by the testsuite to find the target libraries.
15770target_subdir=
15771if test "${host}" != "${target}"; then
15772 target_subdir="${target_alias}/"
15773fi
15774
15775
15776frags=
771b4502 15777if test "${gdb_native}" = "yes"; then
0dad8a66
MK
15778 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15779 if test ! -f ${host_makefile_frag}; then
81ecdfbb 15780 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
0dad8a66
MK
15781 fi
15782 frags="$frags $host_makefile_frag"
15783else
15784 host_makefile_frag=/dev/null
c906108c 15785fi
c906108c 15786
c906108c
SS
15787
15788
15789
771b4502 15790if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
15791# We pick this up from the host configuration file (.mh) because we
15792# do not have a native configuration Makefile fragment.
c906108c
SS
15793nativefile=`sed -n '
15794s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15795' ${host_makefile_frag}`
c906108c
SS
15796fi
15797
15798
b00a8037 15799if test x"${gdb_osabi}" != x ; then
bec39cab
AC
15800
15801cat >>confdefs.h <<_ACEOF
b00a8037 15802#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 15803_ACEOF
b00a8037
DJ
15804
15805fi
15806
8dcde887 15807# Enable multi-ice-gdb-server.
81ecdfbb
RW
15808# Check whether --enable-multi-ice was given.
15809if test "${enable_multi_ice+set}" = set; then :
15810 enableval=$enable_multi_ice; case $enableval in
8dcde887
MK
15811 yes | no)
15812 ;;
81ecdfbb 15813 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
8dcde887 15814 esac
81ecdfbb 15815fi
b4e70030 15816
81ecdfbb
RW
15817if test "x$enable_multi_ice" = xyes; then
15818 subdirs="$subdirs multi-ice"
3ace7edb 15819
a85f51e7
DJ
15820fi
15821
496c0e1b
JB
15822# Check whether --enable-gdbserver was given.
15823if test "${enable_gdbserver+set}" = set; then :
15824 enableval=$enable_gdbserver; case "${enableval}" in
15825 yes| no|auto) ;;
15826 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15827esac
15828else
15829 enable_gdbserver=auto
15830fi
15831
15832
15833# We only build gdbserver automatically in a native configuration, and
15834# only if the user did not explicitly disable its build.
15835if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
81ecdfbb
RW
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15837$as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
8dcde887 15838 if test "x$build_gdbserver" = xyes; then
81ecdfbb
RW
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15840$as_echo "yes" >&6; }
15841 subdirs="$subdirs gdbserver"
3ace7edb 15842
496c0e1b 15843 gdbserver_build_enabled=yes
8dcde887 15844 else
81ecdfbb
RW
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15846$as_echo "no" >&6; }
8dcde887
MK
15847 fi
15848fi
15849
496c0e1b
JB
15850# If the user explicitly request the gdbserver to be built, verify that
15851# we were in fact able to enable it.
15852if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15853 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15854fi
15855
db985757 15856# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 15857# to an empty version.
c906108c
SS
15858
15859files=
15860links=
5a2402b8 15861
c906108c
SS
15862rm -f nm.h
15863if test "${nativefile}" != ""; then
0f475e27
AC
15864 case "${nativefile}" in
15865 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15866 * ) GDB_NM_FILE="${nativefile}"
15867 esac
5a2402b8
AC
15868 files="${files} ${GDB_NM_FILE}"
15869 links="${links} nm.h"
60ca704f
SE
15870
15871cat >>confdefs.h <<_ACEOF
b78960be 15872#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 15873_ACEOF
5a2402b8 15874
c906108c 15875fi
5a2402b8
AC
15876
15877
bec39cab
AC
15878ac_sources="$files"
15879ac_dests="$links"
15880while test -n "$ac_sources"; do
15881 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15882 set $ac_sources; ac_source=$1; shift; ac_sources=$*
15883 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15884done
81ecdfbb 15885ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
15886
15887
c906108c
SS
15888
15889
c906108c 15890
81ecdfbb 15891$as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
bec39cab 15892
bec39cab 15893
aa2e2d8d 15894ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile data-directory/Makefile"
81ecdfbb
RW
15895
15896ac_config_commands="$ac_config_commands default"
89a34d1b 15897
bec39cab
AC
15898cat >confcache <<\_ACEOF
15899# This file is a shell script that caches the results of configure
15900# tests run on this system so they can be shared between configure
15901# scripts and configure runs, see configure's option --config-cache.
15902# It is not useful on other systems. If it contains results you don't
15903# want to keep, you may remove or edit it.
15904#
15905# config.status only pays attention to the cache file if you give it
15906# the --recheck option to rerun configure.
15907#
15908# `ac_cv_env_foo' variables (set or unset) will be overridden when
15909# loading this file, other *unset* `ac_cv_foo' will be assigned the
15910# following values.
15911
15912_ACEOF
15913
15914# The following way of writing the cache mishandles newlines in values,
15915# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15916# So, we kill variables containing newlines.
bec39cab
AC
15917# Ultrix sh set writes to stderr and can't be redirected directly,
15918# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15919(
15920 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15921 eval ac_val=\$$ac_var
15922 case $ac_val in #(
15923 *${as_nl}*)
15924 case $ac_var in #(
15925 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15926$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15927 esac
15928 case $ac_var in #(
15929 _ | IFS | as_nl) ;; #(
15930 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15931 *) { eval $ac_var=; unset $ac_var;} ;;
15932 esac ;;
15933 esac
15934 done
15935
bec39cab 15936 (set) 2>&1 |
81ecdfbb
RW
15937 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15938 *${as_nl}ac_space=\ *)
15939 # `set' does not quote correctly, so add quotes: double-quote
15940 # substitution turns \\\\ into \\, and sed turns \\ into \.
bec39cab
AC
15941 sed -n \
15942 "s/'/'\\\\''/g;
15943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15944 ;; #(
bec39cab
AC
15945 *)
15946 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 15948 ;;
81ecdfbb
RW
15949 esac |
15950 sort
15951) |
bec39cab 15952 sed '
81ecdfbb 15953 /^ac_cv_env_/b end
bec39cab 15954 t clear
81ecdfbb 15955 :clear
bec39cab
AC
15956 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15957 t end
81ecdfbb
RW
15958 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15959 :end' >>confcache
15960if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15961 if test -w "$cache_file"; then
15962 test "x$cache_file" != "x/dev/null" &&
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15964$as_echo "$as_me: updating cache $cache_file" >&6;}
bec39cab
AC
15965 cat confcache >$cache_file
15966 else
81ecdfbb
RW
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15968$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
bec39cab
AC
15969 fi
15970fi
15971rm -f confcache
15972
15973test "x$prefix" = xNONE && prefix=$ac_default_prefix
15974# Let make expand exec_prefix.
15975test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15976
bec39cab
AC
15977DEFS=-DHAVE_CONFIG_H
15978
15979ac_libobjs=
15980ac_ltlibobjs=
15981for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15982 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15983 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15984 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15985 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15986 # will be set to the directory where LIBOBJS objects are built.
15987 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15988 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bec39cab
AC
15989done
15990LIBOBJS=$ac_libobjs
15991
15992LTLIBOBJS=$ac_ltlibobjs
15993
15994
85981d60 15995if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
15996 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15997Usually this means the macro was only invoked conditionally." "$LINENO" 5
85981d60 15998fi
a417dc56 15999if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
81ecdfbb
RW
16000 as_fn_error "conditional \"GMAKE\" was never defined.
16001Usually this means the macro was only invoked conditionally." "$LINENO" 5
a417dc56 16002fi
783e057b 16003if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
81ecdfbb
RW
16004 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16005Usually this means the macro was only invoked conditionally." "$LINENO" 5
783e057b
DJ
16006fi
16007
16008 gl_libobjs=
16009 gl_ltlibobjs=
16010 if test -n "$gl_LIBOBJS"; then
16011 # Remove the extension.
16012 sed_drop_objext='s/\.o$//;s/\.obj$//'
f434ba03 16013 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
783e057b
DJ
16014 gl_libobjs="$gl_libobjs $i.$ac_objext"
16015 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16016 done
16017 fi
16018 gl_LIBOBJS=$gl_libobjs
16019
16020 gl_LTLIBOBJS=$gl_ltlibobjs
16021
16022
16023
16024 gltests_libobjs=
16025 gltests_ltlibobjs=
16026 if test -n "$gltests_LIBOBJS"; then
16027 # Remove the extension.
16028 sed_drop_objext='s/\.o$//;s/\.obj$//'
f434ba03 16029 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
783e057b
DJ
16030 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16031 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16032 done
16033 fi
16034 gltests_LIBOBJS=$gltests_libobjs
16035
16036 gltests_LTLIBOBJS=$gltests_ltlibobjs
16037
16038
e28b3332 16039if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
16040 as_fn_error "conditional \"AMDEP\" was never defined.
16041Usually this means the macro was only invoked conditionally." "$LINENO" 5
e28b3332
DJ
16042fi
16043if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
16044 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16045Usually this means the macro was only invoked conditionally." "$LINENO" 5
16046fi
16047 if test -n "$EXEEXT"; then
16048 am__EXEEXT_TRUE=
16049 am__EXEEXT_FALSE='#'
16050else
16051 am__EXEEXT_TRUE='#'
16052 am__EXEEXT_FALSE=
e28b3332 16053fi
bec39cab 16054
81ecdfbb
RW
16055
16056
bec39cab 16057: ${CONFIG_STATUS=./config.status}
81ecdfbb 16058ac_write_fail=0
bec39cab
AC
16059ac_clean_files_save=$ac_clean_files
16060ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
16061{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16062$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16063as_write_fail=0
16064cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bec39cab
AC
16065#! $SHELL
16066# Generated by $as_me.
16067# Run this file to recreate the current configuration.
16068# Compiler output produced by configure, useful for debugging
16069# configure, is in config.log if it exists.
16070
16071debug=false
16072ac_cs_recheck=false
16073ac_cs_silent=false
bec39cab 16074
81ecdfbb
RW
16075SHELL=\${CONFIG_SHELL-$SHELL}
16076export SHELL
16077_ASEOF
16078cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16079## -------------------- ##
16080## M4sh Initialization. ##
16081## -------------------- ##
16082
16083# Be more Bourne compatible
16084DUALCASE=1; export DUALCASE # for MKS sh
16085if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
16086 emulate sh
16087 NULLCMD=:
81ecdfbb 16088 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
16089 # is contrary to our usage. Disable this feature.
16090 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
16091 setopt NO_GLOB_SUBST
16092else
16093 case `(set -o) 2>/dev/null` in #(
16094 *posix*) :
16095 set -o posix ;; #(
16096 *) :
16097 ;;
16098esac
bec39cab 16099fi
bec39cab 16100
81ecdfbb
RW
16101
16102as_nl='
16103'
16104export as_nl
16105# Printing a long string crashes Solaris 7 /usr/bin/printf.
16106as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16107as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16108as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16109# Prefer a ksh shell builtin over an external printf program on Solaris,
16110# but without wasting forks for bash or zsh.
16111if test -z "$BASH_VERSION$ZSH_VERSION" \
16112 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16113 as_echo='print -r --'
16114 as_echo_n='print -rn --'
16115elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16116 as_echo='printf %s\n'
16117 as_echo_n='printf %s'
16118else
16119 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16120 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16121 as_echo_n='/usr/ucb/echo -n'
16122 else
16123 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16124 as_echo_n_body='eval
16125 arg=$1;
16126 case $arg in #(
16127 *"$as_nl"*)
16128 expr "X$arg" : "X\\(.*\\)$as_nl";
16129 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16130 esac;
16131 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16132 '
16133 export as_echo_n_body
16134 as_echo_n='sh -c $as_echo_n_body as_echo'
16135 fi
16136 export as_echo_body
16137 as_echo='sh -c $as_echo_body as_echo'
16138fi
16139
16140# The user is always right.
16141if test "${PATH_SEPARATOR+set}" != set; then
16142 PATH_SEPARATOR=:
16143 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16144 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16145 PATH_SEPARATOR=';'
16146 }
bec39cab
AC
16147fi
16148
16149
81ecdfbb
RW
16150# IFS
16151# We need space, tab and new line, in precisely that order. Quoting is
16152# there to prevent editors from complaining about space-tab.
16153# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16154# splitting by setting IFS to empty value.)
16155IFS=" "" $as_nl"
16156
16157# Find who we are. Look in the path if we contain no directory separator.
16158case $0 in #((
16159 *[\\/]* ) as_myself=$0 ;;
16160 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16161for as_dir in $PATH
16162do
16163 IFS=$as_save_IFS
16164 test -z "$as_dir" && as_dir=.
16165 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16166 done
16167IFS=$as_save_IFS
16168
16169 ;;
16170esac
16171# We did not find ourselves, most probably we were run as `sh COMMAND'
16172# in which case we are not to be found in the path.
16173if test "x$as_myself" = x; then
16174 as_myself=$0
16175fi
16176if test ! -f "$as_myself"; then
16177 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16178 exit 1
16179fi
16180
16181# Unset variables that we do not need and which cause bugs (e.g. in
16182# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16183# suppresses any "Segmentation fault" message there. '((' could
16184# trigger a bug in pdksh 5.2.14.
16185for as_var in BASH_ENV ENV MAIL MAILPATH
16186do eval test x\${$as_var+set} = xset \
16187 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16188done
bec39cab
AC
16189PS1='$ '
16190PS2='> '
16191PS4='+ '
16192
16193# NLS nuisances.
81ecdfbb
RW
16194LC_ALL=C
16195export LC_ALL
16196LANGUAGE=C
16197export LANGUAGE
16198
16199# CDPATH.
16200(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16201
16202
16203# as_fn_error ERROR [LINENO LOG_FD]
16204# ---------------------------------
16205# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16206# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16207# script with status $?, using 1 if that was 0.
16208as_fn_error ()
16209{
16210 as_status=$?; test $as_status -eq 0 && as_status=1
16211 if test "$3"; then
16212 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16213 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16214 fi
16215 $as_echo "$as_me: error: $1" >&2
16216 as_fn_exit $as_status
16217} # as_fn_error
16218
16219
16220# as_fn_set_status STATUS
16221# -----------------------
16222# Set $? to STATUS, without forking.
16223as_fn_set_status ()
16224{
16225 return $1
16226} # as_fn_set_status
16227
16228# as_fn_exit STATUS
16229# -----------------
16230# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16231as_fn_exit ()
16232{
16233 set +e
16234 as_fn_set_status $1
16235 exit $1
16236} # as_fn_exit
16237
16238# as_fn_unset VAR
16239# ---------------
16240# Portably unset VAR.
16241as_fn_unset ()
16242{
16243 { eval $1=; unset $1;}
16244}
16245as_unset=as_fn_unset
16246# as_fn_append VAR VALUE
16247# ----------------------
16248# Append the text in VALUE to the end of the definition contained in VAR. Take
16249# advantage of any shell optimizations that allow amortized linear growth over
16250# repeated appends, instead of the typical quadratic growth present in naive
16251# implementations.
16252if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16253 eval 'as_fn_append ()
16254 {
16255 eval $1+=\$2
16256 }'
16257else
16258 as_fn_append ()
16259 {
16260 eval $1=\$$1\$2
16261 }
16262fi # as_fn_append
16263
16264# as_fn_arith ARG...
16265# ------------------
16266# Perform arithmetic evaluation on the ARGs, and store the result in the
16267# global $as_val. Take advantage of shells that can avoid forks. The arguments
16268# must be portable across $(()) and expr.
16269if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16270 eval 'as_fn_arith ()
16271 {
16272 as_val=$(( $* ))
16273 }'
16274else
16275 as_fn_arith ()
16276 {
16277 as_val=`expr "$@" || test $? -eq 1`
16278 }
16279fi # as_fn_arith
bec39cab 16280
81ecdfbb
RW
16281
16282if expr a : '\(a\)' >/dev/null 2>&1 &&
16283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
16284 as_expr=expr
16285else
16286 as_expr=false
16287fi
16288
81ecdfbb 16289if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
16290 as_basename=basename
16291else
16292 as_basename=false
16293fi
16294
81ecdfbb
RW
16295if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16296 as_dirname=dirname
16297else
16298 as_dirname=false
16299fi
bec39cab 16300
81ecdfbb 16301as_me=`$as_basename -- "$0" ||
bec39cab
AC
16302$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16303 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
16304 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16305$as_echo X/"$0" |
16306 sed '/^.*\/\([^/][^/]*\)\/*$/{
16307 s//\1/
16308 q
16309 }
16310 /^X\/\(\/\/\)$/{
16311 s//\1/
16312 q
16313 }
16314 /^X\/\(\/\).*/{
16315 s//\1/
16316 q
16317 }
16318 s/.*/./; q'`
b4e70030 16319
b4e70030
JB
16320# Avoid depending upon Character Ranges.
16321as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16322as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16323as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16324as_cr_digits='0123456789'
16325as_cr_alnum=$as_cr_Letters$as_cr_digits
16326
81ecdfbb
RW
16327ECHO_C= ECHO_N= ECHO_T=
16328case `echo -n x` in #(((((
16329-n*)
16330 case `echo 'xy\c'` in
16331 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16332 xy) ECHO_C='\c';;
16333 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16334 ECHO_T=' ';;
16335 esac;;
16336*)
16337 ECHO_N='-n';;
bec39cab
AC
16338esac
16339
81ecdfbb
RW
16340rm -f conf$$ conf$$.exe conf$$.file
16341if test -d conf$$.dir; then
16342 rm -f conf$$.dir/conf$$.file
bec39cab 16343else
81ecdfbb
RW
16344 rm -f conf$$.dir
16345 mkdir conf$$.dir 2>/dev/null
bec39cab 16346fi
81ecdfbb
RW
16347if (echo >conf$$.file) 2>/dev/null; then
16348 if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030 16349 as_ln_s='ln -s'
81ecdfbb
RW
16350 # ... but there are two gotchas:
16351 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16352 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16353 # In both cases, we have to default to `cp -p'.
16354 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16355 as_ln_s='cp -p'
16356 elif ln conf$$.file conf$$ 2>/dev/null; then
16357 as_ln_s=ln
16358 else
16359 as_ln_s='cp -p'
b4e70030 16360 fi
bec39cab
AC
16361else
16362 as_ln_s='cp -p'
16363fi
81ecdfbb
RW
16364rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16365rmdir conf$$.dir 2>/dev/null
16366
16367
16368# as_fn_mkdir_p
16369# -------------
16370# Create "$as_dir" as a directory, including parents if necessary.
16371as_fn_mkdir_p ()
16372{
16373
16374 case $as_dir in #(
16375 -*) as_dir=./$as_dir;;
16376 esac
16377 test -d "$as_dir" || eval $as_mkdir_p || {
16378 as_dirs=
16379 while :; do
16380 case $as_dir in #(
16381 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16382 *) as_qdir=$as_dir;;
16383 esac
16384 as_dirs="'$as_qdir' $as_dirs"
16385 as_dir=`$as_dirname -- "$as_dir" ||
16386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16387 X"$as_dir" : 'X\(//\)[^/]' \| \
16388 X"$as_dir" : 'X\(//\)$' \| \
16389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16390$as_echo X"$as_dir" |
16391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16392 s//\1/
16393 q
16394 }
16395 /^X\(\/\/\)[^/].*/{
16396 s//\1/
16397 q
16398 }
16399 /^X\(\/\/\)$/{
16400 s//\1/
16401 q
16402 }
16403 /^X\(\/\).*/{
16404 s//\1/
16405 q
16406 }
16407 s/.*/./; q'`
16408 test -d "$as_dir" && break
16409 done
16410 test -z "$as_dirs" || eval "mkdir $as_dirs"
16411 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16412
bec39cab 16413
81ecdfbb 16414} # as_fn_mkdir_p
bec39cab 16415if mkdir -p . 2>/dev/null; then
81ecdfbb 16416 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
16417else
16418 test -d ./-p && rmdir ./-p
16419 as_mkdir_p=false
16420fi
16421
81ecdfbb
RW
16422if test -x / >/dev/null 2>&1; then
16423 as_test_x='test -x'
16424else
16425 if ls -dL / >/dev/null 2>&1; then
16426 as_ls_L_option=L
16427 else
16428 as_ls_L_option=
16429 fi
16430 as_test_x='
16431 eval sh -c '\''
16432 if test -d "$1"; then
16433 test -d "$1/.";
16434 else
16435 case $1 in #(
16436 -*)set "./$1";;
16437 esac;
16438 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16439 ???[sx]*):;;*)false;;esac;fi
16440 '\'' sh
16441 '
16442fi
16443as_executable_p=$as_test_x
bec39cab
AC
16444
16445# Sed expression to map a string onto a valid CPP name.
16446as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16447
16448# Sed expression to map a string onto a valid variable name.
16449as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16450
16451
bec39cab 16452exec 6>&1
81ecdfbb
RW
16453## ----------------------------------- ##
16454## Main body of $CONFIG_STATUS script. ##
16455## ----------------------------------- ##
16456_ASEOF
16457test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16458
16459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16460# Save the log message, to keep $0 and so on meaningful, and to
bec39cab 16461# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
16462# values after options handling.
16463ac_log="
bec39cab 16464This file was extended by $as_me, which was
81ecdfbb 16465generated by GNU Autoconf 2.64. Invocation command line was
bec39cab
AC
16466
16467 CONFIG_FILES = $CONFIG_FILES
16468 CONFIG_HEADERS = $CONFIG_HEADERS
16469 CONFIG_LINKS = $CONFIG_LINKS
16470 CONFIG_COMMANDS = $CONFIG_COMMANDS
16471 $ $0 $@
16472
81ecdfbb
RW
16473on `(hostname || uname -n) 2>/dev/null | sed 1q`
16474"
16475
bec39cab
AC
16476_ACEOF
16477
81ecdfbb
RW
16478case $ac_config_files in *"
16479"*) set x $ac_config_files; shift; ac_config_files=$*;;
16480esac
234b45d4 16481
81ecdfbb
RW
16482case $ac_config_headers in *"
16483"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16484esac
b4e70030 16485
b4e70030 16486
81ecdfbb
RW
16487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16488# Files that config.status was made for.
16489config_files="$ac_config_files"
16490config_headers="$ac_config_headers"
16491config_links="$ac_config_links"
16492config_commands="$ac_config_commands"
234b45d4 16493
81ecdfbb 16494_ACEOF
b4e70030 16495
81ecdfbb 16496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 16497ac_cs_usage="\
81ecdfbb
RW
16498\`$as_me' instantiates files and other configuration actions
16499from templates according to the current configuration. Unless the files
16500and actions are specified as TAGs, all are instantiated by default.
234b45d4 16501
81ecdfbb 16502Usage: $0 [OPTION]... [TAG]...
234b45d4 16503
bec39cab 16504 -h, --help print this help, then exit
81ecdfbb
RW
16505 -V, --version print version number and configuration settings, then exit
16506 -q, --quiet, --silent
16507 do not print progress messages
bec39cab
AC
16508 -d, --debug don't remove temporary files
16509 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
16510 --file=FILE[:TEMPLATE]
16511 instantiate the configuration file FILE
16512 --header=FILE[:TEMPLATE]
16513 instantiate the configuration header FILE
234b45d4 16514
bec39cab
AC
16515Configuration files:
16516$config_files
234b45d4 16517
bec39cab
AC
16518Configuration headers:
16519$config_headers
234b45d4 16520
bec39cab
AC
16521Configuration links:
16522$config_links
234b45d4 16523
bec39cab
AC
16524Configuration commands:
16525$config_commands
16526
81ecdfbb 16527Report bugs to the package provider."
b4e70030 16528
81ecdfbb
RW
16529_ACEOF
16530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab
AC
16531ac_cs_version="\\
16532config.status
81ecdfbb
RW
16533configured by $0, generated by GNU Autoconf 2.64,
16534 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
bec39cab 16535
81ecdfbb 16536Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
16537This config.status script is free software; the Free Software Foundation
16538gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
16539
16540ac_pwd='$ac_pwd'
16541srcdir='$srcdir'
16542INSTALL='$INSTALL'
16543MKDIR_P='$MKDIR_P'
16544AWK='$AWK'
16545test -n "\$AWK" || AWK=awk
bec39cab
AC
16546_ACEOF
16547
81ecdfbb
RW
16548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16549# The default lists apply if the user does not specify any file.
bec39cab
AC
16550ac_need_defaults=:
16551while test $# != 0
16552do
16553 case $1 in
16554 --*=*)
81ecdfbb
RW
16555 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16556 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bec39cab 16557 ac_shift=:
c906108c 16558 ;;
81ecdfbb 16559 *)
bec39cab
AC
16560 ac_option=$1
16561 ac_optarg=$2
16562 ac_shift=shift
c906108c 16563 ;;
bec39cab 16564 esac
c906108c 16565
bec39cab
AC
16566 case $ac_option in
16567 # Handling of the options.
bec39cab
AC
16568 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16569 ac_cs_recheck=: ;;
81ecdfbb
RW
16570 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16571 $as_echo "$ac_cs_version"; exit ;;
16572 --debug | --debu | --deb | --de | --d | -d )
bec39cab
AC
16573 debug=: ;;
16574 --file | --fil | --fi | --f )
16575 $ac_shift
81ecdfbb
RW
16576 case $ac_optarg in
16577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16578 esac
16579 as_fn_append CONFIG_FILES " '$ac_optarg'"
bec39cab
AC
16580 ac_need_defaults=false;;
16581 --header | --heade | --head | --hea )
16582 $ac_shift
81ecdfbb
RW
16583 case $ac_optarg in
16584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16585 esac
16586 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
bec39cab 16587 ac_need_defaults=false;;
81ecdfbb
RW
16588 --he | --h)
16589 # Conflict between --help and --header
16590 as_fn_error "ambiguous option: \`$1'
16591Try \`$0 --help' for more information.";;
16592 --help | --hel | -h )
16593 $as_echo "$ac_cs_usage"; exit ;;
bec39cab
AC
16594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16595 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16596 ac_cs_silent=: ;;
c906108c 16597
bec39cab 16598 # This is an error.
81ecdfbb
RW
16599 -*) as_fn_error "unrecognized option: \`$1'
16600Try \`$0 --help' for more information." ;;
c906108c 16601
81ecdfbb
RW
16602 *) as_fn_append ac_config_targets " $1"
16603 ac_need_defaults=false ;;
c906108c 16604
bec39cab
AC
16605 esac
16606 shift
16607done
c906108c 16608
bec39cab 16609ac_configure_extra_args=
c906108c 16610
bec39cab
AC
16611if $ac_cs_silent; then
16612 exec 6>/dev/null
16613 ac_configure_extra_args="$ac_configure_extra_args --silent"
16614fi
c906108c 16615
bec39cab 16616_ACEOF
81ecdfbb 16617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab 16618if \$ac_cs_recheck; then
81ecdfbb
RW
16619 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16620 shift
16621 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16622 CONFIG_SHELL='$SHELL'
16623 export CONFIG_SHELL
16624 exec "\$@"
bec39cab
AC
16625fi
16626
16627_ACEOF
81ecdfbb
RW
16628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16629exec 5>>config.log
16630{
16631 echo
16632 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16633## Running $as_me. ##
16634_ASBOX
16635 $as_echo "$ac_log"
16636} >&5
bec39cab 16637
81ecdfbb
RW
16638_ACEOF
16639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c906108c 16640#
81ecdfbb 16641# INIT-COMMANDS
c906108c 16642#
a417dc56 16643ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
e28b3332 16644AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b4e70030 16645
bec39cab
AC
16646_ACEOF
16647
81ecdfbb 16648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4e8d927d 16649
81ecdfbb 16650# Handling of arguments.
bec39cab 16651for ac_config_target in $ac_config_targets
c906108c 16652do
81ecdfbb
RW
16653 case $ac_config_target in
16654 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16655 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16656 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16657 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16658 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16659 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16660 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
aa2e2d8d 16661 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
81ecdfbb
RW
16662 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16663
16664 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
16665 esac
16666done
16667
81ecdfbb 16668
bec39cab
AC
16669# If the user did not use the arguments to specify the items to instantiate,
16670# then the envvar interface is used. Set only those that are not.
16671# We use the long form for the default assignment because of an extremely
16672# bizarre bug on SunOS 4.1.3.
16673if $ac_need_defaults; then
16674 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16675 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16676 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16678fi
16679
b4e70030 16680# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 16681# simply because there is no reason against having it here, and in addition,
b4e70030 16682# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
16683# Hook for its removal unless debugging.
16684# Note that there is a small window in which the directory will not be cleaned:
16685# after its creation but before its name has been assigned to `$tmp'.
b4e70030
JB
16686$debug ||
16687{
81ecdfbb
RW
16688 tmp=
16689 trap 'exit_status=$?
16690 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16691' 0
16692 trap 'as_fn_exit 1' 1 2 13 15
16693}
16694# Create a (secure) tmp directory for tmp files.
16695
16696{
16697 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16698 test -n "$tmp" && test -d "$tmp"
16699} ||
16700{
16701 tmp=./conf$$-$RANDOM
16702 (umask 077 && mkdir "$tmp")
16703} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16704
16705# Set up the scripts for CONFIG_FILES section.
16706# No need to generate them if there are no CONFIG_FILES.
16707# This happens for instance with `./config.status config.h'.
16708if test -n "$CONFIG_FILES"; then
16709
16710if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16711 ac_cs_awk_getline=:
16712 ac_cs_awk_pipe_init=
16713 ac_cs_awk_read_file='
16714 while ((getline aline < (F[key])) > 0)
16715 print(aline)
16716 close(F[key])'
16717 ac_cs_awk_pipe_fini=
16718else
16719 ac_cs_awk_getline=false
16720 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16721 ac_cs_awk_read_file='
16722 print "|#_!!_#|"
16723 print "cat " F[key] " &&"
16724 '$ac_cs_awk_pipe_init
16725 # The final `:' finishes the AND list.
16726 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16727fi
16728ac_cr=`echo X | tr X '\015'`
16729# On cygwin, bash can eat \r inside `` if the user requested igncr.
16730# But we know of no other shell where ac_cr would be empty at this
16731# point, so we can use a bashism as a fallback.
16732if test "x$ac_cr" = x; then
16733 eval ac_cr=\$\'\\r\'
16734fi
16735ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16736if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16737 ac_cs_awk_cr='\r'
16738else
16739 ac_cs_awk_cr=$ac_cr
16740fi
16741
16742echo 'BEGIN {' >"$tmp/subs1.awk" &&
16743_ACEOF
16744
16745# Create commands to substitute file output variables.
16746{
16747 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16748 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16749 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16750 echo "_ACAWK" &&
16751 echo "_ACEOF"
16752} >conf$$files.sh &&
16753. ./conf$$files.sh ||
16754 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16755rm -f conf$$files.sh
16756
16757{
16758 echo "cat >conf$$subs.awk <<_ACEOF" &&
16759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16760 echo "_ACEOF"
16761} >conf$$subs.sh ||
16762 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16763ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16764ac_delim='%!_!# '
16765for ac_last_try in false false false false false :; do
16766 . ./conf$$subs.sh ||
16767 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16768
16769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16770 if test $ac_delim_n = $ac_delim_num; then
16771 break
16772 elif $ac_last_try; then
16773 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16774 else
16775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16776 fi
16777done
16778rm -f conf$$subs.sh
16779
16780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16781cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16782_ACEOF
16783sed -n '
16784h
16785s/^/S["/; s/!.*/"]=/
16786p
16787g
16788s/^[^!]*!//
16789:repl
16790t repl
16791s/'"$ac_delim"'$//
16792t delim
16793:nl
16794h
16795s/\(.\{148\}\).*/\1/
16796t more1
16797s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16798p
16799n
16800b repl
16801:more1
16802s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16803p
16804g
16805s/.\{148\}//
16806t nl
16807:delim
16808h
16809s/\(.\{148\}\).*/\1/
16810t more2
16811s/["\\]/\\&/g; s/^/"/; s/$/"/
16812p
16813b
16814:more2
16815s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16816p
16817g
16818s/.\{148\}//
16819t delim
16820' <conf$$subs.awk | sed '
16821/^[^""]/{
16822 N
16823 s/\n//
16824}
16825' >>$CONFIG_STATUS || ac_write_fail=1
16826rm -f conf$$subs.awk
16827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16828_ACAWK
16829cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16830 for (key in S) S_is_set[key] = 1
16831 FS = "\a"
16832 \$ac_cs_awk_pipe_init
16833}
16834{
16835 line = $ 0
16836 nfields = split(line, field, "@")
16837 substed = 0
16838 len = length(field[1])
16839 for (i = 2; i < nfields; i++) {
16840 key = field[i]
16841 keylen = length(key)
16842 if (S_is_set[key]) {
16843 value = S[key]
16844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16845 len += length(value) + length(field[++i])
16846 substed = 1
16847 } else
16848 len += 1 + keylen
16849 }
16850 if (nfields == 3 && !substed) {
16851 key = field[2]
16852 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16853 \$ac_cs_awk_read_file
16854 next
16855 }
16856 }
16857 print line
b4e70030 16858}
81ecdfbb
RW
16859\$ac_cs_awk_pipe_fini
16860_ACAWK
16861_ACEOF
16862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16863if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16864 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16865else
16866 cat
16867fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16868 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16869_ACEOF
16870
16871# VPATH may cause trouble with some makes, so we remove $(srcdir),
16872# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16873# trailing colons and then remove the whole line if VPATH becomes empty
16874# (actually we leave an empty line to preserve line numbers).
16875if test "x$srcdir" = x.; then
16876 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16877s/:*\$(srcdir):*/:/
16878s/:*\${srcdir}:*/:/
16879s/:*@srcdir@:*/:/
16880s/^\([^=]*=[ ]*\):*/\1/
16881s/:*$//
16882s/^[^=]*=[ ]*$//
16883}'
16884fi
16885
16886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16887fi # test -n "$CONFIG_FILES"
16888
16889# Set up the scripts for CONFIG_HEADERS section.
16890# No need to generate them if there are no CONFIG_HEADERS.
16891# This happens for instance with `./config.status Makefile'.
16892if test -n "$CONFIG_HEADERS"; then
16893cat >"$tmp/defines.awk" <<\_ACAWK ||
16894BEGIN {
16895_ACEOF
16896
16897# Transform confdefs.h into an awk script `defines.awk', embedded as
16898# here-document in config.status, that substitutes the proper values into
16899# config.h.in to produce config.h.
4e8d927d 16900
81ecdfbb
RW
16901# Create a delimiter string that does not exist in confdefs.h, to ease
16902# handling of long lines.
16903ac_delim='%!_!# '
16904for ac_last_try in false false :; do
16905 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16906 if test -z "$ac_t"; then
16907 break
16908 elif $ac_last_try; then
16909 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16910 else
16911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16912 fi
16913done
4e8d927d 16914
81ecdfbb
RW
16915# For the awk script, D is an array of macro values keyed by name,
16916# likewise P contains macro parameters if any. Preserve backslash
16917# newline sequences.
16918
16919ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16920sed -n '
16921s/.\{148\}/&'"$ac_delim"'/g
16922t rset
16923:rset
16924s/^[ ]*#[ ]*define[ ][ ]*/ /
16925t def
16926d
16927:def
16928s/\\$//
16929t bsnl
16930s/["\\]/\\&/g
16931s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16932D["\1"]=" \3"/p
16933s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16934d
16935:bsnl
16936s/["\\]/\\&/g
16937s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16938D["\1"]=" \3\\\\\\n"\\/p
16939t cont
16940s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16941t cont
16942d
16943:cont
16944n
16945s/.\{148\}/&'"$ac_delim"'/g
16946t clear
16947:clear
16948s/\\$//
16949t bsnlc
16950s/["\\]/\\&/g; s/^/"/; s/$/"/p
16951d
16952:bsnlc
16953s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16954b cont
16955' <confdefs.h | sed '
16956s/'"$ac_delim"'/"\\\
16957"/g' >>$CONFIG_STATUS || ac_write_fail=1
16958
16959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16960 for (key in D) D_is_set[key] = 1
16961 FS = "\a"
16962}
16963/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16964 line = \$ 0
16965 split(line, arg, " ")
16966 if (arg[1] == "#") {
16967 defundef = arg[2]
16968 mac1 = arg[3]
16969 } else {
16970 defundef = substr(arg[1], 2)
16971 mac1 = arg[2]
16972 }
16973 split(mac1, mac2, "(") #)
16974 macro = mac2[1]
16975 prefix = substr(line, 1, index(line, defundef) - 1)
16976 if (D_is_set[macro]) {
16977 # Preserve the white space surrounding the "#".
16978 print prefix "define", macro P[macro] D[macro]
16979 next
16980 } else {
16981 # Replace #undef with comments. This is necessary, for example,
16982 # in the case of _POSIX_SOURCE, which is predefined and required
16983 # on some systems where configure will not decide to define it.
16984 if (defundef == "undef") {
16985 print "/*", prefix defundef, macro, "*/"
16986 next
16987 }
16988 }
b4e70030 16989}
81ecdfbb
RW
16990{ print }
16991_ACAWK
b4e70030 16992_ACEOF
81ecdfbb
RW
16993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16994 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16995fi # test -n "$CONFIG_HEADERS"
4e8d927d 16996
4e8d927d 16997
81ecdfbb
RW
16998eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16999shift
17000for ac_tag
17001do
17002 case $ac_tag in
17003 :[FHLC]) ac_mode=$ac_tag; continue;;
17004 esac
17005 case $ac_mode$ac_tag in
17006 :[FHL]*:*);;
17007 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17008 :[FH]-) ac_tag=-:-;;
17009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17010 esac
17011 ac_save_IFS=$IFS
17012 IFS=:
17013 set x $ac_tag
17014 IFS=$ac_save_IFS
17015 shift
17016 ac_file=$1
17017 shift
4e8d927d 17018
81ecdfbb
RW
17019 case $ac_mode in
17020 :L) ac_source=$1;;
17021 :[FH])
17022 ac_file_inputs=
17023 for ac_f
17024 do
17025 case $ac_f in
17026 -) ac_f="$tmp/stdin";;
17027 *) # Look for the file first in the build tree, then in the source tree
17028 # (if the path is not absolute). The absolute path cannot be DOS-style,
17029 # because $ac_f cannot contain `:'.
17030 test -f "$ac_f" ||
17031 case $ac_f in
17032 [\\/$]*) false;;
17033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17034 esac ||
17035 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17036 esac
17037 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17038 as_fn_append ac_file_inputs " '$ac_f'"
17039 done
17040
17041 # Let's still pretend it is `configure' which instantiates (i.e., don't
17042 # use $as_me), people would be surprised to read:
17043 # /* config.h. Generated by config.status. */
17044 configure_input='Generated from '`
17045 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17046 `' by configure.'
17047 if test x"$ac_file" != x-; then
17048 configure_input="$ac_file. $configure_input"
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17050$as_echo "$as_me: creating $ac_file" >&6;}
b4e70030 17051 fi
81ecdfbb
RW
17052 # Neutralize special characters interpreted by sed in replacement strings.
17053 case $configure_input in #(
17054 *\&* | *\|* | *\\* )
17055 ac_sed_conf_input=`$as_echo "$configure_input" |
17056 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17057 *) ac_sed_conf_input=$configure_input;;
17058 esac
4e8d927d 17059
81ecdfbb
RW
17060 case $ac_tag in
17061 *:-:* | *:-) cat >"$tmp/stdin" \
17062 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17063 esac
17064 ;;
c906108c
SS
17065 esac
17066
81ecdfbb 17067 ac_dir=`$as_dirname -- "$ac_file" ||
bec39cab
AC
17068$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17069 X"$ac_file" : 'X\(//\)[^/]' \| \
17070 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
17071 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17072$as_echo X"$ac_file" |
17073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17074 s//\1/
17075 q
17076 }
17077 /^X\(\/\/\)[^/].*/{
17078 s//\1/
17079 q
17080 }
17081 /^X\(\/\/\)$/{
17082 s//\1/
17083 q
17084 }
17085 /^X\(\/\).*/{
17086 s//\1/
17087 q
17088 }
17089 s/.*/./; q'`
17090 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
17091 ac_builddir=.
17092
81ecdfbb
RW
17093case "$ac_dir" in
17094.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17095*)
17096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17097 # A ".." for each directory in $ac_dir_suffix.
17098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17099 case $ac_top_builddir_sub in
17100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17102 esac ;;
17103esac
17104ac_abs_top_builddir=$ac_pwd
17105ac_abs_builddir=$ac_pwd$ac_dir_suffix
17106# for backward compatibility:
17107ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
17108
17109case $srcdir in
81ecdfbb 17110 .) # We are building in place.
bec39cab 17111 ac_srcdir=.
81ecdfbb
RW
17112 ac_top_srcdir=$ac_top_builddir_sub
17113 ac_abs_top_srcdir=$ac_pwd ;;
17114 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 17115 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17116 ac_top_srcdir=$srcdir
17117 ac_abs_top_srcdir=$srcdir ;;
17118 *) # Relative name.
17119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17120 ac_top_srcdir=$ac_top_build_prefix$srcdir
17121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 17122esac
81ecdfbb 17123ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 17124
c906108c 17125
81ecdfbb
RW
17126 case $ac_mode in
17127 :F)
17128 #
17129 # CONFIG_FILE
17130 #
c906108c 17131
bec39cab
AC
17132 case $INSTALL in
17133 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 17134 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 17135 esac
81ecdfbb
RW
17136 ac_MKDIR_P=$MKDIR_P
17137 case $MKDIR_P in
17138 [\\/$]* | ?:[\\/]* ) ;;
17139 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17140 esac
17141_ACEOF
121ce6e5 17142
81ecdfbb
RW
17143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17144# If the template does not know about datarootdir, expand it.
17145# FIXME: This hack should be removed a few years after 2.60.
17146ac_datarootdir_hack=; ac_datarootdir_seen=
17147ac_sed_dataroot='
17148/datarootdir/ {
17149 p
17150 q
17151}
17152/@datadir@/p
17153/@docdir@/p
17154/@infodir@/p
17155/@localedir@/p
17156/@mandir@/p'
17157case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17158*datarootdir*) ac_datarootdir_seen=yes;;
17159*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17161$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17162_ACEOF
17163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17164 ac_datarootdir_hack='
17165 s&@datadir@&$datadir&g
17166 s&@docdir@&$docdir&g
17167 s&@infodir@&$infodir&g
17168 s&@localedir@&$localedir&g
17169 s&@mandir@&$mandir&g
17170 s&\\\${datarootdir}&$datarootdir&g' ;;
17171esac
4e8d927d 17172_ACEOF
81ecdfbb
RW
17173
17174# Neutralize VPATH when `$srcdir' = `.'.
17175# Shell code in configure.ac might set extrasub.
17176# FIXME: do we really want to maintain this feature?
17177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17178ac_sed_extra="$ac_vpsub
bec39cab
AC
17179$extrasub
17180_ACEOF
81ecdfbb 17181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab
AC
17182:t
17183/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
17184s|@configure_input@|$ac_sed_conf_input|;t t
17185s&@top_builddir@&$ac_top_builddir_sub&;t t
17186s&@top_build_prefix@&$ac_top_build_prefix&;t t
17187s&@srcdir@&$ac_srcdir&;t t
17188s&@abs_srcdir@&$ac_abs_srcdir&;t t
17189s&@top_srcdir@&$ac_top_srcdir&;t t
17190s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17191s&@builddir@&$ac_builddir&;t t
17192s&@abs_builddir@&$ac_abs_builddir&;t t
17193s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17194s&@INSTALL@&$ac_INSTALL&;t t
17195s&@MKDIR_P@&$ac_MKDIR_P&;t t
17196$ac_datarootdir_hack
17197"
17198eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17199if $ac_cs_awk_getline; then
17200 $AWK -f "$tmp/subs.awk"
17201else
17202 $AWK -f "$tmp/subs.awk" | $SHELL
17203fi >$tmp/out \
17204 || as_fn_error "could not create $ac_file" "$LINENO" 5
17205
17206test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17207 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17208 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17210which seems to be undefined. Please make sure it is defined." >&5
17211$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17212which seems to be undefined. Please make sure it is defined." >&2;}
17213
17214 rm -f "$tmp/stdin"
bec39cab 17215 case $ac_file in
81ecdfbb
RW
17216 -) cat "$tmp/out" && rm -f "$tmp/out";;
17217 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17218 esac \
17219 || as_fn_error "could not create $ac_file" "$LINENO" 5
17220 ;;
17221 :H)
17222 #
17223 # CONFIG_HEADER
17224 #
bec39cab 17225 if test x"$ac_file" != x-; then
81ecdfbb
RW
17226 {
17227 $as_echo "/* $configure_input */" \
17228 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17229 } >"$tmp/config.h" \
17230 || as_fn_error "could not create $ac_file" "$LINENO" 5
17231 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17233$as_echo "$as_me: $ac_file is unchanged" >&6;}
bec39cab 17234 else
81ecdfbb
RW
17235 rm -f "$ac_file"
17236 mv "$tmp/config.h" "$ac_file" \
17237 || as_fn_error "could not create $ac_file" "$LINENO" 5
bec39cab
AC
17238 fi
17239 else
81ecdfbb
RW
17240 $as_echo "/* $configure_input */" \
17241 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17242 || as_fn_error "could not create -" "$LINENO" 5
bec39cab 17243 fi
81ecdfbb
RW
17244# Compute "$ac_file"'s index in $config_headers.
17245_am_arg="$ac_file"
e28b3332
DJ
17246_am_stamp_count=1
17247for _am_header in $config_headers :; do
17248 case $_am_header in
81ecdfbb 17249 $_am_arg | $_am_arg:* )
e28b3332
DJ
17250 break ;;
17251 * )
17252 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17253 esac
17254done
81ecdfbb
RW
17255echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17256$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17257 X"$_am_arg" : 'X\(//\)[^/]' \| \
17258 X"$_am_arg" : 'X\(//\)$' \| \
17259 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17260$as_echo X"$_am_arg" |
17261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17262 s//\1/
17263 q
17264 }
17265 /^X\(\/\/\)[^/].*/{
17266 s//\1/
17267 q
17268 }
17269 /^X\(\/\/\)$/{
17270 s//\1/
17271 q
17272 }
17273 /^X\(\/\).*/{
17274 s//\1/
17275 q
17276 }
17277 s/.*/./; q'`/stamp-h$_am_stamp_count
17278 ;;
17279 :L)
17280 #
17281 # CONFIG_LINK
17282 #
c906108c 17283
81ecdfbb
RW
17284 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17285 :
b4e70030 17286 else
81ecdfbb
RW
17287 # Prefer the file from the source tree if names are identical.
17288 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17289 ac_source=$srcdir/$ac_source
17290 fi
b4e70030 17291
81ecdfbb
RW
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17293$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
b4e70030 17294
81ecdfbb
RW
17295 if test ! -r "$ac_source"; then
17296 as_fn_error "$ac_source: file not found" "$LINENO" 5
17297 fi
17298 rm -f "$ac_file"
bec39cab 17299
81ecdfbb
RW
17300 # Try a relative symlink, then a hard link, then a copy.
17301 case $srcdir in
17302 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17303 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17304 esac
17305 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17306 ln "$ac_source" "$ac_file" 2>/dev/null ||
17307 cp -p "$ac_source" "$ac_file" ||
17308 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17309 fi
17310 ;;
17311 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17312$as_echo "$as_me: executing $ac_file commands" >&6;}
17313 ;;
c906108c 17314 esac
b4e70030 17315
bec39cab 17316
81ecdfbb
RW
17317 case $ac_file$ac_mode in
17318 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17319 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17320 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17321 # are listed without --file. Let's play safe and only enable the eval
17322 # if we detect the quoting.
17323 case $CONFIG_FILES in
17324 *\'*) eval set x "$CONFIG_FILES" ;;
17325 *) set x $CONFIG_FILES ;;
17326 esac
17327 shift
17328 for mf
17329 do
17330 # Strip MF so we end up with the name of the file.
17331 mf=`echo "$mf" | sed -e 's/:.*$//'`
17332 # Check whether this is an Automake generated Makefile or not.
17333 # We used to match only the files named `Makefile.in', but
17334 # some people rename them; so instead we look at the file content.
17335 # Grep'ing the first line is not enough: some people post-process
17336 # each Makefile.in and add a new line on top of each file to say so.
17337 # Grep'ing the whole file is not good either: AIX grep has a line
17338 # limit of 2048, but all sed's we know have understand at least 4000.
17339 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17340 dirpart=`$as_dirname -- "$mf" ||
e28b3332
DJ
17341$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17342 X"$mf" : 'X\(//\)[^/]' \| \
17343 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
17344 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17345$as_echo X"$mf" |
17346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17347 s//\1/
17348 q
17349 }
17350 /^X\(\/\/\)[^/].*/{
17351 s//\1/
17352 q
17353 }
17354 /^X\(\/\/\)$/{
17355 s//\1/
17356 q
17357 }
17358 /^X\(\/\).*/{
17359 s//\1/
17360 q
17361 }
17362 s/.*/./; q'`
17363 else
17364 continue
17365 fi
17366 # Extract the definition of DEPDIR, am__include, and am__quote
17367 # from the Makefile without running `make'.
17368 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17369 test -z "$DEPDIR" && continue
17370 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17371 test -z "am__include" && continue
17372 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17373 # When using ansi2knr, U may be empty or an underscore; expand it
17374 U=`sed -n 's/^U = //p' < "$mf"`
17375 # Find all dependency output files, they are included files with
17376 # $(DEPDIR) in their names. We invoke sed twice because it is the
17377 # simplest approach to changing $(DEPDIR) to its actual value in the
17378 # expansion.
17379 for file in `sed -n "
17380 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17381 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17382 # Make sure the directory exists.
17383 test -f "$dirpart/$file" && continue
17384 fdir=`$as_dirname -- "$file" ||
e28b3332
DJ
17385$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17386 X"$file" : 'X\(//\)[^/]' \| \
17387 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
17388 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17389$as_echo X"$file" |
17390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17391 s//\1/
17392 q
17393 }
17394 /^X\(\/\/\)[^/].*/{
17395 s//\1/
17396 q
17397 }
17398 /^X\(\/\/\)$/{
17399 s//\1/
17400 q
17401 }
17402 /^X\(\/\).*/{
17403 s//\1/
17404 q
17405 }
17406 s/.*/./; q'`
17407 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17408 # echo "creating $dirpart/$file"
17409 echo '# dummy' > "$dirpart/$file"
e28b3332 17410 done
e28b3332 17411 done
81ecdfbb 17412}
4e8d927d 17413 ;;
81ecdfbb 17414 "default":C)
c906108c
SS
17415case x$CONFIG_HEADERS in
17416xconfig.h:config.in)
17417echo > stamp-h ;;
17418esac
bec39cab 17419 ;;
81ecdfbb 17420
bec39cab 17421 esac
81ecdfbb 17422done # for ac_tag
c906108c 17423
bec39cab 17424
81ecdfbb 17425as_fn_exit 0
bec39cab 17426_ACEOF
bec39cab
AC
17427ac_clean_files=$ac_clean_files_save
17428
81ecdfbb
RW
17429test $ac_write_fail = 0 ||
17430 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17431
bec39cab
AC
17432
17433# configure is writing to config.log, and then calls config.status.
17434# config.status does its own redirection, appending to config.log.
17435# Unfortunately, on DOS this fails, as config.log is still kept open
17436# by configure, so config.status won't be able to write to it; its
17437# output is simply discarded. So we exec the FD to /dev/null,
17438# effectively closing config.log, so it can be properly (re)opened and
17439# appended to by config.status. When coming back to configure, we
17440# need to make the FD available again.
17441if test "$no_create" != yes; then
17442 ac_cs_success=:
17443 ac_config_status_args=
17444 test "$silent" = yes &&
17445 ac_config_status_args="$ac_config_status_args --quiet"
17446 exec 5>/dev/null
17447 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17448 exec 5>>config.log
17449 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17450 # would make configure fail if this is the last instruction.
81ecdfbb 17451 $ac_cs_success || as_fn_exit $?
bec39cab 17452fi
c906108c 17453
bec39cab 17454#
81ecdfbb 17455# CONFIG_SUBDIRS section.
bec39cab 17456#
c906108c
SS
17457if test "$no_recursion" != yes; then
17458
81ecdfbb
RW
17459 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17460 # so they do not pile up.
c906108c
SS
17461 ac_sub_configure_args=
17462 ac_prev=
fdc59709
PB
17463 eval "set x $ac_configure_args"
17464 shift
17465 for ac_arg
17466 do
c906108c
SS
17467 if test -n "$ac_prev"; then
17468 ac_prev=
17469 continue
17470 fi
bec39cab 17471 case $ac_arg in
c906108c
SS
17472 -cache-file | --cache-file | --cache-fil | --cache-fi \
17473 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17474 ac_prev=cache_file ;;
17475 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
17476 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17477 | --c=*)
17478 ;;
17479 --config-cache | -C)
c906108c
SS
17480 ;;
17481 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17482 ac_prev=srcdir ;;
17483 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17484 ;;
bec39cab
AC
17485 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17486 ac_prev=prefix ;;
17487 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17488 ;;
81ecdfbb
RW
17489 --disable-option-checking)
17490 ;;
fdc59709
PB
17491 *)
17492 case $ac_arg in
81ecdfbb 17493 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
fdc59709 17494 esac
81ecdfbb 17495 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
c906108c
SS
17496 esac
17497 done
17498
bec39cab
AC
17499 # Always prepend --prefix to ensure using the same prefix
17500 # in subdir configurations.
fdc59709
PB
17501 ac_arg="--prefix=$prefix"
17502 case $ac_arg in
81ecdfbb 17503 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
fdc59709 17504 esac
81ecdfbb
RW
17505 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17506
17507 # Pass --silent
17508 if test "$silent" = yes; then
17509 ac_sub_configure_args="--silent $ac_sub_configure_args"
17510 fi
17511
17512 # Always prepend --disable-option-checking to silence warnings, since
17513 # different subdirs can have different --enable and --with options.
17514 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
bec39cab 17515
b4e70030 17516 ac_popdir=`pwd`
bec39cab 17517 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
17518
17519 # Do not complain, so a configure script can configure whichever
17520 # parts of a large source tree are present.
fdc59709 17521 test -d "$srcdir/$ac_dir" || continue
c906108c 17522
81ecdfbb
RW
17523 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17524 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17525 $as_echo "$ac_msg" >&6
17526 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
17527 ac_builddir=.
17528
81ecdfbb
RW
17529case "$ac_dir" in
17530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17531*)
17532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17533 # A ".." for each directory in $ac_dir_suffix.
17534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17535 case $ac_top_builddir_sub in
17536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17538 esac ;;
17539esac
17540ac_abs_top_builddir=$ac_pwd
17541ac_abs_builddir=$ac_pwd$ac_dir_suffix
17542# for backward compatibility:
17543ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
17544
17545case $srcdir in
81ecdfbb 17546 .) # We are building in place.
bec39cab 17547 ac_srcdir=.
81ecdfbb
RW
17548 ac_top_srcdir=$ac_top_builddir_sub
17549 ac_abs_top_srcdir=$ac_pwd ;;
17550 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 17551 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17552 ac_top_srcdir=$srcdir
17553 ac_abs_top_srcdir=$srcdir ;;
17554 *) # Relative name.
17555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17556 ac_top_srcdir=$ac_top_build_prefix$srcdir
17557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 17558esac
81ecdfbb 17559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
c906108c 17560
c906108c 17561
fdc59709 17562 cd "$ac_dir"
c906108c
SS
17563
17564 # Check for guested configure; otherwise get Cygnus style configure.
fdc59709
PB
17565 if test -f "$ac_srcdir/configure.gnu"; then
17566 ac_sub_configure=$ac_srcdir/configure.gnu
17567 elif test -f "$ac_srcdir/configure"; then
17568 ac_sub_configure=$ac_srcdir/configure
17569 elif test -f "$ac_srcdir/configure.in"; then
17570 # This should be Cygnus configure.
17571 ac_sub_configure=$ac_aux_dir/configure
c906108c 17572 else
81ecdfbb
RW
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17574$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
17575 ac_sub_configure=
17576 fi
17577
17578 # The recursion is here.
17579 if test -n "$ac_sub_configure"; then
c906108c 17580 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
17581 case $cache_file in
17582 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
81ecdfbb
RW
17583 *) # Relative name.
17584 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
c906108c 17585 esac
c906108c 17586
81ecdfbb
RW
17587 { $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
17588$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 17589 # The eval makes quoting arguments work.
fdc59709
PB
17590 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17591 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
81ecdfbb 17592 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
c906108c
SS
17593 fi
17594
fdc59709 17595 cd "$ac_popdir"
c906108c
SS
17596 done
17597fi
81ecdfbb
RW
17598if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17600$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17601fi
c906108c
SS
17602
17603
17604exit 0
This page took 2.70247 seconds and 4 git commands to generate.