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