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