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