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