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