* gas/config/tc-arm.c (do_t_mov_cmp): Fix reporting of unpredictable and
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure
CommitLineData
d6e9fb05 1#! /bin/sh
d6e9fb05 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
d6e9fb05
JK
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
bec39cab 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
bec39cab 31fi
bec39cab 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
bec39cab 50else
81ecdfbb
RW
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
bec39cab
AC
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
bec39cab
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
bec39cab 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
bec39cab 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
bec39cab 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
bec39cab 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
bec39cab
AC
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
bec39cab 410
dae5f5cf
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
b80864fb 417
bec39cab 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
bec39cab 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
bec39cab 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bec39cab 436 t loop
81ecdfbb 437 s/-\n.*//
bec39cab 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
bec39cab
AC
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
bec39cab
AC
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
bec39cab
AC
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
bec39cab 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
bec39cab 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
dae5f5cf 483 fi
bec39cab
AC
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
bec39cab
AC
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
d6e9fb05 496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
bec39cab
AC
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
bec39cab
AC
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
bec39cab
AC
534#
535# Initializations.
536#
d6e9fb05 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
bec39cab 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
bec39cab
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
dae5f5cf 545
bec39cab
AC
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
bec39cab
AC
553
554ac_unique_file="server.c"
e28b3332 555ac_config_libobj_dir=../gnulib
bec39cab
AC
556# Factoring default headers for most tests.
557ac_includes_default="\
558#include <stdio.h>
81ecdfbb 559#ifdef HAVE_SYS_TYPES_H
bec39cab
AC
560# include <sys/types.h>
561#endif
81ecdfbb 562#ifdef HAVE_SYS_STAT_H
bec39cab
AC
563# include <sys/stat.h>
564#endif
81ecdfbb 565#ifdef STDC_HEADERS
bec39cab
AC
566# include <stdlib.h>
567# include <stddef.h>
568#else
81ecdfbb 569# ifdef HAVE_STDLIB_H
bec39cab
AC
570# include <stdlib.h>
571# endif
572#endif
81ecdfbb
RW
573#ifdef HAVE_STRING_H
574# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
bec39cab
AC
575# include <memory.h>
576# endif
577# include <string.h>
578#endif
81ecdfbb 579#ifdef HAVE_STRINGS_H
bec39cab
AC
580# include <strings.h>
581#endif
81ecdfbb 582#ifdef HAVE_INTTYPES_H
bec39cab 583# include <inttypes.h>
bec39cab 584#endif
81ecdfbb
RW
585#ifdef HAVE_STDINT_H
586# include <stdint.h>
587#endif
588#ifdef HAVE_UNISTD_H
bec39cab
AC
589# include <unistd.h>
590#endif"
591
81ecdfbb 592ac_subst_vars='LTLIBOBJS
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
604LIBOBJS
605INSTALL_DATA
606INSTALL_SCRIPT
607INSTALL_PROGRAM
608target_os
609target_vendor
610target_cpu
611target
612host_os
613host_vendor
614host_cpu
615host
616build_os
617build_vendor
618build_cpu
619build
620EGREP
621GREP
622CPP
623OBJEXT
624EXEEXT
625ac_ct_CC
626CPPFLAGS
627LDFLAGS
628CFLAGS
629CC
630target_alias
631host_alias
632build_alias
633LIBS
634ECHO_T
635ECHO_N
636ECHO_C
637DEFS
638mandir
639localedir
640libdir
641psdir
642pdfdir
643dvidir
644htmldir
645infodir
646docdir
647oldincludedir
648includedir
649localstatedir
650sharedstatedir
651sysconfdir
652datadir
653datarootdir
654libexecdir
655sbindir
656bindir
657program_transform_name
658prefix
659exec_prefix
660PACKAGE_URL
661PACKAGE_BUGREPORT
662PACKAGE_STRING
663PACKAGE_VERSION
664PACKAGE_TARNAME
665PACKAGE_NAME
666PATH_SEPARATOR
667SHELL'
bec39cab 668ac_subst_files=''
81ecdfbb
RW
669ac_user_opts='
670enable_option_checking
671with_pkgversion
672with_bugurl
96f15937 673with_libthread_db
81ecdfbb
RW
674'
675 ac_precious_vars='build_alias
676host_alias
677target_alias
678CC
679CFLAGS
680LDFLAGS
681LIBS
682CPPFLAGS
683CPP'
684
d6e9fb05
JK
685
686# Initialize some variables set by options.
bec39cab
AC
687ac_init_help=
688ac_init_version=false
81ecdfbb
RW
689ac_unrecognized_opts=
690ac_unrecognized_sep=
d6e9fb05
JK
691# The variables have the same names as the options, with
692# dashes changed to underlines.
bec39cab 693cache_file=/dev/null
d6e9fb05 694exec_prefix=NONE
d6e9fb05 695no_create=
d6e9fb05
JK
696no_recursion=
697prefix=NONE
698program_prefix=NONE
699program_suffix=NONE
700program_transform_name=s,x,x,
701silent=
702site=
703srcdir=
d6e9fb05
JK
704verbose=
705x_includes=NONE
706x_libraries=NONE
bec39cab
AC
707
708# Installation directory options.
709# These are left unexpanded so users can "make install exec_prefix=/foo"
710# and all the variables that are supposed to be based on exec_prefix
711# by default will actually change.
712# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 713# (The list follows the same order as the GNU Coding Standards.)
d6e9fb05
JK
714bindir='${exec_prefix}/bin'
715sbindir='${exec_prefix}/sbin'
716libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
717datarootdir='${prefix}/share'
718datadir='${datarootdir}'
d6e9fb05
JK
719sysconfdir='${prefix}/etc'
720sharedstatedir='${prefix}/com'
721localstatedir='${prefix}/var'
d6e9fb05
JK
722includedir='${prefix}/include'
723oldincludedir='/usr/include'
81ecdfbb
RW
724docdir='${datarootdir}/doc/${PACKAGE}'
725infodir='${datarootdir}/info'
726htmldir='${docdir}'
727dvidir='${docdir}'
728pdfdir='${docdir}'
729psdir='${docdir}'
730libdir='${exec_prefix}/lib'
731localedir='${datarootdir}/locale'
732mandir='${datarootdir}/man'
d6e9fb05 733
d6e9fb05 734ac_prev=
81ecdfbb 735ac_dashdash=
d6e9fb05
JK
736for ac_option
737do
d6e9fb05
JK
738 # If the previous option needs an argument, assign it.
739 if test -n "$ac_prev"; then
81ecdfbb 740 eval $ac_prev=\$ac_option
d6e9fb05
JK
741 ac_prev=
742 continue
743 fi
744
81ecdfbb
RW
745 case $ac_option in
746 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
747 *) ac_optarg=yes ;;
748 esac
d6e9fb05
JK
749
750 # Accept the important Cygnus configure options, so we can diagnose typos.
751
81ecdfbb
RW
752 case $ac_dashdash$ac_option in
753 --)
754 ac_dashdash=yes ;;
d6e9fb05
JK
755
756 -bindir | --bindir | --bindi | --bind | --bin | --bi)
757 ac_prev=bindir ;;
758 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 759 bindir=$ac_optarg ;;
d6e9fb05
JK
760
761 -build | --build | --buil | --bui | --bu)
bec39cab 762 ac_prev=build_alias ;;
d6e9fb05 763 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 764 build_alias=$ac_optarg ;;
d6e9fb05
JK
765
766 -cache-file | --cache-file | --cache-fil | --cache-fi \
767 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
768 ac_prev=cache_file ;;
769 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
770 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
771 cache_file=$ac_optarg ;;
772
773 --config-cache | -C)
774 cache_file=config.cache ;;
d6e9fb05 775
81ecdfbb 776 -datadir | --datadir | --datadi | --datad)
d6e9fb05 777 ac_prev=datadir ;;
81ecdfbb 778 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bec39cab 779 datadir=$ac_optarg ;;
d6e9fb05 780
81ecdfbb
RW
781 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
782 | --dataroo | --dataro | --datar)
783 ac_prev=datarootdir ;;
784 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
785 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
786 datarootdir=$ac_optarg ;;
787
d6e9fb05 788 -disable-* | --disable-*)
81ecdfbb 789 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d6e9fb05 790 # Reject names that are not valid shell variable names.
81ecdfbb
RW
791 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
792 as_fn_error "invalid feature name: $ac_useropt"
793 ac_useropt_orig=$ac_useropt
794 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
795 case $ac_user_opts in
796 *"
797"enable_$ac_useropt"
798"*) ;;
799 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
800 ac_unrecognized_sep=', ';;
801 esac
802 eval enable_$ac_useropt=no ;;
803
804 -docdir | --docdir | --docdi | --doc | --do)
805 ac_prev=docdir ;;
806 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
807 docdir=$ac_optarg ;;
808
809 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
810 ac_prev=dvidir ;;
811 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
812 dvidir=$ac_optarg ;;
d6e9fb05
JK
813
814 -enable-* | --enable-*)
81ecdfbb 815 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d6e9fb05 816 # Reject names that are not valid shell variable names.
81ecdfbb
RW
817 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
818 as_fn_error "invalid feature name: $ac_useropt"
819 ac_useropt_orig=$ac_useropt
820 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
821 case $ac_user_opts in
822 *"
823"enable_$ac_useropt"
824"*) ;;
825 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
826 ac_unrecognized_sep=', ';;
dae5f5cf 827 esac
81ecdfbb 828 eval enable_$ac_useropt=\$ac_optarg ;;
d6e9fb05
JK
829
830 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
831 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
832 | --exec | --exe | --ex)
833 ac_prev=exec_prefix ;;
834 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
835 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
836 | --exec=* | --exe=* | --ex=*)
bec39cab 837 exec_prefix=$ac_optarg ;;
d6e9fb05
JK
838
839 -gas | --gas | --ga | --g)
840 # Obsolete; use --with-gas.
841 with_gas=yes ;;
842
bec39cab
AC
843 -help | --help | --hel | --he | -h)
844 ac_init_help=long ;;
845 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
846 ac_init_help=recursive ;;
847 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
848 ac_init_help=short ;;
d6e9fb05
JK
849
850 -host | --host | --hos | --ho)
bec39cab 851 ac_prev=host_alias ;;
d6e9fb05 852 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 853 host_alias=$ac_optarg ;;
d6e9fb05 854
81ecdfbb
RW
855 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
856 ac_prev=htmldir ;;
857 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
858 | --ht=*)
859 htmldir=$ac_optarg ;;
860
d6e9fb05
JK
861 -includedir | --includedir | --includedi | --included | --include \
862 | --includ | --inclu | --incl | --inc)
863 ac_prev=includedir ;;
864 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
865 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 866 includedir=$ac_optarg ;;
d6e9fb05
JK
867
868 -infodir | --infodir | --infodi | --infod | --info | --inf)
869 ac_prev=infodir ;;
870 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 871 infodir=$ac_optarg ;;
d6e9fb05
JK
872
873 -libdir | --libdir | --libdi | --libd)
874 ac_prev=libdir ;;
875 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 876 libdir=$ac_optarg ;;
d6e9fb05
JK
877
878 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
879 | --libexe | --libex | --libe)
880 ac_prev=libexecdir ;;
881 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
882 | --libexe=* | --libex=* | --libe=*)
bec39cab 883 libexecdir=$ac_optarg ;;
d6e9fb05 884
81ecdfbb
RW
885 -localedir | --localedir | --localedi | --localed | --locale)
886 ac_prev=localedir ;;
887 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
888 localedir=$ac_optarg ;;
889
d6e9fb05 890 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 891 | --localstate | --localstat | --localsta | --localst | --locals)
d6e9fb05
JK
892 ac_prev=localstatedir ;;
893 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 894 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bec39cab 895 localstatedir=$ac_optarg ;;
d6e9fb05
JK
896
897 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
898 ac_prev=mandir ;;
899 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 900 mandir=$ac_optarg ;;
d6e9fb05
JK
901
902 -nfp | --nfp | --nf)
903 # Obsolete; use --without-fp.
904 with_fp=no ;;
905
906 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 907 | --no-cr | --no-c | -n)
d6e9fb05
JK
908 no_create=yes ;;
909
910 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
911 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
912 no_recursion=yes ;;
913
914 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
915 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
916 | --oldin | --oldi | --old | --ol | --o)
917 ac_prev=oldincludedir ;;
918 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
919 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
920 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 921 oldincludedir=$ac_optarg ;;
d6e9fb05
JK
922
923 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
924 ac_prev=prefix ;;
925 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 926 prefix=$ac_optarg ;;
d6e9fb05
JK
927
928 -program-prefix | --program-prefix | --program-prefi | --program-pref \
929 | --program-pre | --program-pr | --program-p)
930 ac_prev=program_prefix ;;
931 -program-prefix=* | --program-prefix=* | --program-prefi=* \
932 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 933 program_prefix=$ac_optarg ;;
d6e9fb05
JK
934
935 -program-suffix | --program-suffix | --program-suffi | --program-suff \
936 | --program-suf | --program-su | --program-s)
937 ac_prev=program_suffix ;;
938 -program-suffix=* | --program-suffix=* | --program-suffi=* \
939 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 940 program_suffix=$ac_optarg ;;
d6e9fb05
JK
941
942 -program-transform-name | --program-transform-name \
943 | --program-transform-nam | --program-transform-na \
944 | --program-transform-n | --program-transform- \
945 | --program-transform | --program-transfor \
946 | --program-transfo | --program-transf \
947 | --program-trans | --program-tran \
948 | --progr-tra | --program-tr | --program-t)
949 ac_prev=program_transform_name ;;
950 -program-transform-name=* | --program-transform-name=* \
951 | --program-transform-nam=* | --program-transform-na=* \
952 | --program-transform-n=* | --program-transform-=* \
953 | --program-transform=* | --program-transfor=* \
954 | --program-transfo=* | --program-transf=* \
955 | --program-trans=* | --program-tran=* \
956 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 957 program_transform_name=$ac_optarg ;;
d6e9fb05 958
81ecdfbb
RW
959 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
960 ac_prev=pdfdir ;;
961 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
962 pdfdir=$ac_optarg ;;
963
964 -psdir | --psdir | --psdi | --psd | --ps)
965 ac_prev=psdir ;;
966 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
967 psdir=$ac_optarg ;;
968
d6e9fb05
JK
969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
970 | -silent | --silent | --silen | --sile | --sil)
971 silent=yes ;;
972
973 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
974 ac_prev=sbindir ;;
975 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
976 | --sbi=* | --sb=*)
bec39cab 977 sbindir=$ac_optarg ;;
d6e9fb05
JK
978
979 -sharedstatedir | --sharedstatedir | --sharedstatedi \
980 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
981 | --sharedst | --shareds | --shared | --share | --shar \
982 | --sha | --sh)
983 ac_prev=sharedstatedir ;;
984 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
985 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
986 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
987 | --sha=* | --sh=*)
bec39cab 988 sharedstatedir=$ac_optarg ;;
d6e9fb05
JK
989
990 -site | --site | --sit)
991 ac_prev=site ;;
992 -site=* | --site=* | --sit=*)
bec39cab 993 site=$ac_optarg ;;
434c4c77 994
d6e9fb05
JK
995 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
996 ac_prev=srcdir ;;
997 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 998 srcdir=$ac_optarg ;;
d6e9fb05
JK
999
1000 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1001 | --syscon | --sysco | --sysc | --sys | --sy)
1002 ac_prev=sysconfdir ;;
1003 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1004 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 1005 sysconfdir=$ac_optarg ;;
d6e9fb05
JK
1006
1007 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 1008 ac_prev=target_alias ;;
d6e9fb05 1009 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 1010 target_alias=$ac_optarg ;;
d6e9fb05
JK
1011
1012 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1013 verbose=yes ;;
1014
bec39cab
AC
1015 -version | --version | --versio | --versi | --vers | -V)
1016 ac_init_version=: ;;
d6e9fb05
JK
1017
1018 -with-* | --with-*)
81ecdfbb 1019 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d6e9fb05 1020 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error "invalid package name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027"with_$ac_useropt"
1028"*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
dae5f5cf 1031 esac
81ecdfbb 1032 eval with_$ac_useropt=\$ac_optarg ;;
d6e9fb05
JK
1033
1034 -without-* | --without-*)
81ecdfbb 1035 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d6e9fb05 1036 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error "invalid package name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043"with_$ac_useropt"
1044"*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval with_$ac_useropt=no ;;
d6e9fb05
JK
1049
1050 --x)
1051 # Obsolete; use --with-x.
1052 with_x=yes ;;
1053
1054 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055 | --x-incl | --x-inc | --x-in | --x-i)
1056 ac_prev=x_includes ;;
1057 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 1059 x_includes=$ac_optarg ;;
d6e9fb05
JK
1060
1061 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1062 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063 ac_prev=x_libraries ;;
1064 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 1066 x_libraries=$ac_optarg ;;
d6e9fb05 1067
81ecdfbb
RW
1068 -*) as_fn_error "unrecognized option: \`$ac_option'
1069Try \`$0 --help' for more information."
d6e9fb05
JK
1070 ;;
1071
bec39cab
AC
1072 *=*)
1073 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1074 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1075 case $ac_envvar in #(
1076 '' | [0-9]* | *[!_$as_cr_alnum]* )
1077 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1078 esac
1079 eval $ac_envvar=\$ac_optarg
bec39cab
AC
1080 export $ac_envvar ;;
1081
d6e9fb05 1082 *)
bec39cab 1083 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1084 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bec39cab 1085 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1086 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bec39cab 1087 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d6e9fb05
JK
1088 ;;
1089
1090 esac
1091done
1092
1093if test -n "$ac_prev"; then
bec39cab 1094 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1095 as_fn_error "missing argument to $ac_option"
d6e9fb05 1096fi
d6e9fb05 1097
81ecdfbb
RW
1098if test -n "$ac_unrecognized_opts"; then
1099 case $enable_option_checking in
1100 no) ;;
1101 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1102 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
dae5f5cf 1103 esac
81ecdfbb 1104fi
dae5f5cf 1105
81ecdfbb
RW
1106# Check all directory arguments for consistency.
1107for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1108 datadir sysconfdir sharedstatedir localstatedir includedir \
1109 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1110 libdir localedir mandir
dae5f5cf 1111do
81ecdfbb
RW
1112 eval ac_val=\$$ac_var
1113 # Remove trailing slashes.
1114 case $ac_val in
1115 */ )
1116 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1117 eval $ac_var=\$ac_val;;
1118 esac
1119 # Be sure to have absolute directory names.
dae5f5cf 1120 case $ac_val in
81ecdfbb
RW
1121 [\\/$]* | ?:[\\/]* ) continue;;
1122 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d6e9fb05 1123 esac
81ecdfbb 1124 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
d6e9fb05
JK
1125done
1126
bec39cab
AC
1127# There might be people who depend on the old broken behavior: `$host'
1128# used to hold the argument of --host etc.
1129# FIXME: To remove some day.
1130build=$build_alias
1131host=$host_alias
1132target=$target_alias
1133
1134# FIXME: To remove some day.
1135if test "x$host_alias" != x; then
1136 if test "x$build_alias" = x; then
1137 cross_compiling=maybe
81ecdfbb 1138 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bec39cab
AC
1139 If a cross compiler is detected then cross compile mode will be used." >&2
1140 elif test "x$build_alias" != "x$host_alias"; then
1141 cross_compiling=yes
1142 fi
1143fi
d6e9fb05 1144
bec39cab
AC
1145ac_tool_prefix=
1146test -n "$host_alias" && ac_tool_prefix=$host_alias-
1147
1148test "$silent" = yes && exec 6>/dev/null
d6e9fb05 1149
d6e9fb05 1150
81ecdfbb
RW
1151ac_pwd=`pwd` && test -n "$ac_pwd" &&
1152ac_ls_di=`ls -di .` &&
1153ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1154 as_fn_error "working directory cannot be determined"
1155test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1156 as_fn_error "pwd does not report name of working directory"
1157
1158
d6e9fb05
JK
1159# Find the source files, if location was not specified.
1160if test -z "$srcdir"; then
1161 ac_srcdir_defaulted=yes
81ecdfbb
RW
1162 # Try the directory containing this script, then the parent directory.
1163 ac_confdir=`$as_dirname -- "$as_myself" ||
1164$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165 X"$as_myself" : 'X\(//\)[^/]' \| \
1166 X"$as_myself" : 'X\(//\)$' \| \
1167 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1168$as_echo X"$as_myself" |
1169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170 s//\1/
1171 q
1172 }
1173 /^X\(\/\/\)[^/].*/{
1174 s//\1/
1175 q
1176 }
1177 /^X\(\/\/\)$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\).*/{
1182 s//\1/
1183 q
1184 }
1185 s/.*/./; q'`
d6e9fb05 1186 srcdir=$ac_confdir
81ecdfbb 1187 if test ! -r "$srcdir/$ac_unique_file"; then
d6e9fb05
JK
1188 srcdir=..
1189 fi
1190else
1191 ac_srcdir_defaulted=no
1192fi
81ecdfbb
RW
1193if test ! -r "$srcdir/$ac_unique_file"; then
1194 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1196fi
1197ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198ac_abs_confdir=`(
1199 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1200 pwd)`
1201# When building in place, set srcdir=.
1202if test "$ac_abs_confdir" = "$ac_pwd"; then
1203 srcdir=.
1204fi
1205# Remove unnecessary trailing slashes from srcdir.
1206# Double slashes in file names in object file debugging info
1207# mess up M-x gdb in Emacs.
1208case $srcdir in
1209*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210esac
1211for ac_var in $ac_precious_vars; do
1212 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1213 eval ac_env_${ac_var}_value=\$${ac_var}
1214 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1215 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1216done
d6e9fb05 1217
bec39cab
AC
1218#
1219# Report the --help message.
1220#
1221if test "$ac_init_help" = "long"; then
1222 # Omit some internal or obsolete options to make the list less imposing.
1223 # This message is too long to be a string in the A/UX 3.1 sh.
1224 cat <<_ACEOF
1225\`configure' configures this package to adapt to many kinds of systems.
1226
1227Usage: $0 [OPTION]... [VAR=VALUE]...
1228
1229To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230VAR=VALUE. See below for descriptions of some of the useful variables.
1231
1232Defaults for the options are specified in brackets.
1233
1234Configuration:
1235 -h, --help display this help and exit
1236 --help=short display options specific to this package
1237 --help=recursive display the short help of all the included packages
1238 -V, --version display version information and exit
1239 -q, --quiet, --silent do not print \`checking...' messages
1240 --cache-file=FILE cache test results in FILE [disabled]
1241 -C, --config-cache alias for \`--cache-file=config.cache'
1242 -n, --no-create do not create output files
1243 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244
bec39cab
AC
1245Installation directories:
1246 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1247 [$ac_default_prefix]
bec39cab 1248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1249 [PREFIX]
bec39cab
AC
1250
1251By default, \`make install' will install all the files in
1252\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1253an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254for instance \`--prefix=\$HOME'.
1255
1256For better control, use the options below.
1257
1258Fine tuning of the installation directories:
81ecdfbb
RW
1259 --bindir=DIR user executables [EPREFIX/bin]
1260 --sbindir=DIR system admin executables [EPREFIX/sbin]
1261 --libexecdir=DIR program executables [EPREFIX/libexec]
1262 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1263 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1264 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1265 --libdir=DIR object code libraries [EPREFIX/lib]
1266 --includedir=DIR C header files [PREFIX/include]
1267 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1268 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1269 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1270 --infodir=DIR info documentation [DATAROOTDIR/info]
1271 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1272 --mandir=DIR man documentation [DATAROOTDIR/man]
1273 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1274 --htmldir=DIR html documentation [DOCDIR]
1275 --dvidir=DIR dvi documentation [DOCDIR]
1276 --pdfdir=DIR pdf documentation [DOCDIR]
1277 --psdir=DIR ps documentation [DOCDIR]
bec39cab
AC
1278_ACEOF
1279
1280 cat <<\_ACEOF
1281
dcdb98d2
DJ
1282Program names:
1283 --program-prefix=PREFIX prepend PREFIX to installed program names
1284 --program-suffix=SUFFIX append SUFFIX to installed program names
1285 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1286
bec39cab
AC
1287System types:
1288 --build=BUILD configure for building on BUILD [guessed]
1289 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1290 --target=TARGET configure for building compilers for TARGET [HOST]
1291_ACEOF
1292fi
1293
1294if test -n "$ac_init_help"; then
1295
1296 cat <<\_ACEOF
1297
c16158bc
JM
1298Optional Packages:
1299 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1300 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1301 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1302 --with-bugurl=URL Direct users to URL to report a bug
96f15937
PP
1303 --with-libthread-db=PATH
1304 use given libthread_db directly
c16158bc 1305
bec39cab
AC
1306Some influential environment variables:
1307 CC C compiler command
1308 CFLAGS C compiler flags
1309 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1310 nonstandard directory <lib dir>
81ecdfbb
RW
1311 LIBS libraries to pass to the linker, e.g. -l<library>
1312 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1313 you have headers in a nonstandard directory <include dir>
bec39cab
AC
1314 CPP C preprocessor
1315
1316Use these variables to override the choices made by `configure' or to help
1317it to find libraries and programs with nonstandard names/locations.
1318
81ecdfbb 1319Report bugs to the package provider.
bec39cab 1320_ACEOF
81ecdfbb 1321ac_status=$?
bec39cab
AC
1322fi
1323
1324if test "$ac_init_help" = "recursive"; then
1325 # If there are subdirs, report their specific --help.
bec39cab 1326 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1327 test -d "$ac_dir" ||
1328 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1329 continue
bec39cab
AC
1330 ac_builddir=.
1331
81ecdfbb
RW
1332case "$ac_dir" in
1333.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334*)
1335 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1336 # A ".." for each directory in $ac_dir_suffix.
1337 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1338 case $ac_top_builddir_sub in
1339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1341 esac ;;
1342esac
1343ac_abs_top_builddir=$ac_pwd
1344ac_abs_builddir=$ac_pwd$ac_dir_suffix
1345# for backward compatibility:
1346ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
1347
1348case $srcdir in
81ecdfbb 1349 .) # We are building in place.
bec39cab 1350 ac_srcdir=.
81ecdfbb
RW
1351 ac_top_srcdir=$ac_top_builddir_sub
1352 ac_abs_top_srcdir=$ac_pwd ;;
1353 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 1354 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1355 ac_top_srcdir=$srcdir
1356 ac_abs_top_srcdir=$srcdir ;;
1357 *) # Relative name.
1358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1359 ac_top_srcdir=$ac_top_build_prefix$srcdir
1360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
dae5f5cf 1361esac
81ecdfbb
RW
1362ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1363
1364 cd "$ac_dir" || { ac_status=$?; continue; }
1365 # Check for guested configure.
1366 if test -f "$ac_srcdir/configure.gnu"; then
1367 echo &&
1368 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1369 elif test -f "$ac_srcdir/configure"; then
1370 echo &&
1371 $SHELL "$ac_srcdir/configure" --help=recursive
434c4c77 1372 else
81ecdfbb
RW
1373 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1374 fi || ac_status=$?
1375 cd "$ac_pwd" || { ac_status=$?; break; }
bec39cab
AC
1376 done
1377fi
1378
81ecdfbb 1379test -n "$ac_init_help" && exit $ac_status
bec39cab
AC
1380if $ac_init_version; then
1381 cat <<\_ACEOF
81ecdfbb
RW
1382configure
1383generated by GNU Autoconf 2.64
bec39cab 1384
81ecdfbb 1385Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
1386This configure script is free software; the Free Software Foundation
1387gives unlimited permission to copy, distribute and modify it.
1388_ACEOF
81ecdfbb 1389 exit
bec39cab 1390fi
bec39cab 1391
81ecdfbb
RW
1392## ------------------------ ##
1393## Autoconf initialization. ##
1394## ------------------------ ##
bec39cab 1395
81ecdfbb
RW
1396# ac_fn_c_try_compile LINENO
1397# --------------------------
1398# Try to compile conftest.$ac_ext, and return whether this succeeded.
1399ac_fn_c_try_compile ()
bec39cab 1400{
81ecdfbb
RW
1401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1402 rm -f conftest.$ac_objext
1403 if { { ac_try="$ac_compile"
1404case "(($ac_try" in
1405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1406 *) ac_try_echo=$ac_try;;
1407esac
1408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1409$as_echo "$ac_try_echo"; } >&5
1410 (eval "$ac_compile") 2>conftest.err
1411 ac_status=$?
1412 if test -s conftest.err; then
1413 grep -v '^ *+' conftest.err >conftest.er1
1414 cat conftest.er1 >&5
1415 mv -f conftest.er1 conftest.err
1416 fi
1417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1418 test $ac_status = 0; } && {
1419 test -z "$ac_c_werror_flag" ||
1420 test ! -s conftest.err
1421 } && test -s conftest.$ac_objext; then :
1422 ac_retval=0
1423else
1424 $as_echo "$as_me: failed program was:" >&5
1425sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1426
81ecdfbb
RW
1427 ac_retval=1
1428fi
1429 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1430 return $ac_retval
bec39cab 1431
81ecdfbb 1432} # ac_fn_c_try_compile
bec39cab 1433
81ecdfbb
RW
1434# ac_fn_c_try_cpp LINENO
1435# ----------------------
1436# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1437ac_fn_c_try_cpp ()
1438{
1439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1440 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } >/dev/null && {
1456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1457 test ! -s conftest.err
1458 }; 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
RW
1469} # ac_fn_c_try_cpp
1470
1471# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1472# -------------------------------------------------------
1473# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1474# the include files in INCLUDES and setting the cache variable VAR
1475# accordingly.
1476ac_fn_c_check_header_mongrel ()
1477{
1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1481$as_echo_n "checking for $2... " >&6; }
1482if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1483 $as_echo_n "(cached) " >&6
1484fi
1485eval ac_res=\$$3
1486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1487$as_echo "$ac_res" >&6; }
1488else
1489 # Is the header compilable?
1490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1491$as_echo_n "checking $2 usability... " >&6; }
1492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1493/* end confdefs.h. */
1494$4
1495#include <$2>
1496_ACEOF
1497if ac_fn_c_try_compile "$LINENO"; then :
1498 ac_header_compiler=yes
1499else
1500 ac_header_compiler=no
1501fi
1502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1504$as_echo "$ac_header_compiler" >&6; }
1505
1506# Is the header present?
1507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1508$as_echo_n "checking $2 presence... " >&6; }
1509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1510/* end confdefs.h. */
1511#include <$2>
1512_ACEOF
1513if ac_fn_c_try_cpp "$LINENO"; then :
1514 ac_header_preproc=yes
1515else
1516 ac_header_preproc=no
1517fi
1518rm -f conftest.err conftest.$ac_ext
1519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1520$as_echo "$ac_header_preproc" >&6; }
1521
1522# So? What about this header?
1523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1524 yes:no: )
1525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1526$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1528$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1529 ;;
1530 no:yes:* )
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1532$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1534$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1536$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1538$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1540$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1541 ;;
1542esac
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1544$as_echo_n "checking for $2... " >&6; }
1545if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1546 $as_echo_n "(cached) " >&6
1547else
1548 eval "$3=\$ac_header_compiler"
1549fi
1550eval ac_res=\$$3
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1552$as_echo "$ac_res" >&6; }
1553fi
1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1555
1556} # ac_fn_c_check_header_mongrel
1557
1558# ac_fn_c_try_run LINENO
1559# ----------------------
1560# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1561# that executables *can* be run.
1562ac_fn_c_try_run ()
1563{
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_link"
1566case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571$as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_link") 2>&5
1573 ac_status=$?
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1576 { { case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_try") 2>&5
1583 ac_status=$?
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; }; }; then :
1586 ac_retval=0
1587else
1588 $as_echo "$as_me: program exited with status $ac_status" >&5
1589 $as_echo "$as_me: failed program was:" >&5
1590sed 's/^/| /' conftest.$ac_ext >&5
1591
1592 ac_retval=$ac_status
1593fi
1594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 return $ac_retval
1597
1598} # ac_fn_c_try_run
1599
1600# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1601# -------------------------------------------------------
1602# Tests whether HEADER exists and can be compiled using the include files in
1603# INCLUDES, setting the cache variable VAR accordingly.
1604ac_fn_c_check_header_compile ()
1605{
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608$as_echo_n "checking for $2... " >&6; }
1609if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1610 $as_echo_n "(cached) " >&6
1611else
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613/* end confdefs.h. */
1614$4
1615#include <$2>
1616_ACEOF
1617if ac_fn_c_try_compile "$LINENO"; then :
1618 eval "$3=yes"
1619else
1620 eval "$3=no"
1621fi
1622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1623fi
1624eval ac_res=\$$3
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626$as_echo "$ac_res" >&6; }
1627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628
1629} # ac_fn_c_check_header_compile
1630
1631# ac_fn_c_try_link LINENO
1632# -----------------------
1633# Try to link conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_c_try_link ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext conftest$ac_exeext
1638 if { { ac_try="$ac_link"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest$ac_exeext && {
1657 test "$cross_compiling" = yes ||
1658 $as_test_x conftest$ac_exeext
1659 }; then :
1660 ac_retval=0
1661else
1662 $as_echo "$as_me: failed program was:" >&5
1663sed 's/^/| /' conftest.$ac_ext >&5
1664
1665 ac_retval=1
1666fi
1667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1669 # interfere with the next link command; also delete a directory that is
1670 # left behind by Apple's compiler. We do this before executing the actions.
1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673 return $ac_retval
1674
1675} # ac_fn_c_try_link
1676
1677# ac_fn_c_check_func LINENO FUNC VAR
1678# ----------------------------------
1679# Tests whether FUNC exists, setting the cache variable VAR accordingly
1680ac_fn_c_check_func ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684$as_echo_n "checking for $2... " >&6; }
1685if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1686 $as_echo_n "(cached) " >&6
1687else
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h. */
1690/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1692#define $2 innocuous_$2
1693
1694/* System header to define __stub macros and hopefully few prototypes,
1695 which can conflict with char $2 (); below.
1696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1697 <limits.h> exists even on freestanding compilers. */
1698
1699#ifdef __STDC__
1700# include <limits.h>
1701#else
1702# include <assert.h>
1703#endif
1704
1705#undef $2
1706
1707/* Override any GCC internal prototype to avoid an error.
1708 Use char because int might match the return type of a GCC
1709 builtin and then its argument prototype would still apply. */
1710#ifdef __cplusplus
1711extern "C"
1712#endif
1713char $2 ();
1714/* The GNU C library defines this for functions which it implements
1715 to always fail with ENOSYS. Some functions are actually named
1716 something starting with __ and the normal name is an alias. */
1717#if defined __stub_$2 || defined __stub___$2
1718choke me
1719#endif
1720
1721int
1722main ()
1723{
1724return $2 ();
1725 ;
1726 return 0;
1727}
1728_ACEOF
1729if ac_fn_c_try_link "$LINENO"; then :
1730 eval "$3=yes"
1731else
1732 eval "$3=no"
1733fi
1734rm -f core conftest.err conftest.$ac_objext \
1735 conftest$ac_exeext conftest.$ac_ext
1736fi
1737eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739$as_echo "$ac_res" >&6; }
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741
1742} # ac_fn_c_check_func
1743
1744# ac_fn_c_check_decl LINENO SYMBOL VAR
1745# ------------------------------------
1746# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1747ac_fn_c_check_decl ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1751$as_echo_n "checking whether $2 is declared... " >&6; }
1752if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 $as_echo_n "(cached) " >&6
1754else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h. */
1757$4
1758int
1759main ()
1760{
1761#ifndef $2
1762 (void) $2;
1763#endif
1764
1765 ;
1766 return 0;
1767}
1768_ACEOF
1769if ac_fn_c_try_compile "$LINENO"; then :
1770 eval "$3=yes"
1771else
1772 eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775fi
1776eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778$as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780
1781} # ac_fn_c_check_decl
1782
1783# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1784# -------------------------------------------
1785# Tests whether TYPE exists after having included INCLUDES, setting cache
1786# variable VAR accordingly.
1787ac_fn_c_check_type ()
1788{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793 $as_echo_n "(cached) " >&6
1794else
1795 eval "$3=no"
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798$4
1799int
1800main ()
1801{
1802if (sizeof ($2))
1803 return 0;
1804 ;
1805 return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_compile "$LINENO"; then :
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h. */
1811$4
1812int
1813main ()
1814{
1815if (sizeof (($2)))
1816 return 0;
1817 ;
1818 return 0;
1819}
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822
1823else
1824 eval "$3=yes"
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829fi
1830eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834
1835} # ac_fn_c_check_type
1836cat >config.log <<_ACEOF
1837This file contains any messages produced by compilers while
1838running configure, to aid debugging if configure makes a mistake.
1839
1840It was created by $as_me, which was
1841generated by GNU Autoconf 2.64. Invocation command line was
1842
1843 $ $0 $@
1844
1845_ACEOF
1846exec 5>>config.log
1847{
1848cat <<_ASUNAME
1849## --------- ##
1850## Platform. ##
1851## --------- ##
1852
1853hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857uname -v = `(uname -v) 2>/dev/null || echo unknown`
1858
1859/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1861
1862/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1863/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1864/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1866/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1867/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1868/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1869
1870_ASUNAME
1871
1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873for as_dir in $PATH
1874do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 $as_echo "PATH: $as_dir"
1878 done
1879IFS=$as_save_IFS
1880
1881} >&5
1882
1883cat >&5 <<_ACEOF
1884
1885
1886## ----------- ##
1887## Core tests. ##
1888## ----------- ##
bec39cab
AC
1889
1890_ACEOF
1891
1892
1893# Keep a trace of the command line.
1894# Strip out --no-create and --no-recursion so they do not pile up.
1895# Strip out --silent because we don't want to record it for future runs.
1896# Also quote any args containing shell meta-characters.
1897# Make two passes to allow for proper duplicate-argument suppression.
1898ac_configure_args=
1899ac_configure_args0=
1900ac_configure_args1=
bec39cab
AC
1901ac_must_keep_next=false
1902for ac_pass in 1 2
1903do
1904 for ac_arg
1905 do
1906 case $ac_arg in
1907 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909 | -silent | --silent | --silen | --sile | --sil)
1910 continue ;;
81ecdfbb
RW
1911 *\'*)
1912 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1913 esac
1914 case $ac_pass in
81ecdfbb 1915 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
bec39cab 1916 2)
81ecdfbb 1917 as_fn_append ac_configure_args1 " '$ac_arg'"
bec39cab
AC
1918 if test $ac_must_keep_next = true; then
1919 ac_must_keep_next=false # Got value, back to normal.
1920 else
1921 case $ac_arg in
1922 *=* | --config-cache | -C | -disable-* | --disable-* \
1923 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925 | -with-* | --with-* | -without-* | --without-* | --x)
1926 case "$ac_configure_args0 " in
1927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1928 esac
1929 ;;
1930 -* ) ac_must_keep_next=true ;;
1931 esac
1932 fi
81ecdfbb 1933 as_fn_append ac_configure_args " '$ac_arg'"
bec39cab
AC
1934 ;;
1935 esac
1936 done
1937done
81ecdfbb
RW
1938{ ac_configure_args0=; unset ac_configure_args0;}
1939{ ac_configure_args1=; unset ac_configure_args1;}
bec39cab
AC
1940
1941# When interrupted or exit'd, cleanup temporary files, and complete
1942# config.log. We remove comments because anyway the quotes in there
1943# would cause problems or look ugly.
81ecdfbb
RW
1944# WARNING: Use '\'' to represent an apostrophe within the trap.
1945# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bec39cab
AC
1946trap 'exit_status=$?
1947 # Save into config.log some information that might help in debugging.
1948 {
1949 echo
1950
1951 cat <<\_ASBOX
1952## ---------------- ##
1953## Cache variables. ##
1954## ---------------- ##
1955_ASBOX
1956 echo
1957 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1958(
1959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960 eval ac_val=\$$ac_var
1961 case $ac_val in #(
1962 *${as_nl}*)
1963 case $ac_var in #(
1964 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1965$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1966 esac
1967 case $ac_var in #(
1968 _ | IFS | as_nl) ;; #(
1969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1970 *) { eval $ac_var=; unset $ac_var;} ;;
1971 esac ;;
1972 esac
1973 done
bec39cab 1974 (set) 2>&1 |
81ecdfbb
RW
1975 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1976 *${as_nl}ac_space=\ *)
bec39cab 1977 sed -n \
81ecdfbb
RW
1978 "s/'\''/'\''\\\\'\'''\''/g;
1979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1980 ;; #(
bec39cab 1981 *)
81ecdfbb 1982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 1983 ;;
81ecdfbb
RW
1984 esac |
1985 sort
1986)
bec39cab
AC
1987 echo
1988
1989 cat <<\_ASBOX
1990## ----------------- ##
1991## Output variables. ##
1992## ----------------- ##
1993_ASBOX
1994 echo
1995 for ac_var in $ac_subst_vars
1996 do
81ecdfbb
RW
1997 eval ac_val=\$$ac_var
1998 case $ac_val in
1999 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 esac
2001 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
2002 done | sort
2003 echo
2004
2005 if test -n "$ac_subst_files"; then
2006 cat <<\_ASBOX
81ecdfbb
RW
2007## ------------------- ##
2008## File substitutions. ##
2009## ------------------- ##
bec39cab
AC
2010_ASBOX
2011 echo
2012 for ac_var in $ac_subst_files
2013 do
81ecdfbb
RW
2014 eval ac_val=\$$ac_var
2015 case $ac_val in
2016 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2017 esac
2018 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
2019 done | sort
2020 echo
434c4c77 2021 fi
bec39cab
AC
2022
2023 if test -s confdefs.h; then
2024 cat <<\_ASBOX
2025## ----------- ##
2026## confdefs.h. ##
2027## ----------- ##
2028_ASBOX
2029 echo
81ecdfbb 2030 cat confdefs.h
bec39cab
AC
2031 echo
2032 fi
2033 test "$ac_signal" != 0 &&
81ecdfbb
RW
2034 $as_echo "$as_me: caught signal $ac_signal"
2035 $as_echo "$as_me: exit $exit_status"
bec39cab 2036 } >&5
81ecdfbb
RW
2037 rm -f core *.core core.conftest.* &&
2038 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 2039 exit $exit_status
81ecdfbb 2040' 0
bec39cab 2041for ac_signal in 1 2 13 15; do
81ecdfbb 2042 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bec39cab
AC
2043done
2044ac_signal=0
2045
2046# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2047rm -f -r conftest* confdefs.h
2048
2049$as_echo "/* confdefs.h */" > confdefs.h
bec39cab
AC
2050
2051# Predefined preprocessor variables.
2052
2053cat >>confdefs.h <<_ACEOF
2054#define PACKAGE_NAME "$PACKAGE_NAME"
2055_ACEOF
2056
bec39cab
AC
2057cat >>confdefs.h <<_ACEOF
2058#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2059_ACEOF
2060
bec39cab
AC
2061cat >>confdefs.h <<_ACEOF
2062#define PACKAGE_VERSION "$PACKAGE_VERSION"
2063_ACEOF
2064
bec39cab
AC
2065cat >>confdefs.h <<_ACEOF
2066#define PACKAGE_STRING "$PACKAGE_STRING"
2067_ACEOF
2068
bec39cab
AC
2069cat >>confdefs.h <<_ACEOF
2070#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2071_ACEOF
2072
81ecdfbb
RW
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_URL "$PACKAGE_URL"
2075_ACEOF
2076
bec39cab
AC
2077
2078# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2079# Prefer an explicitly selected file to automatically selected ones.
2080ac_site_file1=NONE
2081ac_site_file2=NONE
2082if test -n "$CONFIG_SITE"; then
2083 ac_site_file1=$CONFIG_SITE
2084elif test "x$prefix" != xNONE; then
2085 ac_site_file1=$prefix/share/config.site
2086 ac_site_file2=$prefix/etc/config.site
2087else
2088 ac_site_file1=$ac_default_prefix/share/config.site
2089 ac_site_file2=$ac_default_prefix/etc/config.site
d6e9fb05 2090fi
81ecdfbb
RW
2091for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2092do
2093 test "x$ac_site_file" = xNONE && continue
d6e9fb05 2094 if test -r "$ac_site_file"; then
81ecdfbb
RW
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2096$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bec39cab 2097 sed 's/^/| /' "$ac_site_file" >&5
d6e9fb05
JK
2098 . "$ac_site_file"
2099 fi
2100done
2101
2102if test -r "$cache_file"; then
bec39cab
AC
2103 # Some versions of bash will fail to source /dev/null (special
2104 # files actually), so we avoid doing that.
2105 if test -f "$cache_file"; then
81ecdfbb
RW
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2107$as_echo "$as_me: loading cache $cache_file" >&6;}
bec39cab 2108 case $cache_file in
81ecdfbb
RW
2109 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2110 *) . "./$cache_file";;
bec39cab
AC
2111 esac
2112 fi
d6e9fb05 2113else
81ecdfbb
RW
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2115$as_echo "$as_me: creating cache $cache_file" >&6;}
bec39cab 2116 >$cache_file
d6e9fb05
JK
2117fi
2118
bec39cab
AC
2119# Check that the precious variables saved in the cache have kept the same
2120# value.
2121ac_cache_corrupted=false
81ecdfbb 2122for ac_var in $ac_precious_vars; do
bec39cab
AC
2123 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2124 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2125 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2126 eval ac_new_val=\$ac_env_${ac_var}_value
bec39cab
AC
2127 case $ac_old_set,$ac_new_set in
2128 set,)
81ecdfbb
RW
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2130$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bec39cab
AC
2131 ac_cache_corrupted=: ;;
2132 ,set)
81ecdfbb
RW
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2134$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bec39cab
AC
2135 ac_cache_corrupted=: ;;
2136 ,);;
2137 *)
2138 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2139 # differences in whitespace do not lead to failure.
2140 ac_old_val_w=`echo x $ac_old_val`
2141 ac_new_val_w=`echo x $ac_new_val`
2142 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2144$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145 ac_cache_corrupted=:
2146 else
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2148$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2149 eval $ac_var=\$ac_old_val
2150 fi
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2152$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2154$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
2155 fi;;
2156 esac
2157 # Pass precious variables to config.status.
2158 if test "$ac_new_set" = set; then
2159 case $ac_new_val in
81ecdfbb 2160 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
2161 *) ac_arg=$ac_var=$ac_new_val ;;
2162 esac
2163 case " $ac_configure_args " in
2164 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2165 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
bec39cab 2166 esac
d6e9fb05 2167 fi
bec39cab
AC
2168done
2169if $ac_cache_corrupted; then
81ecdfbb
RW
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2173$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2174 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d6e9fb05 2175fi
81ecdfbb
RW
2176## -------------------- ##
2177## Main body of script. ##
2178## -------------------- ##
d6e9fb05 2179
dae5f5cf
DJ
2180ac_ext=c
2181ac_cpp='$CPP $CPPFLAGS'
2182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185
d6e9fb05 2186
84563040 2187
bec39cab
AC
2188
2189
81ecdfbb 2190ac_config_headers="$ac_config_headers config.h:config.in"
bec39cab
AC
2191
2192
e28b3332 2193
bec39cab
AC
2194ac_ext=c
2195ac_cpp='$CPP $CPPFLAGS'
2196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2198ac_compiler_gnu=$ac_cv_c_compiler_gnu
2199if test -n "$ac_tool_prefix"; then
2200 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2201set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2203$as_echo_n "checking for $ac_word... " >&6; }
2204if test "${ac_cv_prog_CC+set}" = set; then :
2205 $as_echo_n "(cached) " >&6
84563040
DJ
2206else
2207 if test -n "$CC"; then
2208 ac_cv_prog_CC="$CC" # Let the user override the test.
2209else
bec39cab
AC
2210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211for as_dir in $PATH
2212do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2217 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2219 break 2
2220 fi
2221done
81ecdfbb
RW
2222 done
2223IFS=$as_save_IFS
bec39cab 2224
84563040
DJ
2225fi
2226fi
bec39cab 2227CC=$ac_cv_prog_CC
84563040 2228if test -n "$CC"; then
81ecdfbb
RW
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2230$as_echo "$CC" >&6; }
84563040 2231else
81ecdfbb
RW
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2233$as_echo "no" >&6; }
84563040
DJ
2234fi
2235
81ecdfbb 2236
bec39cab
AC
2237fi
2238if test -z "$ac_cv_prog_CC"; then
2239 ac_ct_CC=$CC
2240 # Extract the first word of "gcc", so it can be a program name with args.
2241set dummy gcc; ac_word=$2
81ecdfbb
RW
2242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2243$as_echo_n "checking for $ac_word... " >&6; }
2244if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2245 $as_echo_n "(cached) " >&6
84563040 2246else
bec39cab
AC
2247 if test -n "$ac_ct_CC"; then
2248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
84563040 2249else
bec39cab
AC
2250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251for as_dir in $PATH
2252do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2257 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2259 break 2
2260 fi
2261done
81ecdfbb
RW
2262 done
2263IFS=$as_save_IFS
bec39cab
AC
2264
2265fi
2266fi
2267ac_ct_CC=$ac_cv_prog_ac_ct_CC
2268if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2270$as_echo "$ac_ct_CC" >&6; }
bec39cab 2271else
81ecdfbb
RW
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2273$as_echo "no" >&6; }
bec39cab
AC
2274fi
2275
81ecdfbb
RW
2276 if test "x$ac_ct_CC" = x; then
2277 CC=""
2278 else
2279 case $cross_compiling:$ac_tool_warned in
2280yes:)
2281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2283ac_tool_warned=yes ;;
2284esac
2285 CC=$ac_ct_CC
2286 fi
bec39cab
AC
2287else
2288 CC="$ac_cv_prog_CC"
2289fi
2290
2291if test -z "$CC"; then
81ecdfbb
RW
2292 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 2294set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2296$as_echo_n "checking for $ac_word... " >&6; }
2297if test "${ac_cv_prog_CC+set}" = set; then :
2298 $as_echo_n "(cached) " >&6
bec39cab
AC
2299else
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC="$CC" # Let the user override the test.
2302else
2303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304for as_dir in $PATH
2305do
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2310 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2312 break 2
2313 fi
2314done
81ecdfbb
RW
2315 done
2316IFS=$as_save_IFS
bec39cab
AC
2317
2318fi
2319fi
2320CC=$ac_cv_prog_CC
2321if test -n "$CC"; then
81ecdfbb
RW
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2323$as_echo "$CC" >&6; }
bec39cab 2324else
81ecdfbb
RW
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2326$as_echo "no" >&6; }
bec39cab
AC
2327fi
2328
81ecdfbb
RW
2329
2330 fi
dae5f5cf 2331fi
81ecdfbb 2332if test -z "$CC"; then
dae5f5cf
DJ
2333 # Extract the first word of "cc", so it can be a program name with args.
2334set dummy cc; ac_word=$2
81ecdfbb
RW
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2336$as_echo_n "checking for $ac_word... " >&6; }
2337if test "${ac_cv_prog_CC+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
dae5f5cf 2339else
81ecdfbb
RW
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
dae5f5cf 2342else
81ecdfbb 2343 ac_prog_rejected=no
dae5f5cf
DJ
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2352 ac_prog_rejected=yes
2353 continue
2354 fi
2355 ac_cv_prog_CC="cc"
2356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dae5f5cf 2357 break 2
b80864fb 2358 fi
dae5f5cf 2359done
81ecdfbb
RW
2360 done
2361IFS=$as_save_IFS
bec39cab 2362
84563040
DJ
2363if test $ac_prog_rejected = yes; then
2364 # We found a bogon in the path, so make sure we never use it.
2365 set dummy $ac_cv_prog_CC
2366 shift
bec39cab 2367 if test $# != 0; then
84563040
DJ
2368 # We chose a different compiler from the bogus one.
2369 # However, it has the same basename, so the bogon will be chosen
2370 # first if we set CC to just the basename; use the full file name.
2371 shift
bec39cab 2372 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
84563040
DJ
2373 fi
2374fi
2375fi
2376fi
bec39cab 2377CC=$ac_cv_prog_CC
84563040 2378if test -n "$CC"; then
81ecdfbb
RW
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2380$as_echo "$CC" >&6; }
84563040 2381else
81ecdfbb
RW
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2383$as_echo "no" >&6; }
84563040
DJ
2384fi
2385
81ecdfbb 2386
bec39cab
AC
2387fi
2388if test -z "$CC"; then
2389 if test -n "$ac_tool_prefix"; then
81ecdfbb 2390 for ac_prog in cl.exe
bec39cab
AC
2391 do
2392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2393set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2395$as_echo_n "checking for $ac_word... " >&6; }
2396if test "${ac_cv_prog_CC+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
84563040
DJ
2398else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401else
bec39cab
AC
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2409 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2411 break 2
2412 fi
2413done
81ecdfbb
RW
2414 done
2415IFS=$as_save_IFS
bec39cab 2416
84563040
DJ
2417fi
2418fi
bec39cab 2419CC=$ac_cv_prog_CC
84563040 2420if test -n "$CC"; then
81ecdfbb
RW
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2422$as_echo "$CC" >&6; }
84563040 2423else
81ecdfbb
RW
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2425$as_echo "no" >&6; }
84563040 2426fi
bec39cab 2427
81ecdfbb 2428
bec39cab
AC
2429 test -n "$CC" && break
2430 done
2431fi
2432if test -z "$CC"; then
2433 ac_ct_CC=$CC
81ecdfbb 2434 for ac_prog in cl.exe
bec39cab
AC
2435do
2436 # Extract the first word of "$ac_prog", so it can be a program name with args.
2437set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2439$as_echo_n "checking for $ac_word... " >&6; }
2440if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2441 $as_echo_n "(cached) " >&6
bec39cab
AC
2442else
2443 if test -n "$ac_ct_CC"; then
2444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2445else
2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447for as_dir in $PATH
2448do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2453 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab 2455 break 2
84563040 2456 fi
bec39cab 2457done
81ecdfbb
RW
2458 done
2459IFS=$as_save_IFS
bec39cab
AC
2460
2461fi
2462fi
2463ac_ct_CC=$ac_cv_prog_ac_ct_CC
2464if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2466$as_echo "$ac_ct_CC" >&6; }
bec39cab 2467else
81ecdfbb
RW
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2469$as_echo "no" >&6; }
84563040
DJ
2470fi
2471
81ecdfbb 2472
bec39cab
AC
2473 test -n "$ac_ct_CC" && break
2474done
84563040 2475
81ecdfbb
RW
2476 if test "x$ac_ct_CC" = x; then
2477 CC=""
2478 else
2479 case $cross_compiling:$ac_tool_warned in
2480yes:)
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2483ac_tool_warned=yes ;;
2484esac
2485 CC=$ac_ct_CC
2486 fi
bec39cab
AC
2487fi
2488
2489fi
2490
2491
81ecdfbb
RW
2492test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2494as_fn_error "no acceptable C compiler found in \$PATH
2495See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
2496
2497# Provide some information about the compiler.
81ecdfbb
RW
2498$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2499set X $ac_compile
2500ac_compiler=$2
2501for ac_option in --version -v -V -qversion; do
2502 { { ac_try="$ac_compiler $ac_option >&5"
2503case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2506esac
2507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2508$as_echo "$ac_try_echo"; } >&5
2509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
bec39cab 2510 ac_status=$?
81ecdfbb
RW
2511 if test -s conftest.err; then
2512 sed '10a\
2513... rest of stderr output deleted ...
2514 10q' conftest.err >conftest.er1
2515 cat conftest.er1 >&5
2516 rm -f conftest.er1 conftest.err
2517 fi
2518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2519 test $ac_status = 0; }
2520done
bec39cab 2521
81ecdfbb 2522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2523/* end confdefs.h. */
2524
2525int
2526main ()
2527{
2528
2529 ;
2530 return 0;
2531}
2532_ACEOF
2533ac_clean_files_save=$ac_clean_files
81ecdfbb 2534ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
bec39cab
AC
2535# Try to create an executable without -o first, disregard a.out.
2536# It will help us diagnose broken compilers, and finding out an intuition
2537# of exeext.
81ecdfbb
RW
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2539$as_echo_n "checking for C compiler default output file name... " >&6; }
2540ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2541
2542# The possible output files:
2543ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2544
2545ac_rmfiles=
2546for ac_file in $ac_files
2547do
2548 case $ac_file in
2549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2550 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2551 esac
2552done
2553rm -f $ac_rmfiles
2554
2555if { { ac_try="$ac_link_default"
2556case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2559esac
2560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2561$as_echo "$ac_try_echo"; } >&5
2562 (eval "$ac_link_default") 2>&5
bec39cab 2563 ac_status=$?
81ecdfbb
RW
2564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2565 test $ac_status = 0; }; then :
2566 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2567# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2568# in a Makefile. We should not override ac_cv_exeext if it was cached,
2569# so that the user can short-circuit this test for compilers unknown to
2570# Autoconf.
2571for ac_file in $ac_files ''
bec39cab
AC
2572do
2573 test -f "$ac_file" || continue
2574 case $ac_file in
81ecdfbb 2575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bec39cab
AC
2576 ;;
2577 [ab].out )
2578 # We found the default executable, but exeext='' is most
2579 # certainly right.
2580 break;;
2581 *.* )
81ecdfbb
RW
2582 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2583 then :; else
2584 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2585 fi
2586 # We set ac_cv_exeext here because the later test for it is not
2587 # safe: cross compilers may not add the suffix if given an `-o'
2588 # argument, so we may need to know it at that point already.
2589 # Even if this section looks crufty: it has the advantage of
2590 # actually working.
bec39cab
AC
2591 break;;
2592 * )
2593 break;;
2594 esac
2595done
81ecdfbb
RW
2596test "$ac_cv_exeext" = no && ac_cv_exeext=
2597
bec39cab 2598else
81ecdfbb
RW
2599 ac_file=''
2600fi
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2602$as_echo "$ac_file" >&6; }
2603if test -z "$ac_file"; then :
2604 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
81ecdfbb
RW
2607{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609{ as_fn_set_status 77
2610as_fn_error "C compiler cannot create executables
2611See \`config.log' for more details." "$LINENO" 5; }; }
bec39cab 2612fi
bec39cab 2613ac_exeext=$ac_cv_exeext
bec39cab 2614
81ecdfbb 2615# Check that the compiler produces executables we can run. If not, either
bec39cab 2616# the compiler is broken, or we cross compile.
81ecdfbb
RW
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2618$as_echo_n "checking whether the C compiler works... " >&6; }
bec39cab
AC
2619# If not cross compiling, check that we can run a simple program.
2620if test "$cross_compiling" != yes; then
2621 if { ac_try='./$ac_file'
81ecdfbb
RW
2622 { { case "(($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_try") 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
bec39cab 2632 cross_compiling=no
84563040 2633 else
bec39cab
AC
2634 if test "$cross_compiling" = maybe; then
2635 cross_compiling=yes
2636 else
81ecdfbb
RW
2637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2639as_fn_error "cannot run C compiled programs.
bec39cab 2640If you meant to cross compile, use \`--host'.
81ecdfbb 2641See \`config.log' for more details." "$LINENO" 5; }
bec39cab 2642 fi
84563040 2643 fi
84563040 2644fi
81ecdfbb
RW
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646$as_echo "yes" >&6; }
bec39cab 2647
81ecdfbb 2648rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
bec39cab 2649ac_clean_files=$ac_clean_files_save
81ecdfbb 2650# Check that the compiler produces executables we can run. If not, either
bec39cab 2651# the compiler is broken, or we cross compile.
81ecdfbb
RW
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2653$as_echo_n "checking whether we are cross compiling... " >&6; }
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2655$as_echo "$cross_compiling" >&6; }
2656
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2658$as_echo_n "checking for suffix of executables... " >&6; }
2659if { { ac_try="$ac_link"
2660case "(($ac_try" in
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2663esac
2664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2665$as_echo "$ac_try_echo"; } >&5
2666 (eval "$ac_link") 2>&5
bec39cab 2667 ac_status=$?
81ecdfbb
RW
2668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2669 test $ac_status = 0; }; then :
bec39cab
AC
2670 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2671# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2672# work properly (i.e., refer to `conftest.exe'), while it won't with
2673# `rm'.
2674for ac_file in conftest.exe conftest conftest.*; do
2675 test -f "$ac_file" || continue
2676 case $ac_file in
81ecdfbb 2677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bec39cab 2678 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bec39cab
AC
2679 break;;
2680 * ) break;;
2681 esac
2682done
84563040 2683else
81ecdfbb
RW
2684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686as_fn_error "cannot compute suffix of executables: cannot compile and link
2687See \`config.log' for more details." "$LINENO" 5; }
84563040 2688fi
bec39cab 2689rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2691$as_echo "$ac_cv_exeext" >&6; }
bec39cab
AC
2692
2693rm -f conftest.$ac_ext
2694EXEEXT=$ac_cv_exeext
2695ac_exeext=$EXEEXT
81ecdfbb
RW
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2697$as_echo_n "checking for suffix of object files... " >&6; }
2698if test "${ac_cv_objext+set}" = set; then :
2699 $as_echo_n "(cached) " >&6
bec39cab 2700else
81ecdfbb 2701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2702/* end confdefs.h. */
2703
2704int
2705main ()
2706{
2707
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712rm -f conftest.o conftest.obj
81ecdfbb
RW
2713if { { ac_try="$ac_compile"
2714case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717esac
2718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2719$as_echo "$ac_try_echo"; } >&5
2720 (eval "$ac_compile") 2>&5
bec39cab 2721 ac_status=$?
81ecdfbb
RW
2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723 test $ac_status = 0; }; then :
2724 for ac_file in conftest.o conftest.obj conftest.*; do
2725 test -f "$ac_file" || continue;
bec39cab 2726 case $ac_file in
81ecdfbb 2727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bec39cab
AC
2728 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2729 break;;
2730 esac
2731done
2732else
81ecdfbb 2733 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
81ecdfbb
RW
2736{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2738as_fn_error "cannot compute suffix of object files: cannot compile
2739See \`config.log' for more details." "$LINENO" 5; }
84563040 2740fi
bec39cab
AC
2741rm -f conftest.$ac_cv_objext conftest.$ac_ext
2742fi
81ecdfbb
RW
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2744$as_echo "$ac_cv_objext" >&6; }
bec39cab
AC
2745OBJEXT=$ac_cv_objext
2746ac_objext=$OBJEXT
81ecdfbb
RW
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2748$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2749if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2750 $as_echo_n "(cached) " >&6
bec39cab 2751else
81ecdfbb 2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2753/* end confdefs.h. */
2754
2755int
2756main ()
2757{
2758#ifndef __GNUC__
2759 choke me
2760#endif
84563040 2761
bec39cab
AC
2762 ;
2763 return 0;
2764}
2765_ACEOF
81ecdfbb 2766if ac_fn_c_try_compile "$LINENO"; then :
bec39cab 2767 ac_compiler_gnu=yes
84563040 2768else
81ecdfbb 2769 ac_compiler_gnu=no
84563040 2770fi
81ecdfbb 2771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2772ac_cv_c_compiler_gnu=$ac_compiler_gnu
84563040 2773
bec39cab 2774fi
81ecdfbb
RW
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2776$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2777if test $ac_compiler_gnu = yes; then
2778 GCC=yes
2779else
2780 GCC=
2781fi
bec39cab
AC
2782ac_test_CFLAGS=${CFLAGS+set}
2783ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2785$as_echo_n "checking whether $CC accepts -g... " >&6; }
2786if test "${ac_cv_prog_cc_g+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2788else
2789 ac_save_c_werror_flag=$ac_c_werror_flag
2790 ac_c_werror_flag=yes
2791 ac_cv_prog_cc_g=no
2792 CFLAGS="-g"
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2794/* end confdefs.h. */
2795
2796int
2797main ()
2798{
2799
2800 ;
2801 return 0;
2802}
2803_ACEOF
81ecdfbb 2804if ac_fn_c_try_compile "$LINENO"; then :
84563040
DJ
2805 ac_cv_prog_cc_g=yes
2806else
81ecdfbb
RW
2807 CFLAGS=""
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809/* end confdefs.h. */
2810
2811int
2812main ()
2813{
2814
2815 ;
2816 return 0;
2817}
2818_ACEOF
2819if ac_fn_c_try_compile "$LINENO"; then :
2820
2821else
2822 ac_c_werror_flag=$ac_save_c_werror_flag
2823 CFLAGS="-g"
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825/* end confdefs.h. */
2826
2827int
2828main ()
2829{
84563040 2830
81ecdfbb
RW
2831 ;
2832 return 0;
2833}
2834_ACEOF
2835if ac_fn_c_try_compile "$LINENO"; then :
2836 ac_cv_prog_cc_g=yes
2837fi
2838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84563040 2839fi
81ecdfbb 2840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2841fi
81ecdfbb
RW
2842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 ac_c_werror_flag=$ac_save_c_werror_flag
2844fi
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2846$as_echo "$ac_cv_prog_cc_g" >&6; }
84563040 2847if test "$ac_test_CFLAGS" = set; then
bec39cab 2848 CFLAGS=$ac_save_CFLAGS
84563040
DJ
2849elif test $ac_cv_prog_cc_g = yes; then
2850 if test "$GCC" = yes; then
2851 CFLAGS="-g -O2"
2852 else
2853 CFLAGS="-g"
2854 fi
2855else
2856 if test "$GCC" = yes; then
2857 CFLAGS="-O2"
2858 else
2859 CFLAGS=
2860 fi
2861fi
81ecdfbb
RW
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2863$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2864if test "${ac_cv_prog_cc_c89+set}" = set; then :
2865 $as_echo_n "(cached) " >&6
bec39cab 2866else
81ecdfbb 2867 ac_cv_prog_cc_c89=no
bec39cab 2868ac_save_CC=$CC
81ecdfbb 2869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2870/* end confdefs.h. */
2871#include <stdarg.h>
2872#include <stdio.h>
2873#include <sys/types.h>
2874#include <sys/stat.h>
2875/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2876struct buf { int x; };
2877FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878static char *e (p, i)
2879 char **p;
2880 int i;
2881{
2882 return p[i];
2883}
2884static char *f (char * (*g) (char **, int), char **p, ...)
2885{
2886 char *s;
2887 va_list v;
2888 va_start (v,p);
2889 s = g (p, va_arg (v,int));
2890 va_end (v);
2891 return s;
2892}
2893
2894/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2895 function prototypes and stuff, but not '\xHH' hex character constants.
2896 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 2897 as 'x'. The following induces an error, until -std is added to get
bec39cab
AC
2898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2899 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 2900 that's true only with -std. */
bec39cab
AC
2901int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2902
81ecdfbb
RW
2903/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2904 inside strings and character constants. */
2905#define FOO(x) 'x'
2906int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2907
bec39cab
AC
2908int test (int i, double x);
2909struct s1 {int (*f) (int a);};
2910struct s2 {int (*f) (double a);};
2911int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2912int argc;
2913char **argv;
2914int
2915main ()
2916{
2917return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2918 ;
2919 return 0;
2920}
2921_ACEOF
81ecdfbb
RW
2922for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2924do
2925 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
2926 if ac_fn_c_try_compile "$LINENO"; then :
2927 ac_cv_prog_cc_c89=$ac_arg
bec39cab 2928fi
81ecdfbb
RW
2929rm -f core conftest.err conftest.$ac_objext
2930 test "x$ac_cv_prog_cc_c89" != "xno" && break
bec39cab 2931done
81ecdfbb 2932rm -f conftest.$ac_ext
bec39cab
AC
2933CC=$ac_save_CC
2934
2935fi
81ecdfbb
RW
2936# AC_CACHE_VAL
2937case "x$ac_cv_prog_cc_c89" in
2938 x)
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2940$as_echo "none needed" >&6; } ;;
2941 xno)
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2943$as_echo "unsupported" >&6; } ;;
bec39cab 2944 *)
81ecdfbb
RW
2945 CC="$CC $ac_cv_prog_cc_c89"
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2947$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bec39cab 2948esac
81ecdfbb 2949if test "x$ac_cv_prog_cc_c89" != xno; then :
bec39cab 2950
dae5f5cf
DJ
2951fi
2952
dae5f5cf 2953ac_ext=c
bec39cab
AC
2954ac_cpp='$CPP $CPPFLAGS'
2955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957ac_compiler_gnu=$ac_cv_c_compiler_gnu
84563040
DJ
2958
2959
81ecdfbb
RW
2960ac_ext=c
2961ac_cpp='$CPP $CPPFLAGS'
2962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2966$as_echo_n "checking how to run the C preprocessor... " >&6; }
2967# On Suns, sometimes $CPP names a directory.
2968if test -n "$CPP" && test -d "$CPP"; then
2969 CPP=
2970fi
2971if test -z "$CPP"; then
2972 if test "${ac_cv_prog_CPP+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974else
2975 # Double quotes because CPP needs to be expanded
2976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2977 do
2978 ac_preproc_ok=false
2979for ac_c_preproc_warn_flag in '' yes
2980do
2981 # Use a header file that comes with gcc, so configuring glibc
2982 # with a fresh cross-compiler works.
2983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2984 # <limits.h> exists even on freestanding compilers.
2985 # On the NeXT, cc -E runs the code through the compiler's parser,
2986 # not just through cpp. "Syntax error" is here to catch this case.
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988/* end confdefs.h. */
2989#ifdef __STDC__
2990# include <limits.h>
2991#else
2992# include <assert.h>
2993#endif
2994 Syntax error
fd462a61 2995_ACEOF
81ecdfbb 2996if ac_fn_c_try_cpp "$LINENO"; then :
fd462a61 2997
81ecdfbb
RW
2998else
2999 # Broken: fails on valid input.
3000continue
3001fi
3002rm -f conftest.err conftest.$ac_ext
fd462a61 3003
81ecdfbb
RW
3004 # OK, works on sane cases. Now check whether nonexistent headers
3005 # can be detected and how.
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007/* end confdefs.h. */
3008#include <ac_nonexistent.h>
3009_ACEOF
3010if ac_fn_c_try_cpp "$LINENO"; then :
3011 # Broken: success on invalid input.
3012continue
3013else
3014 # Passes both tests.
3015ac_preproc_ok=:
3016break
3017fi
3018rm -f conftest.err conftest.$ac_ext
fd462a61 3019
d6e9fb05 3020done
81ecdfbb
RW
3021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3022rm -f conftest.err conftest.$ac_ext
3023if $ac_preproc_ok; then :
3024 break
d6e9fb05 3025fi
dae5f5cf 3026
81ecdfbb
RW
3027 done
3028 ac_cv_prog_CPP=$CPP
dae5f5cf 3029
81ecdfbb
RW
3030fi
3031 CPP=$ac_cv_prog_CPP
bec39cab 3032else
81ecdfbb 3033 ac_cv_prog_CPP=$CPP
bec39cab 3034fi
81ecdfbb
RW
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3036$as_echo "$CPP" >&6; }
3037ac_preproc_ok=false
3038for ac_c_preproc_warn_flag in '' yes
3039do
3040 # Use a header file that comes with gcc, so configuring glibc
3041 # with a fresh cross-compiler works.
3042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3043 # <limits.h> exists even on freestanding compilers.
3044 # On the NeXT, cc -E runs the code through the compiler's parser,
3045 # not just through cpp. "Syntax error" is here to catch this case.
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047/* end confdefs.h. */
3048#ifdef __STDC__
3049# include <limits.h>
3050#else
3051# include <assert.h>
3052#endif
3053 Syntax error
3054_ACEOF
3055if ac_fn_c_try_cpp "$LINENO"; then :
dae5f5cf 3056
bec39cab 3057else
81ecdfbb
RW
3058 # Broken: fails on valid input.
3059continue
bec39cab 3060fi
81ecdfbb 3061rm -f conftest.err conftest.$ac_ext
d6e9fb05 3062
81ecdfbb 3063 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 3064 # can be detected and how.
81ecdfbb 3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3066/* end confdefs.h. */
3067#include <ac_nonexistent.h>
3068_ACEOF
81ecdfbb 3069if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3070 # Broken: success on invalid input.
3071continue
3072else
bec39cab
AC
3073 # Passes both tests.
3074ac_preproc_ok=:
3075break
3076fi
3077rm -f conftest.err conftest.$ac_ext
3078
3079done
3080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3081rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
3082if $ac_preproc_ok; then :
3083
3084else
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087as_fn_error "C preprocessor \"$CPP\" fails sanity check
3088See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
3089fi
3090
81ecdfbb
RW
3091ac_ext=c
3092ac_cpp='$CPP $CPPFLAGS'
3093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095ac_compiler_gnu=$ac_cv_c_compiler_gnu
bec39cab 3096
81ecdfbb
RW
3097
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3099$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3100if test "${ac_cv_path_GREP+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
bec39cab 3102else
81ecdfbb
RW
3103 if test -z "$GREP"; then
3104 ac_path_GREP_found=false
3105 # Loop through the user's path and test for each of PROGNAME-LIST
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
bec39cab 3108do
81ecdfbb
RW
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_prog in grep ggrep; do
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3114 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3115# Check for GNU ac_path_GREP and select it if it is found.
3116 # Check for GNU $ac_path_GREP
3117case `"$ac_path_GREP" --version 2>&1` in
3118*GNU*)
3119 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3120*)
3121 ac_count=0
3122 $as_echo_n 0123456789 >"conftest.in"
3123 while :
3124 do
3125 cat "conftest.in" "conftest.in" >"conftest.tmp"
3126 mv "conftest.tmp" "conftest.in"
3127 cp "conftest.in" "conftest.nl"
3128 $as_echo 'GREP' >> "conftest.nl"
3129 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3131 as_fn_arith $ac_count + 1 && ac_count=$as_val
3132 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3133 # Best one so far, save it but keep looking for a better one
3134 ac_cv_path_GREP="$ac_path_GREP"
3135 ac_path_GREP_max=$ac_count
3136 fi
3137 # 10*(2^10) chars as input seems more than enough
3138 test $ac_count -gt 10 && break
3139 done
3140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3141esac
3142
3143 $ac_path_GREP_found && break 3
3144 done
3145 done
3146 done
3147IFS=$as_save_IFS
3148 if test -z "$ac_cv_path_GREP"; then
3149 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
bec39cab
AC
3150 fi
3151else
81ecdfbb 3152 ac_cv_path_GREP=$GREP
bec39cab 3153fi
bec39cab 3154
84563040 3155fi
81ecdfbb
RW
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3157$as_echo "$ac_cv_path_GREP" >&6; }
3158 GREP="$ac_cv_path_GREP"
bec39cab 3159
bec39cab 3160
81ecdfbb
RW
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3162$as_echo_n "checking for egrep... " >&6; }
3163if test "${ac_cv_path_EGREP+set}" = set; then :
3164 $as_echo_n "(cached) " >&6
3165else
3166 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3167 then ac_cv_path_EGREP="$GREP -E"
3168 else
3169 if test -z "$EGREP"; then
3170 ac_path_EGREP_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
3174do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_prog in egrep; do
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3180 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3181# Check for GNU ac_path_EGREP and select it if it is found.
3182 # Check for GNU $ac_path_EGREP
3183case `"$ac_path_EGREP" --version 2>&1` in
3184*GNU*)
3185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
3195 "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then
3199 # Best one so far, save it but keep looking for a better one
3200 ac_cv_path_EGREP="$ac_path_EGREP"
3201 ac_path_EGREP_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
bec39cab 3208
81ecdfbb
RW
3209 $ac_path_EGREP_found && break 3
3210 done
3211 done
3212 done
3213IFS=$as_save_IFS
3214 if test -z "$ac_cv_path_EGREP"; then
3215 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3216 fi
bec39cab 3217else
81ecdfbb 3218 ac_cv_path_EGREP=$EGREP
84563040 3219fi
bec39cab 3220
81ecdfbb 3221 fi
b80864fb 3222fi
81ecdfbb
RW
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3224$as_echo "$ac_cv_path_EGREP" >&6; }
3225 EGREP="$ac_cv_path_EGREP"
b80864fb
DJ
3226
3227
81ecdfbb
RW
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3229$as_echo_n "checking for ANSI C header files... " >&6; }
3230if test "${ac_cv_header_stdc+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
84563040 3232else
81ecdfbb 3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3234/* end confdefs.h. */
84563040
DJ
3235#include <stdlib.h>
3236#include <stdarg.h>
3237#include <string.h>
3238#include <float.h>
bec39cab
AC
3239
3240int
3241main ()
3242{
3243
3244 ;
3245 return 0;
3246}
3247_ACEOF
81ecdfbb 3248if ac_fn_c_try_compile "$LINENO"; then :
84563040
DJ
3249 ac_cv_header_stdc=yes
3250else
81ecdfbb 3251 ac_cv_header_stdc=no
84563040 3252fi
81ecdfbb 3253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84563040
DJ
3254
3255if test $ac_cv_header_stdc = yes; then
3256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3258/* end confdefs.h. */
84563040 3259#include <string.h>
bec39cab
AC
3260
3261_ACEOF
84563040 3262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3263 $EGREP "memchr" >/dev/null 2>&1; then :
3264
84563040 3265else
84563040
DJ
3266 ac_cv_header_stdc=no
3267fi
3268rm -f conftest*
3269
3270fi
3271
3272if test $ac_cv_header_stdc = yes; then
3273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3275/* end confdefs.h. */
84563040 3276#include <stdlib.h>
bec39cab
AC
3277
3278_ACEOF
84563040 3279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3280 $EGREP "free" >/dev/null 2>&1; then :
3281
84563040 3282else
84563040
DJ
3283 ac_cv_header_stdc=no
3284fi
3285rm -f conftest*
3286
3287fi
bec39cab
AC
3288
3289if test $ac_cv_header_stdc = yes; then
3290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 3291 if test "$cross_compiling" = yes; then :
bec39cab
AC
3292 :
3293else
81ecdfbb 3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3295/* end confdefs.h. */
3296#include <ctype.h>
81ecdfbb 3297#include <stdlib.h>
bec39cab
AC
3298#if ((' ' & 0x0FF) == 0x020)
3299# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3300# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3301#else
3302# define ISLOWER(c) \
3303 (('a' <= (c) && (c) <= 'i') \
3304 || ('j' <= (c) && (c) <= 'r') \
3305 || ('s' <= (c) && (c) <= 'z'))
3306# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3307#endif
3308
3309#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3310int
3311main ()
3312{
3313 int i;
3314 for (i = 0; i < 256; i++)
3315 if (XOR (islower (i), ISLOWER (i))
3316 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
3317 return 2;
3318 return 0;
bec39cab
AC
3319}
3320_ACEOF
81ecdfbb 3321if ac_fn_c_try_run "$LINENO"; then :
bec39cab 3322
81ecdfbb
RW
3323else
3324 ac_cv_header_stdc=no
bec39cab 3325fi
81ecdfbb
RW
3326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3327 conftest.$ac_objext conftest.beam conftest.$ac_ext
3328fi
3329
bec39cab
AC
3330fi
3331fi
81ecdfbb
RW
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3333$as_echo "$ac_cv_header_stdc" >&6; }
bec39cab
AC
3334if test $ac_cv_header_stdc = yes; then
3335
81ecdfbb 3336$as_echo "#define STDC_HEADERS 1" >>confdefs.h
bec39cab
AC
3337
3338fi
3339
bec39cab 3340# On IRIX 5.3, sys/types and inttypes.h are conflicting.
bec39cab
AC
3341for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3342 inttypes.h stdint.h unistd.h
81ecdfbb
RW
3343do :
3344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3345ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3346"
3347eval as_val=\$$as_ac_Header
3348 if test "x$as_val" = x""yes; then :
bec39cab 3349 cat >>confdefs.h <<_ACEOF
81ecdfbb 3350#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab
AC
3351_ACEOF
3352
3353fi
3354
3355done
3356
3357
3358
81ecdfbb
RW
3359 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3360if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3361 MINIX=yes
3362else
3363 MINIX=
3364fi
bec39cab
AC
3365
3366
81ecdfbb 3367 if test "$MINIX" = yes; then
bec39cab 3368
81ecdfbb 3369$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
bec39cab
AC
3370
3371
81ecdfbb 3372$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
bec39cab
AC
3373
3374
81ecdfbb 3375$as_echo "#define _MINIX 1" >>confdefs.h
bec39cab 3376
81ecdfbb 3377 fi
bec39cab
AC
3378
3379
81ecdfbb
RW
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3381$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3382if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3384else
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386/* end confdefs.h. */
b80864fb 3387
81ecdfbb
RW
3388# define __EXTENSIONS__ 1
3389 $ac_includes_default
3390int
3391main ()
3392{
b80864fb 3393
81ecdfbb
RW
3394 ;
3395 return 0;
3396}
3397_ACEOF
3398if ac_fn_c_try_compile "$LINENO"; then :
3399 ac_cv_safe_to_define___extensions__=yes
3400else
3401 ac_cv_safe_to_define___extensions__=no
3402fi
3403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404fi
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3406$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3407 test $ac_cv_safe_to_define___extensions__ = yes &&
3408 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
b80864fb 3409
81ecdfbb 3410 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
b80864fb 3411
81ecdfbb 3412 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
b80864fb 3413
81ecdfbb 3414 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
b80864fb 3415
81ecdfbb 3416 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
b80864fb 3417
68070c10
PA
3418
3419
3420
81ecdfbb
RW
3421ac_aux_dir=
3422for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3423 for ac_t in install-sh install.sh shtool; do
3424 if test -f "$ac_dir/$ac_t"; then
3425 ac_aux_dir=$ac_dir
3426 ac_install_sh="$ac_aux_dir/$ac_t -c"
3427 break 2
3428 fi
3429 done
3430done
3431if test -z "$ac_aux_dir"; then
3432 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3433fi
68070c10 3434
81ecdfbb
RW
3435# These three variables are undocumented and unsupported,
3436# and are intended to be withdrawn in a future Autoconf release.
3437# They can cause serious problems if a builder's source tree is in a directory
3438# whose full name contains unusual characters.
3439ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3440ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3441ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
68070c10 3442
bec39cab 3443
81ecdfbb
RW
3444# Make sure we can run config.sub.
3445$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3446 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
bec39cab 3447
81ecdfbb
RW
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3449$as_echo_n "checking build system type... " >&6; }
3450if test "${ac_cv_build+set}" = set; then :
3451 $as_echo_n "(cached) " >&6
bec39cab 3452else
81ecdfbb
RW
3453 ac_build_alias=$build_alias
3454test "x$ac_build_alias" = x &&
3455 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3456test "x$ac_build_alias" = x &&
3457 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3458ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3459 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3460
3461fi
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3463$as_echo "$ac_cv_build" >&6; }
3464case $ac_cv_build in
3465*-*-*) ;;
3466*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3467esac
3468build=$ac_cv_build
3469ac_save_IFS=$IFS; IFS='-'
3470set x $ac_cv_build
3471shift
3472build_cpu=$1
3473build_vendor=$2
3474shift; shift
3475# Remember, the first character of IFS is used to create $*,
3476# except with old shells:
3477build_os=$*
3478IFS=$ac_save_IFS
3479case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3480
3481
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3483$as_echo_n "checking host system type... " >&6; }
3484if test "${ac_cv_host+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
bec39cab 3486else
81ecdfbb
RW
3487 if test "x$host_alias" = x; then
3488 ac_cv_host=$ac_cv_build
3489else
3490 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3491 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
84563040 3492fi
bec39cab 3493
81ecdfbb
RW
3494fi
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3496$as_echo "$ac_cv_host" >&6; }
3497case $ac_cv_host in
3498*-*-*) ;;
3499*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
bec39cab 3500esac
81ecdfbb
RW
3501host=$ac_cv_host
3502ac_save_IFS=$IFS; IFS='-'
3503set x $ac_cv_host
3504shift
3505host_cpu=$1
3506host_vendor=$2
3507shift; shift
3508# Remember, the first character of IFS is used to create $*,
3509# except with old shells:
3510host_os=$*
3511IFS=$ac_save_IFS
3512case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3513
3514
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3516$as_echo_n "checking target system type... " >&6; }
3517if test "${ac_cv_target+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
bec39cab 3519else
81ecdfbb
RW
3520 if test "x$target_alias" = x; then
3521 ac_cv_target=$ac_cv_host
3522else
3523 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3524 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
84563040
DJ
3525fi
3526
84563040 3527fi
81ecdfbb
RW
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3529$as_echo "$ac_cv_target" >&6; }
3530case $ac_cv_target in
3531*-*-*) ;;
3532*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3533esac
3534target=$ac_cv_target
3535ac_save_IFS=$IFS; IFS='-'
3536set x $ac_cv_target
3537shift
3538target_cpu=$1
3539target_vendor=$2
3540shift; shift
3541# Remember, the first character of IFS is used to create $*,
3542# except with old shells:
3543target_os=$*
3544IFS=$ac_save_IFS
3545case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
84563040
DJ
3546
3547
81ecdfbb
RW
3548# The aliases save the names the user supplied, while $host etc.
3549# will get canonicalized.
3550test -n "$target_alias" &&
3551 test "$program_prefix$program_suffix$program_transform_name" = \
3552 NONENONEs,x,x, &&
3553 program_prefix=${target_alias}-
4e799345
DJ
3554
3555
81ecdfbb
RW
3556# Find a good install program. We prefer a C program (faster),
3557# so one script is as good as another. But avoid the broken or
3558# incompatible versions:
3559# SysV /etc/install, /usr/sbin/install
3560# SunOS /usr/etc/install
3561# IRIX /sbin/install
3562# AIX /bin/install
3563# AmigaOS /C/install, which installs bootblocks on floppy discs
3564# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3565# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3566# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3567# OS/2's system install, which has a completely different semantic
3568# ./install, which can be erroneously created by make from ./install.sh.
3569# Reject install programs that cannot install multiple files.
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3571$as_echo_n "checking for a BSD-compatible install... " >&6; }
3572if test -z "$INSTALL"; then
3573if test "${ac_cv_path_install+set}" = set; then :
3574 $as_echo_n "(cached) " >&6
3575else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH
fd462a61 3578do
81ecdfbb
RW
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 # Account for people who put trailing slashes in PATH elements.
3582case $as_dir/ in #((
3583 ./ | .// | /[cC]/* | \
3584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3585 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3586 /usr/ucb/* ) ;;
3587 *)
3588 # OSF1 and SCO ODT 3.0 have their own names for install.
3589 # Don't use installbsd from OSF since it installs stuff as root
3590 # by default.
3591 for ac_prog in ginstall scoinst install; do
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3594 if test $ac_prog = install &&
3595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3596 # AIX install. It has an incompatible calling convention.
3597 :
3598 elif test $ac_prog = install &&
3599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3600 # program-specific install script used by HP pwplus--don't use.
3601 :
3602 else
3603 rm -rf conftest.one conftest.two conftest.dir
3604 echo one > conftest.one
3605 echo two > conftest.two
3606 mkdir conftest.dir
3607 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3608 test -s conftest.one && test -s conftest.two &&
3609 test -s conftest.dir/conftest.one &&
3610 test -s conftest.dir/conftest.two
3611 then
3612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3613 break 3
3614 fi
3615 fi
3616 fi
3617 done
3618 done
3619 ;;
3620esac
fd462a61 3621
81ecdfbb
RW
3622 done
3623IFS=$as_save_IFS
fd462a61 3624
81ecdfbb 3625rm -rf conftest.one conftest.two conftest.dir
fd462a61 3626
fd462a61 3627fi
81ecdfbb
RW
3628 if test "${ac_cv_path_install+set}" = set; then
3629 INSTALL=$ac_cv_path_install
3630 else
3631 # As a last resort, use the slow shell script. Don't cache a
3632 # value for INSTALL within a source directory, because that will
3633 # break other packages using the cache if that directory is
3634 # removed, or if the value is a relative name.
3635 INSTALL=$ac_install_sh
3636 fi
fd462a61 3637fi
81ecdfbb
RW
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3639$as_echo "$INSTALL" >&6; }
fd462a61 3640
81ecdfbb
RW
3641# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3642# It thinks the first close brace ends the variable substitution.
3643test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
fd462a61 3644
81ecdfbb 3645test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fd462a61 3646
81ecdfbb 3647test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
e28b3332 3648
e28b3332 3649
81ecdfbb
RW
3650test "$program_prefix" != NONE &&
3651 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3652# Use a double $ so make ignores it.
3653test "$program_suffix" != NONE &&
3654 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3655# Double any \ or $.
3656# By default was `s,x,x', remove it if useless.
3657ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3658program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
e28b3332 3659
e28b3332 3660
81ecdfbb
RW
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3662$as_echo_n "checking for ANSI C header files... " >&6; }
3663if test "${ac_cv_header_stdc+set}" = set; then :
3664 $as_echo_n "(cached) " >&6
3665else
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h. */
3668#include <stdlib.h>
3669#include <stdarg.h>
3670#include <string.h>
3671#include <float.h>
e28b3332
DJ
3672
3673int
3674main ()
3675{
81ecdfbb 3676
e28b3332
DJ
3677 ;
3678 return 0;
3679}
3680_ACEOF
81ecdfbb
RW
3681if ac_fn_c_try_compile "$LINENO"; then :
3682 ac_cv_header_stdc=yes
e28b3332 3683else
81ecdfbb 3684 ac_cv_header_stdc=no
e28b3332 3685fi
81ecdfbb 3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28b3332 3687
81ecdfbb
RW
3688if test $ac_cv_header_stdc = yes; then
3689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68070c10 3691/* end confdefs.h. */
81ecdfbb 3692#include <string.h>
68070c10 3693
68070c10 3694_ACEOF
81ecdfbb
RW
3695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3696 $EGREP "memchr" >/dev/null 2>&1; then :
3697
68070c10 3698else
81ecdfbb
RW
3699 ac_cv_header_stdc=no
3700fi
3701rm -f conftest*
68070c10
PA
3702
3703fi
68070c10 3704
81ecdfbb
RW
3705if test $ac_cv_header_stdc = yes; then
3706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h. */
3709#include <stdlib.h>
68070c10 3710
68070c10 3711_ACEOF
81ecdfbb
RW
3712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713 $EGREP "free" >/dev/null 2>&1; then :
68070c10
PA
3714
3715else
81ecdfbb 3716 ac_cv_header_stdc=no
68070c10 3717fi
81ecdfbb
RW
3718rm -f conftest*
3719
68070c10
PA
3720fi
3721
81ecdfbb
RW
3722if test $ac_cv_header_stdc = yes; then
3723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3724 if test "$cross_compiling" = yes; then :
3725 :
43d5792c 3726else
81ecdfbb 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3728/* end confdefs.h. */
81ecdfbb
RW
3729#include <ctype.h>
3730#include <stdlib.h>
3731#if ((' ' & 0x0FF) == 0x020)
3732# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3733# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3734#else
3735# define ISLOWER(c) \
3736 (('a' <= (c) && (c) <= 'i') \
3737 || ('j' <= (c) && (c) <= 'r') \
3738 || ('s' <= (c) && (c) <= 'z'))
3739# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3740#endif
3741
3742#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
bec39cab
AC
3743int
3744main ()
3745{
81ecdfbb
RW
3746 int i;
3747 for (i = 0; i < 256; i++)
3748 if (XOR (islower (i), ISLOWER (i))
3749 || toupper (i) != TOUPPER (i))
3750 return 2;
bec39cab
AC
3751 return 0;
3752}
3753_ACEOF
81ecdfbb 3754if ac_fn_c_try_run "$LINENO"; then :
bec39cab 3755
81ecdfbb
RW
3756else
3757 ac_cv_header_stdc=no
43d5792c 3758fi
81ecdfbb
RW
3759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3760 conftest.$ac_objext conftest.beam conftest.$ac_ext
43d5792c 3761fi
e122f1f5 3762
68070c10 3763fi
81ecdfbb
RW
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3766$as_echo "$ac_cv_header_stdc" >&6; }
3767if test $ac_cv_header_stdc = yes; then
68070c10 3768
81ecdfbb 3769$as_echo "#define STDC_HEADERS 1" >>confdefs.h
68070c10 3770
68070c10 3771fi
68070c10 3772
68070c10 3773
81ecdfbb
RW
3774for 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
3775do :
3776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3777ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3778eval as_val=\$$as_ac_Header
3779 if test "x$as_val" = x""yes; then :
68070c10 3780 cat >>confdefs.h <<_ACEOF
81ecdfbb 3781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
68070c10
PA
3782_ACEOF
3783
ec56be1b 3784fi
ec56be1b 3785
81ecdfbb
RW
3786done
3787
3788for ac_func in pread pwrite pread64
3789do :
3790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3791ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3792eval as_val=\$$as_ac_var
3793 if test "x$as_val" = x""yes; then :
3794 cat >>confdefs.h <<_ACEOF
3795#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ec56be1b
PA
3796_ACEOF
3797
81ecdfbb
RW
3798fi
3799done
ec56be1b 3800
81ecdfbb
RW
3801for ac_func in memmem
3802do :
3803 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
3804if test "x$ac_cv_func_memmem" = x""yes; then :
ec56be1b 3805 cat >>confdefs.h <<_ACEOF
81ecdfbb 3806#define HAVE_MEMMEM 1
ec56be1b
PA
3807_ACEOF
3808
81ecdfbb
RW
3809else
3810 case " $LIBOBJS " in
3811 *" $ac_func.$ac_objext "* ) ;;
3812 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
3813 ;;
3814esac
ec56be1b 3815
43d5792c 3816fi
81ecdfbb 3817done
43d5792c
DJ
3818
3819
e122f1f5 3820
10e86dd7
DE
3821old_LIBS="$LIBS"
3822LIBS="$LIBS -ldl"
3823for ac_func in dladdr
3824do :
3825 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
3826if test "x$ac_cv_func_dladdr" = x""yes; then :
3827 cat >>confdefs.h <<_ACEOF
3828#define HAVE_DLADDR 1
3829_ACEOF
3830
3831fi
3832done
3833
3834LIBS="$old_LIBS"
3835
81ecdfbb
RW
3836have_errno=no
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
3838$as_echo_n "checking for errno... " >&6; }
3839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f450004a 3840/* end confdefs.h. */
ccbd4912 3841
81ecdfbb
RW
3842#if HAVE_ERRNO_H
3843#include <errno.h>
3844#endif
f450004a
DJ
3845int
3846main ()
3847{
81ecdfbb
RW
3848static int x; x = errno;
3849 ;
f450004a 3850 return 0;
81ecdfbb
RW
3851}
3852_ACEOF
3853if ac_fn_c_try_link "$LINENO"; then :
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
3855$as_echo "yes - in errno.h" >&6; };
3856$as_echo "#define HAVE_ERRNO 1" >>confdefs.h
3857 have_errno=yes
3858fi
3859rm -f core conftest.err conftest.$ac_objext \
3860 conftest$ac_exeext conftest.$ac_ext
3861if test $have_errno = no; then
3862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863/* end confdefs.h. */
3864
3865#if HAVE_ERRNO_H
3866#include <errno.h>
3867#endif
3868int
3869main ()
3870{
3871extern int errno; static int x; x = errno;
f450004a
DJ
3872 ;
3873 return 0;
3874}
3875_ACEOF
81ecdfbb
RW
3876if ac_fn_c_try_link "$LINENO"; then :
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
3878$as_echo "yes - must define" >&6; };
3879$as_echo "#define HAVE_ERRNO 1" >>confdefs.h
3880
3881$as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
3882
f450004a 3883else
81ecdfbb
RW
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
3886fi
3887rm -f core conftest.err conftest.$ac_objext \
3888 conftest$ac_exeext conftest.$ac_ext
3889fi
3890
3891ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
3892if test "x$ac_cv_have_decl_strerror" = x""yes; then :
3893 ac_have_decl=1
3894else
3895 ac_have_decl=0
3896fi
f450004a 3897
81ecdfbb
RW
3898cat >>confdefs.h <<_ACEOF
3899#define HAVE_DECL_STRERROR $ac_have_decl
3900_ACEOF
3901ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
3902if test "x$ac_cv_have_decl_perror" = x""yes; then :
3903 ac_have_decl=1
3904else
3905 ac_have_decl=0
f450004a 3906fi
81ecdfbb
RW
3907
3908cat >>confdefs.h <<_ACEOF
3909#define HAVE_DECL_PERROR $ac_have_decl
3910_ACEOF
3911ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
3912if test "x$ac_cv_have_decl_memmem" = x""yes; then :
3913 ac_have_decl=1
3914else
3915 ac_have_decl=0
f450004a 3916fi
81ecdfbb
RW
3917
3918cat >>confdefs.h <<_ACEOF
3919#define HAVE_DECL_MEMMEM $ac_have_decl
3920_ACEOF
3921
3922
3923ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
3924#include <sys/socket.h>
3925
3926"
3927if test "x$ac_cv_type_socklen_t" = x""yes; then :
f450004a 3928
ccbd4912 3929cat >>confdefs.h <<_ACEOF
f450004a
DJ
3930#define HAVE_SOCKLEN_T 1
3931_ACEOF
3932
f450004a 3933
ccbd4912 3934fi
f450004a 3935
fb1e4ffc 3936
c16158bc
JM
3937
3938
81ecdfbb
RW
3939# Check whether --with-pkgversion was given.
3940if test "${with_pkgversion+set}" = set; then :
3941 withval=$with_pkgversion; case "$withval" in
3942 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
c16158bc
JM
3943 no) PKGVERSION= ;;
3944 *) PKGVERSION="($withval) " ;;
3945 esac
3946else
3947 PKGVERSION="(GDB) "
3948
81ecdfbb
RW
3949fi
3950
c16158bc
JM
3951
3952
3953
3954
81ecdfbb
RW
3955# Check whether --with-bugurl was given.
3956if test "${with_bugurl+set}" = set; then :
3957 withval=$with_bugurl; case "$withval" in
3958 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
c16158bc
JM
3959 no) BUGURL=
3960 ;;
3961 *) BUGURL="$withval"
3962 ;;
3963 esac
3964else
3965 BUGURL="http://www.gnu.org/software/gdb/bugs/"
3966
81ecdfbb
RW
3967fi
3968
c16158bc
JM
3969 case ${BUGURL} in
3970 "")
3971 REPORT_BUGS_TO=
3972 REPORT_BUGS_TEXI=
3973 ;;
3974 *)
3975 REPORT_BUGS_TO="<$BUGURL>"
3976 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3977 ;;
3978 esac;
3979
3980
3981
3982
3983cat >>confdefs.h <<_ACEOF
3984#define PKGVERSION "$PKGVERSION"
3985_ACEOF
3986
3987
3988cat >>confdefs.h <<_ACEOF
3989#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3990_ACEOF
3991
3992
8838b45e
NS
3993# Check for various supplementary target information (beyond the
3994# triplet) which might affect the choices in configure.srv.
3995case "${target}" in
3996 i[34567]86-*-linux*)
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
3998$as_echo_n "checking if building for x86-64... " >&6; }
3999if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001else
4002 save_CPPFLAGS="$CPPFLAGS"
4003 CPPFLAGS="$CPPFLAGS $CFLAGS"
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005/* end confdefs.h. */
4006
4007#if __x86_64__
4008got it
4009#endif
4010
4011_ACEOF
4012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4013 $EGREP "got it" >/dev/null 2>&1; then :
4014 gdb_cv_i386_is_x86_64=yes
4015else
4016 gdb_cv_i386_is_x86_64=no
4017fi
4018rm -f conftest*
4019
4020 CPPFLAGS="$save_CPPFLAGS"
4021fi
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
4023$as_echo "$gdb_cv_i386_is_x86_64" >&6; }
4024 ;;
9ac544ce
MK
4025 m68k-*-*)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
4027$as_echo_n "checking if building for Coldfire... " >&6; }
4028if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4030else
4031 save_CPPFLAGS="$CPPFLAGS"
4032 CPPFLAGS="$CPPFLAGS $CFLAGS"
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034/* end confdefs.h. */
4035
4036#ifdef __mcoldfire__
4037got it
4038#endif
4039
4040_ACEOF
4041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 $EGREP "got it" >/dev/null 2>&1; then :
4043 gdb_cv_m68k_is_coldfire=yes
4044else
4045 gdb_cv_m68k_is_coldfire=no
4046fi
4047rm -f conftest*
4048
4049 CPPFLAGS="$save_CPPFLAGS"
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
4052$as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
4053 ;;
8838b45e
NS
4054esac
4055
7ea81414 4056. ${srcdir}/configure.srv
d6e9fb05 4057
68070c10
PA
4058if test "${srv_mingwce}" = "yes"; then
4059 LIBS="$LIBS -lws2"
4060elif test "${srv_mingw}" = "yes"; then
12ea4b69 4061 LIBS="$LIBS -lws2_32"
ac8c974e
AR
4062elif test "${srv_qnx}" = "yes"; then
4063 LIBS="$LIBS -lsocket"
68070c10
PA
4064fi
4065
4066if test "${srv_mingw}" = "yes"; then
b80864fb 4067
81ecdfbb 4068$as_echo "#define USE_WIN32API 1" >>confdefs.h
b80864fb
DJ
4069
4070fi
4071
58caa3dc 4072if test "${srv_linux_usrregs}" = "yes"; then
f450004a 4073
81ecdfbb 4074$as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
58caa3dc
DJ
4075
4076fi
4077
4078if test "${srv_linux_regsets}" = "yes"; then
e9d25b98 4079
81ecdfbb 4080$as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
e9d25b98
DJ
4081
4082
81ecdfbb
RW
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
4084$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
4085 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
bec39cab 4087else
81ecdfbb 4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4089/* end confdefs.h. */
58caa3dc 4090#include <sys/ptrace.h>
bec39cab
AC
4091int
4092main ()
4093{
58caa3dc 4094PTRACE_GETREGS;
bec39cab
AC
4095 ;
4096 return 0;
4097}
4098_ACEOF
81ecdfbb 4099if ac_fn_c_try_compile "$LINENO"; then :
58caa3dc
DJ
4100 gdbsrv_cv_have_ptrace_getregs=yes
4101else
81ecdfbb 4102 gdbsrv_cv_have_ptrace_getregs=no
58caa3dc 4103fi
81ecdfbb 4104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
4105fi
4106
81ecdfbb
RW
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
4108$as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
58caa3dc 4109 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
f450004a 4110
81ecdfbb 4111$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
58caa3dc
DJ
4112
4113 fi
4114
81ecdfbb
RW
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
4116$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
4117 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
4118 $as_echo_n "(cached) " >&6
58caa3dc 4119else
81ecdfbb 4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4121/* end confdefs.h. */
58caa3dc 4122#include <sys/ptrace.h>
bec39cab
AC
4123int
4124main ()
4125{
58caa3dc 4126PTRACE_GETFPXREGS;
bec39cab
AC
4127 ;
4128 return 0;
4129}
4130_ACEOF
81ecdfbb 4131if ac_fn_c_try_compile "$LINENO"; then :
58caa3dc
DJ
4132 gdbsrv_cv_have_ptrace_getfpxregs=yes
4133else
81ecdfbb 4134 gdbsrv_cv_have_ptrace_getfpxregs=no
58caa3dc 4135fi
81ecdfbb 4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
4137fi
4138
81ecdfbb
RW
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
4140$as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
58caa3dc 4141 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
f450004a 4142
81ecdfbb 4143$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
58caa3dc
DJ
4144
4145 fi
4146fi
4147
0d62e5e8 4148if test "$ac_cv_header_sys_procfs_h" = yes; then
81ecdfbb
RW
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
4150$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
4151 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
0d62e5e8 4153else
81ecdfbb 4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4155/* end confdefs.h. */
0d62e5e8
DJ
4156
4157#define _SYSCALL32
8e642873
PM
4158/* Needed for new procfs interface on sparc-solaris. */
4159#define _STRUCTURED_PROC 1
0d62e5e8 4160#include <sys/procfs.h>
bec39cab
AC
4161int
4162main ()
4163{
0d62e5e8 4164lwpid_t avar
bec39cab
AC
4165 ;
4166 return 0;
4167}
4168_ACEOF
81ecdfbb 4169if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
4170 bfd_cv_have_sys_procfs_type_lwpid_t=yes
4171else
81ecdfbb 4172 bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 4173
0d62e5e8 4174fi
81ecdfbb 4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4176fi
4177
4178 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab 4179
81ecdfbb 4180$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
0d62e5e8
DJ
4181
4182 fi
81ecdfbb
RW
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
4184$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
0d62e5e8 4185
81ecdfbb
RW
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
4187$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
4188 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
0d62e5e8 4190else
81ecdfbb 4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4192/* end confdefs.h. */
0d62e5e8
DJ
4193
4194#define _SYSCALL32
8e642873
PM
4195/* Needed for new procfs interface on sparc-solaris. */
4196#define _STRUCTURED_PROC 1
0d62e5e8 4197#include <sys/procfs.h>
bec39cab
AC
4198int
4199main ()
4200{
0d62e5e8 4201psaddr_t avar
bec39cab
AC
4202 ;
4203 return 0;
4204}
4205_ACEOF
81ecdfbb 4206if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
4207 bfd_cv_have_sys_procfs_type_psaddr_t=yes
4208else
81ecdfbb 4209 bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 4210
0d62e5e8 4211fi
81ecdfbb 4212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4213fi
4214
4215 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab 4216
81ecdfbb 4217$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
0d62e5e8
DJ
4218
4219 fi
81ecdfbb
RW
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
4221$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
0d62e5e8 4222
81ecdfbb
RW
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
4224$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
4225 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
4226 $as_echo_n "(cached) " >&6
0d62e5e8 4227else
81ecdfbb 4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4229/* end confdefs.h. */
0d62e5e8
DJ
4230
4231#define _SYSCALL32
8e642873
PM
4232/* Needed for new procfs interface on sparc-solaris. */
4233#define _STRUCTURED_PROC 1
0d62e5e8 4234#include <sys/procfs.h>
bec39cab
AC
4235int
4236main ()
4237{
0d62e5e8 4238prgregset_t avar
bec39cab
AC
4239 ;
4240 return 0;
4241}
4242_ACEOF
81ecdfbb 4243if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
4244 bfd_cv_have_sys_procfs_type_prgregset_t=yes
4245else
81ecdfbb 4246 bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 4247
0d62e5e8 4248fi
81ecdfbb 4249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4250fi
4251
4252 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab 4253
81ecdfbb 4254$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
0d62e5e8
DJ
4255
4256 fi
81ecdfbb
RW
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4258$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
0d62e5e8 4259
81ecdfbb
RW
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
4261$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
4262 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
4263 $as_echo_n "(cached) " >&6
0d62e5e8 4264else
81ecdfbb 4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4266/* end confdefs.h. */
0d62e5e8
DJ
4267
4268#define _SYSCALL32
8e642873
PM
4269/* Needed for new procfs interface on sparc-solaris. */
4270#define _STRUCTURED_PROC 1
0d62e5e8 4271#include <sys/procfs.h>
bec39cab
AC
4272int
4273main ()
4274{
0d62e5e8 4275elf_fpregset_t avar
bec39cab
AC
4276 ;
4277 return 0;
4278}
4279_ACEOF
81ecdfbb 4280if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
4281 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
4282else
81ecdfbb 4283 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
bec39cab 4284
0d62e5e8 4285fi
81ecdfbb 4286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4287fi
4288
4289 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
bec39cab 4290
81ecdfbb 4291$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
0d62e5e8
DJ
4292
4293 fi
81ecdfbb
RW
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4295$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
0d62e5e8
DJ
4296
4297fi
4298
193f13e6
MK
4299old_LIBS="$LIBS"
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4301$as_echo_n "checking for dlopen in -ldl... " >&6; }
4302if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4304else
4305 ac_check_lib_save_LIBS=$LIBS
4306LIBS="-ldl $LIBS"
4307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308/* end confdefs.h. */
4309
4310/* Override any GCC internal prototype to avoid an error.
4311 Use char because int might match the return type of a GCC
4312 builtin and then its argument prototype would still apply. */
4313#ifdef __cplusplus
4314extern "C"
4315#endif
4316char dlopen ();
4317int
4318main ()
4319{
4320return dlopen ();
4321 ;
4322 return 0;
4323}
4324_ACEOF
4325if ac_fn_c_try_link "$LINENO"; then :
4326 ac_cv_lib_dl_dlopen=yes
4327else
4328 ac_cv_lib_dl_dlopen=no
4329fi
4330rm -f core conftest.err conftest.$ac_objext \
4331 conftest$ac_exeext conftest.$ac_ext
4332LIBS=$ac_check_lib_save_LIBS
4333fi
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4335$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4336if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
4337 cat >>confdefs.h <<_ACEOF
4338#define HAVE_LIBDL 1
4339_ACEOF
4340
4341 LIBS="-ldl $LIBS"
4342
4343fi
4344
4345LIBS="$old_LIBS"
4346
0d62e5e8
DJ
4347srv_thread_depfiles=
4348srv_libs=
4349USE_THREAD_DB=
4350
4351if test "$srv_linux_thread_db" = "yes"; then
193f13e6
MK
4352 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
4353 srv_libs="-ldl"
f6528abd
JK
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
4355$as_echo_n "checking for the dynamic export flag... " >&6; }
193f13e6 4356 old_LDFLAGS="$LDFLAGS"
f6528abd
JK
4357 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
4358 # supported there.
4359 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
4360 LDFLAGS="$LDFLAGS $RDYNAMIC"
193f13e6 4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
4362/* end confdefs.h. */
4363
4364int
4365main ()
4366{
4367
4368 ;
4369 return 0;
4370}
4371_ACEOF
81ecdfbb 4372if ac_fn_c_try_link "$LINENO"; then :
f6528abd
JK
4373 found="-Wl,--dynamic-list"
4374 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
f6de3c42 4375else
f6528abd
JK
4376 RDYNAMIC="-rdynamic"
4377 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379/* end confdefs.h. */
4380
4381int
4382main ()
4383{
4384
4385 ;
4386 return 0;
4387}
4388_ACEOF
4389if ac_fn_c_try_link "$LINENO"; then :
4390 found="-rdynamic"
4391else
4392 found="no"
4393 RDYNAMIC=""
4394fi
4395rm -f core conftest.err conftest.$ac_objext \
4396 conftest$ac_exeext conftest.$ac_ext
f6de3c42 4397fi
81ecdfbb
RW
4398rm -f core conftest.err conftest.$ac_objext \
4399 conftest$ac_exeext conftest.$ac_ext
bec39cab 4400
193f13e6 4401 LDFLAGS="$old_LDFLAGS"
f6528abd
JK
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
4403$as_echo "$found" >&6; }
193f13e6
MK
4404 else
4405 srv_libs="-lthread_db"
4406 fi
0d62e5e8 4407
0d62e5e8
DJ
4408 srv_thread_depfiles="thread-db.o proc-service.o"
4409 USE_THREAD_DB="-DUSE_THREAD_DB"
81ecdfbb
RW
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
4411$as_echo_n "checking for TD_VERSION... " >&6; }
4412if test "${gdbsrv_cv_have_td_version+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
3db0444b 4414else
81ecdfbb 4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3db0444b
DJ
4416/* end confdefs.h. */
4417#include <thread_db.h>
4418int
4419main ()
4420{
4421TD_VERSION;
4422 ;
4423 return 0;
4424}
4425_ACEOF
81ecdfbb 4426if ac_fn_c_try_compile "$LINENO"; then :
3db0444b
DJ
4427 gdbsrv_cv_have_td_version=yes
4428else
81ecdfbb 4429 gdbsrv_cv_have_td_version=no
3db0444b 4430fi
81ecdfbb 4431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3db0444b 4432fi
81ecdfbb
RW
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
4434$as_echo "$gdbsrv_cv_have_td_version" >&6; }
3db0444b
DJ
4435 if test $gdbsrv_cv_have_td_version = yes; then
4436
81ecdfbb 4437$as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
dae5f5cf
DJ
4438
4439 fi
0d62e5e8
DJ
4440fi
4441
96f15937
PP
4442
4443# Check whether --with-libthread-db was given.
4444if test "${with_libthread_db+set}" = set; then :
4445 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
96f15937
PP
4446 srv_libs="$srv_libthread_db_path"
4447
4448fi
4449
4450
193f13e6
MK
4451if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
4452
4453$as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
4454
4455fi
4456
9b4b61c8 4457if test "$srv_xmlfiles" != ""; then
fb1e4ffc
DJ
4458 srv_xmlbuiltin="xml-builtin.o"
4459
81ecdfbb 4460$as_echo "#define USE_XML 1" >>confdefs.h
fb1e4ffc
DJ
4461
4462
4463 tmp_xmlfiles=$srv_xmlfiles
9b4b61c8 4464 srv_xmlfiles=""
fb1e4ffc
DJ
4465 for f in $tmp_xmlfiles; do
4466 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
4467 done
4468fi
4469
59a016f0 4470GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
0d62e5e8
DJ
4471GDBSERVER_LIBS="$srv_libs"
4472
fa593d66
PA
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
4474$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
4475if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477else
4478
4479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480/* end confdefs.h. */
4481
4482int
4483main ()
4484{
4485int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
4486 ;
4487 return 0;
4488}
4489_ACEOF
4490if ac_fn_c_try_link "$LINENO"; then :
4491 gdbsrv_cv_have_sync_builtins=yes
4492else
4493 gdbsrv_cv_have_sync_builtins=no
4494fi
4495rm -f core conftest.err conftest.$ac_objext \
4496 conftest$ac_exeext conftest.$ac_ext
4497fi
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
4499$as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
4500if test $gdbsrv_cv_have_sync_builtins = yes; then
4501
4502$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
4503
4504fi
4505
4506saved_cflags="$CFLAGS"
4507CFLAGS="$CFLAGS -fvisibility=hidden"
4508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h. */
4510
4511int
4512main ()
4513{
4514
4515 ;
4516 return 0;
4517}
4518_ACEOF
4519if ac_fn_c_try_compile "$LINENO"; then :
4520 gdbsrv_cv_have_visibility_hidden=yes
4521else
4522 gdbsrv_cv_have_visibility_hidden=no
4523fi
4524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525CFLAGS="$saved_cflags"
4526
4527IPA_DEPFILES=""
4528
4529# Rather than allowing to build a broken IPA, we simply disable it if
4530# we don't find a compiler supporting all the features we need.
4531if test "$ipa_obj" != "" \
4532 -a "$gdbsrv_cv_have_sync_builtins" = yes \
4533 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
4534 IPA_DEPFILES="$ipa_obj"
4535 extra_libraries="libinproctrace.so"
4536fi
4537
4538
4539
0d62e5e8 4540
d6e9fb05
JK
4541
4542
4543
fb1e4ffc
DJ
4544
4545
81ecdfbb
RW
4546ac_config_files="$ac_config_files Makefile"
4547
4548ac_config_commands="$ac_config_commands default"
4549
bec39cab 4550cat >confcache <<\_ACEOF
d6e9fb05
JK
4551# This file is a shell script that caches the results of configure
4552# tests run on this system so they can be shared between configure
bec39cab
AC
4553# scripts and configure runs, see configure's option --config-cache.
4554# It is not useful on other systems. If it contains results you don't
4555# want to keep, you may remove or edit it.
d6e9fb05 4556#
bec39cab
AC
4557# config.status only pays attention to the cache file if you give it
4558# the --recheck option to rerun configure.
d6e9fb05 4559#
bec39cab
AC
4560# `ac_cv_env_foo' variables (set or unset) will be overridden when
4561# loading this file, other *unset* `ac_cv_foo' will be assigned the
4562# following values.
4563
4564_ACEOF
4565
d6e9fb05
JK
4566# The following way of writing the cache mishandles newlines in values,
4567# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 4568# So, we kill variables containing newlines.
d6e9fb05
JK
4569# Ultrix sh set writes to stderr and can't be redirected directly,
4570# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
4571(
4572 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4573 eval ac_val=\$$ac_var
4574 case $ac_val in #(
4575 *${as_nl}*)
4576 case $ac_var in #(
4577 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4578$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4579 esac
4580 case $ac_var in #(
4581 _ | IFS | as_nl) ;; #(
4582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4583 *) { eval $ac_var=; unset $ac_var;} ;;
4584 esac ;;
4585 esac
4586 done
4587
bec39cab 4588 (set) 2>&1 |
81ecdfbb
RW
4589 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4590 *${as_nl}ac_space=\ *)
4591 # `set' does not quote correctly, so add quotes: double-quote
4592 # substitution turns \\\\ into \\, and sed turns \\ into \.
bec39cab
AC
4593 sed -n \
4594 "s/'/'\\\\''/g;
4595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 4596 ;; #(
bec39cab
AC
4597 *)
4598 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 4599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 4600 ;;
81ecdfbb
RW
4601 esac |
4602 sort
4603) |
bec39cab 4604 sed '
81ecdfbb 4605 /^ac_cv_env_/b end
bec39cab 4606 t clear
81ecdfbb 4607 :clear
bec39cab
AC
4608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4609 t end
81ecdfbb
RW
4610 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4611 :end' >>confcache
4612if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4613 if test -w "$cache_file"; then
4614 test "x$cache_file" != "x/dev/null" &&
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4616$as_echo "$as_me: updating cache $cache_file" >&6;}
bec39cab 4617 cat confcache >$cache_file
d6e9fb05 4618 else
81ecdfbb
RW
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4620$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d6e9fb05
JK
4621 fi
4622fi
4623rm -f confcache
4624
d6e9fb05
JK
4625test "x$prefix" = xNONE && prefix=$ac_default_prefix
4626# Let make expand exec_prefix.
4627test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4628
84563040 4629DEFS=-DHAVE_CONFIG_H
d6e9fb05 4630
bec39cab
AC
4631ac_libobjs=
4632ac_ltlibobjs=
4633for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4634 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
4635 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4636 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4637 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4638 # will be set to the directory where LIBOBJS objects are built.
4639 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4640 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bec39cab
AC
4641done
4642LIBOBJS=$ac_libobjs
d6e9fb05 4643
bec39cab
AC
4644LTLIBOBJS=$ac_ltlibobjs
4645
4646
4647
4648: ${CONFIG_STATUS=./config.status}
81ecdfbb 4649ac_write_fail=0
bec39cab
AC
4650ac_clean_files_save=$ac_clean_files
4651ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4653$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4654as_write_fail=0
4655cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bec39cab
AC
4656#! $SHELL
4657# Generated by $as_me.
d6e9fb05 4658# Run this file to recreate the current configuration.
d6e9fb05 4659# Compiler output produced by configure, useful for debugging
bec39cab
AC
4660# configure, is in config.log if it exists.
4661
4662debug=false
4663ac_cs_recheck=false
4664ac_cs_silent=false
bec39cab 4665
81ecdfbb
RW
4666SHELL=\${CONFIG_SHELL-$SHELL}
4667export SHELL
4668_ASEOF
4669cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4670## -------------------- ##
4671## M4sh Initialization. ##
4672## -------------------- ##
4673
4674# Be more Bourne compatible
4675DUALCASE=1; export DUALCASE # for MKS sh
4676if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
4677 emulate sh
4678 NULLCMD=:
81ecdfbb 4679 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
4680 # is contrary to our usage. Disable this feature.
4681 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
4682 setopt NO_GLOB_SUBST
4683else
4684 case `(set -o) 2>/dev/null` in #(
4685 *posix*) :
4686 set -o posix ;; #(
4687 *) :
4688 ;;
4689esac
bec39cab 4690fi
d6e9fb05 4691
81ecdfbb
RW
4692
4693as_nl='
4694'
4695export as_nl
4696# Printing a long string crashes Solaris 7 /usr/bin/printf.
4697as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4698as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4699as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4700# Prefer a ksh shell builtin over an external printf program on Solaris,
4701# but without wasting forks for bash or zsh.
4702if test -z "$BASH_VERSION$ZSH_VERSION" \
4703 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4704 as_echo='print -r --'
4705 as_echo_n='print -rn --'
4706elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4707 as_echo='printf %s\n'
4708 as_echo_n='printf %s'
bec39cab 4709else
81ecdfbb
RW
4710 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4711 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4712 as_echo_n='/usr/ucb/echo -n'
4713 else
4714 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4715 as_echo_n_body='eval
4716 arg=$1;
4717 case $arg in #(
4718 *"$as_nl"*)
4719 expr "X$arg" : "X\\(.*\\)$as_nl";
4720 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4721 esac;
4722 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4723 '
4724 export as_echo_n_body
4725 as_echo_n='sh -c $as_echo_n_body as_echo'
4726 fi
4727 export as_echo_body
4728 as_echo='sh -c $as_echo_body as_echo'
4729fi
4730
4731# The user is always right.
4732if test "${PATH_SEPARATOR+set}" != set; then
4733 PATH_SEPARATOR=:
4734 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4735 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4736 PATH_SEPARATOR=';'
4737 }
bec39cab
AC
4738fi
4739
4740
81ecdfbb
RW
4741# IFS
4742# We need space, tab and new line, in precisely that order. Quoting is
4743# there to prevent editors from complaining about space-tab.
4744# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4745# splitting by setting IFS to empty value.)
4746IFS=" "" $as_nl"
4747
4748# Find who we are. Look in the path if we contain no directory separator.
4749case $0 in #((
4750 *[\\/]* ) as_myself=$0 ;;
4751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752for as_dir in $PATH
4753do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4757 done
4758IFS=$as_save_IFS
4759
4760 ;;
4761esac
4762# We did not find ourselves, most probably we were run as `sh COMMAND'
4763# in which case we are not to be found in the path.
4764if test "x$as_myself" = x; then
4765 as_myself=$0
4766fi
4767if test ! -f "$as_myself"; then
4768 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4769 exit 1
4770fi
4771
4772# Unset variables that we do not need and which cause bugs (e.g. in
4773# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4774# suppresses any "Segmentation fault" message there. '((' could
4775# trigger a bug in pdksh 5.2.14.
4776for as_var in BASH_ENV ENV MAIL MAILPATH
4777do eval test x\${$as_var+set} = xset \
4778 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4779done
bec39cab
AC
4780PS1='$ '
4781PS2='> '
4782PS4='+ '
4783
4784# NLS nuisances.
81ecdfbb
RW
4785LC_ALL=C
4786export LC_ALL
4787LANGUAGE=C
4788export LANGUAGE
4789
4790# CDPATH.
4791(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4792
4793
4794# as_fn_error ERROR [LINENO LOG_FD]
4795# ---------------------------------
4796# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4797# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4798# script with status $?, using 1 if that was 0.
4799as_fn_error ()
4800{
4801 as_status=$?; test $as_status -eq 0 && as_status=1
4802 if test "$3"; then
4803 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4804 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
bec39cab 4805 fi
81ecdfbb
RW
4806 $as_echo "$as_me: error: $1" >&2
4807 as_fn_exit $as_status
4808} # as_fn_error
4809
4810
4811# as_fn_set_status STATUS
4812# -----------------------
4813# Set $? to STATUS, without forking.
4814as_fn_set_status ()
4815{
4816 return $1
4817} # as_fn_set_status
4818
4819# as_fn_exit STATUS
4820# -----------------
4821# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4822as_fn_exit ()
4823{
4824 set +e
4825 as_fn_set_status $1
4826 exit $1
4827} # as_fn_exit
4828
4829# as_fn_unset VAR
4830# ---------------
4831# Portably unset VAR.
4832as_fn_unset ()
4833{
4834 { eval $1=; unset $1;}
4835}
4836as_unset=as_fn_unset
4837# as_fn_append VAR VALUE
4838# ----------------------
4839# Append the text in VALUE to the end of the definition contained in VAR. Take
4840# advantage of any shell optimizations that allow amortized linear growth over
4841# repeated appends, instead of the typical quadratic growth present in naive
4842# implementations.
4843if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4844 eval 'as_fn_append ()
4845 {
4846 eval $1+=\$2
4847 }'
4848else
4849 as_fn_append ()
4850 {
4851 eval $1=\$$1\$2
4852 }
4853fi # as_fn_append
4854
4855# as_fn_arith ARG...
4856# ------------------
4857# Perform arithmetic evaluation on the ARGs, and store the result in the
4858# global $as_val. Take advantage of shells that can avoid forks. The arguments
4859# must be portable across $(()) and expr.
4860if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4861 eval 'as_fn_arith ()
4862 {
4863 as_val=$(( $* ))
4864 }'
4865else
4866 as_fn_arith ()
4867 {
4868 as_val=`expr "$@" || test $? -eq 1`
4869 }
4870fi # as_fn_arith
4871
d6e9fb05 4872
81ecdfbb
RW
4873if expr a : '\(a\)' >/dev/null 2>&1 &&
4874 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
4875 as_expr=expr
4876else
4877 as_expr=false
4878fi
d6e9fb05 4879
81ecdfbb 4880if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
4881 as_basename=basename
4882else
4883 as_basename=false
4884fi
d6e9fb05 4885
81ecdfbb
RW
4886if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4887 as_dirname=dirname
4888else
4889 as_dirname=false
4890fi
d6e9fb05 4891
81ecdfbb 4892as_me=`$as_basename -- "$0" ||
bec39cab
AC
4893$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4894 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
4895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4896$as_echo X/"$0" |
4897 sed '/^.*\/\([^/][^/]*\)\/*$/{
4898 s//\1/
4899 q
4900 }
4901 /^X\/\(\/\/\)$/{
4902 s//\1/
4903 q
4904 }
4905 /^X\/\(\/\).*/{
4906 s//\1/
4907 q
4908 }
4909 s/.*/./; q'`
bec39cab 4910
dae5f5cf
DJ
4911# Avoid depending upon Character Ranges.
4912as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4913as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4914as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4915as_cr_digits='0123456789'
4916as_cr_alnum=$as_cr_Letters$as_cr_digits
4917
81ecdfbb
RW
4918ECHO_C= ECHO_N= ECHO_T=
4919case `echo -n x` in #(((((
4920-n*)
4921 case `echo 'xy\c'` in
4922 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4923 xy) ECHO_C='\c';;
4924 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4925 ECHO_T=' ';;
4926 esac;;
4927*)
4928 ECHO_N='-n';;
bec39cab
AC
4929esac
4930
81ecdfbb
RW
4931rm -f conf$$ conf$$.exe conf$$.file
4932if test -d conf$$.dir; then
4933 rm -f conf$$.dir/conf$$.file
bec39cab 4934else
81ecdfbb
RW
4935 rm -f conf$$.dir
4936 mkdir conf$$.dir 2>/dev/null
bec39cab 4937fi
81ecdfbb
RW
4938if (echo >conf$$.file) 2>/dev/null; then
4939 if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf 4940 as_ln_s='ln -s'
81ecdfbb
RW
4941 # ... but there are two gotchas:
4942 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4943 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4944 # In both cases, we have to default to `cp -p'.
4945 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4946 as_ln_s='cp -p'
4947 elif ln conf$$.file conf$$ 2>/dev/null; then
4948 as_ln_s=ln
4949 else
4950 as_ln_s='cp -p'
dae5f5cf 4951 fi
bec39cab
AC
4952else
4953 as_ln_s='cp -p'
4954fi
81ecdfbb
RW
4955rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4956rmdir conf$$.dir 2>/dev/null
4957
4958
4959# as_fn_mkdir_p
4960# -------------
4961# Create "$as_dir" as a directory, including parents if necessary.
4962as_fn_mkdir_p ()
4963{
4964
4965 case $as_dir in #(
4966 -*) as_dir=./$as_dir;;
4967 esac
4968 test -d "$as_dir" || eval $as_mkdir_p || {
4969 as_dirs=
4970 while :; do
4971 case $as_dir in #(
4972 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4973 *) as_qdir=$as_dir;;
4974 esac
4975 as_dirs="'$as_qdir' $as_dirs"
4976 as_dir=`$as_dirname -- "$as_dir" ||
4977$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4978 X"$as_dir" : 'X\(//\)[^/]' \| \
4979 X"$as_dir" : 'X\(//\)$' \| \
4980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4981$as_echo X"$as_dir" |
4982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4983 s//\1/
4984 q
4985 }
4986 /^X\(\/\/\)[^/].*/{
4987 s//\1/
4988 q
4989 }
4990 /^X\(\/\/\)$/{
4991 s//\1/
4992 q
4993 }
4994 /^X\(\/\).*/{
4995 s//\1/
4996 q
4997 }
4998 s/.*/./; q'`
4999 test -d "$as_dir" && break
5000 done
5001 test -z "$as_dirs" || eval "mkdir $as_dirs"
5002 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
bec39cab 5003
81ecdfbb
RW
5004
5005} # as_fn_mkdir_p
bec39cab 5006if mkdir -p . 2>/dev/null; then
81ecdfbb 5007 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
5008else
5009 test -d ./-p && rmdir ./-p
5010 as_mkdir_p=false
5011fi
5012
81ecdfbb
RW
5013if test -x / >/dev/null 2>&1; then
5014 as_test_x='test -x'
5015else
5016 if ls -dL / >/dev/null 2>&1; then
5017 as_ls_L_option=L
5018 else
5019 as_ls_L_option=
5020 fi
5021 as_test_x='
5022 eval sh -c '\''
5023 if test -d "$1"; then
5024 test -d "$1/.";
5025 else
5026 case $1 in #(
5027 -*)set "./$1";;
5028 esac;
5029 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5030 ???[sx]*):;;*)false;;esac;fi
5031 '\'' sh
5032 '
5033fi
5034as_executable_p=$as_test_x
bec39cab
AC
5035
5036# Sed expression to map a string onto a valid CPP name.
5037as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5038
5039# Sed expression to map a string onto a valid variable name.
5040as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5041
5042
bec39cab 5043exec 6>&1
81ecdfbb
RW
5044## ----------------------------------- ##
5045## Main body of $CONFIG_STATUS script. ##
5046## ----------------------------------- ##
5047_ASEOF
5048test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5049
5050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5051# Save the log message, to keep $0 and so on meaningful, and to
bec39cab 5052# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
5053# values after options handling.
5054ac_log="
bec39cab 5055This file was extended by $as_me, which was
81ecdfbb 5056generated by GNU Autoconf 2.64. Invocation command line was
bec39cab
AC
5057
5058 CONFIG_FILES = $CONFIG_FILES
5059 CONFIG_HEADERS = $CONFIG_HEADERS
5060 CONFIG_LINKS = $CONFIG_LINKS
5061 CONFIG_COMMANDS = $CONFIG_COMMANDS
5062 $ $0 $@
5063
81ecdfbb
RW
5064on `(hostname || uname -n) 2>/dev/null | sed 1q`
5065"
5066
bec39cab
AC
5067_ACEOF
5068
81ecdfbb
RW
5069case $ac_config_files in *"
5070"*) set x $ac_config_files; shift; ac_config_files=$*;;
5071esac
bec39cab 5072
81ecdfbb
RW
5073case $ac_config_headers in *"
5074"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5075esac
dae5f5cf 5076
dae5f5cf 5077
81ecdfbb
RW
5078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5079# Files that config.status was made for.
5080config_files="$ac_config_files"
5081config_headers="$ac_config_headers"
5082config_commands="$ac_config_commands"
bec39cab 5083
81ecdfbb 5084_ACEOF
dae5f5cf 5085
81ecdfbb 5086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 5087ac_cs_usage="\
81ecdfbb
RW
5088\`$as_me' instantiates files and other configuration actions
5089from templates according to the current configuration. Unless the files
5090and actions are specified as TAGs, all are instantiated by default.
bec39cab 5091
81ecdfbb 5092Usage: $0 [OPTION]... [TAG]...
bec39cab
AC
5093
5094 -h, --help print this help, then exit
81ecdfbb
RW
5095 -V, --version print version number and configuration settings, then exit
5096 -q, --quiet, --silent
5097 do not print progress messages
bec39cab
AC
5098 -d, --debug don't remove temporary files
5099 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
5100 --file=FILE[:TEMPLATE]
5101 instantiate the configuration file FILE
5102 --header=FILE[:TEMPLATE]
5103 instantiate the configuration header FILE
bec39cab
AC
5104
5105Configuration files:
5106$config_files
5107
5108Configuration headers:
5109$config_headers
5110
5111Configuration commands:
5112$config_commands
5113
81ecdfbb 5114Report bugs to the package provider."
dae5f5cf 5115
81ecdfbb
RW
5116_ACEOF
5117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab
AC
5118ac_cs_version="\\
5119config.status
81ecdfbb
RW
5120configured by $0, generated by GNU Autoconf 2.64,
5121 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
bec39cab 5122
81ecdfbb 5123Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
5124This config.status script is free software; the Free Software Foundation
5125gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
5126
5127ac_pwd='$ac_pwd'
5128srcdir='$srcdir'
5129INSTALL='$INSTALL'
5130test -n "\$AWK" || AWK=awk
bec39cab
AC
5131_ACEOF
5132
81ecdfbb
RW
5133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5134# The default lists apply if the user does not specify any file.
bec39cab
AC
5135ac_need_defaults=:
5136while test $# != 0
5137do
5138 case $1 in
5139 --*=*)
81ecdfbb
RW
5140 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5141 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bec39cab
AC
5142 ac_shift=:
5143 ;;
81ecdfbb 5144 *)
bec39cab
AC
5145 ac_option=$1
5146 ac_optarg=$2
5147 ac_shift=shift
5148 ;;
bec39cab
AC
5149 esac
5150
5151 case $ac_option in
5152 # Handling of the options.
bec39cab
AC
5153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5154 ac_cs_recheck=: ;;
81ecdfbb
RW
5155 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5156 $as_echo "$ac_cs_version"; exit ;;
5157 --debug | --debu | --deb | --de | --d | -d )
bec39cab
AC
5158 debug=: ;;
5159 --file | --fil | --fi | --f )
5160 $ac_shift
81ecdfbb
RW
5161 case $ac_optarg in
5162 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5163 esac
5164 as_fn_append CONFIG_FILES " '$ac_optarg'"
bec39cab
AC
5165 ac_need_defaults=false;;
5166 --header | --heade | --head | --hea )
5167 $ac_shift
81ecdfbb
RW
5168 case $ac_optarg in
5169 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5170 esac
5171 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
bec39cab 5172 ac_need_defaults=false;;
81ecdfbb
RW
5173 --he | --h)
5174 # Conflict between --help and --header
5175 as_fn_error "ambiguous option: \`$1'
5176Try \`$0 --help' for more information.";;
5177 --help | --hel | -h )
5178 $as_echo "$ac_cs_usage"; exit ;;
bec39cab
AC
5179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5180 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5181 ac_cs_silent=: ;;
5182
5183 # This is an error.
81ecdfbb
RW
5184 -*) as_fn_error "unrecognized option: \`$1'
5185Try \`$0 --help' for more information." ;;
bec39cab 5186
81ecdfbb
RW
5187 *) as_fn_append ac_config_targets " $1"
5188 ac_need_defaults=false ;;
bec39cab
AC
5189
5190 esac
5191 shift
d6e9fb05 5192done
bec39cab
AC
5193
5194ac_configure_extra_args=
5195
5196if $ac_cs_silent; then
5197 exec 6>/dev/null
5198 ac_configure_extra_args="$ac_configure_extra_args --silent"
d6e9fb05 5199fi
d6e9fb05 5200
bec39cab 5201_ACEOF
81ecdfbb 5202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab 5203if \$ac_cs_recheck; then
81ecdfbb
RW
5204 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5205 shift
5206 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5207 CONFIG_SHELL='$SHELL'
5208 export CONFIG_SHELL
5209 exec "\$@"
bec39cab 5210fi
d6e9fb05 5211
bec39cab 5212_ACEOF
81ecdfbb
RW
5213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5214exec 5>>config.log
5215{
5216 echo
5217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5218## Running $as_me. ##
5219_ASBOX
5220 $as_echo "$ac_log"
5221} >&5
bec39cab 5222
81ecdfbb
RW
5223_ACEOF
5224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5225_ACEOF
bec39cab 5226
81ecdfbb 5227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b80864fb 5228
81ecdfbb 5229# Handling of arguments.
bec39cab
AC
5230for ac_config_target in $ac_config_targets
5231do
81ecdfbb
RW
5232 case $ac_config_target in
5233 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5234 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5235 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5236
5237 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d6e9fb05 5238 esac
bec39cab
AC
5239done
5240
81ecdfbb 5241
bec39cab
AC
5242# If the user did not use the arguments to specify the items to instantiate,
5243# then the envvar interface is used. Set only those that are not.
5244# We use the long form for the default assignment because of an extremely
5245# bizarre bug on SunOS 4.1.3.
5246if $ac_need_defaults; then
5247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5248 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5249 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5250fi
d6e9fb05 5251
bec39cab 5252# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 5253# simply because there is no reason against having it here, and in addition,
bec39cab 5254# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
5255# Hook for its removal unless debugging.
5256# Note that there is a small window in which the directory will not be cleaned:
5257# after its creation but before its name has been assigned to `$tmp'.
bec39cab
AC
5258$debug ||
5259{
81ecdfbb
RW
5260 tmp=
5261 trap 'exit_status=$?
5262 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5263' 0
5264 trap 'as_fn_exit 1' 1 2 13 15
bec39cab 5265}
bec39cab
AC
5266# Create a (secure) tmp directory for tmp files.
5267
5268{
81ecdfbb 5269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
bec39cab
AC
5270 test -n "$tmp" && test -d "$tmp"
5271} ||
5272{
81ecdfbb
RW
5273 tmp=./conf$$-$RANDOM
5274 (umask 077 && mkdir "$tmp")
5275} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5276
5277# Set up the scripts for CONFIG_FILES section.
5278# No need to generate them if there are no CONFIG_FILES.
5279# This happens for instance with `./config.status config.h'.
5280if test -n "$CONFIG_FILES"; then
5281
5282
5283ac_cr=`echo X | tr X '\015'`
5284# On cygwin, bash can eat \r inside `` if the user requested igncr.
5285# But we know of no other shell where ac_cr would be empty at this
5286# point, so we can use a bashism as a fallback.
5287if test "x$ac_cr" = x; then
5288 eval ac_cr=\$\'\\r\'
5289fi
5290ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5291if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5292 ac_cs_awk_cr='\r'
5293else
5294 ac_cs_awk_cr=$ac_cr
5295fi
5296
5297echo 'BEGIN {' >"$tmp/subs1.awk" &&
5298_ACEOF
5299
5300
5301{
5302 echo "cat >conf$$subs.awk <<_ACEOF" &&
5303 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5304 echo "_ACEOF"
5305} >conf$$subs.sh ||
5306 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5307ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5308ac_delim='%!_!# '
5309for ac_last_try in false false false false false :; do
5310 . ./conf$$subs.sh ||
5311 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5312
5313 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5314 if test $ac_delim_n = $ac_delim_num; then
5315 break
5316 elif $ac_last_try; then
5317 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5318 else
5319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5320 fi
5321done
5322rm -f conf$$subs.sh
5323
5324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5325cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5326_ACEOF
5327sed -n '
5328h
5329s/^/S["/; s/!.*/"]=/
5330p
5331g
5332s/^[^!]*!//
5333:repl
5334t repl
5335s/'"$ac_delim"'$//
5336t delim
5337:nl
5338h
5339s/\(.\{148\}\).*/\1/
5340t more1
5341s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5342p
5343n
5344b repl
5345:more1
5346s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5347p
5348g
5349s/.\{148\}//
5350t nl
5351:delim
5352h
5353s/\(.\{148\}\).*/\1/
5354t more2
5355s/["\\]/\\&/g; s/^/"/; s/$/"/
5356p
5357b
5358:more2
5359s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5360p
5361g
5362s/.\{148\}//
5363t delim
5364' <conf$$subs.awk | sed '
5365/^[^""]/{
5366 N
5367 s/\n//
5368}
5369' >>$CONFIG_STATUS || ac_write_fail=1
5370rm -f conf$$subs.awk
5371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5372_ACAWK
5373cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5374 for (key in S) S_is_set[key] = 1
5375 FS = "\a"
5376
5377}
bec39cab 5378{
81ecdfbb
RW
5379 line = $ 0
5380 nfields = split(line, field, "@")
5381 substed = 0
5382 len = length(field[1])
5383 for (i = 2; i < nfields; i++) {
5384 key = field[i]
5385 keylen = length(key)
5386 if (S_is_set[key]) {
5387 value = S[key]
5388 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5389 len += length(value) + length(field[++i])
5390 substed = 1
5391 } else
5392 len += 1 + keylen
5393 }
5394
5395 print line
bec39cab
AC
5396}
5397
81ecdfbb
RW
5398_ACAWK
5399_ACEOF
5400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5401if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5402 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5403else
5404 cat
5405fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5406 || as_fn_error "could not setup config files machinery" "$LINENO" 5
dae5f5cf
DJ
5407_ACEOF
5408
81ecdfbb
RW
5409# VPATH may cause trouble with some makes, so we remove $(srcdir),
5410# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5411# trailing colons and then remove the whole line if VPATH becomes empty
5412# (actually we leave an empty line to preserve line numbers).
5413if test "x$srcdir" = x.; then
5414 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5415s/:*\$(srcdir):*/:/
5416s/:*\${srcdir}:*/:/
5417s/:*@srcdir@:*/:/
5418s/^\([^=]*=[ ]*\):*/\1/
5419s/:*$//
5420s/^[^=]*=[ ]*$//
5421}'
5422fi
bec39cab 5423
81ecdfbb
RW
5424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5425fi # test -n "$CONFIG_FILES"
bec39cab 5426
81ecdfbb
RW
5427# Set up the scripts for CONFIG_HEADERS section.
5428# No need to generate them if there are no CONFIG_HEADERS.
5429# This happens for instance with `./config.status Makefile'.
5430if test -n "$CONFIG_HEADERS"; then
5431cat >"$tmp/defines.awk" <<\_ACAWK ||
5432BEGIN {
b80864fb
DJ
5433_ACEOF
5434
81ecdfbb
RW
5435# Transform confdefs.h into an awk script `defines.awk', embedded as
5436# here-document in config.status, that substitutes the proper values into
5437# config.h.in to produce config.h.
5438
5439# Create a delimiter string that does not exist in confdefs.h, to ease
5440# handling of long lines.
5441ac_delim='%!_!# '
5442for ac_last_try in false false :; do
5443 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5444 if test -z "$ac_t"; then
5445 break
5446 elif $ac_last_try; then
5447 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5448 else
5449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d6e9fb05 5450 fi
81ecdfbb 5451done
d6e9fb05 5452
81ecdfbb
RW
5453# For the awk script, D is an array of macro values keyed by name,
5454# likewise P contains macro parameters if any. Preserve backslash
5455# newline sequences.
5456
5457ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5458sed -n '
5459s/.\{148\}/&'"$ac_delim"'/g
5460t rset
5461:rset
5462s/^[ ]*#[ ]*define[ ][ ]*/ /
5463t def
5464d
5465:def
5466s/\\$//
5467t bsnl
5468s/["\\]/\\&/g
5469s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5470D["\1"]=" \3"/p
5471s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5472d
5473:bsnl
5474s/["\\]/\\&/g
5475s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5476D["\1"]=" \3\\\\\\n"\\/p
5477t cont
5478s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5479t cont
5480d
5481:cont
5482n
5483s/.\{148\}/&'"$ac_delim"'/g
5484t clear
5485:clear
5486s/\\$//
5487t bsnlc
5488s/["\\]/\\&/g; s/^/"/; s/$/"/p
5489d
5490:bsnlc
5491s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5492b cont
5493' <confdefs.h | sed '
5494s/'"$ac_delim"'/"\\\
5495"/g' >>$CONFIG_STATUS || ac_write_fail=1
5496
5497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5498 for (key in D) D_is_set[key] = 1
5499 FS = "\a"
5500}
5501/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5502 line = \$ 0
5503 split(line, arg, " ")
5504 if (arg[1] == "#") {
5505 defundef = arg[2]
5506 mac1 = arg[3]
5507 } else {
5508 defundef = substr(arg[1], 2)
5509 mac1 = arg[2]
5510 }
5511 split(mac1, mac2, "(") #)
5512 macro = mac2[1]
5513 prefix = substr(line, 1, index(line, defundef) - 1)
5514 if (D_is_set[macro]) {
5515 # Preserve the white space surrounding the "#".
5516 print prefix "define", macro P[macro] D[macro]
5517 next
5518 } else {
5519 # Replace #undef with comments. This is necessary, for example,
5520 # in the case of _POSIX_SOURCE, which is predefined and required
5521 # on some systems where configure will not decide to define it.
5522 if (defundef == "undef") {
5523 print "/*", prefix defundef, macro, "*/"
5524 next
5525 }
5526 }
5527}
5528{ print }
5529_ACAWK
bec39cab 5530_ACEOF
81ecdfbb
RW
5531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5532 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5533fi # test -n "$CONFIG_HEADERS"
5534
5535
5536eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5537shift
5538for ac_tag
5539do
5540 case $ac_tag in
5541 :[FHLC]) ac_mode=$ac_tag; continue;;
5542 esac
5543 case $ac_mode$ac_tag in
5544 :[FHL]*:*);;
5545 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5546 :[FH]-) ac_tag=-:-;;
5547 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5548 esac
5549 ac_save_IFS=$IFS
5550 IFS=:
5551 set x $ac_tag
5552 IFS=$ac_save_IFS
5553 shift
5554 ac_file=$1
5555 shift
5556
5557 case $ac_mode in
5558 :L) ac_source=$1;;
5559 :[FH])
5560 ac_file_inputs=
5561 for ac_f
5562 do
5563 case $ac_f in
5564 -) ac_f="$tmp/stdin";;
5565 *) # Look for the file first in the build tree, then in the source tree
5566 # (if the path is not absolute). The absolute path cannot be DOS-style,
5567 # because $ac_f cannot contain `:'.
5568 test -f "$ac_f" ||
5569 case $ac_f in
5570 [\\/$]*) false;;
5571 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5572 esac ||
5573 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5574 esac
5575 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5576 as_fn_append ac_file_inputs " '$ac_f'"
5577 done
5578
5579 # Let's still pretend it is `configure' which instantiates (i.e., don't
5580 # use $as_me), people would be surprised to read:
5581 # /* config.h. Generated by config.status. */
5582 configure_input='Generated from '`
5583 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5584 `' by configure.'
5585 if test x"$ac_file" != x-; then
5586 configure_input="$ac_file. $configure_input"
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5588$as_echo "$as_me: creating $ac_file" >&6;}
5589 fi
5590 # Neutralize special characters interpreted by sed in replacement strings.
5591 case $configure_input in #(
5592 *\&* | *\|* | *\\* )
5593 ac_sed_conf_input=`$as_echo "$configure_input" |
5594 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5595 *) ac_sed_conf_input=$configure_input;;
5596 esac
5597
5598 case $ac_tag in
5599 *:-:* | *:-) cat >"$tmp/stdin" \
5600 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5601 esac
5602 ;;
d6e9fb05
JK
5603 esac
5604
81ecdfbb 5605 ac_dir=`$as_dirname -- "$ac_file" ||
bec39cab
AC
5606$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5607 X"$ac_file" : 'X\(//\)[^/]' \| \
5608 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
5609 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5610$as_echo X"$ac_file" |
5611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5612 s//\1/
5613 q
5614 }
5615 /^X\(\/\/\)[^/].*/{
5616 s//\1/
5617 q
5618 }
5619 /^X\(\/\/\)$/{
5620 s//\1/
5621 q
5622 }
5623 /^X\(\/\).*/{
5624 s//\1/
5625 q
5626 }
5627 s/.*/./; q'`
5628 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
5629 ac_builddir=.
5630
81ecdfbb
RW
5631case "$ac_dir" in
5632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5633*)
5634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5635 # A ".." for each directory in $ac_dir_suffix.
5636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5637 case $ac_top_builddir_sub in
5638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5640 esac ;;
5641esac
5642ac_abs_top_builddir=$ac_pwd
5643ac_abs_builddir=$ac_pwd$ac_dir_suffix
5644# for backward compatibility:
5645ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
5646
5647case $srcdir in
81ecdfbb 5648 .) # We are building in place.
bec39cab 5649 ac_srcdir=.
81ecdfbb
RW
5650 ac_top_srcdir=$ac_top_builddir_sub
5651 ac_abs_top_srcdir=$ac_pwd ;;
5652 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 5653 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
5654 ac_top_srcdir=$srcdir
5655 ac_abs_top_srcdir=$srcdir ;;
5656 *) # Relative name.
5657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5658 ac_top_srcdir=$ac_top_build_prefix$srcdir
5659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 5660esac
81ecdfbb 5661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 5662
bec39cab 5663
81ecdfbb
RW
5664 case $ac_mode in
5665 :F)
5666 #
5667 # CONFIG_FILE
5668 #
d6e9fb05 5669
bec39cab
AC
5670 case $INSTALL in
5671 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 5672 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d6e9fb05 5673 esac
81ecdfbb 5674_ACEOF
3db0444b 5675
81ecdfbb
RW
5676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5677# If the template does not know about datarootdir, expand it.
5678# FIXME: This hack should be removed a few years after 2.60.
5679ac_datarootdir_hack=; ac_datarootdir_seen=
5680ac_sed_dataroot='
5681/datarootdir/ {
5682 p
5683 q
5684}
5685/@datadir@/p
5686/@docdir@/p
5687/@infodir@/p
5688/@localedir@/p
5689/@mandir@/p'
5690case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5691*datarootdir*) ac_datarootdir_seen=yes;;
5692*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5694$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5695_ACEOF
5696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5697 ac_datarootdir_hack='
5698 s&@datadir@&$datadir&g
5699 s&@docdir@&$docdir&g
5700 s&@infodir@&$infodir&g
5701 s&@localedir@&$localedir&g
5702 s&@mandir@&$mandir&g
5703 s&\\\${datarootdir}&$datarootdir&g' ;;
5704esac
bec39cab 5705_ACEOF
81ecdfbb
RW
5706
5707# Neutralize VPATH when `$srcdir' = `.'.
5708# Shell code in configure.ac might set extrasub.
5709# FIXME: do we really want to maintain this feature?
5710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5711ac_sed_extra="$ac_vpsub
bec39cab
AC
5712$extrasub
5713_ACEOF
81ecdfbb 5714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab
AC
5715:t
5716/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
5717s|@configure_input@|$ac_sed_conf_input|;t t
5718s&@top_builddir@&$ac_top_builddir_sub&;t t
5719s&@top_build_prefix@&$ac_top_build_prefix&;t t
5720s&@srcdir@&$ac_srcdir&;t t
5721s&@abs_srcdir@&$ac_abs_srcdir&;t t
5722s&@top_srcdir@&$ac_top_srcdir&;t t
5723s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5724s&@builddir@&$ac_builddir&;t t
5725s&@abs_builddir@&$ac_abs_builddir&;t t
5726s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5727s&@INSTALL@&$ac_INSTALL&;t t
5728$ac_datarootdir_hack
5729"
5730eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5731 || as_fn_error "could not create $ac_file" "$LINENO" 5
5732
5733test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5734 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5735 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5737which seems to be undefined. Please make sure it is defined." >&5
5738$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5739which seems to be undefined. Please make sure it is defined." >&2;}
5740
5741 rm -f "$tmp/stdin"
bec39cab 5742 case $ac_file in
81ecdfbb
RW
5743 -) cat "$tmp/out" && rm -f "$tmp/out";;
5744 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5745 esac \
5746 || as_fn_error "could not create $ac_file" "$LINENO" 5
5747 ;;
5748 :H)
5749 #
5750 # CONFIG_HEADER
5751 #
bec39cab 5752 if test x"$ac_file" != x-; then
81ecdfbb
RW
5753 {
5754 $as_echo "/* $configure_input */" \
5755 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5756 } >"$tmp/config.h" \
5757 || as_fn_error "could not create $ac_file" "$LINENO" 5
5758 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5760$as_echo "$as_me: $ac_file is unchanged" >&6;}
bec39cab 5761 else
81ecdfbb
RW
5762 rm -f "$ac_file"
5763 mv "$tmp/config.h" "$ac_file" \
5764 || as_fn_error "could not create $ac_file" "$LINENO" 5
84563040 5765 fi
bec39cab 5766 else
81ecdfbb
RW
5767 $as_echo "/* $configure_input */" \
5768 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5769 || as_fn_error "could not create -" "$LINENO" 5
d6e9fb05 5770 fi
81ecdfbb 5771 ;;
dae5f5cf 5772
81ecdfbb
RW
5773 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5774$as_echo "$as_me: executing $ac_file commands" >&6;}
5775 ;;
5776 esac
dae5f5cf
DJ
5777
5778
81ecdfbb
RW
5779 case $ac_file$ac_mode in
5780 "default":C) case x$CONFIG_HEADERS in
c3a3ccc7
DJ
5781xconfig.h:config.in)
5782echo > stamp-h ;;
5783esac
bec39cab 5784 ;;
81ecdfbb 5785
bec39cab 5786 esac
81ecdfbb 5787done # for ac_tag
d6e9fb05 5788
bec39cab 5789
81ecdfbb 5790as_fn_exit 0
bec39cab 5791_ACEOF
bec39cab
AC
5792ac_clean_files=$ac_clean_files_save
5793
81ecdfbb
RW
5794test $ac_write_fail = 0 ||
5795 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5796
bec39cab
AC
5797
5798# configure is writing to config.log, and then calls config.status.
5799# config.status does its own redirection, appending to config.log.
5800# Unfortunately, on DOS this fails, as config.log is still kept open
5801# by configure, so config.status won't be able to write to it; its
5802# output is simply discarded. So we exec the FD to /dev/null,
5803# effectively closing config.log, so it can be properly (re)opened and
5804# appended to by config.status. When coming back to configure, we
5805# need to make the FD available again.
5806if test "$no_create" != yes; then
5807 ac_cs_success=:
5808 ac_config_status_args=
5809 test "$silent" = yes &&
5810 ac_config_status_args="$ac_config_status_args --quiet"
5811 exec 5>/dev/null
5812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5813 exec 5>>config.log
5814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5815 # would make configure fail if this is the last instruction.
81ecdfbb
RW
5816 $ac_cs_success || as_fn_exit $?
5817fi
5818if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5820$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
bec39cab 5821fi
d6e9fb05 5822
This page took 1.227086 seconds and 4 git commands to generate.