]> sourceware.org Git - systemtap.git/blame - configure
Add header
[systemtap.git] / configure
CommitLineData
2f1a1aea
FCE
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
27aba29a 3# Generated by GNU Autoconf 2.63 for systemtap 0.9.5.
2f1a1aea
FCE
4#
5# Report bugs to <systemtap@sources.redhat.com>.
6#
7fbd9d09 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
27aba29a 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2f1a1aea
FCE
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
7fbd9d09
FCE
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
2f1a1aea
FCE
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
27aba29a 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2f1a1aea
FCE
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
7fbd9d09
FCE
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
27aba29a
JS
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
7fbd9d09 56 else
27aba29a
JS
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
7fbd9d09 69 fi
27aba29a
JS
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
2f1a1aea 81fi
2f1a1aea
FCE
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
7fbd9d09
FCE
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
7fbd9d09
FCE
96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
27aba29a 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7fbd9d09
FCE
119 { (exit 1); exit 1; }
120fi
121
2f1a1aea 122# Work around bugs in pre-3.0 UWIN ksh.
7fbd9d09
FCE
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
2f1a1aea
FCE
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
27aba29a
JS
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
2f1a1aea
FCE
135
136# Required to use basename.
7fbd9d09
FCE
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2f1a1aea
FCE
139 as_expr=expr
140else
141 as_expr=false
142fi
143
7fbd9d09 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2f1a1aea
FCE
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
7fbd9d09 152as_me=`$as_basename -- "$0" ||
2f1a1aea
FCE
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
7fbd9d09 155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 156$as_echo X/"$0" |
7fbd9d09
FCE
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
70d28673 170
7fbd9d09
FCE
171# CDPATH.
172$as_unset CDPATH
5e0d2ebf 173
5e0d2ebf 174
7fbd9d09
FCE
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
5e0d2ebf
DS
180fi
181
27aba29a 182 if test $as_have_required = yes && (eval ":
7fbd9d09
FCE
183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
5e0d2ebf 198
7fbd9d09
FCE
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
5e0d2ebf 206
7fbd9d09
FCE
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
2f1a1aea
FCE
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
7fbd9d09 247 case $as_dir in
2f1a1aea 248 /*)
7fbd9d09
FCE
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
27aba29a 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7fbd9d09
FCE
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
27aba29a 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7fbd9d09
FCE
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
5e0d2ebf
DS
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
7fbd9d09
FCE
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
27aba29a
JS
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7fbd9d09
FCE
369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
27aba29a
JS
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
7fbd9d09
FCE
441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2f1a1aea
FCE
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
7fbd9d09
FCE
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
2f1a1aea 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7fbd9d09
FCE
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
2f1a1aea 464 sed '
7fbd9d09
FCE
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
2f1a1aea 469 N
7fbd9d09
FCE
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2f1a1aea 472 t loop
7fbd9d09 473 s/-\n.*//
2f1a1aea 474 ' >$as_me.lineno &&
7fbd9d09 475 chmod +x "$as_me.lineno" ||
27aba29a 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2f1a1aea
FCE
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
7fbd9d09
FCE
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
2f1a1aea
FCE
483 # Exit status is that of the last command.
484 exit
485}
486
487
7fbd9d09
FCE
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
2f1a1aea 503esac
7fbd9d09
FCE
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2f1a1aea
FCE
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
7fbd9d09
FCE
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
27aba29a
JS
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
2f1a1aea 530 as_ln_s='cp -p'
27aba29a 531 fi
2f1a1aea
FCE
532else
533 as_ln_s='cp -p'
534fi
7fbd9d09
FCE
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
2f1a1aea
FCE
537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
7fbd9d09
FCE
545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
27aba29a 556 test -d "$1/.";
7fbd9d09
FCE
557 else
558 case $1 in
27aba29a 559 -*)set "./$1";;
7fbd9d09
FCE
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
2f1a1aea
FCE
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
2f1a1aea 575
7fbd9d09 576exec 7<&0 </dev/null 6>&1
2f1a1aea
FCE
577
578# Name of the host.
579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580# so uname gets run too.
581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
2f1a1aea
FCE
583#
584# Initializations.
585#
586ac_default_prefix=/usr/local
7fbd9d09 587ac_clean_files=
2f1a1aea 588ac_config_libobj_dir=.
7fbd9d09 589LIBOBJS=
2f1a1aea
FCE
590cross_compiling=no
591subdirs=
592MFLAGS=
593MAKEFLAGS=
594SHELL=${CONFIG_SHELL-/bin/sh}
595
2f1a1aea
FCE
596# Identity of this package.
597PACKAGE_NAME='systemtap'
598PACKAGE_TARNAME='systemtap'
27aba29a
JS
599PACKAGE_VERSION='0.9.5'
600PACKAGE_STRING='systemtap 0.9.5'
2f1a1aea
FCE
601PACKAGE_BUGREPORT='systemtap@sources.redhat.com'
602
603# Factoring default headers for most tests.
604ac_includes_default="\
605#include <stdio.h>
7fbd9d09 606#ifdef HAVE_SYS_TYPES_H
2f1a1aea
FCE
607# include <sys/types.h>
608#endif
7fbd9d09 609#ifdef HAVE_SYS_STAT_H
2f1a1aea
FCE
610# include <sys/stat.h>
611#endif
7fbd9d09 612#ifdef STDC_HEADERS
2f1a1aea
FCE
613# include <stdlib.h>
614# include <stddef.h>
615#else
7fbd9d09 616# ifdef HAVE_STDLIB_H
2f1a1aea
FCE
617# include <stdlib.h>
618# endif
619#endif
7fbd9d09
FCE
620#ifdef HAVE_STRING_H
621# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
2f1a1aea
FCE
622# include <memory.h>
623# endif
624# include <string.h>
625#endif
7fbd9d09 626#ifdef HAVE_STRINGS_H
2f1a1aea
FCE
627# include <strings.h>
628#endif
7fbd9d09 629#ifdef HAVE_INTTYPES_H
2f1a1aea 630# include <inttypes.h>
2f1a1aea 631#endif
7fbd9d09
FCE
632#ifdef HAVE_STDINT_H
633# include <stdint.h>
634#endif
635#ifdef HAVE_UNISTD_H
2f1a1aea
FCE
636# include <unistd.h>
637#endif"
638
27aba29a
JS
639enable_option_checking=no
640ac_subst_vars='LTLIBOBJS
641LIBOBJS
642subdirs
643CXXCPP
644PROCFLAGS
645DATE
646stap_LIBS
647elfutils_abs_srcdir
648BUILD_ELFUTILS_FALSE
649BUILD_ELFUTILS_TRUE
650BUILD_SERVER_FALSE
651BUILD_SERVER_TRUE
652nspr_CFLAGS
653nss_CFLAGS
654BUILD_REFDOCS_FALSE
655BUILD_REFDOCS_TRUE
656have_xmlto
657BUILD_DOCS_FALSE
658BUILD_DOCS_TRUE
659have_latex2html
660have_ps2pdf
661have_dvips
662have_latex
663BUILD_CRASHMOD_FALSE
664BUILD_CRASHMOD_TRUE
665staplog_CPPFLAGS
666sqlite3_LIBS
667PIECXXFLAGS
668PIECFLAGS
669PIELDFLAGS
670RANLIB
671ANSI2KNR
672U
673EGREP
674GREP
675CPP
676am__fastdepCXX_FALSE
677am__fastdepCXX_TRUE
678CXXDEPMODE
679ac_ct_CXX
680CXXFLAGS
681CXX
682am__fastdepCC_FALSE
683am__fastdepCC_TRUE
684CCDEPMODE
685AMDEPBACKSLASH
686AMDEP_FALSE
687AMDEP_TRUE
688am__quote
689am__include
690DEPDIR
691OBJEXT
692EXEEXT
693ac_ct_CC
694CPPFLAGS
695LDFLAGS
696CFLAGS
697CC
698LN_S
7fbd9d09 699MAINT
27aba29a
JS
700MAINTAINER_MODE_FALSE
701MAINTAINER_MODE_TRUE
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
7fbd9d09 709MKDIR_P
27aba29a
JS
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
2f1a1aea 762ac_subst_files=''
27aba29a
JS
763ac_user_opts='
764enable_option_checking
765enable_maintainer_mode
766enable_dependency_tracking
767enable_perfmon
768enable_prologues
769enable_ssp
770enable_pie
771enable_sqlite
772enable_crash
773enable_docs
774enable_refdocs
775enable_server
776with_elfutils
777'
7fbd9d09
FCE
778 ac_precious_vars='build_alias
779host_alias
780target_alias
781CC
782CFLAGS
783LDFLAGS
784LIBS
785CPPFLAGS
786CXX
787CXXFLAGS
788CCC
789CPP
790CXXCPP'
791ac_subdirs_all='testsuite'
2f1a1aea
FCE
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
27aba29a
JS
796ac_unrecognized_opts=
797ac_unrecognized_sep=
2f1a1aea
FCE
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
7fbd9d09 820# (The list follows the same order as the GNU Coding Standards.)
2f1a1aea
FCE
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
7fbd9d09
FCE
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
2f1a1aea
FCE
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
2f1a1aea
FCE
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
7fbd9d09
FCE
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
2f1a1aea
FCE
840
841ac_prev=
7fbd9d09 842ac_dashdash=
2f1a1aea
FCE
843for ac_option
844do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
7fbd9d09 847 eval $ac_prev=\$ac_option
2f1a1aea
FCE
848 ac_prev=
849 continue
850 fi
851
7fbd9d09
FCE
852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
2f1a1aea
FCE
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
7fbd9d09
FCE
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
2f1a1aea
FCE
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
7fbd9d09 883 -datadir | --datadir | --datadi | --datad)
2f1a1aea 884 ac_prev=datadir ;;
7fbd9d09 885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
2f1a1aea
FCE
886 datadir=$ac_optarg ;;
887
7fbd9d09
FCE
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
2f1a1aea 895 -disable-* | --disable-*)
27aba29a 896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2f1a1aea 897 # Reject names that are not valid shell variable names.
27aba29a
JS
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
2f1a1aea 900 { (exit 1); exit 1; }; }
27aba29a
JS
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905"enable_$ac_useropt"
906"*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
7fbd9d09
FCE
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
2f1a1aea
FCE
921
922 -enable-* | --enable-*)
27aba29a 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2f1a1aea 924 # Reject names that are not valid shell variable names.
27aba29a
JS
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
2f1a1aea 927 { (exit 1); exit 1; }; }
27aba29a
JS
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932"enable_$ac_useropt"
933"*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=\$ac_optarg ;;
2f1a1aea
FCE
938
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941 | --exec | --exe | --ex)
942 ac_prev=exec_prefix ;;
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945 | --exec=* | --exe=* | --ex=*)
946 exec_prefix=$ac_optarg ;;
947
948 -gas | --gas | --ga | --g)
949 # Obsolete; use --with-gas.
950 with_gas=yes ;;
951
952 -help | --help | --hel | --he | -h)
953 ac_init_help=long ;;
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955 ac_init_help=recursive ;;
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957 ac_init_help=short ;;
958
959 -host | --host | --hos | --ho)
960 ac_prev=host_alias ;;
961 -host=* | --host=* | --hos=* | --ho=*)
962 host_alias=$ac_optarg ;;
963
7fbd9d09
FCE
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965 ac_prev=htmldir ;;
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967 | --ht=*)
968 htmldir=$ac_optarg ;;
969
2f1a1aea
FCE
970 -includedir | --includedir | --includedi | --included | --include \
971 | --includ | --inclu | --incl | --inc)
972 ac_prev=includedir ;;
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974 | --includ=* | --inclu=* | --incl=* | --inc=*)
975 includedir=$ac_optarg ;;
976
977 -infodir | --infodir | --infodi | --infod | --info | --inf)
978 ac_prev=infodir ;;
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980 infodir=$ac_optarg ;;
981
982 -libdir | --libdir | --libdi | --libd)
983 ac_prev=libdir ;;
984 -libdir=* | --libdir=* | --libdi=* | --libd=*)
985 libdir=$ac_optarg ;;
986
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988 | --libexe | --libex | --libe)
989 ac_prev=libexecdir ;;
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991 | --libexe=* | --libex=* | --libe=*)
992 libexecdir=$ac_optarg ;;
993
7fbd9d09
FCE
994 -localedir | --localedir | --localedi | --localed | --locale)
995 ac_prev=localedir ;;
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997 localedir=$ac_optarg ;;
998
2f1a1aea 999 -localstatedir | --localstatedir | --localstatedi | --localstated \
7fbd9d09 1000 | --localstate | --localstat | --localsta | --localst | --locals)
2f1a1aea
FCE
1001 ac_prev=localstatedir ;;
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7fbd9d09 1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2f1a1aea
FCE
1004 localstatedir=$ac_optarg ;;
1005
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007 ac_prev=mandir ;;
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009 mandir=$ac_optarg ;;
1010
1011 -nfp | --nfp | --nf)
1012 # Obsolete; use --without-fp.
1013 with_fp=no ;;
1014
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n)
1017 no_create=yes ;;
1018
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 no_recursion=yes ;;
1022
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025 | --oldin | --oldi | --old | --ol | --o)
1026 ac_prev=oldincludedir ;;
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030 oldincludedir=$ac_optarg ;;
1031
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033 ac_prev=prefix ;;
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035 prefix=$ac_optarg ;;
1036
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038 | --program-pre | --program-pr | --program-p)
1039 ac_prev=program_prefix ;;
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042 program_prefix=$ac_optarg ;;
1043
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045 | --program-suf | --program-su | --program-s)
1046 ac_prev=program_suffix ;;
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049 program_suffix=$ac_optarg ;;
1050
1051 -program-transform-name | --program-transform-name \
1052 | --program-transform-nam | --program-transform-na \
1053 | --program-transform-n | --program-transform- \
1054 | --program-transform | --program-transfor \
1055 | --program-transfo | --program-transf \
1056 | --program-trans | --program-tran \
1057 | --progr-tra | --program-tr | --program-t)
1058 ac_prev=program_transform_name ;;
1059 -program-transform-name=* | --program-transform-name=* \
1060 | --program-transform-nam=* | --program-transform-na=* \
1061 | --program-transform-n=* | --program-transform-=* \
1062 | --program-transform=* | --program-transfor=* \
1063 | --program-transfo=* | --program-transf=* \
1064 | --program-trans=* | --program-tran=* \
1065 | --progr-tra=* | --program-tr=* | --program-t=*)
1066 program_transform_name=$ac_optarg ;;
1067
7fbd9d09
FCE
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069 ac_prev=pdfdir ;;
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071 pdfdir=$ac_optarg ;;
1072
1073 -psdir | --psdir | --psdi | --psd | --ps)
1074 ac_prev=psdir ;;
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076 psdir=$ac_optarg ;;
1077
2f1a1aea
FCE
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1080 silent=yes ;;
1081
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 ac_prev=sbindir ;;
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 | --sbi=* | --sb=*)
1086 sbindir=$ac_optarg ;;
1087
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1091 | --sha | --sh)
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 | --sha=* | --sh=*)
1097 sharedstatedir=$ac_optarg ;;
1098
1099 -site | --site | --sit)
1100 ac_prev=site ;;
1101 -site=* | --site=* | --sit=*)
1102 site=$ac_optarg ;;
1103
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 ac_prev=srcdir ;;
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1108
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1115
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1120
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 verbose=yes ;;
1123
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1126
1127 -with-* | --with-*)
27aba29a 1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2f1a1aea 1129 # Reject names that are not valid shell variable names.
27aba29a
JS
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2f1a1aea 1132 { (exit 1); exit 1; }; }
27aba29a
JS
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137"with_$ac_useropt"
1138"*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=\$ac_optarg ;;
2f1a1aea
FCE
1143
1144 -without-* | --without-*)
27aba29a 1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2f1a1aea 1146 # Reject names that are not valid shell variable names.
27aba29a
JS
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2f1a1aea 1149 { (exit 1); exit 1; }; }
27aba29a
JS
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154"with_$ac_useropt"
1155"*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
2f1a1aea
FCE
1160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1178
27aba29a 1179 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
2f1a1aea
FCE
1180Try \`$0 --help' for more information." >&2
1181 { (exit 1); exit 1; }; }
1182 ;;
1183
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
27aba29a 1188 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
2f1a1aea 1189 { (exit 1); exit 1; }; }
7fbd9d09 1190 eval $ac_envvar=\$ac_optarg
2f1a1aea
FCE
1191 export $ac_envvar ;;
1192
1193 *)
1194 # FIXME: should be removed in autoconf 3.0.
27aba29a 1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2f1a1aea 1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
27aba29a 1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2f1a1aea
FCE
1198 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199 ;;
1200
1201 esac
1202done
1203
1204if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
27aba29a 1206 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
2f1a1aea
FCE
1207 { (exit 1); exit 1; }; }
1208fi
1209
27aba29a
JS
1210if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1212 no) ;;
1213 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1214 { (exit 1); exit 1; }; } ;;
1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 esac
1217fi
1218
1219# Check all directory arguments for consistency.
7fbd9d09
FCE
1220for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
818ba2bc 1224do
7fbd9d09 1225 eval ac_val=\$$ac_var
27aba29a
JS
1226 # Remove trailing slashes.
1227 case $ac_val in
1228 */ )
1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230 eval $ac_var=\$ac_val;;
1231 esac
1232 # Be sure to have absolute directory names.
8ae7a94a 1233 case $ac_val in
7fbd9d09
FCE
1234 [\\/$]* | ?:[\\/]* ) continue;;
1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2f1a1aea 1236 esac
27aba29a 1237 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7fbd9d09 1238 { (exit 1); exit 1; }; }
2f1a1aea
FCE
1239done
1240
1241# There might be people who depend on the old broken behavior: `$host'
1242# used to hold the argument of --host etc.
1243# FIXME: To remove some day.
1244build=$build_alias
1245host=$host_alias
1246target=$target_alias
1247
1248# FIXME: To remove some day.
1249if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
27aba29a 1252 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2f1a1aea
FCE
1253 If a cross compiler is detected then cross compile mode will be used." >&2
1254 elif test "x$build_alias" != "x$host_alias"; then
1255 cross_compiling=yes
1256 fi
1257fi
1258
1259ac_tool_prefix=
1260test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261
1262test "$silent" = yes && exec 6>/dev/null
1263
1264
7fbd9d09
FCE
1265ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266ac_ls_di=`ls -di .` &&
1267ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
27aba29a 1268 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7fbd9d09
FCE
1269 { (exit 1); exit 1; }; }
1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
27aba29a 1271 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7fbd9d09
FCE
1272 { (exit 1); exit 1; }; }
1273
1274
2f1a1aea
FCE
1275# Find the source files, if location was not specified.
1276if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
7fbd9d09 1278 # Try the directory containing this script, then the parent directory.
27aba29a
JS
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284$as_echo X"$as_myself" |
7fbd9d09
FCE
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\).*/{
1298 s//\1/
1299 q
1300 }
1301 s/.*/./; q'`
2f1a1aea 1302 srcdir=$ac_confdir
7fbd9d09 1303 if test ! -r "$srcdir/$ac_unique_file"; then
2f1a1aea
FCE
1304 srcdir=..
1305 fi
1306else
1307 ac_srcdir_defaulted=no
1308fi
7fbd9d09
FCE
1309if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
27aba29a 1311 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
818ba2bc 1312 { (exit 1); exit 1; }; }
8ae7a94a 1313fi
7fbd9d09
FCE
1314ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315ac_abs_confdir=`(
27aba29a 1316 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
8ae7a94a 1317 { (exit 1); exit 1; }; }
7fbd9d09
FCE
1318 pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
2f1a1aea
FCE
1335
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
27aba29a 1343\`configure' configures systemtap 0.9.5 to adapt to many kinds of systems.
2f1a1aea
FCE
1344
1345Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE. See below for descriptions of some of the useful variables.
1349
1350Defaults for the options are specified in brackets.
1351
1352Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362
2f1a1aea
FCE
1363Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
27aba29a 1365 [$ac_default_prefix]
2f1a1aea 1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
27aba29a 1367 [PREFIX]
2f1a1aea
FCE
1368
1369By default, \`make install' will install all the files in
1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372for instance \`--prefix=\$HOME'.
1373
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
27aba29a
JS
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
2f1a1aea
FCE
1396_ACEOF
1397
1398 cat <<\_ACEOF
1399
1400Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404_ACEOF
1405fi
1406
1407if test -n "$ac_init_help"; then
1408 case $ac_init_help in
27aba29a 1409 short | recursive ) echo "Configuration of systemtap 0.9.5:";;
2f1a1aea
FCE
1410 esac
1411 cat <<\_ACEOF
1412
1413Optional Features:
27aba29a 1414 --disable-option-checking ignore unrecognized --enable/--with options
2f1a1aea
FCE
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-maintainer-mode enable make rules and dependencies not useful
1418 (and sometimes confusing) to the casual installer
1419 --disable-dependency-tracking speeds up one-time build
1420 --enable-dependency-tracking do not reject slow dependency extractors
e8f3c2c2
DS
1421 --enable-perfmon[=DIRECTORY]
1422 enable perfmon support (default is disabled).
1423 Optional DIRECTORY is the path to the perfmon
1424 installation (needed if installed in a non-standard
1425 location).
44f75386 1426 --enable-prologues make -P prologue-searching default
bbfd8c1a 1427 --disable-ssp disable gcc stack-protector
882ddac1 1428 --enable-pie enable position-independent-executable
9921a199 1429 --enable-sqlite build with sqlite support
564eb0a8
DS
1430 --enable-crash[=DIRECTORY]
1431 enable crash extension (default is disabled).
1432 Optional DIRECTORY is the path to the crash header
1433 file (needed if installed in a non-standard
1434 location).
465e8fbf
FCE
1435 --enable-docs enable building documentation (default on if latex
1436 etc. found).
92aff3c7
WC
1437 --enable-refdocs enable building reference documentation (default on
1438 if xmlto etc. found and other documentation built).
6275c8d7 1439 --enable-server enable building of stap-server/client (default on if
19a0d4b6 1440 nss etc. found).
2f1a1aea 1441
4d9087fc
RM
1442Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-elfutils=DIRECTORY
1446 find elfutils source code in DIRECTORY
1447
2f1a1aea
FCE
1448Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
7fbd9d09
FCE
1453 LIBS libraries to pass to the linker, e.g. -l<library>
1454 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
2f1a1aea
FCE
1456 CXX C++ compiler command
1457 CXXFLAGS C++ compiler flags
1458 CPP C preprocessor
3bf6ac45 1459 CXXCPP C++ preprocessor
2f1a1aea
FCE
1460
1461Use these variables to override the choices made by `configure' or to help
1462it to find libraries and programs with nonstandard names/locations.
1463
1464Report bugs to <systemtap@sources.redhat.com>.
1465_ACEOF
7fbd9d09 1466ac_status=$?
2f1a1aea
FCE
1467fi
1468
1469if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
2f1a1aea 1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
27aba29a
JS
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 continue
2f1a1aea
FCE
1475 ac_builddir=.
1476
7fbd9d09
FCE
1477case "$ac_dir" in
1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479*)
27aba29a 1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 1481 # A ".." for each directory in $ac_dir_suffix.
27aba29a 1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 esac ;;
1487esac
1488ac_abs_top_builddir=$ac_pwd
1489ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490# for backward compatibility:
1491ac_top_builddir=$ac_top_build_prefix
2f1a1aea
FCE
1492
1493case $srcdir in
7fbd9d09 1494 .) # We are building in place.
2f1a1aea 1495 ac_srcdir=.
7fbd9d09
FCE
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
2f1a1aea 1499 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1502 *) # Relative name.
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
818ba2bc 1506esac
7fbd9d09
FCE
1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
2f1a1aea 1517 else
27aba29a 1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7fbd9d09
FCE
1519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
2f1a1aea
FCE
1521 done
1522fi
1523
7fbd9d09 1524test -n "$ac_init_help" && exit $ac_status
2f1a1aea
FCE
1525if $ac_init_version; then
1526 cat <<\_ACEOF
27aba29a
JS
1527systemtap configure 0.9.5
1528generated by GNU Autoconf 2.63
2f1a1aea 1529
7fbd9d09 1530Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
27aba29a 15312002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2f1a1aea
FCE
1532This configure script is free software; the Free Software Foundation
1533gives unlimited permission to copy, distribute and modify it.
1534_ACEOF
7fbd9d09 1535 exit
2f1a1aea 1536fi
7fbd9d09 1537cat >config.log <<_ACEOF
2f1a1aea
FCE
1538This file contains any messages produced by compilers while
1539running configure, to aid debugging if configure makes a mistake.
1540
27aba29a
JS
1541It was created by systemtap $as_me 0.9.5, which was
1542generated by GNU Autoconf 2.63. Invocation command line was
2f1a1aea
FCE
1543
1544 $ $0 $@
1545
1546_ACEOF
7fbd9d09 1547exec 5>>config.log
2f1a1aea
FCE
1548{
1549cat <<_ASUNAME
1550## --------- ##
1551## Platform. ##
1552## --------- ##
1553
1554hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1555uname -m = `(uname -m) 2>/dev/null || echo unknown`
1556uname -r = `(uname -r) 2>/dev/null || echo unknown`
1557uname -s = `(uname -s) 2>/dev/null || echo unknown`
1558uname -v = `(uname -v) 2>/dev/null || echo unknown`
1559
1560/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1561/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1562
1563/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1564/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1565/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7fbd9d09 1566/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2f1a1aea
FCE
1567/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1568/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1569/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1570
1571_ASUNAME
1572
1573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574for as_dir in $PATH
1575do
1576 IFS=$as_save_IFS
1577 test -z "$as_dir" && as_dir=.
27aba29a 1578 $as_echo "PATH: $as_dir"
2f1a1aea 1579done
7fbd9d09 1580IFS=$as_save_IFS
2f1a1aea
FCE
1581
1582} >&5
1583
1584cat >&5 <<_ACEOF
1585
1586
1587## ----------- ##
1588## Core tests. ##
1589## ----------- ##
1590
1591_ACEOF
1592
1593
1594# Keep a trace of the command line.
1595# Strip out --no-create and --no-recursion so they do not pile up.
1596# Strip out --silent because we don't want to record it for future runs.
1597# Also quote any args containing shell meta-characters.
1598# Make two passes to allow for proper duplicate-argument suppression.
1599ac_configure_args=
1600ac_configure_args0=
1601ac_configure_args1=
2f1a1aea
FCE
1602ac_must_keep_next=false
1603for ac_pass in 1 2
1604do
1605 for ac_arg
1606 do
1607 case $ac_arg in
1608 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1610 | -silent | --silent | --silen | --sile | --sil)
1611 continue ;;
7fbd9d09 1612 *\'*)
27aba29a 1613 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2f1a1aea
FCE
1614 esac
1615 case $ac_pass in
1616 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1617 2)
1618 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1619 if test $ac_must_keep_next = true; then
1620 ac_must_keep_next=false # Got value, back to normal.
1621 else
1622 case $ac_arg in
1623 *=* | --config-cache | -C | -disable-* | --disable-* \
1624 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1625 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1626 | -with-* | --with-* | -without-* | --without-* | --x)
1627 case "$ac_configure_args0 " in
1628 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1629 esac
1630 ;;
1631 -* ) ac_must_keep_next=true ;;
1632 esac
1633 fi
7fbd9d09 1634 ac_configure_args="$ac_configure_args '$ac_arg'"
2f1a1aea
FCE
1635 ;;
1636 esac
1637 done
1638done
1639$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1640$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1641
1642# When interrupted or exit'd, cleanup temporary files, and complete
1643# config.log. We remove comments because anyway the quotes in there
1644# would cause problems or look ugly.
7fbd9d09
FCE
1645# WARNING: Use '\'' to represent an apostrophe within the trap.
1646# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2f1a1aea
FCE
1647trap 'exit_status=$?
1648 # Save into config.log some information that might help in debugging.
1649 {
1650 echo
1651
1652 cat <<\_ASBOX
1653## ---------------- ##
1654## Cache variables. ##
1655## ---------------- ##
1656_ASBOX
1657 echo
1658 # The following way of writing the cache mishandles newlines in values,
7fbd9d09
FCE
1659(
1660 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1661 eval ac_val=\$$ac_var
1662 case $ac_val in #(
1663 *${as_nl}*)
1664 case $ac_var in #(
27aba29a
JS
1665 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1666$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7fbd9d09
FCE
1667 esac
1668 case $ac_var in #(
1669 _ | IFS | as_nl) ;; #(
27aba29a 1670 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7fbd9d09
FCE
1671 *) $as_unset $ac_var ;;
1672 esac ;;
1673 esac
1674 done
2f1a1aea 1675 (set) 2>&1 |
7fbd9d09
FCE
1676 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1677 *${as_nl}ac_space=\ *)
2f1a1aea 1678 sed -n \
7fbd9d09
FCE
1679 "s/'\''/'\''\\\\'\'''\''/g;
1680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1681 ;; #(
2f1a1aea 1682 *)
7fbd9d09 1683 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2f1a1aea 1684 ;;
7fbd9d09
FCE
1685 esac |
1686 sort
1687)
2f1a1aea
FCE
1688 echo
1689
1690 cat <<\_ASBOX
1691## ----------------- ##
1692## Output variables. ##
1693## ----------------- ##
1694_ASBOX
1695 echo
1696 for ac_var in $ac_subst_vars
1697 do
7fbd9d09
FCE
1698 eval ac_val=\$$ac_var
1699 case $ac_val in
27aba29a 1700 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7fbd9d09 1701 esac
27aba29a 1702 $as_echo "$ac_var='\''$ac_val'\''"
2f1a1aea
FCE
1703 done | sort
1704 echo
1705
1706 if test -n "$ac_subst_files"; then
1707 cat <<\_ASBOX
7fbd9d09
FCE
1708## ------------------- ##
1709## File substitutions. ##
1710## ------------------- ##
2f1a1aea
FCE
1711_ASBOX
1712 echo
1713 for ac_var in $ac_subst_files
1714 do
7fbd9d09
FCE
1715 eval ac_val=\$$ac_var
1716 case $ac_val in
27aba29a 1717 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7fbd9d09 1718 esac
27aba29a 1719 $as_echo "$ac_var='\''$ac_val'\''"
2f1a1aea
FCE
1720 done | sort
1721 echo
1722 fi
1723
1724 if test -s confdefs.h; then
1725 cat <<\_ASBOX
1726## ----------- ##
1727## confdefs.h. ##
1728## ----------- ##
1729_ASBOX
1730 echo
7fbd9d09 1731 cat confdefs.h
2f1a1aea
FCE
1732 echo
1733 fi
1734 test "$ac_signal" != 0 &&
27aba29a
JS
1735 $as_echo "$as_me: caught signal $ac_signal"
1736 $as_echo "$as_me: exit $exit_status"
2f1a1aea 1737 } >&5
7fbd9d09
FCE
1738 rm -f core *.core core.conftest.* &&
1739 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2f1a1aea 1740 exit $exit_status
7fbd9d09 1741' 0
2f1a1aea
FCE
1742for ac_signal in 1 2 13 15; do
1743 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1744done
1745ac_signal=0
1746
1747# confdefs.h avoids OS command line length limits that DEFS can exceed.
7fbd9d09 1748rm -f -r conftest* confdefs.h
2f1a1aea
FCE
1749
1750# Predefined preprocessor variables.
1751
1752cat >>confdefs.h <<_ACEOF
1753#define PACKAGE_NAME "$PACKAGE_NAME"
1754_ACEOF
1755
1756
1757cat >>confdefs.h <<_ACEOF
1758#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1759_ACEOF
1760
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_VERSION "$PACKAGE_VERSION"
1764_ACEOF
1765
1766
1767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_STRING "$PACKAGE_STRING"
1769_ACEOF
1770
1771
1772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1774_ACEOF
1775
1776
1777# Let the site file select an alternate cache file if it wants to.
27aba29a
JS
1778# Prefer an explicitly selected file to automatically selected ones.
1779ac_site_file1=NONE
1780ac_site_file2=NONE
7fbd9d09 1781if test -n "$CONFIG_SITE"; then
27aba29a 1782 ac_site_file1=$CONFIG_SITE
7fbd9d09 1783elif test "x$prefix" != xNONE; then
27aba29a
JS
1784 ac_site_file1=$prefix/share/config.site
1785 ac_site_file2=$prefix/etc/config.site
7fbd9d09 1786else
27aba29a
JS
1787 ac_site_file1=$ac_default_prefix/share/config.site
1788 ac_site_file2=$ac_default_prefix/etc/config.site
818ba2bc 1789fi
27aba29a 1790for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7fbd9d09 1791do
27aba29a 1792 test "x$ac_site_file" = xNONE && continue
2f1a1aea 1793 if test -r "$ac_site_file"; then
27aba29a
JS
1794 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1795$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2f1a1aea
FCE
1796 sed 's/^/| /' "$ac_site_file" >&5
1797 . "$ac_site_file"
1798 fi
1799done
1800
1801if test -r "$cache_file"; then
1802 # Some versions of bash will fail to source /dev/null (special
1803 # files actually), so we avoid doing that.
1804 if test -f "$cache_file"; then
27aba29a
JS
1805 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1806$as_echo "$as_me: loading cache $cache_file" >&6;}
2f1a1aea 1807 case $cache_file in
7fbd9d09
FCE
1808 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1809 *) . "./$cache_file";;
2f1a1aea
FCE
1810 esac
1811 fi
1812else
27aba29a
JS
1813 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1814$as_echo "$as_me: creating cache $cache_file" >&6;}
2f1a1aea
FCE
1815 >$cache_file
1816fi
1817
1818# Check that the precious variables saved in the cache have kept the same
1819# value.
1820ac_cache_corrupted=false
7fbd9d09 1821for ac_var in $ac_precious_vars; do
2f1a1aea
FCE
1822 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1823 eval ac_new_set=\$ac_env_${ac_var}_set
7fbd9d09
FCE
1824 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1825 eval ac_new_val=\$ac_env_${ac_var}_value
2f1a1aea
FCE
1826 case $ac_old_set,$ac_new_set in
1827 set,)
27aba29a
JS
1828 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1829$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2f1a1aea
FCE
1830 ac_cache_corrupted=: ;;
1831 ,set)
27aba29a
JS
1832 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1833$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2f1a1aea
FCE
1834 ac_cache_corrupted=: ;;
1835 ,);;
1836 *)
1837 if test "x$ac_old_val" != "x$ac_new_val"; then
27aba29a
JS
1838 # differences in whitespace do not lead to failure.
1839 ac_old_val_w=`echo x $ac_old_val`
1840 ac_new_val_w=`echo x $ac_new_val`
1841 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1842 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 ac_cache_corrupted=:
1845 else
1846 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1847$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1848 eval $ac_var=\$ac_old_val
1849 fi
1850 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1851$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1852 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1853$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2f1a1aea
FCE
1854 fi;;
1855 esac
1856 # Pass precious variables to config.status.
1857 if test "$ac_new_set" = set; then
1858 case $ac_new_val in
27aba29a 1859 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2f1a1aea
FCE
1860 *) ac_arg=$ac_var=$ac_new_val ;;
1861 esac
1862 case " $ac_configure_args " in
1863 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1864 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1865 esac
1866 fi
1867done
1868if $ac_cache_corrupted; then
27aba29a
JS
1869 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1871 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1872$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1873 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1874$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2f1a1aea
FCE
1875 { (exit 1); exit 1; }; }
1876fi
1877
8ae7a94a 1878
2f1a1aea
FCE
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
7fbd9d09
FCE
1902ac_ext=c
1903ac_cpp='$CPP $CPPFLAGS'
1904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1906ac_compiler_gnu=$ac_cv_c_compiler_gnu
2f1a1aea
FCE
1907
1908
1909
2f1a1aea 1910
7fbd9d09 1911am__api_version='1.10'
10b20266 1912
2f1a1aea 1913ac_aux_dir=
7fbd9d09
FCE
1914for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1915 if test -f "$ac_dir/install-sh"; then
2f1a1aea
FCE
1916 ac_aux_dir=$ac_dir
1917 ac_install_sh="$ac_aux_dir/install-sh -c"
1918 break
7fbd9d09 1919 elif test -f "$ac_dir/install.sh"; then
2f1a1aea
FCE
1920 ac_aux_dir=$ac_dir
1921 ac_install_sh="$ac_aux_dir/install.sh -c"
1922 break
7fbd9d09 1923 elif test -f "$ac_dir/shtool"; then
2f1a1aea
FCE
1924 ac_aux_dir=$ac_dir
1925 ac_install_sh="$ac_aux_dir/shtool install -c"
1926 break
1927 fi
1928done
1929if test -z "$ac_aux_dir"; then
27aba29a
JS
1930 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1931$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2f1a1aea
FCE
1932 { (exit 1); exit 1; }; }
1933fi
7fbd9d09
FCE
1934
1935# These three variables are undocumented and unsupported,
1936# and are intended to be withdrawn in a future Autoconf release.
1937# They can cause serious problems if a builder's source tree is in a directory
1938# whose full name contains unusual characters.
1939ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1940ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1941ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1942
2f1a1aea
FCE
1943
1944# Find a good install program. We prefer a C program (faster),
1945# so one script is as good as another. But avoid the broken or
1946# incompatible versions:
1947# SysV /etc/install, /usr/sbin/install
1948# SunOS /usr/etc/install
1949# IRIX /sbin/install
1950# AIX /bin/install
1951# AmigaOS /C/install, which installs bootblocks on floppy discs
1952# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1953# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1954# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1955# OS/2's system install, which has a completely different semantic
1956# ./install, which can be erroneously created by make from ./install.sh.
27aba29a
JS
1957# Reject install programs that cannot install multiple files.
1958{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1959$as_echo_n "checking for a BSD-compatible install... " >&6; }
2f1a1aea
FCE
1960if test -z "$INSTALL"; then
1961if test "${ac_cv_path_install+set}" = set; then
27aba29a 1962 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
1963else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 # Account for people who put trailing slashes in PATH elements.
1970case $as_dir/ in
1971 ./ | .// | /cC/* | \
1972 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1973 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1974 /usr/ucb/* ) ;;
1975 *)
1976 # OSF1 and SCO ODT 3.0 have their own names for install.
1977 # Don't use installbsd from OSF since it installs stuff as root
1978 # by default.
1979 for ac_prog in ginstall scoinst install; do
1980 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 1981 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2f1a1aea
FCE
1982 if test $ac_prog = install &&
1983 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1984 # AIX install. It has an incompatible calling convention.
1985 :
1986 elif test $ac_prog = install &&
1987 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1988 # program-specific install script used by HP pwplus--don't use.
1989 :
1990 else
27aba29a
JS
1991 rm -rf conftest.one conftest.two conftest.dir
1992 echo one > conftest.one
1993 echo two > conftest.two
1994 mkdir conftest.dir
1995 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1996 test -s conftest.one && test -s conftest.two &&
1997 test -s conftest.dir/conftest.one &&
1998 test -s conftest.dir/conftest.two
1999 then
2000 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2001 break 3
2002 fi
2f1a1aea
FCE
2003 fi
2004 fi
2005 done
2006 done
2007 ;;
2008esac
27aba29a 2009
2f1a1aea 2010done
7fbd9d09 2011IFS=$as_save_IFS
2f1a1aea 2012
27aba29a 2013rm -rf conftest.one conftest.two conftest.dir
2f1a1aea
FCE
2014
2015fi
2016 if test "${ac_cv_path_install+set}" = set; then
2017 INSTALL=$ac_cv_path_install
2018 else
7fbd9d09
FCE
2019 # As a last resort, use the slow shell script. Don't cache a
2020 # value for INSTALL within a source directory, because that will
2f1a1aea 2021 # break other packages using the cache if that directory is
7fbd9d09 2022 # removed, or if the value is a relative name.
2f1a1aea
FCE
2023 INSTALL=$ac_install_sh
2024 fi
2025fi
27aba29a
JS
2026{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2027$as_echo "$INSTALL" >&6; }
2f1a1aea
FCE
2028
2029# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2030# It thinks the first close brace ends the variable substitution.
2031test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2032
2033test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2034
2035test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2036
27aba29a
JS
2037{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2038$as_echo_n "checking whether build environment is sane... " >&6; }
2f1a1aea
FCE
2039# Just in case
2040sleep 1
2041echo timestamp > conftest.file
2042# Do `set' in a subshell so we don't clobber the current shell's
2043# arguments. Must try -L first in case configure is actually a
2044# symlink; some systems play weird games with the mod time of symlinks
2045# (eg FreeBSD returns the mod time of the symlink's containing
2046# directory).
2047if (
2048 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2049 if test "$*" = "X"; then
2050 # -L didn't work.
2051 set X `ls -t $srcdir/configure conftest.file`
2052 fi
2053 rm -f conftest.file
2054 if test "$*" != "X $srcdir/configure conftest.file" \
2055 && test "$*" != "X conftest.file $srcdir/configure"; then
2056
2057 # If neither matched, then we have a broken ls. This can happen
2058 # if, for instance, CONFIG_SHELL is bash and it inherits a
2059 # broken ls alias from the environment. This has actually
2060 # happened. Such a system could not be considered "sane".
27aba29a 2061 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2f1a1aea 2062alias in your environment" >&5
27aba29a 2063$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2f1a1aea
FCE
2064alias in your environment" >&2;}
2065 { (exit 1); exit 1; }; }
2066 fi
2067
2068 test "$2" = conftest.file
2069 )
2070then
2071 # Ok.
2072 :
2073else
27aba29a 2074 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2f1a1aea 2075Check your system clock" >&5
27aba29a 2076$as_echo "$as_me: error: newly created file is older than distributed files!
2f1a1aea
FCE
2077Check your system clock" >&2;}
2078 { (exit 1); exit 1; }; }
2079fi
27aba29a
JS
2080{ $as_echo "$as_me:$LINENO: result: yes" >&5
2081$as_echo "yes" >&6; }
2f1a1aea 2082test "$program_prefix" != NONE &&
7fbd9d09 2083 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2f1a1aea
FCE
2084# Use a double $ so make ignores it.
2085test "$program_suffix" != NONE &&
7fbd9d09 2086 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
27aba29a 2087# Double any \ or $.
2f1a1aea 2088# By default was `s,x,x', remove it if useless.
27aba29a
JS
2089ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2090program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2f1a1aea
FCE
2091
2092# expand $ac_aux_dir to an absolute path
2093am_aux_dir=`cd $ac_aux_dir && pwd`
2094
2095test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2096# Use eval to expand $SHELL
2097if eval "$MISSING --run true"; then
2098 am_missing_run="$MISSING --run "
2099else
2100 am_missing_run=
27aba29a
JS
2101 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2102$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
818ba2bc
MW
2103fi
2104
27aba29a
JS
2105{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2106$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7fbd9d09
FCE
2107if test -z "$MKDIR_P"; then
2108 if test "${ac_cv_path_mkdir+set}" = set; then
27aba29a 2109 $as_echo_n "(cached) " >&6
7fbd9d09
FCE
2110else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2113do
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_prog in mkdir gmkdir; do
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2119 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2120 'mkdir (GNU coreutils) '* | \
2121 'mkdir (coreutils) '* | \
2122 'mkdir (fileutils) '4.1*)
2123 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2124 break 3;;
2125 esac
2126 done
2127 done
2128done
2129IFS=$as_save_IFS
2130
2131fi
2132
2133 if test "${ac_cv_path_mkdir+set}" = set; then
2134 MKDIR_P="$ac_cv_path_mkdir -p"
2f1a1aea 2135 else
7fbd9d09
FCE
2136 # As a last resort, use the slow shell script. Don't cache a
2137 # value for MKDIR_P within a source directory, because that will
2138 # break other packages using the cache if that directory is
2139 # removed, or if the value is a relative name.
2140 test -d ./--version && rmdir ./--version
2141 MKDIR_P="$ac_install_sh -d"
2f1a1aea
FCE
2142 fi
2143fi
27aba29a
JS
2144{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2145$as_echo "$MKDIR_P" >&6; }
7fbd9d09
FCE
2146
2147mkdir_p="$MKDIR_P"
2148case $mkdir_p in
2149 [\\/$]* | ?:[\\/]*) ;;
2150 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2151esac
2f1a1aea
FCE
2152
2153for ac_prog in gawk mawk nawk awk
2154do
2155 # Extract the first word of "$ac_prog", so it can be a program name with args.
2156set dummy $ac_prog; ac_word=$2
27aba29a
JS
2157{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2158$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2159if test "${ac_cv_prog_AWK+set}" = set; then
27aba29a 2160 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2161else
2162 if test -n "$AWK"; then
2163 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2164else
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2172 ac_cv_prog_AWK="$ac_prog"
27aba29a 2173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2174 break 2
2175 fi
2176done
2177done
7fbd9d09 2178IFS=$as_save_IFS
2f1a1aea
FCE
2179
2180fi
2181fi
2182AWK=$ac_cv_prog_AWK
2183if test -n "$AWK"; then
27aba29a
JS
2184 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2185$as_echo "$AWK" >&6; }
2f1a1aea 2186else
27aba29a
JS
2187 { $as_echo "$as_me:$LINENO: result: no" >&5
2188$as_echo "no" >&6; }
2f1a1aea
FCE
2189fi
2190
7fbd9d09 2191
2f1a1aea
FCE
2192 test -n "$AWK" && break
2193done
2194
27aba29a
JS
2195{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2196$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2197set x ${MAKE-make}
2198ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7fbd9d09 2199if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 2200 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2201else
2202 cat >conftest.make <<\_ACEOF
7fbd9d09 2203SHELL = /bin/sh
2f1a1aea 2204all:
7fbd9d09 2205 @echo '@@@%%%=$(MAKE)=@@@%%%'
2f1a1aea
FCE
2206_ACEOF
2207# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7fbd9d09
FCE
2208case `${MAKE-make} -f conftest.make 2>/dev/null` in
2209 *@@@%%%=?*=@@@%%%*)
2210 eval ac_cv_prog_make_${ac_make}_set=yes;;
2211 *)
2212 eval ac_cv_prog_make_${ac_make}_set=no;;
2213esac
2f1a1aea
FCE
2214rm -f conftest.make
2215fi
7fbd9d09 2216if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
27aba29a
JS
2217 { $as_echo "$as_me:$LINENO: result: yes" >&5
2218$as_echo "yes" >&6; }
2f1a1aea
FCE
2219 SET_MAKE=
2220else
27aba29a
JS
2221 { $as_echo "$as_me:$LINENO: result: no" >&5
2222$as_echo "no" >&6; }
2f1a1aea
FCE
2223 SET_MAKE="MAKE=${MAKE-make}"
2224fi
2225
2226rm -rf .tst 2>/dev/null
2227mkdir .tst 2>/dev/null
2228if test -d .tst; then
2229 am__leading_dot=.
2230else
2231 am__leading_dot=_
2232fi
2233rmdir .tst 2>/dev/null
2234
7fbd9d09
FCE
2235if test "`cd $srcdir && pwd`" != "`pwd`"; then
2236 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2237 # is not polluted with repeated "-I."
2238 am__isrc=' -I$(srcdir)'
2239 # test to see if srcdir already configured
2240 if test -f $srcdir/config.status; then
27aba29a
JS
2241 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2242$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2f1a1aea 2243 { (exit 1); exit 1; }; }
7fbd9d09 2244 fi
2f1a1aea
FCE
2245fi
2246
2247# test whether we have cygpath
2248if test -z "$CYGPATH_W"; then
2249 if (cygpath --version) >/dev/null 2>/dev/null; then
2250 CYGPATH_W='cygpath -w'
2251 else
2252 CYGPATH_W=echo
2253 fi
2254fi
2255
2256
2257# Define the identity of the package.
2258 PACKAGE='systemtap'
27aba29a 2259 VERSION='0.9.5'
2f1a1aea
FCE
2260
2261
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE "$PACKAGE"
2264_ACEOF
2265
2266
2267cat >>confdefs.h <<_ACEOF
2268#define VERSION "$VERSION"
2269_ACEOF
2270
2271# Some tools Automake needs.
2272
2273ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2274
2275
2276AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2277
2278
2279AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2280
2281
2282AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2283
2284
2285MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2286
7fbd9d09 2287install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2f1a1aea
FCE
2288
2289# Installed binaries are usually stripped using `strip' when the user
2290# run `make install-strip'. However `strip' might not be the right
2291# tool to use in cross-compilation environments, therefore Automake
2292# will honor the `STRIP' environment variable to overrule this program.
2293if test "$cross_compiling" != no; then
2294 if test -n "$ac_tool_prefix"; then
2295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2296set dummy ${ac_tool_prefix}strip; ac_word=$2
27aba29a
JS
2297{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2298$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2299if test "${ac_cv_prog_STRIP+set}" = set; then
27aba29a 2300 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2301else
2302 if test -n "$STRIP"; then
2303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2304else
2305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306for as_dir in $PATH
2307do
2308 IFS=$as_save_IFS
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2312 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
27aba29a 2313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2314 break 2
2315 fi
2316done
2317done
7fbd9d09 2318IFS=$as_save_IFS
2f1a1aea
FCE
2319
2320fi
2321fi
2322STRIP=$ac_cv_prog_STRIP
2323if test -n "$STRIP"; then
27aba29a
JS
2324 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2325$as_echo "$STRIP" >&6; }
2f1a1aea 2326else
27aba29a
JS
2327 { $as_echo "$as_me:$LINENO: result: no" >&5
2328$as_echo "no" >&6; }
2f1a1aea
FCE
2329fi
2330
7fbd9d09 2331
2f1a1aea
FCE
2332fi
2333if test -z "$ac_cv_prog_STRIP"; then
2334 ac_ct_STRIP=$STRIP
2335 # Extract the first word of "strip", so it can be a program name with args.
2336set dummy strip; ac_word=$2
27aba29a
JS
2337{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2338$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2339if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
27aba29a 2340 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2341else
2342 if test -n "$ac_ct_STRIP"; then
2343 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2344else
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2352 ac_cv_prog_ac_ct_STRIP="strip"
27aba29a 2353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2354 break 2
2355 fi
2356done
2357done
7fbd9d09 2358IFS=$as_save_IFS
2f1a1aea 2359
2f1a1aea
FCE
2360fi
2361fi
2362ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2363if test -n "$ac_ct_STRIP"; then
27aba29a
JS
2364 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2365$as_echo "$ac_ct_STRIP" >&6; }
2f1a1aea 2366else
27aba29a
JS
2367 { $as_echo "$as_me:$LINENO: result: no" >&5
2368$as_echo "no" >&6; }
2f1a1aea
FCE
2369fi
2370
7fbd9d09
FCE
2371 if test "x$ac_ct_STRIP" = x; then
2372 STRIP=":"
2373 else
2374 case $cross_compiling:$ac_tool_warned in
2375yes:)
27aba29a
JS
2376{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
2378ac_tool_warned=yes ;;
2379esac
2380 STRIP=$ac_ct_STRIP
2381 fi
2f1a1aea
FCE
2382else
2383 STRIP="$ac_cv_prog_STRIP"
2384fi
2385
2386fi
7fbd9d09 2387INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2f1a1aea
FCE
2388
2389# We need awk for the "check" target. The system "awk" is bad on
2390# some platforms.
2391# Always define AMTAR for backward compatibility.
2392
2393AMTAR=${AMTAR-"${am_missing_run}tar"}
2394
2395am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2396
2397
2398
2399
2400
27aba29a
JS
2401{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2402$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7fbd9d09 2403 # Check whether --enable-maintainer-mode was given.
2f1a1aea 2404if test "${enable_maintainer_mode+set}" = set; then
7fbd9d09 2405 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2f1a1aea
FCE
2406else
2407 USE_MAINTAINER_MODE=no
7fbd9d09 2408fi
2f1a1aea 2409
27aba29a
JS
2410 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2411$as_echo "$USE_MAINTAINER_MODE" >&6; }
7fbd9d09 2412 if test $USE_MAINTAINER_MODE = yes; then
2f1a1aea
FCE
2413 MAINTAINER_MODE_TRUE=
2414 MAINTAINER_MODE_FALSE='#'
2415else
2416 MAINTAINER_MODE_TRUE='#'
2417 MAINTAINER_MODE_FALSE=
2418fi
2419
2420 MAINT=$MAINTAINER_MODE_TRUE
2421
2422
2423
7fbd9d09
FCE
2424mkdir_p="$MKDIR_P"
2425case $mkdir_p in
2426 [\\/$]* | ?:[\\/]*) ;;
2427 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2428esac
2429
98aab489 2430
27aba29a
JS
2431{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
2432$as_echo_n "checking whether ln -s works... " >&6; }
2f1a1aea
FCE
2433LN_S=$as_ln_s
2434if test "$LN_S" = "ln -s"; then
27aba29a
JS
2435 { $as_echo "$as_me:$LINENO: result: yes" >&5
2436$as_echo "yes" >&6; }
2f1a1aea 2437else
27aba29a
JS
2438 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2439$as_echo "no, using $LN_S" >&6; }
2f1a1aea
FCE
2440fi
2441
2442ac_ext=c
2443ac_cpp='$CPP $CPPFLAGS'
2444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447if test -n "$ac_tool_prefix"; then
2448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2449set dummy ${ac_tool_prefix}gcc; ac_word=$2
27aba29a
JS
2450{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2451$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2452if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 2453 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2454else
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
2457else
2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459for as_dir in $PATH
2460do
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2465 ac_cv_prog_CC="${ac_tool_prefix}gcc"
27aba29a 2466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2467 break 2
2468 fi
2469done
2470done
7fbd9d09 2471IFS=$as_save_IFS
2f1a1aea
FCE
2472
2473fi
2474fi
2475CC=$ac_cv_prog_CC
2476if test -n "$CC"; then
27aba29a
JS
2477 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2478$as_echo "$CC" >&6; }
2f1a1aea 2479else
27aba29a
JS
2480 { $as_echo "$as_me:$LINENO: result: no" >&5
2481$as_echo "no" >&6; }
2f1a1aea
FCE
2482fi
2483
7fbd9d09 2484
2f1a1aea
FCE
2485fi
2486if test -z "$ac_cv_prog_CC"; then
2487 ac_ct_CC=$CC
2488 # Extract the first word of "gcc", so it can be a program name with args.
2489set dummy gcc; ac_word=$2
27aba29a
JS
2490{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2491$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2492if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27aba29a 2493 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2494else
2495 if test -n "$ac_ct_CC"; then
2496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2505 ac_cv_prog_ac_ct_CC="gcc"
27aba29a 2506 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2507 break 2
2508 fi
2509done
2510done
7fbd9d09 2511IFS=$as_save_IFS
2f1a1aea
FCE
2512
2513fi
2514fi
2515ac_ct_CC=$ac_cv_prog_ac_ct_CC
2516if test -n "$ac_ct_CC"; then
27aba29a
JS
2517 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2518$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 2519else
27aba29a
JS
2520 { $as_echo "$as_me:$LINENO: result: no" >&5
2521$as_echo "no" >&6; }
2f1a1aea
FCE
2522fi
2523
7fbd9d09
FCE
2524 if test "x$ac_ct_CC" = x; then
2525 CC=""
2526 else
2527 case $cross_compiling:$ac_tool_warned in
2528yes:)
27aba29a
JS
2529{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
2531ac_tool_warned=yes ;;
2532esac
2533 CC=$ac_ct_CC
2534 fi
2f1a1aea
FCE
2535else
2536 CC="$ac_cv_prog_CC"
2537fi
2538
2539if test -z "$CC"; then
7fbd9d09
FCE
2540 if test -n "$ac_tool_prefix"; then
2541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2f1a1aea 2542set dummy ${ac_tool_prefix}cc; ac_word=$2
27aba29a
JS
2543{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2544$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2545if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 2546 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2547else
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2550else
2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552for as_dir in $PATH
2553do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2558 ac_cv_prog_CC="${ac_tool_prefix}cc"
27aba29a 2559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2560 break 2
2561 fi
2562done
2563done
7fbd9d09 2564IFS=$as_save_IFS
2f1a1aea
FCE
2565
2566fi
2567fi
2568CC=$ac_cv_prog_CC
2569if test -n "$CC"; then
27aba29a
JS
2570 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2571$as_echo "$CC" >&6; }
818ba2bc 2572else
27aba29a
JS
2573 { $as_echo "$as_me:$LINENO: result: no" >&5
2574$as_echo "no" >&6; }
818ba2bc
MW
2575fi
2576
818ba2bc 2577
7fbd9d09 2578 fi
2f1a1aea
FCE
2579fi
2580if test -z "$CC"; then
2581 # Extract the first word of "cc", so it can be a program name with args.
2582set dummy cc; ac_word=$2
27aba29a
JS
2583{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2584$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2585if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 2586 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2587else
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2590else
2591 ac_prog_rejected=no
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea
FCE
2599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2600 ac_prog_rejected=yes
2601 continue
2602 fi
2603 ac_cv_prog_CC="cc"
27aba29a 2604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2605 break 2
2606 fi
2607done
2608done
7fbd9d09 2609IFS=$as_save_IFS
2f1a1aea
FCE
2610
2611if test $ac_prog_rejected = yes; then
2612 # We found a bogon in the path, so make sure we never use it.
2613 set dummy $ac_cv_prog_CC
2614 shift
2615 if test $# != 0; then
2616 # We chose a different compiler from the bogus one.
2617 # However, it has the same basename, so the bogon will be chosen
2618 # first if we set CC to just the basename; use the full file name.
2619 shift
2620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2621 fi
2622fi
2623fi
2624fi
2625CC=$ac_cv_prog_CC
2626if test -n "$CC"; then
27aba29a
JS
2627 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2628$as_echo "$CC" >&6; }
2f1a1aea 2629else
27aba29a
JS
2630 { $as_echo "$as_me:$LINENO: result: no" >&5
2631$as_echo "no" >&6; }
2f1a1aea
FCE
2632fi
2633
7fbd9d09 2634
2f1a1aea
FCE
2635fi
2636if test -z "$CC"; then
2637 if test -n "$ac_tool_prefix"; then
7fbd9d09 2638 for ac_prog in cl.exe
2f1a1aea
FCE
2639 do
2640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2641set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27aba29a
JS
2642{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2643$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2644if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 2645 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2646else
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
27aba29a 2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2659 break 2
2660 fi
2661done
2662done
7fbd9d09 2663IFS=$as_save_IFS
2f1a1aea
FCE
2664
2665fi
2666fi
2667CC=$ac_cv_prog_CC
2668if test -n "$CC"; then
27aba29a
JS
2669 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2670$as_echo "$CC" >&6; }
2f1a1aea 2671else
27aba29a
JS
2672 { $as_echo "$as_me:$LINENO: result: no" >&5
2673$as_echo "no" >&6; }
2f1a1aea
FCE
2674fi
2675
7fbd9d09 2676
2f1a1aea
FCE
2677 test -n "$CC" && break
2678 done
2679fi
2680if test -z "$CC"; then
2681 ac_ct_CC=$CC
7fbd9d09 2682 for ac_prog in cl.exe
2f1a1aea
FCE
2683do
2684 # Extract the first word of "$ac_prog", so it can be a program name with args.
2685set dummy $ac_prog; ac_word=$2
27aba29a
JS
2686{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2687$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2688if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27aba29a 2689 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2690else
2691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2693else
2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2701 ac_cv_prog_ac_ct_CC="$ac_prog"
27aba29a 2702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2703 break 2
2704 fi
2705done
2706done
7fbd9d09 2707IFS=$as_save_IFS
2f1a1aea
FCE
2708
2709fi
2710fi
2711ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712if test -n "$ac_ct_CC"; then
27aba29a
JS
2713 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2714$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 2715else
27aba29a
JS
2716 { $as_echo "$as_me:$LINENO: result: no" >&5
2717$as_echo "no" >&6; }
2f1a1aea
FCE
2718fi
2719
7fbd9d09 2720
2f1a1aea
FCE
2721 test -n "$ac_ct_CC" && break
2722done
2723
7fbd9d09
FCE
2724 if test "x$ac_ct_CC" = x; then
2725 CC=""
2726 else
2727 case $cross_compiling:$ac_tool_warned in
2728yes:)
27aba29a
JS
2729{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
2731ac_tool_warned=yes ;;
2732esac
2733 CC=$ac_ct_CC
2734 fi
2f1a1aea
FCE
2735fi
2736
2737fi
2738
2739
27aba29a
JS
2740test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2f1a1aea 2743See \`config.log' for more details." >&5
27aba29a 2744$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2f1a1aea 2745See \`config.log' for more details." >&2;}
27aba29a 2746 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
2747
2748# Provide some information about the compiler.
27aba29a
JS
2749$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2750set X $ac_compile
2751ac_compiler=$2
7fbd9d09
FCE
2752{ (ac_try="$ac_compiler --version >&5"
2753case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756esac
27aba29a
JS
2757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2758$as_echo "$ac_try_echo") >&5
7fbd9d09 2759 (eval "$ac_compiler --version >&5") 2>&5
2f1a1aea 2760 ac_status=$?
27aba29a 2761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 2762 (exit $ac_status); }
7fbd9d09
FCE
2763{ (ac_try="$ac_compiler -v >&5"
2764case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767esac
27aba29a
JS
2768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2769$as_echo "$ac_try_echo") >&5
7fbd9d09 2770 (eval "$ac_compiler -v >&5") 2>&5
2f1a1aea 2771 ac_status=$?
27aba29a 2772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 2773 (exit $ac_status); }
7fbd9d09
FCE
2774{ (ac_try="$ac_compiler -V >&5"
2775case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778esac
27aba29a
JS
2779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2780$as_echo "$ac_try_echo") >&5
7fbd9d09 2781 (eval "$ac_compiler -V >&5") 2>&5
2f1a1aea 2782 ac_status=$?
27aba29a 2783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea
FCE
2784 (exit $ac_status); }
2785
2786cat >conftest.$ac_ext <<_ACEOF
2787/* confdefs.h. */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h. */
2792
2793int
2794main ()
2795{
2796
2797 ;
2798 return 0;
2799}
2800_ACEOF
2801ac_clean_files_save=$ac_clean_files
27aba29a 2802ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2f1a1aea
FCE
2803# Try to create an executable without -o first, disregard a.out.
2804# It will help us diagnose broken compilers, and finding out an intuition
2805# of exeext.
27aba29a
JS
2806{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2807$as_echo_n "checking for C compiler default output file name... " >&6; }
2808ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2809
2810# The possible output files:
2811ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2812
7fbd9d09
FCE
2813ac_rmfiles=
2814for ac_file in $ac_files
2815do
2816 case $ac_file in
27aba29a 2817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7fbd9d09
FCE
2818 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2819 esac
2820done
2821rm -f $ac_rmfiles
2822
2823if { (ac_try="$ac_link_default"
2824case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827esac
27aba29a
JS
2828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2829$as_echo "$ac_try_echo") >&5
7fbd9d09 2830 (eval "$ac_link_default") 2>&5
2f1a1aea 2831 ac_status=$?
27aba29a 2832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 2833 (exit $ac_status); }; then
7fbd9d09
FCE
2834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2835# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2836# in a Makefile. We should not override ac_cv_exeext if it was cached,
2837# so that the user can short-circuit this test for compilers unknown to
2838# Autoconf.
2839for ac_file in $ac_files ''
2f1a1aea
FCE
2840do
2841 test -f "$ac_file" || continue
2842 case $ac_file in
27aba29a 2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2f1a1aea
FCE
2844 ;;
2845 [ab].out )
2846 # We found the default executable, but exeext='' is most
2847 # certainly right.
2848 break;;
2849 *.* )
7fbd9d09
FCE
2850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2851 then :; else
2852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853 fi
2854 # We set ac_cv_exeext here because the later test for it is not
2855 # safe: cross compilers may not add the suffix if given an `-o'
2856 # argument, so we may need to know it at that point already.
2857 # Even if this section looks crufty: it has the advantage of
2858 # actually working.
2f1a1aea
FCE
2859 break;;
2860 * )
2861 break;;
2862 esac
2863done
7fbd9d09
FCE
2864test "$ac_cv_exeext" = no && ac_cv_exeext=
2865
2f1a1aea 2866else
7fbd9d09
FCE
2867 ac_file=''
2868fi
2869
27aba29a
JS
2870{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2871$as_echo "$ac_file" >&6; }
7fbd9d09 2872if test -z "$ac_file"; then
27aba29a 2873 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
27aba29a
JS
2876{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2878{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2f1a1aea 2879See \`config.log' for more details." >&5
27aba29a 2880$as_echo "$as_me: error: C compiler cannot create executables
2f1a1aea 2881See \`config.log' for more details." >&2;}
27aba29a 2882 { (exit 77); exit 77; }; }; }
2f1a1aea
FCE
2883fi
2884
2885ac_exeext=$ac_cv_exeext
2f1a1aea 2886
7fbd9d09 2887# Check that the compiler produces executables we can run. If not, either
2f1a1aea 2888# the compiler is broken, or we cross compile.
27aba29a
JS
2889{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2890$as_echo_n "checking whether the C compiler works... " >&6; }
2f1a1aea
FCE
2891# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2892# If not cross compiling, check that we can run a simple program.
2893if test "$cross_compiling" != yes; then
2894 if { ac_try='./$ac_file'
7fbd9d09
FCE
2895 { (case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
27aba29a
JS
2899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2900$as_echo "$ac_try_echo") >&5
7fbd9d09 2901 (eval "$ac_try") 2>&5
2f1a1aea 2902 ac_status=$?
27aba29a 2903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea
FCE
2904 (exit $ac_status); }; }; then
2905 cross_compiling=no
2906 else
2907 if test "$cross_compiling" = maybe; then
2908 cross_compiling=yes
2909 else
27aba29a
JS
2910 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2f1a1aea
FCE
2913If you meant to cross compile, use \`--host'.
2914See \`config.log' for more details." >&5
27aba29a 2915$as_echo "$as_me: error: cannot run C compiled programs.
2f1a1aea
FCE
2916If you meant to cross compile, use \`--host'.
2917See \`config.log' for more details." >&2;}
27aba29a 2918 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
2919 fi
2920 fi
2921fi
27aba29a
JS
2922{ $as_echo "$as_me:$LINENO: result: yes" >&5
2923$as_echo "yes" >&6; }
2f1a1aea 2924
27aba29a 2925rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2f1a1aea 2926ac_clean_files=$ac_clean_files_save
7fbd9d09 2927# Check that the compiler produces executables we can run. If not, either
2f1a1aea 2928# the compiler is broken, or we cross compile.
27aba29a
JS
2929{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2930$as_echo_n "checking whether we are cross compiling... " >&6; }
2931{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2932$as_echo "$cross_compiling" >&6; }
7fbd9d09 2933
27aba29a
JS
2934{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2935$as_echo_n "checking for suffix of executables... " >&6; }
7fbd9d09
FCE
2936if { (ac_try="$ac_link"
2937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
27aba29a
JS
2941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2942$as_echo "$ac_try_echo") >&5
7fbd9d09 2943 (eval "$ac_link") 2>&5
2f1a1aea 2944 ac_status=$?
27aba29a 2945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea
FCE
2946 (exit $ac_status); }; then
2947 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2948# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2949# work properly (i.e., refer to `conftest.exe'), while it won't with
2950# `rm'.
2951for ac_file in conftest.exe conftest conftest.*; do
2952 test -f "$ac_file" || continue
2953 case $ac_file in
27aba29a 2954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2f1a1aea 2955 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2f1a1aea
FCE
2956 break;;
2957 * ) break;;
2958 esac
2959done
2960else
27aba29a
JS
2961 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2f1a1aea 2964See \`config.log' for more details." >&5
27aba29a 2965$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2f1a1aea 2966See \`config.log' for more details." >&2;}
27aba29a 2967 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
2968fi
2969
2970rm -f conftest$ac_cv_exeext
27aba29a
JS
2971{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2972$as_echo "$ac_cv_exeext" >&6; }
2f1a1aea
FCE
2973
2974rm -f conftest.$ac_ext
2975EXEEXT=$ac_cv_exeext
2976ac_exeext=$EXEEXT
27aba29a
JS
2977{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2978$as_echo_n "checking for suffix of object files... " >&6; }
2f1a1aea 2979if test "${ac_cv_objext+set}" = set; then
27aba29a 2980 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2981else
2982 cat >conftest.$ac_ext <<_ACEOF
2983/* confdefs.h. */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h. */
2988
2989int
2990main ()
2991{
2992
2993 ;
2994 return 0;
2995}
2996_ACEOF
2997rm -f conftest.o conftest.obj
7fbd9d09
FCE
2998if { (ac_try="$ac_compile"
2999case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002esac
27aba29a
JS
3003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3004$as_echo "$ac_try_echo") >&5
7fbd9d09 3005 (eval "$ac_compile") 2>&5
2f1a1aea 3006 ac_status=$?
27aba29a 3007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 3008 (exit $ac_status); }; then
7fbd9d09
FCE
3009 for ac_file in conftest.o conftest.obj conftest.*; do
3010 test -f "$ac_file" || continue;
2f1a1aea 3011 case $ac_file in
27aba29a 3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2f1a1aea
FCE
3013 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3014 break;;
3015 esac
3016done
3017else
27aba29a 3018 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3019sed 's/^/| /' conftest.$ac_ext >&5
3020
27aba29a
JS
3021{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2f1a1aea 3024See \`config.log' for more details." >&5
27aba29a 3025$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2f1a1aea 3026See \`config.log' for more details." >&2;}
27aba29a 3027 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
3028fi
3029
3030rm -f conftest.$ac_cv_objext conftest.$ac_ext
3031fi
27aba29a
JS
3032{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3033$as_echo "$ac_cv_objext" >&6; }
2f1a1aea
FCE
3034OBJEXT=$ac_cv_objext
3035ac_objext=$OBJEXT
27aba29a
JS
3036{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3037$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2f1a1aea 3038if test "${ac_cv_c_compiler_gnu+set}" = set; then
27aba29a 3039 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3040else
3041 cat >conftest.$ac_ext <<_ACEOF
3042/* confdefs.h. */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h. */
3047
3048int
3049main ()
3050{
3051#ifndef __GNUC__
3052 choke me
3053#endif
3054
3055 ;
3056 return 0;
3057}
3058_ACEOF
3059rm -f conftest.$ac_objext
7fbd9d09
FCE
3060if { (ac_try="$ac_compile"
3061case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064esac
27aba29a
JS
3065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3066$as_echo "$ac_try_echo") >&5
7fbd9d09 3067 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
27aba29a 3072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3073 (exit $ac_status); } && {
3074 test -z "$ac_c_werror_flag" ||
3075 test ! -s conftest.err
3076 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3077 ac_compiler_gnu=yes
3078else
27aba29a 3079 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
7fbd9d09 3082 ac_compiler_gnu=no
2f1a1aea 3083fi
7fbd9d09
FCE
3084
3085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
3086ac_cv_c_compiler_gnu=$ac_compiler_gnu
3087
3088fi
27aba29a
JS
3089{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3090$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3091if test $ac_compiler_gnu = yes; then
3092 GCC=yes
3093else
3094 GCC=
3095fi
2f1a1aea
FCE
3096ac_test_CFLAGS=${CFLAGS+set}
3097ac_save_CFLAGS=$CFLAGS
27aba29a
JS
3098{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3099$as_echo_n "checking whether $CC accepts -g... " >&6; }
2f1a1aea 3100if test "${ac_cv_prog_cc_g+set}" = set; then
27aba29a 3101 $as_echo_n "(cached) " >&6
2f1a1aea 3102else
7fbd9d09
FCE
3103 ac_save_c_werror_flag=$ac_c_werror_flag
3104 ac_c_werror_flag=yes
3105 ac_cv_prog_cc_g=no
3106 CFLAGS="-g"
3107 cat >conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3108/* confdefs.h. */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h. */
3113
3114int
3115main ()
3116{
3117
3118 ;
3119 return 0;
3120}
3121_ACEOF
3122rm -f conftest.$ac_objext
7fbd9d09
FCE
3123if { (ac_try="$ac_compile"
3124case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
27aba29a
JS
3128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3129$as_echo "$ac_try_echo") >&5
7fbd9d09 3130 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
27aba29a 3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3136 (exit $ac_status); } && {
3137 test -z "$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3139 } && test -s conftest.$ac_objext; then
3140 ac_cv_prog_cc_g=yes
3141else
27aba29a 3142 $as_echo "$as_me: failed program was:" >&5
7fbd9d09
FCE
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145 CFLAGS=""
3146 cat >conftest.$ac_ext <<_ACEOF
3147/* confdefs.h. */
3148_ACEOF
3149cat confdefs.h >>conftest.$ac_ext
3150cat >>conftest.$ac_ext <<_ACEOF
3151/* end confdefs.h. */
3152
3153int
3154main ()
3155{
3156
3157 ;
3158 return 0;
3159}
3160_ACEOF
3161rm -f conftest.$ac_objext
3162if { (ac_try="$ac_compile"
3163case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166esac
27aba29a
JS
3167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3168$as_echo "$ac_try_echo") >&5
7fbd9d09 3169 (eval "$ac_compile") 2>conftest.er1
2f1a1aea 3170 ac_status=$?
7fbd9d09
FCE
3171 grep -v '^ *+' conftest.er1 >conftest.err
3172 rm -f conftest.er1
3173 cat conftest.err >&5
27aba29a 3174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3175 (exit $ac_status); } && {
3176 test -z "$ac_c_werror_flag" ||
3177 test ! -s conftest.err
3178 } && test -s conftest.$ac_objext; then
3179 :
3180else
27aba29a 3181 $as_echo "$as_me: failed program was:" >&5
7fbd9d09
FCE
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3185 CFLAGS="-g"
3186 cat >conftest.$ac_ext <<_ACEOF
3187/* confdefs.h. */
3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h. */
3192
3193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201rm -f conftest.$ac_objext
3202if { (ac_try="$ac_compile"
3203case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206esac
27aba29a
JS
3207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3208$as_echo "$ac_try_echo") >&5
7fbd9d09 3209 (eval "$ac_compile") 2>conftest.er1
2f1a1aea 3210 ac_status=$?
7fbd9d09
FCE
3211 grep -v '^ *+' conftest.er1 >conftest.err
3212 rm -f conftest.er1
3213 cat conftest.err >&5
27aba29a 3214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3215 (exit $ac_status); } && {
3216 test -z "$ac_c_werror_flag" ||
3217 test ! -s conftest.err
3218 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3219 ac_cv_prog_cc_g=yes
3220else
27aba29a 3221 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
7fbd9d09
FCE
3224
3225fi
3226
3227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea 3228fi
7fbd9d09
FCE
3229
3230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231fi
3232
3233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 ac_c_werror_flag=$ac_save_c_werror_flag
2f1a1aea 3235fi
27aba29a
JS
3236{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237$as_echo "$ac_cv_prog_cc_g" >&6; }
2f1a1aea
FCE
3238if test "$ac_test_CFLAGS" = set; then
3239 CFLAGS=$ac_save_CFLAGS
3240elif test $ac_cv_prog_cc_g = yes; then
3241 if test "$GCC" = yes; then
3242 CFLAGS="-g -O2"
3243 else
3244 CFLAGS="-g"
3245 fi
3246else
3247 if test "$GCC" = yes; then
3248 CFLAGS="-O2"
3249 else
3250 CFLAGS=
3251 fi
3252fi
27aba29a
JS
3253{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7fbd9d09 3255if test "${ac_cv_prog_cc_c89+set}" = set; then
27aba29a 3256 $as_echo_n "(cached) " >&6
2f1a1aea 3257else
7fbd9d09 3258 ac_cv_prog_cc_c89=no
2f1a1aea
FCE
3259ac_save_CC=$CC
3260cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h. */
3266#include <stdarg.h>
3267#include <stdio.h>
3268#include <sys/types.h>
3269#include <sys/stat.h>
3270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271struct buf { int x; };
3272FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273static char *e (p, i)
3274 char **p;
3275 int i;
3276{
3277 return p[i];
3278}
3279static char *f (char * (*g) (char **, int), char **p, ...)
3280{
3281 char *s;
3282 va_list v;
3283 va_start (v,p);
3284 s = g (p, va_arg (v,int));
3285 va_end (v);
3286 return s;
3287}
3288
3289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
7fbd9d09 3292 as 'x'. The following induces an error, until -std is added to get
2f1a1aea
FCE
3293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
7fbd9d09 3295 that's true only with -std. */
2f1a1aea
FCE
3296int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
7fbd9d09
FCE
3298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3300#define FOO(x) 'x'
3301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
2f1a1aea
FCE
3303int test (int i, double x);
3304struct s1 {int (*f) (int a);};
3305struct s2 {int (*f) (double a);};
3306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307int argc;
3308char **argv;
3309int
3310main ()
3311{
3312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 ;
3314 return 0;
3315}
3316_ACEOF
7fbd9d09
FCE
3317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2f1a1aea
FCE
3319do
3320 CC="$ac_save_CC $ac_arg"
3321 rm -f conftest.$ac_objext
7fbd9d09
FCE
3322if { (ac_try="$ac_compile"
3323case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326esac
27aba29a
JS
3327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3328$as_echo "$ac_try_echo") >&5
7fbd9d09 3329 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
27aba29a 3334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3335 (exit $ac_status); } && {
3336 test -z "$ac_c_werror_flag" ||
3337 test ! -s conftest.err
3338 } && test -s conftest.$ac_objext; then
3339 ac_cv_prog_cc_c89=$ac_arg
818ba2bc 3340else
27aba29a 3341 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
7fbd9d09 3344
2f1a1aea 3345fi
7fbd9d09
FCE
3346
3347rm -f core conftest.err conftest.$ac_objext
3348 test "x$ac_cv_prog_cc_c89" != "xno" && break
2f1a1aea 3349done
7fbd9d09 3350rm -f conftest.$ac_ext
2f1a1aea
FCE
3351CC=$ac_save_CC
3352
3353fi
7fbd9d09
FCE
3354# AC_CACHE_VAL
3355case "x$ac_cv_prog_cc_c89" in
3356 x)
27aba29a
JS
3357 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3358$as_echo "none needed" >&6; } ;;
7fbd9d09 3359 xno)
27aba29a
JS
3360 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3361$as_echo "unsupported" >&6; } ;;
2f1a1aea 3362 *)
7fbd9d09 3363 CC="$CC $ac_cv_prog_cc_c89"
27aba29a
JS
3364 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3365$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2f1a1aea
FCE
3366esac
3367
818ba2bc 3368
818ba2bc
MW
3369ac_ext=c
3370ac_cpp='$CPP $CPPFLAGS'
3371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374DEPDIR="${am__leading_dot}deps"
3375
7fbd9d09 3376ac_config_commands="$ac_config_commands depfiles"
818ba2bc
MW
3377
3378
3379am_make=${MAKE-make}
3380cat > confinc << 'END'
3381am__doit:
8ae7a94a
FCE
3382 @echo done
3383.PHONY: am__doit
3384END
3385# If we don't find an include directive, just comment out the code.
27aba29a
JS
3386{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3387$as_echo_n "checking for style of include used by $am_make... " >&6; }
8ae7a94a
FCE
3388am__include="#"
3389am__quote=
3390_am_result=none
3391# First try GNU make style include.
3392echo "include confinc" > confmf
3393# We grep out `Entering directory' and `Leaving directory'
3394# messages which can occur if `w' ends up in MAKEFLAGS.
3395# In particular we don't look at `^make:' because GNU make might
3396# be invoked under some other name (usually "gmake"), in which
3397# case it prints its new name instead of `make'.
3398if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3399 am__include=include
3400 am__quote=
3401 _am_result=GNU
3402fi
3403# Now try BSD make style include.
3404if test "$am__include" = "#"; then
3405 echo '.include "confinc"' > confmf
3406 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3407 am__include=.include
3408 am__quote="\""
3409 _am_result=BSD
3410 fi
3411fi
2f1a1aea 3412
8ae7a94a 3413
27aba29a
JS
3414{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3415$as_echo "$_am_result" >&6; }
2f1a1aea
FCE
3416rm -f confinc confmf
3417
7fbd9d09 3418# Check whether --enable-dependency-tracking was given.
2f1a1aea 3419if test "${enable_dependency_tracking+set}" = set; then
7fbd9d09
FCE
3420 enableval=$enable_dependency_tracking;
3421fi
2f1a1aea 3422
2f1a1aea
FCE
3423if test "x$enable_dependency_tracking" != xno; then
3424 am_depcomp="$ac_aux_dir/depcomp"
3425 AMDEPBACKSLASH='\'
3426fi
7fbd9d09 3427 if test "x$enable_dependency_tracking" != xno; then
2f1a1aea
FCE
3428 AMDEP_TRUE=
3429 AMDEP_FALSE='#'
3430else
3431 AMDEP_TRUE='#'
3432 AMDEP_FALSE=
3433fi
3434
3435
3436
2f1a1aea
FCE
3437depcc="$CC" am_compiler_list=
3438
27aba29a
JS
3439{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3440$as_echo_n "checking dependency style of $depcc... " >&6; }
2f1a1aea 3441if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
27aba29a 3442 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3443else
3444 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3445 # We make a subdir and do the tests there. Otherwise we can end up
3446 # making bogus files that we don't know about and never remove. For
3447 # instance it was reported that on HP-UX the gcc test will end up
3448 # making a dummy file named `D' -- because `-MD' means `put the output
3449 # in D'.
3450 mkdir conftest.dir
3451 # Copy depcomp to subdir because otherwise we won't find it if we're
3452 # using a relative directory.
3453 cp "$am_depcomp" conftest.dir
3454 cd conftest.dir
3455 # We will build objects and dependencies in a subdirectory because
3456 # it helps to detect inapplicable dependency modes. For instance
3457 # both Tru64's cc and ICC support -MD to output dependencies as a
3458 # side effect of compilation, but ICC will put the dependencies in
3459 # the current directory while Tru64 will put them in the object
3460 # directory.
3461 mkdir sub
3462
3463 am_cv_CC_dependencies_compiler_type=none
3464 if test "$am_compiler_list" = ""; then
3465 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3466 fi
3467 for depmode in $am_compiler_list; do
3468 # Setup a source with many dependencies, because some compilers
3469 # like to wrap large dependency lists on column 80 (with \), and
3470 # we should not choose a depcomp mode which is confused by this.
3471 #
3472 # We need to recreate these files for each test, as the compiler may
3473 # overwrite some of them when testing with obscure command lines.
3474 # This happens at least with the AIX C compiler.
3475 : > sub/conftest.c
3476 for i in 1 2 3 4 5 6; do
3477 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3478 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3479 # Solaris 8's {/usr,}/bin/sh.
3480 touch sub/conftst$i.h
3481 done
3482 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3483
3484 case $depmode in
3485 nosideeffect)
3486 # after this tag, mechanisms are not by side-effect, so they'll
3487 # only be used when explicitly requested
3488 if test "x$enable_dependency_tracking" = xyes; then
3489 continue
3490 else
3491 break
3492 fi
3493 ;;
3494 none) break ;;
3495 esac
3496 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3497 # mode. It turns out that the SunPro C++ compiler does not properly
3498 # handle `-M -o', and we need to detect this.
3499 if depmode=$depmode \
3500 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3501 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3502 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3503 >/dev/null 2>conftest.err &&
7fbd9d09 3504 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
3505 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3506 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3507 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3508 # icc doesn't choke on unknown options, it will just issue warnings
3509 # or remarks (even with -Werror). So we grep stderr for any message
3510 # that says an option was ignored or not supported.
3511 # When given -MP, icc 7.0 and 7.1 complain thusly:
3512 # icc: Command line warning: ignoring option '-M'; no argument required
3513 # The diagnosis changed in icc 8.0:
3514 # icc: Command line remark: option '-MP' not supported
3515 if (grep 'ignoring option' conftest.err ||
3516 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3517 am_cv_CC_dependencies_compiler_type=$depmode
3518 break
3519 fi
3520 fi
3521 done
3522
3523 cd ..
3524 rm -rf conftest.dir
3525else
3526 am_cv_CC_dependencies_compiler_type=none
3527fi
3528
3529fi
27aba29a
JS
3530{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3531$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
3532CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3533
7fbd9d09 3534 if
2f1a1aea
FCE
3535 test "x$enable_dependency_tracking" != xno \
3536 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3537 am__fastdepCC_TRUE=
3538 am__fastdepCC_FALSE='#'
3539else
3540 am__fastdepCC_TRUE='#'
3541 am__fastdepCC_FALSE=
3542fi
3543
3544
7fbd9d09 3545ac_ext=cpp
2f1a1aea
FCE
3546ac_cpp='$CXXCPP $CPPFLAGS'
3547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7fbd9d09
FCE
3550if test -z "$CXX"; then
3551 if test -n "$CCC"; then
3552 CXX=$CCC
3553 else
3554 if test -n "$ac_tool_prefix"; then
3555 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2f1a1aea
FCE
3556 do
3557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27aba29a
JS
3559{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3560$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 3561if test "${ac_cv_prog_CXX+set}" = set; then
27aba29a 3562 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3563else
3564 if test -n "$CXX"; then
3565 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3566else
3567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH
3569do
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3574 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
27aba29a 3575 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3576 break 2
3577 fi
3578done
3579done
7fbd9d09 3580IFS=$as_save_IFS
2f1a1aea
FCE
3581
3582fi
3583fi
3584CXX=$ac_cv_prog_CXX
3585if test -n "$CXX"; then
27aba29a
JS
3586 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3587$as_echo "$CXX" >&6; }
2f1a1aea 3588else
27aba29a
JS
3589 { $as_echo "$as_me:$LINENO: result: no" >&5
3590$as_echo "no" >&6; }
2f1a1aea
FCE
3591fi
3592
7fbd9d09 3593
2f1a1aea
FCE
3594 test -n "$CXX" && break
3595 done
3596fi
3597if test -z "$CXX"; then
3598 ac_ct_CXX=$CXX
7fbd9d09 3599 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2f1a1aea
FCE
3600do
3601 # Extract the first word of "$ac_prog", so it can be a program name with args.
3602set dummy $ac_prog; ac_word=$2
27aba29a
JS
3603{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3604$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 3605if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
27aba29a 3606 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3607else
3608 if test -n "$ac_ct_CXX"; then
3609 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3610else
3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3618 ac_cv_prog_ac_ct_CXX="$ac_prog"
27aba29a 3619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3620 break 2
3621 fi
3622done
3623done
7fbd9d09 3624IFS=$as_save_IFS
2f1a1aea
FCE
3625
3626fi
3627fi
3628ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3629if test -n "$ac_ct_CXX"; then
27aba29a
JS
3630 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3631$as_echo "$ac_ct_CXX" >&6; }
2f1a1aea 3632else
27aba29a
JS
3633 { $as_echo "$as_me:$LINENO: result: no" >&5
3634$as_echo "no" >&6; }
2f1a1aea
FCE
3635fi
3636
7fbd9d09 3637
2f1a1aea
FCE
3638 test -n "$ac_ct_CXX" && break
3639done
2f1a1aea 3640
7fbd9d09
FCE
3641 if test "x$ac_ct_CXX" = x; then
3642 CXX="g++"
3643 else
3644 case $cross_compiling:$ac_tool_warned in
3645yes:)
27aba29a
JS
3646{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
3648ac_tool_warned=yes ;;
3649esac
3650 CXX=$ac_ct_CXX
3651 fi
2f1a1aea
FCE
3652fi
3653
7fbd9d09
FCE
3654 fi
3655fi
2f1a1aea 3656# Provide some information about the compiler.
27aba29a
JS
3657$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3658set X $ac_compile
3659ac_compiler=$2
7fbd9d09
FCE
3660{ (ac_try="$ac_compiler --version >&5"
3661case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664esac
27aba29a
JS
3665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3666$as_echo "$ac_try_echo") >&5
7fbd9d09 3667 (eval "$ac_compiler --version >&5") 2>&5
2f1a1aea 3668 ac_status=$?
27aba29a 3669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 3670 (exit $ac_status); }
7fbd9d09
FCE
3671{ (ac_try="$ac_compiler -v >&5"
3672case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675esac
27aba29a
JS
3676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3677$as_echo "$ac_try_echo") >&5
7fbd9d09 3678 (eval "$ac_compiler -v >&5") 2>&5
2f1a1aea 3679 ac_status=$?
27aba29a 3680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 3681 (exit $ac_status); }
7fbd9d09
FCE
3682{ (ac_try="$ac_compiler -V >&5"
3683case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686esac
27aba29a
JS
3687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3688$as_echo "$ac_try_echo") >&5
7fbd9d09 3689 (eval "$ac_compiler -V >&5") 2>&5
2f1a1aea 3690 ac_status=$?
27aba29a 3691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea
FCE
3692 (exit $ac_status); }
3693
27aba29a
JS
3694{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3695$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2f1a1aea 3696if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
27aba29a 3697 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3698else
3699 cat >conftest.$ac_ext <<_ACEOF
3700/* confdefs.h. */
3701_ACEOF
3702cat confdefs.h >>conftest.$ac_ext
3703cat >>conftest.$ac_ext <<_ACEOF
3704/* end confdefs.h. */
3705
3706int
3707main ()
3708{
3709#ifndef __GNUC__
3710 choke me
3711#endif
3712
3713 ;
3714 return 0;
3715}
3716_ACEOF
3717rm -f conftest.$ac_objext
7fbd9d09
FCE
3718if { (ac_try="$ac_compile"
3719case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722esac
27aba29a
JS
3723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3724$as_echo "$ac_try_echo") >&5
7fbd9d09 3725 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
27aba29a 3730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3731 (exit $ac_status); } && {
3732 test -z "$ac_cxx_werror_flag" ||
3733 test ! -s conftest.err
3734 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3735 ac_compiler_gnu=yes
3736else
27aba29a 3737 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
7fbd9d09 3740 ac_compiler_gnu=no
2f1a1aea 3741fi
7fbd9d09
FCE
3742
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
3744ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3745
3746fi
27aba29a
JS
3747{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3748$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3749if test $ac_compiler_gnu = yes; then
3750 GXX=yes
3751else
3752 GXX=
3753fi
2f1a1aea
FCE
3754ac_test_CXXFLAGS=${CXXFLAGS+set}
3755ac_save_CXXFLAGS=$CXXFLAGS
27aba29a
JS
3756{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3757$as_echo_n "checking whether $CXX accepts -g... " >&6; }
2f1a1aea 3758if test "${ac_cv_prog_cxx_g+set}" = set; then
27aba29a 3759 $as_echo_n "(cached) " >&6
2f1a1aea 3760else
7fbd9d09
FCE
3761 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3762 ac_cxx_werror_flag=yes
3763 ac_cv_prog_cxx_g=no
3764 CXXFLAGS="-g"
3765 cat >conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3766/* confdefs.h. */
3767_ACEOF
3768cat confdefs.h >>conftest.$ac_ext
3769cat >>conftest.$ac_ext <<_ACEOF
3770/* end confdefs.h. */
3771
3772int
3773main ()
3774{
3775
3776 ;
3777 return 0;
3778}
3779_ACEOF
3780rm -f conftest.$ac_objext
7fbd9d09
FCE
3781if { (ac_try="$ac_compile"
3782case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785esac
27aba29a
JS
3786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787$as_echo "$ac_try_echo") >&5
7fbd9d09 3788 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
27aba29a 3793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3794 (exit $ac_status); } && {
3795 test -z "$ac_cxx_werror_flag" ||
3796 test ! -s conftest.err
3797 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3798 ac_cv_prog_cxx_g=yes
3799else
27aba29a 3800 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3801sed 's/^/| /' conftest.$ac_ext >&5
3802
7fbd9d09
FCE
3803 CXXFLAGS=""
3804 cat >conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3805/* confdefs.h. */
3806_ACEOF
3807cat confdefs.h >>conftest.$ac_ext
3808cat >>conftest.$ac_ext <<_ACEOF
3809/* end confdefs.h. */
7fbd9d09 3810
2f1a1aea
FCE
3811int
3812main ()
3813{
7fbd9d09 3814
2f1a1aea
FCE
3815 ;
3816 return 0;
3817}
3818_ACEOF
3819rm -f conftest.$ac_objext
7fbd9d09
FCE
3820if { (ac_try="$ac_compile"
3821case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824esac
27aba29a
JS
3825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3826$as_echo "$ac_try_echo") >&5
7fbd9d09 3827 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
27aba29a 3832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3833 (exit $ac_status); } && {
3834 test -z "$ac_cxx_werror_flag" ||
3835 test ! -s conftest.err
3836 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3837 :
3838else
27aba29a 3839 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3840sed 's/^/| /' conftest.$ac_ext >&5
3841
7fbd9d09
FCE
3842 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3843 CXXFLAGS="-g"
3844 cat >conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3845/* confdefs.h. */
3846_ACEOF
3847cat confdefs.h >>conftest.$ac_ext
3848cat >>conftest.$ac_ext <<_ACEOF
3849/* end confdefs.h. */
7fbd9d09 3850
2f1a1aea
FCE
3851int
3852main ()
3853{
7fbd9d09 3854
2f1a1aea
FCE
3855 ;
3856 return 0;
3857}
3858_ACEOF
3859rm -f conftest.$ac_objext
7fbd9d09
FCE
3860if { (ac_try="$ac_compile"
3861case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864esac
27aba29a
JS
3865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3866$as_echo "$ac_try_echo") >&5
7fbd9d09 3867 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3868 ac_status=$?
3869 grep -v '^ *+' conftest.er1 >conftest.err
3870 rm -f conftest.er1
3871 cat conftest.err >&5
27aba29a 3872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3873 (exit $ac_status); } && {
3874 test -z "$ac_cxx_werror_flag" ||
3875 test ! -s conftest.err
3876 } && test -s conftest.$ac_objext; then
3877 ac_cv_prog_cxx_g=yes
2f1a1aea 3878else
27aba29a 3879 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3880sed 's/^/| /' conftest.$ac_ext >&5
3881
7fbd9d09 3882
70d28673 3883fi
7fbd9d09
FCE
3884
3885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886fi
3887
3888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e0d2ebf
DS
3889fi
3890
7fbd9d09
FCE
3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3893fi
27aba29a
JS
3894{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3895$as_echo "$ac_cv_prog_cxx_g" >&6; }
7fbd9d09
FCE
3896if test "$ac_test_CXXFLAGS" = set; then
3897 CXXFLAGS=$ac_save_CXXFLAGS
3898elif test $ac_cv_prog_cxx_g = yes; then
3899 if test "$GXX" = yes; then
3900 CXXFLAGS="-g -O2"
3901 else
3902 CXXFLAGS="-g"
3903 fi
3904else
3905 if test "$GXX" = yes; then
3906 CXXFLAGS="-O2"
3907 else
3908 CXXFLAGS=
3909 fi
3910fi
2f1a1aea
FCE
3911ac_ext=c
3912ac_cpp='$CPP $CPPFLAGS'
3913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916
3917depcc="$CXX" am_compiler_list=
3918
27aba29a
JS
3919{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3920$as_echo_n "checking dependency style of $depcc... " >&6; }
2f1a1aea 3921if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
27aba29a 3922 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3923else
3924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3925 # We make a subdir and do the tests there. Otherwise we can end up
3926 # making bogus files that we don't know about and never remove. For
3927 # instance it was reported that on HP-UX the gcc test will end up
3928 # making a dummy file named `D' -- because `-MD' means `put the output
3929 # in D'.
3930 mkdir conftest.dir
3931 # Copy depcomp to subdir because otherwise we won't find it if we're
3932 # using a relative directory.
3933 cp "$am_depcomp" conftest.dir
3934 cd conftest.dir
3935 # We will build objects and dependencies in a subdirectory because
3936 # it helps to detect inapplicable dependency modes. For instance
3937 # both Tru64's cc and ICC support -MD to output dependencies as a
3938 # side effect of compilation, but ICC will put the dependencies in
3939 # the current directory while Tru64 will put them in the object
3940 # directory.
3941 mkdir sub
3942
3943 am_cv_CXX_dependencies_compiler_type=none
3944 if test "$am_compiler_list" = ""; then
3945 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3946 fi
3947 for depmode in $am_compiler_list; do
3948 # Setup a source with many dependencies, because some compilers
3949 # like to wrap large dependency lists on column 80 (with \), and
3950 # we should not choose a depcomp mode which is confused by this.
3951 #
3952 # We need to recreate these files for each test, as the compiler may
3953 # overwrite some of them when testing with obscure command lines.
3954 # This happens at least with the AIX C compiler.
3955 : > sub/conftest.c
3956 for i in 1 2 3 4 5 6; do
3957 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3958 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3959 # Solaris 8's {/usr,}/bin/sh.
3960 touch sub/conftst$i.h
3961 done
3962 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3963
3964 case $depmode in
3965 nosideeffect)
3966 # after this tag, mechanisms are not by side-effect, so they'll
3967 # only be used when explicitly requested
3968 if test "x$enable_dependency_tracking" = xyes; then
3969 continue
3970 else
3971 break
3972 fi
3973 ;;
3974 none) break ;;
3975 esac
3976 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3977 # mode. It turns out that the SunPro C++ compiler does not properly
3978 # handle `-M -o', and we need to detect this.
3979 if depmode=$depmode \
3980 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3981 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3982 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3983 >/dev/null 2>conftest.err &&
7fbd9d09 3984 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
3985 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3986 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3987 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3988 # icc doesn't choke on unknown options, it will just issue warnings
3989 # or remarks (even with -Werror). So we grep stderr for any message
3990 # that says an option was ignored or not supported.
3991 # When given -MP, icc 7.0 and 7.1 complain thusly:
3992 # icc: Command line warning: ignoring option '-M'; no argument required
3993 # The diagnosis changed in icc 8.0:
3994 # icc: Command line remark: option '-MP' not supported
3995 if (grep 'ignoring option' conftest.err ||
3996 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3997 am_cv_CXX_dependencies_compiler_type=$depmode
3998 break
3999 fi
4000 fi
4001 done
4002
4003 cd ..
4004 rm -rf conftest.dir
4005else
4006 am_cv_CXX_dependencies_compiler_type=none
4007fi
4008
4009fi
27aba29a
JS
4010{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4011$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
4012CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4013
7fbd9d09 4014 if
2f1a1aea
FCE
4015 test "x$enable_dependency_tracking" != xno \
4016 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4017 am__fastdepCXX_TRUE=
4018 am__fastdepCXX_FALSE='#'
4019else
4020 am__fastdepCXX_TRUE='#'
4021 am__fastdepCXX_FALSE=
4022fi
4023
4024
4025ac_ext=c
4026ac_cpp='$CPP $CPPFLAGS'
4027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029ac_compiler_gnu=$ac_cv_c_compiler_gnu
27aba29a
JS
4030{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4031$as_echo_n "checking how to run the C preprocessor... " >&6; }
2f1a1aea
FCE
4032# On Suns, sometimes $CPP names a directory.
4033if test -n "$CPP" && test -d "$CPP"; then
4034 CPP=
4035fi
4036if test -z "$CPP"; then
4037 if test "${ac_cv_prog_CPP+set}" = set; then
27aba29a 4038 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4039else
4040 # Double quotes because CPP needs to be expanded
4041 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4042 do
4043 ac_preproc_ok=false
4044for ac_c_preproc_warn_flag in '' yes
4045do
4046 # Use a header file that comes with gcc, so configuring glibc
4047 # with a fresh cross-compiler works.
4048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4049 # <limits.h> exists even on freestanding compilers.
4050 # On the NeXT, cc -E runs the code through the compiler's parser,
4051 # not just through cpp. "Syntax error" is here to catch this case.
4052 cat >conftest.$ac_ext <<_ACEOF
4053/* confdefs.h. */
4054_ACEOF
4055cat confdefs.h >>conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */
4058#ifdef __STDC__
4059# include <limits.h>
4060#else
4061# include <assert.h>
4062#endif
4063 Syntax error
4064_ACEOF
7fbd9d09
FCE
4065if { (ac_try="$ac_cpp conftest.$ac_ext"
4066case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
27aba29a
JS
4070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4071$as_echo "$ac_try_echo") >&5
7fbd9d09 4072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2f1a1aea
FCE
4073 ac_status=$?
4074 grep -v '^ *+' conftest.er1 >conftest.err
4075 rm -f conftest.er1
4076 cat conftest.err >&5
27aba29a 4077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4078 (exit $ac_status); } >/dev/null && {
4079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4080 test ! -s conftest.err
4081 }; then
2f1a1aea
FCE
4082 :
4083else
27aba29a 4084 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4085sed 's/^/| /' conftest.$ac_ext >&5
4086
4087 # Broken: fails on valid input.
4088continue
4089fi
7fbd9d09 4090
2f1a1aea
FCE
4091rm -f conftest.err conftest.$ac_ext
4092
7fbd9d09 4093 # OK, works on sane cases. Now check whether nonexistent headers
2f1a1aea
FCE
4094 # can be detected and how.
4095 cat >conftest.$ac_ext <<_ACEOF
4096/* confdefs.h. */
4097_ACEOF
4098cat confdefs.h >>conftest.$ac_ext
4099cat >>conftest.$ac_ext <<_ACEOF
4100/* end confdefs.h. */
4101#include <ac_nonexistent.h>
4102_ACEOF
7fbd9d09
FCE
4103if { (ac_try="$ac_cpp conftest.$ac_ext"
4104case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107esac
27aba29a
JS
4108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4109$as_echo "$ac_try_echo") >&5
7fbd9d09 4110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2f1a1aea
FCE
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
27aba29a 4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4116 (exit $ac_status); } >/dev/null && {
4117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 }; then
2f1a1aea
FCE
4120 # Broken: success on invalid input.
4121continue
4122else
27aba29a 4123 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4124sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 # Passes both tests.
4127ac_preproc_ok=:
4128break
4129fi
7fbd9d09 4130
2f1a1aea
FCE
4131rm -f conftest.err conftest.$ac_ext
4132
4133done
4134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4135rm -f conftest.err conftest.$ac_ext
4136if $ac_preproc_ok; then
4137 break
4138fi
4139
4140 done
4141 ac_cv_prog_CPP=$CPP
4142
4143fi
4144 CPP=$ac_cv_prog_CPP
4145else
4146 ac_cv_prog_CPP=$CPP
4147fi
27aba29a
JS
4148{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4149$as_echo "$CPP" >&6; }
2f1a1aea
FCE
4150ac_preproc_ok=false
4151for ac_c_preproc_warn_flag in '' yes
4152do
4153 # Use a header file that comes with gcc, so configuring glibc
4154 # with a fresh cross-compiler works.
4155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4156 # <limits.h> exists even on freestanding compilers.
4157 # On the NeXT, cc -E runs the code through the compiler's parser,
4158 # not just through cpp. "Syntax error" is here to catch this case.
4159 cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h. */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
4164/* end confdefs.h. */
4165#ifdef __STDC__
4166# include <limits.h>
4167#else
4168# include <assert.h>
4169#endif
4170 Syntax error
4171_ACEOF
7fbd9d09
FCE
4172if { (ac_try="$ac_cpp conftest.$ac_ext"
4173case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
27aba29a
JS
4177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4178$as_echo "$ac_try_echo") >&5
7fbd9d09 4179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2f1a1aea
FCE
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
4183 cat conftest.err >&5
27aba29a 4184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4185 (exit $ac_status); } >/dev/null && {
4186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4187 test ! -s conftest.err
4188 }; then
2f1a1aea
FCE
4189 :
4190else
27aba29a 4191 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4192sed 's/^/| /' conftest.$ac_ext >&5
4193
4194 # Broken: fails on valid input.
4195continue
4196fi
7fbd9d09 4197
2f1a1aea
FCE
4198rm -f conftest.err conftest.$ac_ext
4199
7fbd9d09 4200 # OK, works on sane cases. Now check whether nonexistent headers
2f1a1aea
FCE
4201 # can be detected and how.
4202 cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h. */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h. */
4208#include <ac_nonexistent.h>
4209_ACEOF
7fbd9d09
FCE
4210if { (ac_try="$ac_cpp conftest.$ac_ext"
4211case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4214esac
27aba29a
JS
4215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4216$as_echo "$ac_try_echo") >&5
7fbd9d09 4217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2f1a1aea
FCE
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
27aba29a 4222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4223 (exit $ac_status); } >/dev/null && {
4224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4225 test ! -s conftest.err
4226 }; then
2f1a1aea
FCE
4227 # Broken: success on invalid input.
4228continue
4229else
27aba29a 4230 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
4233 # Passes both tests.
4234ac_preproc_ok=:
4235break
4236fi
7fbd9d09 4237
2f1a1aea
FCE
4238rm -f conftest.err conftest.$ac_ext
4239
4240done
4241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242rm -f conftest.err conftest.$ac_ext
4243if $ac_preproc_ok; then
4244 :
4245else
27aba29a
JS
4246 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4248{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2f1a1aea 4249See \`config.log' for more details." >&5
27aba29a 4250$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2f1a1aea 4251See \`config.log' for more details." >&2;}
27aba29a 4252 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
4253fi
4254
4255ac_ext=c
4256ac_cpp='$CPP $CPPFLAGS'
4257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260
4261ac_ext=c
4262ac_cpp='$CPP $CPPFLAGS'
4263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266if test -n "$ac_tool_prefix"; then
4267 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4268set dummy ${ac_tool_prefix}gcc; ac_word=$2
27aba29a
JS
4269{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4270$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 4271if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 4272 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4273else
4274 if test -n "$CC"; then
4275 ac_cv_prog_CC="$CC" # Let the user override the test.
4276else
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4284 ac_cv_prog_CC="${ac_tool_prefix}gcc"
27aba29a 4285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4286 break 2
4287 fi
4288done
4289done
7fbd9d09 4290IFS=$as_save_IFS
2f1a1aea
FCE
4291
4292fi
4293fi
4294CC=$ac_cv_prog_CC
4295if test -n "$CC"; then
27aba29a
JS
4296 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4297$as_echo "$CC" >&6; }
2f1a1aea 4298else
27aba29a
JS
4299 { $as_echo "$as_me:$LINENO: result: no" >&5
4300$as_echo "no" >&6; }
2f1a1aea
FCE
4301fi
4302
7fbd9d09 4303
2f1a1aea
FCE
4304fi
4305if test -z "$ac_cv_prog_CC"; then
4306 ac_ct_CC=$CC
4307 # Extract the first word of "gcc", so it can be a program name with args.
4308set dummy gcc; ac_word=$2
27aba29a
JS
4309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4310$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 4311if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27aba29a 4312 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4313else
4314 if test -n "$ac_ct_CC"; then
4315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316else
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4324 ac_cv_prog_ac_ct_CC="gcc"
27aba29a 4325 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4326 break 2
4327 fi
4328done
4329done
7fbd9d09 4330IFS=$as_save_IFS
2f1a1aea
FCE
4331
4332fi
4333fi
4334ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335if test -n "$ac_ct_CC"; then
27aba29a
JS
4336 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4337$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 4338else
27aba29a
JS
4339 { $as_echo "$as_me:$LINENO: result: no" >&5
4340$as_echo "no" >&6; }
2f1a1aea
FCE
4341fi
4342
7fbd9d09
FCE
4343 if test "x$ac_ct_CC" = x; then
4344 CC=""
4345 else
4346 case $cross_compiling:$ac_tool_warned in
4347yes:)
27aba29a
JS
4348{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
4350ac_tool_warned=yes ;;
4351esac
4352 CC=$ac_ct_CC
4353 fi
2f1a1aea
FCE
4354else
4355 CC="$ac_cv_prog_CC"
4356fi
4357
4358if test -z "$CC"; then
7fbd9d09
FCE
4359 if test -n "$ac_tool_prefix"; then
4360 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2f1a1aea 4361set dummy ${ac_tool_prefix}cc; ac_word=$2
27aba29a
JS
4362{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4363$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 4364if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 4365 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4366else
4367 if test -n "$CC"; then
4368 ac_cv_prog_CC="$CC" # Let the user override the test.
4369else
4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH
4372do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4377 ac_cv_prog_CC="${ac_tool_prefix}cc"
27aba29a 4378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4379 break 2
4380 fi
4381done
4382done
7fbd9d09 4383IFS=$as_save_IFS
2f1a1aea
FCE
4384
4385fi
4386fi
4387CC=$ac_cv_prog_CC
4388if test -n "$CC"; then
27aba29a
JS
4389 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4390$as_echo "$CC" >&6; }
818ba2bc 4391else
27aba29a
JS
4392 { $as_echo "$as_me:$LINENO: result: no" >&5
4393$as_echo "no" >&6; }
818ba2bc
MW
4394fi
4395
818ba2bc 4396
7fbd9d09 4397 fi
8ae7a94a
FCE
4398fi
4399if test -z "$CC"; then
4400 # Extract the first word of "cc", so it can be a program name with args.
4401set dummy cc; ac_word=$2
27aba29a
JS
4402{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4403$as_echo_n "checking for $ac_word... " >&6; }
8ae7a94a 4404if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 4405 $as_echo_n "(cached) " >&6
8ae7a94a
FCE
4406else
4407 if test -n "$CC"; then
2f1a1aea
FCE
4408 ac_cv_prog_CC="$CC" # Let the user override the test.
4409else
4410 ac_prog_rejected=no
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea
FCE
4418 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4419 ac_prog_rejected=yes
4420 continue
4421 fi
4422 ac_cv_prog_CC="cc"
27aba29a 4423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4424 break 2
4425 fi
4426done
4427done
7fbd9d09 4428IFS=$as_save_IFS
2f1a1aea
FCE
4429
4430if test $ac_prog_rejected = yes; then
4431 # We found a bogon in the path, so make sure we never use it.
4432 set dummy $ac_cv_prog_CC
4433 shift
4434 if test $# != 0; then
4435 # We chose a different compiler from the bogus one.
4436 # However, it has the same basename, so the bogon will be chosen
4437 # first if we set CC to just the basename; use the full file name.
4438 shift
4439 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4440 fi
4441fi
4442fi
4443fi
4444CC=$ac_cv_prog_CC
4445if test -n "$CC"; then
27aba29a
JS
4446 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4447$as_echo "$CC" >&6; }
2f1a1aea 4448else
27aba29a
JS
4449 { $as_echo "$as_me:$LINENO: result: no" >&5
4450$as_echo "no" >&6; }
2f1a1aea
FCE
4451fi
4452
7fbd9d09 4453
2f1a1aea
FCE
4454fi
4455if test -z "$CC"; then
4456 if test -n "$ac_tool_prefix"; then
7fbd9d09 4457 for ac_prog in cl.exe
2f1a1aea
FCE
4458 do
4459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4460set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27aba29a
JS
4461{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4462$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 4463if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 4464 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4465else
4466 if test -n "$CC"; then
4467 ac_cv_prog_CC="$CC" # Let the user override the test.
4468else
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4476 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
27aba29a 4477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4478 break 2
4479 fi
4480done
4481done
7fbd9d09 4482IFS=$as_save_IFS
2f1a1aea
FCE
4483
4484fi
4485fi
4486CC=$ac_cv_prog_CC
4487if test -n "$CC"; then
27aba29a
JS
4488 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4489$as_echo "$CC" >&6; }
2f1a1aea 4490else
27aba29a
JS
4491 { $as_echo "$as_me:$LINENO: result: no" >&5
4492$as_echo "no" >&6; }
2f1a1aea
FCE
4493fi
4494
7fbd9d09 4495
2f1a1aea
FCE
4496 test -n "$CC" && break
4497 done
4498fi
4499if test -z "$CC"; then
4500 ac_ct_CC=$CC
7fbd9d09 4501 for ac_prog in cl.exe
2f1a1aea
FCE
4502do
4503 # Extract the first word of "$ac_prog", so it can be a program name with args.
4504set dummy $ac_prog; ac_word=$2
27aba29a
JS
4505{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4506$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 4507if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27aba29a 4508 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4509else
4510 if test -n "$ac_ct_CC"; then
4511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4520 ac_cv_prog_ac_ct_CC="$ac_prog"
27aba29a 4521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4522 break 2
4523 fi
4524done
4525done
7fbd9d09 4526IFS=$as_save_IFS
2f1a1aea
FCE
4527
4528fi
4529fi
4530ac_ct_CC=$ac_cv_prog_ac_ct_CC
4531if test -n "$ac_ct_CC"; then
27aba29a
JS
4532 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4533$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 4534else
27aba29a
JS
4535 { $as_echo "$as_me:$LINENO: result: no" >&5
4536$as_echo "no" >&6; }
2f1a1aea
FCE
4537fi
4538
7fbd9d09 4539
2f1a1aea
FCE
4540 test -n "$ac_ct_CC" && break
4541done
4542
7fbd9d09
FCE
4543 if test "x$ac_ct_CC" = x; then
4544 CC=""
4545 else
4546 case $cross_compiling:$ac_tool_warned in
4547yes:)
27aba29a
JS
4548{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
4550ac_tool_warned=yes ;;
4551esac
4552 CC=$ac_ct_CC
4553 fi
2f1a1aea
FCE
4554fi
4555
4556fi
4557
4558
27aba29a
JS
4559test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4561{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2f1a1aea 4562See \`config.log' for more details." >&5
27aba29a 4563$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2f1a1aea 4564See \`config.log' for more details." >&2;}
27aba29a 4565 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
4566
4567# Provide some information about the compiler.
27aba29a
JS
4568$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4569set X $ac_compile
4570ac_compiler=$2
7fbd9d09
FCE
4571{ (ac_try="$ac_compiler --version >&5"
4572case "(($ac_try" in
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4575esac
27aba29a
JS
4576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4577$as_echo "$ac_try_echo") >&5
7fbd9d09 4578 (eval "$ac_compiler --version >&5") 2>&5
2f1a1aea 4579 ac_status=$?
27aba29a 4580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 4581 (exit $ac_status); }
7fbd9d09
FCE
4582{ (ac_try="$ac_compiler -v >&5"
4583case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586esac
27aba29a
JS
4587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4588$as_echo "$ac_try_echo") >&5
7fbd9d09 4589 (eval "$ac_compiler -v >&5") 2>&5
2f1a1aea 4590 ac_status=$?
27aba29a 4591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 4592 (exit $ac_status); }
7fbd9d09
FCE
4593{ (ac_try="$ac_compiler -V >&5"
4594case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597esac
27aba29a
JS
4598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599$as_echo "$ac_try_echo") >&5
7fbd9d09 4600 (eval "$ac_compiler -V >&5") 2>&5
2f1a1aea 4601 ac_status=$?
27aba29a 4602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea
FCE
4603 (exit $ac_status); }
4604
27aba29a
JS
4605{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4606$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2f1a1aea 4607if test "${ac_cv_c_compiler_gnu+set}" = set; then
27aba29a 4608 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4609else
4610 cat >conftest.$ac_ext <<_ACEOF
4611/* confdefs.h. */
4612_ACEOF
4613cat confdefs.h >>conftest.$ac_ext
4614cat >>conftest.$ac_ext <<_ACEOF
4615/* end confdefs.h. */
4616
4617int
4618main ()
4619{
4620#ifndef __GNUC__
4621 choke me
4622#endif
4623
4624 ;
4625 return 0;
4626}
4627_ACEOF
4628rm -f conftest.$ac_objext
7fbd9d09
FCE
4629if { (ac_try="$ac_compile"
4630case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633esac
27aba29a
JS
4634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4635$as_echo "$ac_try_echo") >&5
7fbd9d09 4636 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
4637 ac_status=$?
4638 grep -v '^ *+' conftest.er1 >conftest.err
4639 rm -f conftest.er1
4640 cat conftest.err >&5
27aba29a 4641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4642 (exit $ac_status); } && {
4643 test -z "$ac_c_werror_flag" ||
4644 test ! -s conftest.err
4645 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
4646 ac_compiler_gnu=yes
4647else
27aba29a 4648 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4649sed 's/^/| /' conftest.$ac_ext >&5
4650
7fbd9d09 4651 ac_compiler_gnu=no
2f1a1aea 4652fi
7fbd9d09
FCE
4653
4654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
4655ac_cv_c_compiler_gnu=$ac_compiler_gnu
4656
4657fi
27aba29a
JS
4658{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4659$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4660if test $ac_compiler_gnu = yes; then
4661 GCC=yes
4662else
4663 GCC=
4664fi
2f1a1aea
FCE
4665ac_test_CFLAGS=${CFLAGS+set}
4666ac_save_CFLAGS=$CFLAGS
27aba29a
JS
4667{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4668$as_echo_n "checking whether $CC accepts -g... " >&6; }
2f1a1aea 4669if test "${ac_cv_prog_cc_g+set}" = set; then
27aba29a 4670 $as_echo_n "(cached) " >&6
2f1a1aea 4671else
7fbd9d09
FCE
4672 ac_save_c_werror_flag=$ac_c_werror_flag
4673 ac_c_werror_flag=yes
4674 ac_cv_prog_cc_g=no
4675 CFLAGS="-g"
4676 cat >conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4677/* confdefs.h. */
4678_ACEOF
4679cat confdefs.h >>conftest.$ac_ext
4680cat >>conftest.$ac_ext <<_ACEOF
4681/* end confdefs.h. */
4682
4683int
4684main ()
4685{
4686
4687 ;
4688 return 0;
4689}
4690_ACEOF
4691rm -f conftest.$ac_objext
7fbd9d09
FCE
4692if { (ac_try="$ac_compile"
4693case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696esac
27aba29a
JS
4697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4698$as_echo "$ac_try_echo") >&5
7fbd9d09 4699 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
27aba29a 4704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4705 (exit $ac_status); } && {
4706 test -z "$ac_c_werror_flag" ||
4707 test ! -s conftest.err
4708 } && test -s conftest.$ac_objext; then
4709 ac_cv_prog_cc_g=yes
4710else
27aba29a 4711 $as_echo "$as_me: failed program was:" >&5
7fbd9d09
FCE
4712sed 's/^/| /' conftest.$ac_ext >&5
4713
4714 CFLAGS=""
4715 cat >conftest.$ac_ext <<_ACEOF
4716/* confdefs.h. */
4717_ACEOF
4718cat confdefs.h >>conftest.$ac_ext
4719cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h. */
4721
4722int
4723main ()
4724{
4725
4726 ;
4727 return 0;
4728}
4729_ACEOF
4730rm -f conftest.$ac_objext
4731if { (ac_try="$ac_compile"
4732case "(($ac_try" in
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4735esac
27aba29a
JS
4736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4737$as_echo "$ac_try_echo") >&5
7fbd9d09 4738 (eval "$ac_compile") 2>conftest.er1
5e0d2ebf 4739 ac_status=$?
7fbd9d09
FCE
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
27aba29a 4743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4744 (exit $ac_status); } && {
4745 test -z "$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest.$ac_objext; then
4748 :
4749else
27aba29a 4750 $as_echo "$as_me: failed program was:" >&5
7fbd9d09
FCE
4751sed 's/^/| /' conftest.$ac_ext >&5
4752
4753 ac_c_werror_flag=$ac_save_c_werror_flag
4754 CFLAGS="-g"
4755 cat >conftest.$ac_ext <<_ACEOF
4756/* confdefs.h. */
4757_ACEOF
4758cat confdefs.h >>conftest.$ac_ext
4759cat >>conftest.$ac_ext <<_ACEOF
4760/* end confdefs.h. */
4761
4762int
4763main ()
4764{
4765
4766 ;
4767 return 0;
4768}
4769_ACEOF
4770rm -f conftest.$ac_objext
4771if { (ac_try="$ac_compile"
4772case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775esac
27aba29a
JS
4776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4777$as_echo "$ac_try_echo") >&5
7fbd9d09 4778 (eval "$ac_compile") 2>conftest.er1
5e0d2ebf 4779 ac_status=$?
7fbd9d09
FCE
4780 grep -v '^ *+' conftest.er1 >conftest.err
4781 rm -f conftest.er1
4782 cat conftest.err >&5
27aba29a 4783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4784 (exit $ac_status); } && {
4785 test -z "$ac_c_werror_flag" ||
4786 test ! -s conftest.err
4787 } && test -s conftest.$ac_objext; then
5e0d2ebf
DS
4788 ac_cv_prog_cc_g=yes
4789else
27aba29a 4790 $as_echo "$as_me: failed program was:" >&5
5e0d2ebf
DS
4791sed 's/^/| /' conftest.$ac_ext >&5
4792
7fbd9d09
FCE
4793
4794fi
4795
4796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797fi
4798
4799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e0d2ebf 4800fi
7fbd9d09
FCE
4801
4802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 ac_c_werror_flag=$ac_save_c_werror_flag
70d28673 4804fi
27aba29a
JS
4805{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4806$as_echo "$ac_cv_prog_cc_g" >&6; }
70d28673
DS
4807if test "$ac_test_CFLAGS" = set; then
4808 CFLAGS=$ac_save_CFLAGS
4809elif test $ac_cv_prog_cc_g = yes; then
4810 if test "$GCC" = yes; then
4811 CFLAGS="-g -O2"
4812 else
4813 CFLAGS="-g"
4814 fi
4815else
4816 if test "$GCC" = yes; then
4817 CFLAGS="-O2"
4818 else
4819 CFLAGS=
4820 fi
4821fi
27aba29a
JS
4822{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4823$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7fbd9d09 4824if test "${ac_cv_prog_cc_c89+set}" = set; then
27aba29a 4825 $as_echo_n "(cached) " >&6
70d28673 4826else
7fbd9d09 4827 ac_cv_prog_cc_c89=no
70d28673
DS
4828ac_save_CC=$CC
4829cat >conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4830/* confdefs.h. */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h. */
70d28673
DS
4835#include <stdarg.h>
4836#include <stdio.h>
4837#include <sys/types.h>
4838#include <sys/stat.h>
4839/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4840struct buf { int x; };
4841FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842static char *e (p, i)
4843 char **p;
4844 int i;
4845{
4846 return p[i];
4847}
4848static char *f (char * (*g) (char **, int), char **p, ...)
4849{
4850 char *s;
4851 va_list v;
4852 va_start (v,p);
4853 s = g (p, va_arg (v,int));
4854 va_end (v);
4855 return s;
4856}
4857
4858/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4859 function prototypes and stuff, but not '\xHH' hex character constants.
4860 These don't provoke an error unfortunately, instead are silently treated
7fbd9d09 4861 as 'x'. The following induces an error, until -std is added to get
70d28673
DS
4862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4863 array size at least. It's necessary to write '\x00'==0 to get something
7fbd9d09 4864 that's true only with -std. */
70d28673
DS
4865int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4866
7fbd9d09
FCE
4867/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4868 inside strings and character constants. */
4869#define FOO(x) 'x'
4870int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4871
70d28673
DS
4872int test (int i, double x);
4873struct s1 {int (*f) (int a);};
4874struct s2 {int (*f) (double a);};
4875int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4876int argc;
4877char **argv;
2f1a1aea
FCE
4878int
4879main ()
4880{
70d28673 4881return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2f1a1aea
FCE
4882 ;
4883 return 0;
4884}
4885_ACEOF
7fbd9d09
FCE
4886for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
70d28673
DS
4888do
4889 CC="$ac_save_CC $ac_arg"
4890 rm -f conftest.$ac_objext
7fbd9d09
FCE
4891if { (ac_try="$ac_compile"
4892case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895esac
27aba29a
JS
4896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4897$as_echo "$ac_try_echo") >&5
7fbd9d09 4898 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
27aba29a 4903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4904 (exit $ac_status); } && {
4905 test -z "$ac_c_werror_flag" ||
4906 test ! -s conftest.err
4907 } && test -s conftest.$ac_objext; then
4908 ac_cv_prog_cc_c89=$ac_arg
818ba2bc 4909else
27aba29a 4910 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4911sed 's/^/| /' conftest.$ac_ext >&5
4912
7fbd9d09 4913
2f1a1aea 4914fi
7fbd9d09
FCE
4915
4916rm -f core conftest.err conftest.$ac_objext
4917 test "x$ac_cv_prog_cc_c89" != "xno" && break
2f1a1aea 4918done
7fbd9d09 4919rm -f conftest.$ac_ext
70d28673
DS
4920CC=$ac_save_CC
4921
2f1a1aea 4922fi
7fbd9d09
FCE
4923# AC_CACHE_VAL
4924case "x$ac_cv_prog_cc_c89" in
4925 x)
27aba29a
JS
4926 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4927$as_echo "none needed" >&6; } ;;
7fbd9d09 4928 xno)
27aba29a
JS
4929 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4930$as_echo "unsupported" >&6; } ;;
70d28673 4931 *)
7fbd9d09 4932 CC="$CC $ac_cv_prog_cc_c89"
27aba29a
JS
4933 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4934$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
70d28673 4935esac
2f1a1aea 4936
2f1a1aea 4937
2f1a1aea
FCE
4938ac_ext=c
4939ac_cpp='$CPP $CPPFLAGS'
4940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943
4944depcc="$CC" am_compiler_list=
4945
27aba29a
JS
4946{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4947$as_echo_n "checking dependency style of $depcc... " >&6; }
2f1a1aea 4948if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
27aba29a 4949 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4950else
4951 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4952 # We make a subdir and do the tests there. Otherwise we can end up
4953 # making bogus files that we don't know about and never remove. For
4954 # instance it was reported that on HP-UX the gcc test will end up
4955 # making a dummy file named `D' -- because `-MD' means `put the output
4956 # in D'.
4957 mkdir conftest.dir
4958 # Copy depcomp to subdir because otherwise we won't find it if we're
4959 # using a relative directory.
4960 cp "$am_depcomp" conftest.dir
4961 cd conftest.dir
4962 # We will build objects and dependencies in a subdirectory because
4963 # it helps to detect inapplicable dependency modes. For instance
4964 # both Tru64's cc and ICC support -MD to output dependencies as a
4965 # side effect of compilation, but ICC will put the dependencies in
4966 # the current directory while Tru64 will put them in the object
4967 # directory.
4968 mkdir sub
4969
4970 am_cv_CC_dependencies_compiler_type=none
4971 if test "$am_compiler_list" = ""; then
4972 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4973 fi
4974 for depmode in $am_compiler_list; do
4975 # Setup a source with many dependencies, because some compilers
4976 # like to wrap large dependency lists on column 80 (with \), and
4977 # we should not choose a depcomp mode which is confused by this.
4978 #
4979 # We need to recreate these files for each test, as the compiler may
4980 # overwrite some of them when testing with obscure command lines.
4981 # This happens at least with the AIX C compiler.
4982 : > sub/conftest.c
4983 for i in 1 2 3 4 5 6; do
4984 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4985 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4986 # Solaris 8's {/usr,}/bin/sh.
4987 touch sub/conftst$i.h
4988 done
4989 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4990
4991 case $depmode in
4992 nosideeffect)
4993 # after this tag, mechanisms are not by side-effect, so they'll
4994 # only be used when explicitly requested
4995 if test "x$enable_dependency_tracking" = xyes; then
4996 continue
4997 else
4998 break
4999 fi
5000 ;;
5001 none) break ;;
5002 esac
5003 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5004 # mode. It turns out that the SunPro C++ compiler does not properly
5005 # handle `-M -o', and we need to detect this.
5006 if depmode=$depmode \
5007 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5008 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5009 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5010 >/dev/null 2>conftest.err &&
7fbd9d09 5011 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
5012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5013 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5015 # icc doesn't choke on unknown options, it will just issue warnings
5016 # or remarks (even with -Werror). So we grep stderr for any message
5017 # that says an option was ignored or not supported.
5018 # When given -MP, icc 7.0 and 7.1 complain thusly:
5019 # icc: Command line warning: ignoring option '-M'; no argument required
5020 # The diagnosis changed in icc 8.0:
5021 # icc: Command line remark: option '-MP' not supported
5022 if (grep 'ignoring option' conftest.err ||
5023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5024 am_cv_CC_dependencies_compiler_type=$depmode
5025 break
5026 fi
5027 fi
5028 done
5029
5030 cd ..
5031 rm -rf conftest.dir
5032else
5033 am_cv_CC_dependencies_compiler_type=none
5034fi
5035
5036fi
27aba29a
JS
5037{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5038$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
5039CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5040
7fbd9d09 5041 if
2f1a1aea
FCE
5042 test "x$enable_dependency_tracking" != xno \
5043 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5044 am__fastdepCC_TRUE=
5045 am__fastdepCC_FALSE='#'
5046else
5047 am__fastdepCC_TRUE='#'
5048 am__fastdepCC_FALSE=
5049fi
5050
5051
5052
5053am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5054
8ae7a94a 5055if test "x$CC" != xcc; then
27aba29a
JS
5056 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5057$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
8ae7a94a 5058else
27aba29a
JS
5059 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5060$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
8ae7a94a 5061fi
27aba29a 5062set dummy $CC; ac_cc=`$as_echo "$2" |
8ae7a94a 5063 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7fbd9d09 5064if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 5065 $as_echo_n "(cached) " >&6
8ae7a94a
FCE
5066else
5067 cat >conftest.$ac_ext <<_ACEOF
5068/* confdefs.h. */
5069_ACEOF
5070cat confdefs.h >>conftest.$ac_ext
5071cat >>conftest.$ac_ext <<_ACEOF
5072/* end confdefs.h. */
5073
5074int
5075main ()
5076{
5077
5078 ;
5079 return 0;
5080}
5081_ACEOF
5082# Make sure it works both with $CC and with simple cc.
5083# We do the test twice because some compilers refuse to overwrite an
5084# existing .o file with -o, though they will create one.
7fbd9d09
FCE
5085ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5086rm -f conftest2.*
5087if { (case "(($ac_try" in
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5090esac
27aba29a
JS
5091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5092$as_echo "$ac_try_echo") >&5
7fbd9d09 5093 (eval "$ac_try") 2>&5
8ae7a94a 5094 ac_status=$?
27aba29a 5095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8ae7a94a 5096 (exit $ac_status); } &&
7fbd9d09
FCE
5097 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100esac
27aba29a
JS
5101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5102$as_echo "$ac_try_echo") >&5
7fbd9d09 5103 (eval "$ac_try") 2>&5
8ae7a94a 5104 ac_status=$?
27aba29a 5105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8ae7a94a
FCE
5106 (exit $ac_status); };
5107then
5108 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5109 if test "x$CC" != xcc; then
5110 # Test first that cc exists at all.
5111 if { ac_try='cc -c conftest.$ac_ext >&5'
7fbd9d09
FCE
5112 { (case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115esac
27aba29a
JS
5116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5117$as_echo "$ac_try_echo") >&5
7fbd9d09 5118 (eval "$ac_try") 2>&5
8ae7a94a 5119 ac_status=$?
27aba29a 5120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8ae7a94a 5121 (exit $ac_status); }; }; then
7fbd9d09
FCE
5122 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5123 rm -f conftest2.*
5124 if { (case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127esac
27aba29a
JS
5128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5129$as_echo "$ac_try_echo") >&5
7fbd9d09 5130 (eval "$ac_try") 2>&5
8ae7a94a 5131 ac_status=$?
27aba29a 5132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8ae7a94a 5133 (exit $ac_status); } &&
7fbd9d09
FCE
5134 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5137esac
27aba29a
JS
5138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5139$as_echo "$ac_try_echo") >&5
7fbd9d09 5140 (eval "$ac_try") 2>&5
8ae7a94a 5141 ac_status=$?
27aba29a 5142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8ae7a94a
FCE
5143 (exit $ac_status); };
5144 then
5145 # cc works too.
5146 :
5147 else
5148 # cc exists but doesn't like -o.
5149 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5150 fi
5151 fi
5152 fi
5153else
5154 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5155fi
7fbd9d09 5156rm -f core conftest*
8ae7a94a
FCE
5157
5158fi
7fbd9d09 5159if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
27aba29a
JS
5160 { $as_echo "$as_me:$LINENO: result: yes" >&5
5161$as_echo "yes" >&6; }
8ae7a94a 5162else
27aba29a
JS
5163 { $as_echo "$as_me:$LINENO: result: no" >&5
5164$as_echo "no" >&6; }
8ae7a94a
FCE
5165
5166cat >>confdefs.h <<\_ACEOF
5167#define NO_MINUS_C_MINUS_O 1
5168_ACEOF
5169
5170fi
5171
5172# FIXME: we rely on the cache variable name because
5173# there is no other way.
5174set dummy $CC
5175ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5176if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5177 # Losing compiler, so override with the script.
5178 # FIXME: It is wrong to rewrite CC.
5179 # But if we don't then we get into trouble of one sort or another.
5180 # A longer-term fix would be to have automake use am__CC in this case,
5181 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5182 CC="$am_aux_dir/compile $CC"
5183fi
5184
7fbd9d09 5185
27aba29a
JS
5186{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
5187$as_echo_n "checking for function prototypes... " >&6; }
7fbd9d09 5188if test "$ac_cv_prog_cc_c89" != no; then
27aba29a
JS
5189 { $as_echo "$as_me:$LINENO: result: yes" >&5
5190$as_echo "yes" >&6; }
2f1a1aea
FCE
5191
5192cat >>confdefs.h <<\_ACEOF
5193#define PROTOTYPES 1
5194_ACEOF
5195
5196
5197cat >>confdefs.h <<\_ACEOF
5198#define __PROTOTYPES 1
5199_ACEOF
5200
5201else
27aba29a
JS
5202 { $as_echo "$as_me:$LINENO: result: no" >&5
5203$as_echo "no" >&6; }
7fbd9d09
FCE
5204fi
5205
5206
5207
27aba29a
JS
5208{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5209$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7fbd9d09 5210if test "${ac_cv_path_GREP+set}" = set; then
27aba29a 5211 $as_echo_n "(cached) " >&6
7fbd9d09 5212else
27aba29a 5213 if test -z "$GREP"; then
7fbd9d09 5214 ac_path_GREP_found=false
27aba29a
JS
5215 # Loop through the user's path and test for each of PROGNAME-LIST
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7fbd9d09
FCE
5217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5218do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_prog in grep ggrep; do
27aba29a
JS
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5224 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5225# Check for GNU ac_path_GREP and select it if it is found.
7fbd9d09
FCE
5226 # Check for GNU $ac_path_GREP
5227case `"$ac_path_GREP" --version 2>&1` in
5228*GNU*)
5229 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5230*)
5231 ac_count=0
27aba29a 5232 $as_echo_n 0123456789 >"conftest.in"
7fbd9d09
FCE
5233 while :
5234 do
5235 cat "conftest.in" "conftest.in" >"conftest.tmp"
5236 mv "conftest.tmp" "conftest.in"
5237 cp "conftest.in" "conftest.nl"
27aba29a 5238 $as_echo 'GREP' >> "conftest.nl"
7fbd9d09
FCE
5239 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5241 ac_count=`expr $ac_count + 1`
5242 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5243 # Best one so far, save it but keep looking for a better one
5244 ac_cv_path_GREP="$ac_path_GREP"
5245 ac_path_GREP_max=$ac_count
5246 fi
5247 # 10*(2^10) chars as input seems more than enough
5248 test $ac_count -gt 10 && break
5249 done
5250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5251esac
5252
27aba29a
JS
5253 $ac_path_GREP_found && break 3
5254 done
7fbd9d09
FCE
5255 done
5256done
7fbd9d09 5257IFS=$as_save_IFS
27aba29a
JS
5258 if test -z "$ac_cv_path_GREP"; then
5259 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5260$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7fbd9d09 5261 { (exit 1); exit 1; }; }
27aba29a 5262 fi
7fbd9d09
FCE
5263else
5264 ac_cv_path_GREP=$GREP
70d28673
DS
5265fi
5266
7fbd9d09 5267fi
27aba29a
JS
5268{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5269$as_echo "$ac_cv_path_GREP" >&6; }
7fbd9d09
FCE
5270 GREP="$ac_cv_path_GREP"
5271
70d28673 5272
27aba29a
JS
5273{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5274$as_echo_n "checking for egrep... " >&6; }
7fbd9d09 5275if test "${ac_cv_path_EGREP+set}" = set; then
27aba29a 5276 $as_echo_n "(cached) " >&6
7fbd9d09
FCE
5277else
5278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5279 then ac_cv_path_EGREP="$GREP -E"
5280 else
27aba29a 5281 if test -z "$EGREP"; then
7fbd9d09 5282 ac_path_EGREP_found=false
27aba29a
JS
5283 # Loop through the user's path and test for each of PROGNAME-LIST
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7fbd9d09
FCE
5285for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5286do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_prog in egrep; do
27aba29a
JS
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5292 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5293# Check for GNU ac_path_EGREP and select it if it is found.
7fbd9d09
FCE
5294 # Check for GNU $ac_path_EGREP
5295case `"$ac_path_EGREP" --version 2>&1` in
5296*GNU*)
5297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5298*)
5299 ac_count=0
27aba29a 5300 $as_echo_n 0123456789 >"conftest.in"
7fbd9d09
FCE
5301 while :
5302 do
5303 cat "conftest.in" "conftest.in" >"conftest.tmp"
5304 mv "conftest.tmp" "conftest.in"
5305 cp "conftest.in" "conftest.nl"
27aba29a 5306 $as_echo 'EGREP' >> "conftest.nl"
7fbd9d09
FCE
5307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5309 ac_count=`expr $ac_count + 1`
5310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5311 # Best one so far, save it but keep looking for a better one
5312 ac_cv_path_EGREP="$ac_path_EGREP"
5313 ac_path_EGREP_max=$ac_count
2f1a1aea 5314 fi
7fbd9d09
FCE
5315 # 10*(2^10) chars as input seems more than enough
5316 test $ac_count -gt 10 && break
5317 done
5318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5319esac
5320
27aba29a
JS
5321 $ac_path_EGREP_found && break 3
5322 done
7fbd9d09
FCE
5323 done
5324done
7fbd9d09 5325IFS=$as_save_IFS
27aba29a
JS
5326 if test -z "$ac_cv_path_EGREP"; then
5327 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5328$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7fbd9d09 5329 { (exit 1); exit 1; }; }
27aba29a 5330 fi
7fbd9d09
FCE
5331else
5332 ac_cv_path_EGREP=$EGREP
5333fi
5334
7fbd9d09 5335 fi
2f1a1aea 5336fi
27aba29a
JS
5337{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5338$as_echo "$ac_cv_path_EGREP" >&6; }
7fbd9d09 5339 EGREP="$ac_cv_path_EGREP"
2f1a1aea
FCE
5340
5341
27aba29a
JS
5342{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5343$as_echo_n "checking for ANSI C header files... " >&6; }
2f1a1aea 5344if test "${ac_cv_header_stdc+set}" = set; then
27aba29a 5345 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5346else
5347 cat >conftest.$ac_ext <<_ACEOF
5348/* confdefs.h. */
5349_ACEOF
5350cat confdefs.h >>conftest.$ac_ext
5351cat >>conftest.$ac_ext <<_ACEOF
5352/* end confdefs.h. */
5353#include <stdlib.h>
5354#include <stdarg.h>
5355#include <string.h>
5356#include <float.h>
5357
5358int
5359main ()
5360{
5361
5362 ;
5363 return 0;
5364}
5365_ACEOF
5366rm -f conftest.$ac_objext
7fbd9d09
FCE
5367if { (ac_try="$ac_compile"
5368case "(($ac_try" in
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5371esac
27aba29a
JS
5372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5373$as_echo "$ac_try_echo") >&5
7fbd9d09 5374 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
27aba29a 5379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
5380 (exit $ac_status); } && {
5381 test -z "$ac_c_werror_flag" ||
5382 test ! -s conftest.err
5383 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
5384 ac_cv_header_stdc=yes
5385else
27aba29a 5386 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
5387sed 's/^/| /' conftest.$ac_ext >&5
5388
7fbd9d09 5389 ac_cv_header_stdc=no
2f1a1aea 5390fi
7fbd9d09
FCE
5391
5392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
5393
5394if test $ac_cv_header_stdc = yes; then
5395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5396 cat >conftest.$ac_ext <<_ACEOF
5397/* confdefs.h. */
5398_ACEOF
5399cat confdefs.h >>conftest.$ac_ext
5400cat >>conftest.$ac_ext <<_ACEOF
5401/* end confdefs.h. */
5402#include <string.h>
5403
5404_ACEOF
5405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406 $EGREP "memchr" >/dev/null 2>&1; then
5407 :
5408else
5409 ac_cv_header_stdc=no
5410fi
5411rm -f conftest*
5412
5413fi
5414
5415if test $ac_cv_header_stdc = yes; then
5416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5417 cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
5423#include <stdlib.h>
5424
5425_ACEOF
5426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5427 $EGREP "free" >/dev/null 2>&1; then
5428 :
5429else
5430 ac_cv_header_stdc=no
5431fi
5432rm -f conftest*
5433
5434fi
5435
5436if test $ac_cv_header_stdc = yes; then
5437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5438 if test "$cross_compiling" = yes; then
5439 :
5440else
5441 cat >conftest.$ac_ext <<_ACEOF
5442/* confdefs.h. */
5443_ACEOF
5444cat confdefs.h >>conftest.$ac_ext
5445cat >>conftest.$ac_ext <<_ACEOF
5446/* end confdefs.h. */
5447#include <ctype.h>
7fbd9d09 5448#include <stdlib.h>
2f1a1aea
FCE
5449#if ((' ' & 0x0FF) == 0x020)
5450# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5451# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5452#else
5453# define ISLOWER(c) \
5454 (('a' <= (c) && (c) <= 'i') \
5455 || ('j' <= (c) && (c) <= 'r') \
5456 || ('s' <= (c) && (c) <= 'z'))
5457# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5458#endif
5459
5460#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5461int
5462main ()
5463{
5464 int i;
5465 for (i = 0; i < 256; i++)
5466 if (XOR (islower (i), ISLOWER (i))
5467 || toupper (i) != TOUPPER (i))
7fbd9d09
FCE
5468 return 2;
5469 return 0;
2f1a1aea
FCE
5470}
5471_ACEOF
5472rm -f conftest$ac_exeext
7fbd9d09
FCE
5473if { (ac_try="$ac_link"
5474case "(($ac_try" in
5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476 *) ac_try_echo=$ac_try;;
5477esac
27aba29a
JS
5478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5479$as_echo "$ac_try_echo") >&5
7fbd9d09 5480 (eval "$ac_link") 2>&5
2f1a1aea 5481 ac_status=$?
27aba29a 5482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 5483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7fbd9d09
FCE
5484 { (case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
27aba29a
JS
5488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5489$as_echo "$ac_try_echo") >&5
7fbd9d09 5490 (eval "$ac_try") 2>&5
2f1a1aea 5491 ac_status=$?
27aba29a 5492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea
FCE
5493 (exit $ac_status); }; }; then
5494 :
5495else
27aba29a
JS
5496 $as_echo "$as_me: program exited with status $ac_status" >&5
5497$as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
5498sed 's/^/| /' conftest.$ac_ext >&5
5499
5500( exit $ac_status )
5501ac_cv_header_stdc=no
5502fi
27aba29a 5503rm -rf conftest.dSYM
7fbd9d09 5504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2f1a1aea 5505fi
7fbd9d09
FCE
5506
5507
2f1a1aea
FCE
5508fi
5509fi
27aba29a
JS
5510{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5511$as_echo "$ac_cv_header_stdc" >&6; }
2f1a1aea
FCE
5512if test $ac_cv_header_stdc = yes; then
5513
5514cat >>confdefs.h <<\_ACEOF
5515#define STDC_HEADERS 1
5516_ACEOF
5517
5518fi
5519
5520# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5531 inttypes.h stdint.h unistd.h
5532do
27aba29a
JS
5533as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5534{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5535$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 5536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 5537 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5538else
5539 cat >conftest.$ac_ext <<_ACEOF
5540/* confdefs.h. */
5541_ACEOF
5542cat confdefs.h >>conftest.$ac_ext
5543cat >>conftest.$ac_ext <<_ACEOF
5544/* end confdefs.h. */
5545$ac_includes_default
5546
5547#include <$ac_header>
5548_ACEOF
5549rm -f conftest.$ac_objext
7fbd9d09
FCE
5550if { (ac_try="$ac_compile"
5551case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554esac
27aba29a
JS
5555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5556$as_echo "$ac_try_echo") >&5
7fbd9d09 5557 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
27aba29a 5562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
5563 (exit $ac_status); } && {
5564 test -z "$ac_c_werror_flag" ||
5565 test ! -s conftest.err
5566 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
5567 eval "$as_ac_Header=yes"
5568else
27aba29a 5569 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
5570sed 's/^/| /' conftest.$ac_ext >&5
5571
7fbd9d09 5572 eval "$as_ac_Header=no"
2f1a1aea 5573fi
7fbd9d09
FCE
5574
5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea 5576fi
27aba29a
JS
5577ac_res=`eval 'as_val=${'$as_ac_Header'}
5578 $as_echo "$as_val"'`
5579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5580$as_echo "$ac_res" >&6; }
5581as_val=`eval 'as_val=${'$as_ac_Header'}
5582 $as_echo "$as_val"'`
5583 if test "x$as_val" = x""yes; then
2f1a1aea 5584 cat >>confdefs.h <<_ACEOF
27aba29a 5585#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2f1a1aea
FCE
5586_ACEOF
5587
5588fi
5589
5590done
5591
5592
5593
5594if test "$ac_cv_prog_cc_stdc" != no; then
5595 U= ANSI2KNR=
5596else
5597 U=_ ANSI2KNR=./ansi2knr
5598fi
5599# Ensure some checks needed by ansi2knr itself.
5600
5601
5602for ac_header in string.h
5603do
27aba29a 5604as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7fbd9d09 5605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a
JS
5606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5607$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 5608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 5609 $as_echo_n "(cached) " >&6
818ba2bc 5610fi
27aba29a
JS
5611ac_res=`eval 'as_val=${'$as_ac_Header'}
5612 $as_echo "$as_val"'`
5613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5614$as_echo "$ac_res" >&6; }
2f1a1aea
FCE
5615else
5616 # Is the header compilable?
27aba29a
JS
5617{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5618$as_echo_n "checking $ac_header usability... " >&6; }
2f1a1aea
FCE
5619cat >conftest.$ac_ext <<_ACEOF
5620/* confdefs.h. */
5621_ACEOF
5622cat confdefs.h >>conftest.$ac_ext
5623cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h. */
5625$ac_includes_default
5626#include <$ac_header>
5627_ACEOF
5628rm -f conftest.$ac_objext
7fbd9d09
FCE
5629if { (ac_try="$ac_compile"
5630case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633esac
27aba29a
JS
5634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5635$as_echo "$ac_try_echo") >&5
7fbd9d09 5636 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
27aba29a 5641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
5642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
5646 ac_header_compiler=yes
5647else
27aba29a 5648 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
5649sed 's/^/| /' conftest.$ac_ext >&5
5650
7fbd9d09 5651 ac_header_compiler=no
2f1a1aea 5652fi
7fbd9d09
FCE
5653
5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27aba29a
JS
5655{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5656$as_echo "$ac_header_compiler" >&6; }
2f1a1aea
FCE
5657
5658# Is the header present?
27aba29a
JS
5659{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5660$as_echo_n "checking $ac_header presence... " >&6; }
2f1a1aea
FCE
5661cat >conftest.$ac_ext <<_ACEOF
5662/* confdefs.h. */
5663_ACEOF
5664cat confdefs.h >>conftest.$ac_ext
5665cat >>conftest.$ac_ext <<_ACEOF
5666/* end confdefs.h. */
5667#include <$ac_header>
5668_ACEOF
7fbd9d09
FCE
5669if { (ac_try="$ac_cpp conftest.$ac_ext"
5670case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673esac
27aba29a
JS
5674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5675$as_echo "$ac_try_echo") >&5
7fbd9d09 5676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2f1a1aea
FCE
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
27aba29a 5681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
5682 (exit $ac_status); } >/dev/null && {
5683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5684 test ! -s conftest.err
5685 }; then
2f1a1aea
FCE
5686 ac_header_preproc=yes
5687else
27aba29a 5688 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
5689sed 's/^/| /' conftest.$ac_ext >&5
5690
5691 ac_header_preproc=no
5692fi
7fbd9d09 5693
2f1a1aea 5694rm -f conftest.err conftest.$ac_ext
27aba29a
JS
5695{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5696$as_echo "$ac_header_preproc" >&6; }
2f1a1aea
FCE
5697
5698# So? What about this header?
5699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5700 yes:no: )
27aba29a
JS
5701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5702$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5704$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2f1a1aea
FCE
5705 ac_header_preproc=yes
5706 ;;
5707 no:yes:* )
27aba29a
JS
5708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5709$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5711$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5713$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5715$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5717$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5719$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7fbd9d09 5720 ( cat <<\_ASBOX
2f1a1aea
FCE
5721## ------------------------------------------- ##
5722## Report this to systemtap@sources.redhat.com ##
5723## ------------------------------------------- ##
5724_ASBOX
7fbd9d09 5725 ) | sed "s/^/$as_me: WARNING: /" >&2
2f1a1aea
FCE
5726 ;;
5727esac
27aba29a
JS
5728{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5729$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 5730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 5731 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5732else
5733 eval "$as_ac_Header=\$ac_header_preproc"
5734fi
27aba29a
JS
5735ac_res=`eval 'as_val=${'$as_ac_Header'}
5736 $as_echo "$as_val"'`
5737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5738$as_echo "$ac_res" >&6; }
2f1a1aea
FCE
5739
5740fi
27aba29a
JS
5741as_val=`eval 'as_val=${'$as_ac_Header'}
5742 $as_echo "$as_val"'`
5743 if test "x$as_val" = x""yes; then
2f1a1aea 5744 cat >>confdefs.h <<_ACEOF
27aba29a 5745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2f1a1aea
FCE
5746_ACEOF
5747
5748fi
5749
5750done
5751
5752
2f1a1aea
FCE
5753if test -n "$ac_tool_prefix"; then
5754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5755set dummy ${ac_tool_prefix}ranlib; ac_word=$2
27aba29a
JS
5756{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5757$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 5758if test "${ac_cv_prog_RANLIB+set}" = set; then
27aba29a 5759 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5760else
5761 if test -n "$RANLIB"; then
5762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5763else
5764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 5770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 5771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
27aba29a 5772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5773 break 2
5774 fi
5775done
5776done
7fbd9d09 5777IFS=$as_save_IFS
2f1a1aea
FCE
5778
5779fi
5780fi
5781RANLIB=$ac_cv_prog_RANLIB
5782if test -n "$RANLIB"; then
27aba29a
JS
5783 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5784$as_echo "$RANLIB" >&6; }
2f1a1aea 5785else
27aba29a
JS
5786 { $as_echo "$as_me:$LINENO: result: no" >&5
5787$as_echo "no" >&6; }
2f1a1aea
FCE
5788fi
5789
7fbd9d09 5790
2f1a1aea
FCE
5791fi
5792if test -z "$ac_cv_prog_RANLIB"; then
5793 ac_ct_RANLIB=$RANLIB
5794 # Extract the first word of "ranlib", so it can be a program name with args.
5795set dummy ranlib; ac_word=$2
27aba29a
JS
5796{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5797$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 5798if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
27aba29a 5799 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5800else
5801 if test -n "$ac_ct_RANLIB"; then
5802 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 5811 ac_cv_prog_ac_ct_RANLIB="ranlib"
27aba29a 5812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5813 break 2
5814 fi
5815done
5816done
7fbd9d09 5817IFS=$as_save_IFS
2f1a1aea 5818
2f1a1aea
FCE
5819fi
5820fi
5821ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5822if test -n "$ac_ct_RANLIB"; then
27aba29a
JS
5823 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5824$as_echo "$ac_ct_RANLIB" >&6; }
2f1a1aea 5825else
27aba29a
JS
5826 { $as_echo "$as_me:$LINENO: result: no" >&5
5827$as_echo "no" >&6; }
2f1a1aea
FCE
5828fi
5829
7fbd9d09
FCE
5830 if test "x$ac_ct_RANLIB" = x; then
5831 RANLIB=":"
5832 else
5833 case $cross_compiling:$ac_tool_warned in
5834yes:)
27aba29a
JS
5835{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
5837ac_tool_warned=yes ;;
5838esac
5839 RANLIB=$ac_ct_RANLIB
5840 fi
2f1a1aea
FCE
5841else
5842 RANLIB="$ac_cv_prog_RANLIB"
5843fi
5844
5845
5846
5847# Find a good install program. We prefer a C program (faster),
5848# so one script is as good as another. But avoid the broken or
5849# incompatible versions:
5850# SysV /etc/install, /usr/sbin/install
5851# SunOS /usr/etc/install
5852# IRIX /sbin/install
5853# AIX /bin/install
5854# AmigaOS /C/install, which installs bootblocks on floppy discs
5855# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5856# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5857# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5858# OS/2's system install, which has a completely different semantic
5859# ./install, which can be erroneously created by make from ./install.sh.
27aba29a
JS
5860# Reject install programs that cannot install multiple files.
5861{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5862$as_echo_n "checking for a BSD-compatible install... " >&6; }
2f1a1aea
FCE
5863if test -z "$INSTALL"; then
5864if test "${ac_cv_path_install+set}" = set; then
27aba29a 5865 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5866else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 # Account for people who put trailing slashes in PATH elements.
5873case $as_dir/ in
5874 ./ | .// | /cC/* | \
5875 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5876 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5877 /usr/ucb/* ) ;;
5878 *)
5879 # OSF1 and SCO ODT 3.0 have their own names for install.
5880 # Don't use installbsd from OSF since it installs stuff as root
5881 # by default.
5882 for ac_prog in ginstall scoinst install; do
5883 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 5884 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2f1a1aea
FCE
5885 if test $ac_prog = install &&
5886 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5887 # AIX install. It has an incompatible calling convention.
5888 :
5889 elif test $ac_prog = install &&
5890 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5891 # program-specific install script used by HP pwplus--don't use.
5892 :
5893 else
27aba29a
JS
5894 rm -rf conftest.one conftest.two conftest.dir
5895 echo one > conftest.one
5896 echo two > conftest.two
5897 mkdir conftest.dir
5898 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5899 test -s conftest.one && test -s conftest.two &&
5900 test -s conftest.dir/conftest.one &&
5901 test -s conftest.dir/conftest.two
5902 then
5903 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5904 break 3
5905 fi
2f1a1aea
FCE
5906 fi
5907 fi
5908 done
5909 done
5910 ;;
5911esac
27aba29a 5912
2f1a1aea 5913done
7fbd9d09 5914IFS=$as_save_IFS
2f1a1aea 5915
27aba29a 5916rm -rf conftest.one conftest.two conftest.dir
2f1a1aea
FCE
5917
5918fi
5919 if test "${ac_cv_path_install+set}" = set; then
5920 INSTALL=$ac_cv_path_install
5921 else
7fbd9d09
FCE
5922 # As a last resort, use the slow shell script. Don't cache a
5923 # value for INSTALL within a source directory, because that will
2f1a1aea 5924 # break other packages using the cache if that directory is
7fbd9d09 5925 # removed, or if the value is a relative name.
2f1a1aea
FCE
5926 INSTALL=$ac_install_sh
5927 fi
5928fi
27aba29a
JS
5929{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5930$as_echo "$INSTALL" >&6; }
2f1a1aea
FCE
5931
5932# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5933# It thinks the first close brace ends the variable substitution.
5934test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5935
5936test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5937
5938test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5939
27aba29a
JS
5940{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5941$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5942set x ${MAKE-make}
5943ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7fbd9d09 5944if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 5945 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5946else
5947 cat >conftest.make <<\_ACEOF
7fbd9d09 5948SHELL = /bin/sh
2f1a1aea 5949all:
7fbd9d09 5950 @echo '@@@%%%=$(MAKE)=@@@%%%'
2f1a1aea
FCE
5951_ACEOF
5952# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7fbd9d09
FCE
5953case `${MAKE-make} -f conftest.make 2>/dev/null` in
5954 *@@@%%%=?*=@@@%%%*)
5955 eval ac_cv_prog_make_${ac_make}_set=yes;;
5956 *)
5957 eval ac_cv_prog_make_${ac_make}_set=no;;
5958esac
2f1a1aea
FCE
5959rm -f conftest.make
5960fi
7fbd9d09 5961if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
27aba29a
JS
5962 { $as_echo "$as_me:$LINENO: result: yes" >&5
5963$as_echo "yes" >&6; }
2f1a1aea
FCE
5964 SET_MAKE=
5965else
27aba29a
JS
5966 { $as_echo "$as_me:$LINENO: result: no" >&5
5967$as_echo "no" >&6; }
2f1a1aea
FCE
5968 SET_MAKE="MAKE=${MAKE-make}"
5969fi
5970
5971
5972
5973
7fbd9d09 5974# Check whether --enable-perfmon was given.
47dd066d 5975if test "${enable_perfmon+set}" = set; then
7fbd9d09 5976 enableval=$enable_perfmon;
564eb0a8
DS
5977 if test "$enable_perfmon" != "no"; then
5978 CPPFLAGS="$CPPFLAGS -DPERFMON"
5979 LIBS="$LIBS -lpfm"
5980 if test "$enable_perfmon" != "yes"; then
5981 CPPFLAGS="$CPPFLAGS -I$enable_perfmon/include"
5982 LDFLAGS="$LDFLAGS -L$enable_perfmon/lib"
5983 fi
47dd066d 5984
27aba29a
JS
5985{ $as_echo "$as_me:$LINENO: checking for pfm_start in -lpfm" >&5
5986$as_echo_n "checking for pfm_start in -lpfm... " >&6; }
47dd066d 5987if test "${ac_cv_lib_pfm_pfm_start+set}" = set; then
27aba29a 5988 $as_echo_n "(cached) " >&6
47dd066d
WC
5989else
5990 ac_check_lib_save_LIBS=$LIBS
5991LIBS="-lpfm $LIBS"
5992cat >conftest.$ac_ext <<_ACEOF
5993/* confdefs.h. */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h. */
5998
7fbd9d09
FCE
5999/* Override any GCC internal prototype to avoid an error.
6000 Use char because int might match the return type of a GCC
6001 builtin and then its argument prototype would still apply. */
47dd066d
WC
6002#ifdef __cplusplus
6003extern "C"
6004#endif
47dd066d
WC
6005char pfm_start ();
6006int
6007main ()
6008{
7fbd9d09 6009return pfm_start ();
47dd066d
WC
6010 ;
6011 return 0;
6012}
6013_ACEOF
6014rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
6015if { (ac_try="$ac_link"
6016case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019esac
27aba29a
JS
6020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6021$as_echo "$ac_try_echo") >&5
7fbd9d09 6022 (eval "$ac_link") 2>conftest.er1
47dd066d
WC
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
27aba29a 6027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6028 (exit $ac_status); } && {
6029 test -z "$ac_c_werror_flag" ||
6030 test ! -s conftest.err
27aba29a
JS
6031 } && test -s conftest$ac_exeext && {
6032 test "$cross_compiling" = yes ||
6033 $as_test_x conftest$ac_exeext
6034 }; then
47dd066d
WC
6035 ac_cv_lib_pfm_pfm_start=yes
6036else
27aba29a 6037 $as_echo "$as_me: failed program was:" >&5
47dd066d
WC
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
7fbd9d09 6040 ac_cv_lib_pfm_pfm_start=no
47dd066d 6041fi
7fbd9d09 6042
27aba29a 6043rm -rf conftest.dSYM
7fbd9d09 6044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47dd066d
WC
6045 conftest$ac_exeext conftest.$ac_ext
6046LIBS=$ac_check_lib_save_LIBS
6047fi
27aba29a
JS
6048{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_start" >&5
6049$as_echo "$ac_cv_lib_pfm_pfm_start" >&6; }
6050if test "x$ac_cv_lib_pfm_pfm_start" = x""yes; then
47dd066d
WC
6051 cat >>confdefs.h <<_ACEOF
6052#define HAVE_LIBPFM 1
6053_ACEOF
6054
6055 LIBS="-lpfm $LIBS"
6056
6057else
6058
27aba29a
JS
6059 { { $as_echo "$as_me:$LINENO: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&5
6060$as_echo "$as_me: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&2;}
47dd066d
WC
6061 { (exit 1); exit 1; }; }
6062fi
6063
564eb0a8 6064 fi
7fbd9d09
FCE
6065fi
6066
70d28673
DS
6067
6068if test "${enable_prologues+set}" != set; then
27aba29a
JS
6069 { $as_echo "$as_me:$LINENO: checking to see if prologue searching should be the default" >&5
6070$as_echo_n "checking to see if prologue searching should be the default... " >&6; }
70d28673
DS
6071 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
6072 echo ' yes '
6073 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6074 enable_prologues=yes
27aba29a
JS
6075 { $as_echo "$as_me:$LINENO: result: yes" >&5
6076$as_echo "yes" >&6; }
70d28673 6077 else
27aba29a
JS
6078 { $as_echo "$as_me:$LINENO: result: no" >&5
6079$as_echo "no" >&6; }
70d28673
DS
6080 fi
6081fi
7fbd9d09 6082# Check whether --enable-prologues was given.
44f75386 6083if test "${enable_prologues+set}" = set; then
7fbd9d09 6084 enableval=$enable_prologues;
70d28673 6085if test "$enable_prologues" = yes; then
44f75386
FCE
6086
6087cat >>confdefs.h <<\_ACEOF
27aba29a 6088#define ENABLE_PROLOGUES /**/
44f75386
FCE
6089_ACEOF
6090
70d28673 6091fi
7fbd9d09 6092fi
70d28673 6093
7fbd9d09
FCE
6094
6095# Check whether --enable-ssp was given.
9921a199 6096if test "${enable_ssp+set}" = set; then
7fbd9d09
FCE
6097 enableval=$enable_ssp;
6098fi
9921a199 6099
bbfd8c1a
FCE
6100if test "x$enable_ssp" != xno; then
6101
6102 save_CFLAGS="$CFLAGS"
6103 save_CXXFLAGS="$CXXFLAGS"
f0510eaa
FCE
6104 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
6105 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
bbfd8c1a
FCE
6106 cat >conftest.$ac_ext <<_ACEOF
6107int something ();
6108_ACEOF
6109rm -f conftest.$ac_objext
7fbd9d09
FCE
6110if { (ac_try="$ac_compile"
6111case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114esac
27aba29a
JS
6115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6116$as_echo "$ac_try_echo") >&5
7fbd9d09 6117 (eval "$ac_compile") 2>conftest.er1
bbfd8c1a
FCE
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
27aba29a 6122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6123 (exit $ac_status); } && {
6124 test -z "$ac_c_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest.$ac_objext; then
818ba2bc 6127
27aba29a
JS
6128 { $as_echo "$as_me:$LINENO: Compiling with gcc -fstack-protector-all et al." >&5
6129$as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
f0510eaa
FCE
6130 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
6131 CXFXLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
bbfd8c1a 6132else
27aba29a 6133 $as_echo "$as_me: failed program was:" >&5
bbfd8c1a
FCE
6134sed 's/^/| /' conftest.$ac_ext >&5
6135
6136
27aba29a
JS
6137 { $as_echo "$as_me:$LINENO: Compiler does not support -fstack-protector-all et al." >&5
6138$as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
bbfd8c1a
FCE
6139 CFLAGS="$save_CFLAGS"
6140 CXXFLAGS="$save_CXXFLAGS"
6141fi
7fbd9d09
FCE
6142
6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921a199 6144fi
70d28673 6145
42feb3c0 6146
e1e3ba36 6147# Compiling without fPIE by default (see PR 9922)
7fbd9d09 6148# Check whether --enable-pie was given.
8730f377 6149if test "${enable_pie+set}" = set; then
7fbd9d09
FCE
6150 enableval=$enable_pie;
6151fi
8730f377 6152
e1e3ba36 6153if test "x$enable_pie" == xyes; then
8730f377
FCE
6154
6155 save_CFLAGS="$CFLAGS"
6156 save_CXXFLAGS="$CXXFLAGS"
6157 save_LDFLAGS="$LDFLAGS"
7b53a460
SD
6158 CFLAGS="$CFLAGS -fPIE"
6159 CXXFLAGS="$CXXFLAGS -fPIE"
8730f377
FCE
6160 LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
6161 cat >conftest.$ac_ext <<_ACEOF
6162void main () {}
6163_ACEOF
6164rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
6165if { (ac_try="$ac_link"
6166case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169esac
27aba29a
JS
6170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6171$as_echo "$ac_try_echo") >&5
7fbd9d09 6172 (eval "$ac_link") 2>conftest.er1
8730f377
FCE
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
27aba29a 6177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6178 (exit $ac_status); } && {
6179 test -z "$ac_c_werror_flag" ||
6180 test ! -s conftest.err
27aba29a
JS
6181 } && test -s conftest$ac_exeext && {
6182 test "$cross_compiling" = yes ||
6183 $as_test_x conftest$ac_exeext
6184 }; then
818ba2bc 6185
27aba29a
JS
6186 { $as_echo "$as_me:$LINENO: Compiling with gcc pie et al." >&5
6187$as_echo "$as_me: Compiling with gcc pie et al." >&6;}
8730f377
FCE
6188 # LDFLAGS is special since it may be passed down to bundled-elfutils,
6189 # and interfere with the .so's built therein
5574ef2c 6190 PIELDFLAGS="$LDFLAGS"
8730f377 6191 LDFLAGS="$save_LDFLAGS"
5574ef2c
MW
6192 PIECFLAGS="$CFLAGS"
6193 CFLAGS="$save_CFLAGS"
6194 PIECXXFLAGS="$CXXFLAGS"
6195 CXXFLAGS="$save_CXXFLAGS"
8730f377
FCE
6196
6197else
27aba29a 6198 $as_echo "$as_me: failed program was:" >&5
8730f377
FCE
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
6201
27aba29a
JS
6202 { $as_echo "$as_me:$LINENO: Compiler does not support -pie et al." >&5
6203$as_echo "$as_me: Compiler does not support -pie et al." >&6;}
5574ef2c 6204 PIECFLAGS=""
8730f377 6205 CFLAGS="$save_CFLAGS"
5574ef2c 6206 PIECXXFLAGS=""
8730f377
FCE
6207 CXXFLAGS="$save_CXXFLAGS"
6208 PIELDFLAGS=""
6209 LDFLAGS="$save_LDFLAGS"
6210fi
7fbd9d09 6211
27aba29a 6212rm -rf conftest.dSYM
7fbd9d09 6213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8730f377
FCE
6214 conftest$ac_exeext conftest.$ac_ext
6215fi
6216
6217
6218
5574ef2c
MW
6219
6220
7fbd9d09 6221# Check whether --enable-sqlite was given.
9921a199 6222if test "${enable_sqlite+set}" = set; then
7fbd9d09 6223 enableval=$enable_sqlite;
9921a199 6224else
e8f3c2c2 6225 enable_sqlite=check
7fbd9d09
FCE
6226fi
6227 sqlite3_LIBS=
9921a199 6228if test "x$enable_sqlite" != xno; then
27aba29a
JS
6229 { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
6230$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
42feb3c0 6231if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
27aba29a 6232 $as_echo_n "(cached) " >&6
42feb3c0
WC
6233else
6234 ac_check_lib_save_LIBS=$LIBS
6235LIBS="-lsqlite3 $LIBS"
6236cat >conftest.$ac_ext <<_ACEOF
6237/* confdefs.h. */
6238_ACEOF
6239cat confdefs.h >>conftest.$ac_ext
6240cat >>conftest.$ac_ext <<_ACEOF
6241/* end confdefs.h. */
6242
7fbd9d09
FCE
6243/* Override any GCC internal prototype to avoid an error.
6244 Use char because int might match the return type of a GCC
6245 builtin and then its argument prototype would still apply. */
42feb3c0
WC
6246#ifdef __cplusplus
6247extern "C"
6248#endif
6249char sqlite3_open ();
6250int
6251main ()
6252{
7fbd9d09 6253return sqlite3_open ();
42feb3c0
WC
6254 ;
6255 return 0;
6256}
6257_ACEOF
6258rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
6259if { (ac_try="$ac_link"
6260case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263esac
27aba29a
JS
6264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6265$as_echo "$ac_try_echo") >&5
7fbd9d09 6266 (eval "$ac_link") 2>conftest.er1
42feb3c0
WC
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
27aba29a 6271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6272 (exit $ac_status); } && {
6273 test -z "$ac_c_werror_flag" ||
6274 test ! -s conftest.err
27aba29a
JS
6275 } && test -s conftest$ac_exeext && {
6276 test "$cross_compiling" = yes ||
6277 $as_test_x conftest$ac_exeext
6278 }; then
42feb3c0
WC
6279 ac_cv_lib_sqlite3_sqlite3_open=yes
6280else
27aba29a 6281 $as_echo "$as_me: failed program was:" >&5
42feb3c0
WC
6282sed 's/^/| /' conftest.$ac_ext >&5
6283
7fbd9d09 6284 ac_cv_lib_sqlite3_sqlite3_open=no
42feb3c0 6285fi
7fbd9d09 6286
27aba29a 6287rm -rf conftest.dSYM
7fbd9d09 6288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42feb3c0
WC
6289 conftest$ac_exeext conftest.$ac_ext
6290LIBS=$ac_check_lib_save_LIBS
6291fi
27aba29a
JS
6292{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
6293$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
6294if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then
9921a199 6295 sqlite3_LIBS=-lsqlite3
42feb3c0 6296
0d563e60
FCE
6297
6298cat >>confdefs.h <<\_ACEOF
07606685
DS
6299#define HAVE_LIBSQLITE3 1
6300_ACEOF
6301
9921a199
DS
6302else
6303 if test "x$enable_sqlite" != xcheck; then
27aba29a
JS
6304 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6306{ { $as_echo "$as_me:$LINENO: error: --enable-sqlite was given, but test for sqlite failed
9921a199 6307See \`config.log' for more details." >&5
27aba29a 6308$as_echo "$as_me: error: --enable-sqlite was given, but test for sqlite failed
9921a199 6309See \`config.log' for more details." >&2;}
27aba29a 6310 { (exit 1); exit 1; }; }; }
9921a199 6311 fi
42feb3c0
WC
6312fi
6313
9921a199 6314fi
44f75386 6315
e6c086bb 6316
7fbd9d09 6317# Check whether --enable-crash was given.
564eb0a8 6318if test "${enable_crash+set}" = set; then
7fbd9d09 6319 enableval=$enable_crash; if test "$enable_crash" != "no"; then
564eb0a8
DS
6320 save_CPPFLAGS="$CPPFLAGS"
6321 if test "$enable_crash" != "yes"; then
6322 staplog_CPPFLAGS=-I$enable_crash
6323 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
6324
6325 fi
35a04c8e
FCE
6326
6327for ac_header in crash/defs.h
6328do
27aba29a
JS
6329as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6331$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 6332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 6333 $as_echo_n "(cached) " >&6
35a04c8e
FCE
6334else
6335 cat >conftest.$ac_ext <<_ACEOF
6336/* confdefs.h. */
6337_ACEOF
6338cat confdefs.h >>conftest.$ac_ext
6339cat >>conftest.$ac_ext <<_ACEOF
6340/* end confdefs.h. */
6341
6342#define NR_CPUS 256
6343
6344
6345#include <$ac_header>
6346_ACEOF
6347rm -f conftest.$ac_objext
7fbd9d09
FCE
6348if { (ac_try="$ac_compile"
6349case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352esac
27aba29a
JS
6353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6354$as_echo "$ac_try_echo") >&5
7fbd9d09 6355 (eval "$ac_compile") 2>conftest.er1
35a04c8e
FCE
6356 ac_status=$?
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
27aba29a 6360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6361 (exit $ac_status); } && {
6362 test -z "$ac_c_werror_flag" ||
6363 test ! -s conftest.err
6364 } && test -s conftest.$ac_objext; then
35a04c8e
FCE
6365 eval "$as_ac_Header=yes"
6366else
27aba29a 6367 $as_echo "$as_me: failed program was:" >&5
35a04c8e
FCE
6368sed 's/^/| /' conftest.$ac_ext >&5
6369
7fbd9d09 6370 eval "$as_ac_Header=no"
35a04c8e 6371fi
7fbd9d09
FCE
6372
6373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35a04c8e 6374fi
27aba29a
JS
6375ac_res=`eval 'as_val=${'$as_ac_Header'}
6376 $as_echo "$as_val"'`
6377 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6378$as_echo "$ac_res" >&6; }
6379as_val=`eval 'as_val=${'$as_ac_Header'}
6380 $as_echo "$as_val"'`
6381 if test "x$as_val" = x""yes; then
35a04c8e 6382 cat >>confdefs.h <<_ACEOF
27aba29a 6383#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35a04c8e 6384_ACEOF
564eb0a8 6385
35a04c8e 6386else
27aba29a
JS
6387 { { $as_echo "$as_me:$LINENO: error: cannot find required crash header (crash-devel may need to be installed)" >&5
6388$as_echo "$as_me: error: cannot find required crash header (crash-devel may need to be installed)" >&2;}
564eb0a8 6389 { (exit 1); exit 1; }; }
35a04c8e
FCE
6390fi
6391
6392done
6393
564eb0a8
DS
6394 CPPFLAGS="$save_CPPFLAGS"
6395 fi
6396else
6397 enable_crash="no"
7fbd9d09 6398fi
564eb0a8 6399
7fbd9d09 6400 if test "$enable_crash" != "no"; then
35a04c8e
FCE
6401 BUILD_CRASHMOD_TRUE=
6402 BUILD_CRASHMOD_FALSE='#'
6403else
6404 BUILD_CRASHMOD_TRUE='#'
6405 BUILD_CRASHMOD_FALSE=
6406fi
6407
6408
92aff3c7 6409building_docs="no"
7fbd9d09 6410# Check whether --enable-docs was given.
465e8fbf 6411if test "${enable_docs+set}" = set; then
7fbd9d09 6412 enableval=$enable_docs; enable_docs=$enableval
465e8fbf
FCE
6413else
6414 enable_docs="check"
7fbd9d09
FCE
6415fi
6416
465e8fbf
FCE
6417# Extract the first word of "latex", so it can be a program name with args.
6418set dummy latex; ac_word=$2
27aba29a
JS
6419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6420$as_echo_n "checking for $ac_word... " >&6; }
465e8fbf 6421if test "${ac_cv_prog_have_latex+set}" = set; then
27aba29a 6422 $as_echo_n "(cached) " >&6
465e8fbf
FCE
6423else
6424 if test -n "$have_latex"; then
6425 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
6426else
6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6434 ac_cv_prog_have_latex="yes"
27aba29a 6435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6436 break 2
6437 fi
6438done
6439done
7fbd9d09 6440IFS=$as_save_IFS
465e8fbf
FCE
6441
6442 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
6443fi
6444fi
6445have_latex=$ac_cv_prog_have_latex
6446if test -n "$have_latex"; then
27aba29a
JS
6447 { $as_echo "$as_me:$LINENO: result: $have_latex" >&5
6448$as_echo "$have_latex" >&6; }
465e8fbf 6449else
27aba29a
JS
6450 { $as_echo "$as_me:$LINENO: result: no" >&5
6451$as_echo "no" >&6; }
465e8fbf
FCE
6452fi
6453
7fbd9d09 6454
465e8fbf
FCE
6455# Extract the first word of "dvips", so it can be a program name with args.
6456set dummy dvips; ac_word=$2
27aba29a
JS
6457{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6458$as_echo_n "checking for $ac_word... " >&6; }
465e8fbf 6459if test "${ac_cv_prog_have_dvips+set}" = set; then
27aba29a 6460 $as_echo_n "(cached) " >&6
465e8fbf
FCE
6461else
6462 if test -n "$have_dvips"; then
6463 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
6464else
6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466for as_dir in $PATH
6467do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6472 ac_cv_prog_have_dvips="yes"
27aba29a 6473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6474 break 2
6475 fi
6476done
6477done
7fbd9d09 6478IFS=$as_save_IFS
465e8fbf
FCE
6479
6480 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
6481fi
6482fi
6483have_dvips=$ac_cv_prog_have_dvips
6484if test -n "$have_dvips"; then
27aba29a
JS
6485 { $as_echo "$as_me:$LINENO: result: $have_dvips" >&5
6486$as_echo "$have_dvips" >&6; }
465e8fbf 6487else
27aba29a
JS
6488 { $as_echo "$as_me:$LINENO: result: no" >&5
6489$as_echo "no" >&6; }
465e8fbf
FCE
6490fi
6491
7fbd9d09 6492
465e8fbf
FCE
6493# Extract the first word of "ps2pdf", so it can be a program name with args.
6494set dummy ps2pdf; ac_word=$2
27aba29a
JS
6495{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6496$as_echo_n "checking for $ac_word... " >&6; }
465e8fbf 6497if test "${ac_cv_prog_have_ps2pdf+set}" = set; then
27aba29a 6498 $as_echo_n "(cached) " >&6
465e8fbf
FCE
6499else
6500 if test -n "$have_ps2pdf"; then
6501 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
6502else
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6510 ac_cv_prog_have_ps2pdf="yes"
27aba29a 6511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6512 break 2
6513 fi
6514done
6515done
7fbd9d09 6516IFS=$as_save_IFS
465e8fbf
FCE
6517
6518 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
6519fi
6520fi
6521have_ps2pdf=$ac_cv_prog_have_ps2pdf
6522if test -n "$have_ps2pdf"; then
27aba29a
JS
6523 { $as_echo "$as_me:$LINENO: result: $have_ps2pdf" >&5
6524$as_echo "$have_ps2pdf" >&6; }
465e8fbf 6525else
27aba29a
JS
6526 { $as_echo "$as_me:$LINENO: result: no" >&5
6527$as_echo "no" >&6; }
465e8fbf
FCE
6528fi
6529
7fbd9d09 6530
465e8fbf
FCE
6531# Extract the first word of "latex2html", so it can be a program name with args.
6532set dummy latex2html; ac_word=$2
27aba29a
JS
6533{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6534$as_echo_n "checking for $ac_word... " >&6; }
465e8fbf 6535if test "${ac_cv_prog_have_latex2html+set}" = set; then
27aba29a 6536 $as_echo_n "(cached) " >&6
465e8fbf
FCE
6537else
6538 if test -n "$have_latex2html"; then
6539 ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test.
6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6548 ac_cv_prog_have_latex2html="yes"
27aba29a 6549 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6550 break 2
6551 fi
6552done
6553done
7fbd9d09 6554IFS=$as_save_IFS
465e8fbf
FCE
6555
6556 test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no"
6557fi
6558fi
6559have_latex2html=$ac_cv_prog_have_latex2html
6560if test -n "$have_latex2html"; then
27aba29a
JS
6561 { $as_echo "$as_me:$LINENO: result: $have_latex2html" >&5
6562$as_echo "$have_latex2html" >&6; }
465e8fbf 6563else
27aba29a
JS
6564 { $as_echo "$as_me:$LINENO: result: no" >&5
6565$as_echo "no" >&6; }
465e8fbf
FCE
6566fi
6567
7fbd9d09 6568
2d4b8ddf
MW
6569if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then
6570 if test "$enable_docs" == "yes"; then
27aba29a
JS
6571 { { $as_echo "$as_me:$LINENO: error: cannot find all tools for building documentation" >&5
6572$as_echo "$as_me: error: cannot find all tools for building documentation" >&2;}
465e8fbf
FCE
6573 { (exit 1); exit 1; }; }
6574 fi
2d4b8ddf 6575 if test "$enable_docs" == "check"; then
27aba29a
JS
6576 { $as_echo "$as_me:$LINENO: WARNING: will not build documentation, cannot find all tools" >&5
6577$as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
2d4b8ddf 6578 fi
465e8fbf 6579fi
92aff3c7
WC
6580if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then
6581 building_docs="yes"
6582fi
7fbd9d09 6583 if test "$building_docs" == "yes"; then
465e8fbf
FCE
6584 BUILD_DOCS_TRUE=
6585 BUILD_DOCS_FALSE='#'
6586else
6587 BUILD_DOCS_TRUE='#'
6588 BUILD_DOCS_FALSE=
6589fi
6590
6591
92aff3c7 6592building_refdocs="no"
7fbd9d09 6593# Check whether --enable-refdocs was given.
92aff3c7 6594if test "${enable_refdocs+set}" = set; then
7fbd9d09 6595 enableval=$enable_refdocs; enable_refdocs=$enableval
92aff3c7
WC
6596else
6597 enable_refdocs="check"
7fbd9d09
FCE
6598fi
6599
92aff3c7 6600if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
27aba29a
JS
6601 { { $as_echo "$as_me:$LINENO: error: must use --enable-docs with --enable-refdocs" >&5
6602$as_echo "$as_me: error: must use --enable-docs with --enable-refdocs" >&2;}
92aff3c7
WC
6603 { (exit 1); exit 1; }; }
6604fi
6605# Extract the first word of "xmlto", so it can be a program name with args.
6606set dummy xmlto; ac_word=$2
27aba29a
JS
6607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6608$as_echo_n "checking for $ac_word... " >&6; }
92aff3c7 6609if test "${ac_cv_prog_have_xmlto+set}" = set; then
27aba29a 6610 $as_echo_n "(cached) " >&6
92aff3c7
WC
6611else
6612 if test -n "$have_xmlto"; then
6613 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
6614else
6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
92aff3c7 6622 ac_cv_prog_have_xmlto="yes"
27aba29a 6623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
92aff3c7
WC
6624 break 2
6625 fi
6626done
6627done
7fbd9d09 6628IFS=$as_save_IFS
92aff3c7
WC
6629
6630 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
6631fi
6632fi
6633have_xmlto=$ac_cv_prog_have_xmlto
6634if test -n "$have_xmlto"; then
27aba29a
JS
6635 { $as_echo "$as_me:$LINENO: result: $have_xmlto" >&5
6636$as_echo "$have_xmlto" >&6; }
92aff3c7 6637else
27aba29a
JS
6638 { $as_echo "$as_me:$LINENO: result: no" >&5
6639$as_echo "no" >&6; }
92aff3c7
WC
6640fi
6641
7fbd9d09 6642
aa5951be 6643if test "x${have_xmlto}" == "xyes"; then
27aba29a
JS
6644{ $as_echo "$as_me:$LINENO: checking for xmlto pdf support" >&5
6645$as_echo_n "checking for xmlto pdf support... " >&6; }
aa5951be
WC
6646cat > conftest.$ac_ext << EOF
6647<?xml version="1.0" encoding="UTF-8"?>
6648<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
6649"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
6650 <book id="pdffromxml">
6651 </book>
6652EOF
6653 xmlto pdf conftest.$ac_ext >& /dev/null
6654 if test $? == 0; then
6655 have_xmlto_pdf="yes"
27aba29a
JS
6656 { $as_echo "$as_me:$LINENO: result: yes" >&5
6657$as_echo "yes" >&6; }
aa5951be 6658 else
27aba29a
JS
6659 { $as_echo "$as_me:$LINENO: result: no" >&5
6660$as_echo "no" >&6; }
aa5951be
WC
6661 fi
6662fi
92aff3c7 6663if test "$enable_refdocs" == "yes"; then
aa5951be 6664 if test "x${have_xmlto}${have_xmlto_pdf}" != "xyesyes"; then
27aba29a
JS
6665 { { $as_echo "$as_me:$LINENO: error: cannot find proper yxmlto for building reference documentation" >&5
6666$as_echo "$as_me: error: cannot find proper yxmlto for building reference documentation" >&2;}
92aff3c7
WC
6667 { (exit 1); exit 1; }; }
6668 fi
6669fi
aa5951be 6670if test "x${have_xmlto}${have_xmlto_pdf}" == "xyesyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
92aff3c7
WC
6671 building_refdocs="yes"
6672fi
7fbd9d09 6673 if test "$building_refdocs" == "yes"; then
92aff3c7
WC
6674 BUILD_REFDOCS_TRUE=
6675 BUILD_REFDOCS_FALSE='#'
6676else
6677 BUILD_REFDOCS_TRUE='#'
6678 BUILD_REFDOCS_FALSE=
6679fi
6680
6681
7fbd9d09 6682# Check whether --enable-server was given.
19a0d4b6 6683if test "${enable_server+set}" = set; then
7fbd9d09 6684 enableval=$enable_server; enable_server=$enableval
19a0d4b6
MW
6685else
6686 enable_server="check"
7fbd9d09
FCE
6687fi
6688
27aba29a
JS
6689{ $as_echo "$as_me:$LINENO: checking for /usr/include/nss3" >&5
6690$as_echo_n "checking for /usr/include/nss3... " >&6; }
8ca54d60 6691if test "${ac_cv_file__usr_include_nss3+set}" = set; then
27aba29a 6692 $as_echo_n "(cached) " >&6
43498922 6693else
8ca54d60 6694 test "$cross_compiling" = yes &&
27aba29a
JS
6695 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6696$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8ca54d60
EB
6697 { (exit 1); exit 1; }; }
6698if test -r "/usr/include/nss3"; then
6699 ac_cv_file__usr_include_nss3=yes
6700else
6701 ac_cv_file__usr_include_nss3=no
43498922 6702fi
8ca54d60 6703fi
27aba29a
JS
6704{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss3" >&5
6705$as_echo "$ac_cv_file__usr_include_nss3" >&6; }
6706if test "x$ac_cv_file__usr_include_nss3" = x""yes; then
8ca54d60 6707 nssdir=nss3
43498922 6708else
8ca54d60 6709
27aba29a
JS
6710 { $as_echo "$as_me:$LINENO: checking for /usr/include/nss" >&5
6711$as_echo_n "checking for /usr/include/nss... " >&6; }
8ca54d60 6712if test "${ac_cv_file__usr_include_nss+set}" = set; then
27aba29a 6713 $as_echo_n "(cached) " >&6
8ca54d60
EB
6714else
6715 test "$cross_compiling" = yes &&
27aba29a
JS
6716 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6717$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8ca54d60
EB
6718 { (exit 1); exit 1; }; }
6719if test -r "/usr/include/nss"; then
6720 ac_cv_file__usr_include_nss=yes
6721else
6722 ac_cv_file__usr_include_nss=no
6723fi
6724fi
27aba29a
JS
6725{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss" >&5
6726$as_echo "$ac_cv_file__usr_include_nss" >&6; }
6727if test "x$ac_cv_file__usr_include_nss" = x""yes; then
8ca54d60 6728 nssdir=nss
43498922
DB
6729fi
6730
6731
6732fi
8ca54d60 6733
27aba29a
JS
6734{ $as_echo "$as_me:$LINENO: checking for /usr/include/nspr4" >&5
6735$as_echo_n "checking for /usr/include/nspr4... " >&6; }
8ca54d60 6736if test "${ac_cv_file__usr_include_nspr4+set}" = set; then
27aba29a 6737 $as_echo_n "(cached) " >&6
43498922 6738else
8ca54d60 6739 test "$cross_compiling" = yes &&
27aba29a
JS
6740 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6741$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8ca54d60
EB
6742 { (exit 1); exit 1; }; }
6743if test -r "/usr/include/nspr4"; then
6744 ac_cv_file__usr_include_nspr4=yes
43498922 6745else
8ca54d60
EB
6746 ac_cv_file__usr_include_nspr4=no
6747fi
43498922 6748fi
27aba29a
JS
6749{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr4" >&5
6750$as_echo "$ac_cv_file__usr_include_nspr4" >&6; }
6751if test "x$ac_cv_file__usr_include_nspr4" = x""yes; then
8ca54d60
EB
6752 nsprdir=nspr4
6753else
43498922 6754
27aba29a
JS
6755 { $as_echo "$as_me:$LINENO: checking for /usr/include/nspr" >&5
6756$as_echo_n "checking for /usr/include/nspr... " >&6; }
8ca54d60 6757if test "${ac_cv_file__usr_include_nspr+set}" = set; then
27aba29a 6758 $as_echo_n "(cached) " >&6
43498922 6759else
8ca54d60 6760 test "$cross_compiling" = yes &&
27aba29a
JS
6761 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6762$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8ca54d60
EB
6763 { (exit 1); exit 1; }; }
6764if test -r "/usr/include/nspr"; then
6765 ac_cv_file__usr_include_nspr=yes
6766else
6767 ac_cv_file__usr_include_nspr=no
43498922 6768fi
43498922 6769fi
27aba29a
JS
6770{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr" >&5
6771$as_echo "$ac_cv_file__usr_include_nspr" >&6; }
6772if test "x$ac_cv_file__usr_include_nspr" = x""yes; then
8ca54d60
EB
6773 nsprdir=nspr
6774fi
6775
43498922
DB
6776
6777fi
6778
8ca54d60
EB
6779if test "x$nssdir" != "x" -a "x$nsprdir" != "x"; then
6780nss_CFLAGS="-I/usr/include/$nssdir"
6781nspr_CFLAGS="-I/usr/include/$nsprdir"
6782
6783
6784save_CPPFLAGS="$CPPFLAGS"
6785CPPFLAGS="$CFLAGS $nss_CFLAGS $nspr_CFLAGS"
6786
6787
6788
6789
6790
19a0d4b6 6791
8ca54d60
EB
6792
6793for ac_header in "$nsprdir/nspr.h" "$nsprdir/plgetopt.h" "$nsprdir/prerror.h" "$nssdir/ssl.h" "$nssdir/nss.h" "$nssdir/pk11func.h" "$nssdir/secerr.h"
6794do
27aba29a 6795as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7fbd9d09 6796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a
JS
6797 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6798$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 6799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 6800 $as_echo_n "(cached) " >&6
818ba2bc 6801fi
27aba29a
JS
6802ac_res=`eval 'as_val=${'$as_ac_Header'}
6803 $as_echo "$as_val"'`
6804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6805$as_echo "$ac_res" >&6; }
8ca54d60
EB
6806else
6807 # Is the header compilable?
27aba29a
JS
6808{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6809$as_echo_n "checking $ac_header usability... " >&6; }
8ca54d60
EB
6810cat >conftest.$ac_ext <<_ACEOF
6811/* confdefs.h. */
6812_ACEOF
6813cat confdefs.h >>conftest.$ac_ext
6814cat >>conftest.$ac_ext <<_ACEOF
6815/* end confdefs.h. */
6816$ac_includes_default
6817#include <$ac_header>
6818_ACEOF
6819rm -f conftest.$ac_objext
7fbd9d09
FCE
6820if { (ac_try="$ac_compile"
6821case "(($ac_try" in
6822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823 *) ac_try_echo=$ac_try;;
6824esac
27aba29a
JS
6825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6826$as_echo "$ac_try_echo") >&5
7fbd9d09 6827 (eval "$ac_compile") 2>conftest.er1
43498922 6828 ac_status=$?
8ca54d60
EB
6829 grep -v '^ *+' conftest.er1 >conftest.err
6830 rm -f conftest.er1
6831 cat conftest.err >&5
27aba29a 6832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6833 (exit $ac_status); } && {
6834 test -z "$ac_c_werror_flag" ||
6835 test ! -s conftest.err
6836 } && test -s conftest.$ac_objext; then
8ca54d60 6837 ac_header_compiler=yes
43498922 6838else
27aba29a 6839 $as_echo "$as_me: failed program was:" >&5
8ca54d60
EB
6840sed 's/^/| /' conftest.$ac_ext >&5
6841
7fbd9d09 6842 ac_header_compiler=no
43498922 6843fi
7fbd9d09
FCE
6844
6845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27aba29a
JS
6846{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6847$as_echo "$ac_header_compiler" >&6; }
8ca54d60
EB
6848
6849# Is the header present?
27aba29a
JS
6850{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6851$as_echo_n "checking $ac_header presence... " >&6; }
8ca54d60
EB
6852cat >conftest.$ac_ext <<_ACEOF
6853/* confdefs.h. */
6854_ACEOF
6855cat confdefs.h >>conftest.$ac_ext
6856cat >>conftest.$ac_ext <<_ACEOF
6857/* end confdefs.h. */
6858#include <$ac_header>
6859_ACEOF
7fbd9d09
FCE
6860if { (ac_try="$ac_cpp conftest.$ac_ext"
6861case "(($ac_try" in
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6864esac
27aba29a
JS
6865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6866$as_echo "$ac_try_echo") >&5
7fbd9d09 6867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43498922 6868 ac_status=$?
8ca54d60
EB
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
27aba29a 6872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6873 (exit $ac_status); } >/dev/null && {
6874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6875 test ! -s conftest.err
6876 }; then
8ca54d60 6877 ac_header_preproc=yes
43498922 6878else
27aba29a 6879 $as_echo "$as_me: failed program was:" >&5
8ca54d60 6880sed 's/^/| /' conftest.$ac_ext >&5
43498922 6881
8ca54d60
EB
6882 ac_header_preproc=no
6883fi
7fbd9d09 6884
8ca54d60 6885rm -f conftest.err conftest.$ac_ext
27aba29a
JS
6886{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6887$as_echo "$ac_header_preproc" >&6; }
43498922 6888
8ca54d60
EB
6889# So? What about this header?
6890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6891 yes:no: )
27aba29a
JS
6892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6893$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6895$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8ca54d60
EB
6896 ac_header_preproc=yes
6897 ;;
6898 no:yes:* )
27aba29a
JS
6899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6900$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6902$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6904$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6906$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6908$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6910$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7fbd9d09 6911 ( cat <<\_ASBOX
8ca54d60
EB
6912## ------------------------------------------- ##
6913## Report this to systemtap@sources.redhat.com ##
6914## ------------------------------------------- ##
6915_ASBOX
7fbd9d09 6916 ) | sed "s/^/$as_me: WARNING: /" >&2
8ca54d60
EB
6917 ;;
6918esac
27aba29a
JS
6919{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6920$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 6921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 6922 $as_echo_n "(cached) " >&6
43498922 6923else
8ca54d60 6924 eval "$as_ac_Header=\$ac_header_preproc"
43498922 6925fi
27aba29a
JS
6926ac_res=`eval 'as_val=${'$as_ac_Header'}
6927 $as_echo "$as_val"'`
6928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6929$as_echo "$ac_res" >&6; }
43498922 6930
8ca54d60 6931fi
27aba29a
JS
6932as_val=`eval 'as_val=${'$as_ac_Header'}
6933 $as_echo "$as_val"'`
6934 if test "x$as_val" = x""yes; then
8ca54d60 6935 cat >>confdefs.h <<_ACEOF
27aba29a 6936#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8ca54d60
EB
6937_ACEOF
6938 have_nss_includes=yes
43498922 6939else
8ca54d60 6940 have_nss_includes=no
43498922
DB
6941fi
6942
8ca54d60
EB
6943done
6944
6945CPPFLAGS="$save_CPPFLAGS"
6946have_nss_libs=no
27aba29a
JS
6947{ $as_echo "$as_me:$LINENO: checking for PR_Connect in -lnspr4" >&5
6948$as_echo_n "checking for PR_Connect in -lnspr4... " >&6; }
8ca54d60 6949if test "${ac_cv_lib_nspr4_PR_Connect+set}" = set; then
27aba29a 6950 $as_echo_n "(cached) " >&6
8ca54d60
EB
6951else
6952 ac_check_lib_save_LIBS=$LIBS
6953LIBS="-lnspr4 $LIBS"
6954cat >conftest.$ac_ext <<_ACEOF
6955/* confdefs.h. */
6956_ACEOF
6957cat confdefs.h >>conftest.$ac_ext
6958cat >>conftest.$ac_ext <<_ACEOF
6959/* end confdefs.h. */
19a0d4b6 6960
7fbd9d09
FCE
6961/* Override any GCC internal prototype to avoid an error.
6962 Use char because int might match the return type of a GCC
6963 builtin and then its argument prototype would still apply. */
8ca54d60
EB
6964#ifdef __cplusplus
6965extern "C"
6966#endif
6967char PR_Connect ();
6968int
6969main ()
6970{
7fbd9d09 6971return PR_Connect ();
8ca54d60
EB
6972 ;
6973 return 0;
6974}
6975_ACEOF
6976rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
6977if { (ac_try="$ac_link"
6978case "(($ac_try" in
6979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980 *) ac_try_echo=$ac_try;;
6981esac
27aba29a
JS
6982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6983$as_echo "$ac_try_echo") >&5
7fbd9d09 6984 (eval "$ac_link") 2>conftest.er1
43498922 6985 ac_status=$?
8ca54d60
EB
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
27aba29a 6989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6990 (exit $ac_status); } && {
6991 test -z "$ac_c_werror_flag" ||
6992 test ! -s conftest.err
27aba29a
JS
6993 } && test -s conftest$ac_exeext && {
6994 test "$cross_compiling" = yes ||
6995 $as_test_x conftest$ac_exeext
6996 }; then
8ca54d60 6997 ac_cv_lib_nspr4_PR_Connect=yes
43498922 6998else
27aba29a 6999 $as_echo "$as_me: failed program was:" >&5
8ca54d60
EB
7000sed 's/^/| /' conftest.$ac_ext >&5
7001
7fbd9d09 7002 ac_cv_lib_nspr4_PR_Connect=no
43498922 7003fi
7fbd9d09 7004
27aba29a 7005rm -rf conftest.dSYM
7fbd9d09 7006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8ca54d60
EB
7007 conftest$ac_exeext conftest.$ac_ext
7008LIBS=$ac_check_lib_save_LIBS
43498922 7009fi
27aba29a
JS
7010{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nspr4_PR_Connect" >&5
7011$as_echo "$ac_cv_lib_nspr4_PR_Connect" >&6; }
7012if test "x$ac_cv_lib_nspr4_PR_Connect" = x""yes; then
8ca54d60 7013
27aba29a
JS
7014 { $as_echo "$as_me:$LINENO: checking for SSL_ReHandshake in -lssl3" >&5
7015$as_echo_n "checking for SSL_ReHandshake in -lssl3... " >&6; }
8ca54d60 7016if test "${ac_cv_lib_ssl3_SSL_ReHandshake+set}" = set; then
27aba29a 7017 $as_echo_n "(cached) " >&6
8ca54d60
EB
7018else
7019 ac_check_lib_save_LIBS=$LIBS
7020LIBS="-lssl3 $LIBS"
7021cat >conftest.$ac_ext <<_ACEOF
7022/* confdefs.h. */
7023_ACEOF
7024cat confdefs.h >>conftest.$ac_ext
7025cat >>conftest.$ac_ext <<_ACEOF
7026/* end confdefs.h. */
7027
7fbd9d09
FCE
7028/* Override any GCC internal prototype to avoid an error.
7029 Use char because int might match the return type of a GCC
7030 builtin and then its argument prototype would still apply. */
8ca54d60
EB
7031#ifdef __cplusplus
7032extern "C"
7033#endif
7034char SSL_ReHandshake ();
7035int
7036main ()
7037{
7fbd9d09 7038return SSL_ReHandshake ();
8ca54d60
EB
7039 ;
7040 return 0;
7041}
7042_ACEOF
7043rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
7044if { (ac_try="$ac_link"
7045case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048esac
27aba29a
JS
7049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7050$as_echo "$ac_try_echo") >&5
7fbd9d09 7051 (eval "$ac_link") 2>conftest.er1
43498922 7052 ac_status=$?
8ca54d60
EB
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
27aba29a 7056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7057 (exit $ac_status); } && {
7058 test -z "$ac_c_werror_flag" ||
7059 test ! -s conftest.err
27aba29a
JS
7060 } && test -s conftest$ac_exeext && {
7061 test "$cross_compiling" = yes ||
7062 $as_test_x conftest$ac_exeext
7063 }; then
8ca54d60 7064 ac_cv_lib_ssl3_SSL_ReHandshake=yes
43498922 7065else
27aba29a 7066 $as_echo "$as_me: failed program was:" >&5
8ca54d60 7067sed 's/^/| /' conftest.$ac_ext >&5
43498922 7068
7fbd9d09 7069 ac_cv_lib_ssl3_SSL_ReHandshake=no
8ca54d60 7070fi
7fbd9d09 7071
27aba29a 7072rm -rf conftest.dSYM
7fbd9d09 7073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8ca54d60
EB
7074 conftest$ac_exeext conftest.$ac_ext
7075LIBS=$ac_check_lib_save_LIBS
7076fi
27aba29a
JS
7077{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl3_SSL_ReHandshake" >&5
7078$as_echo "$ac_cv_lib_ssl3_SSL_ReHandshake" >&6; }
7079if test "x$ac_cv_lib_ssl3_SSL_ReHandshake" = x""yes; then
8ca54d60
EB
7080 have_nss_libs=yes
7081fi
43498922 7082
43498922 7083
43498922 7084fi
43498922 7085
19a0d4b6 7086fi
8ca54d60 7087if test "x${have_nss_includes}${have_nss_libs}" != "xyesyes"; then
19a0d4b6 7088 if test "$enable_server" == "yes"; then
27aba29a
JS
7089 { { $as_echo "$as_me:$LINENO: error: cannot find all libraries for stap-server" >&5
7090$as_echo "$as_me: error: cannot find all libraries for stap-server" >&2;}
19a0d4b6
MW
7091 { (exit 1); exit 1; }; }
7092 fi
7093 if test "$enable_server" == "check"; then
27aba29a
JS
7094 { $as_echo "$as_me:$LINENO: WARNING: will not build stap-server, cannot find all libraries" >&5
7095$as_echo "$as_me: WARNING: will not build stap-server, cannot find all libraries" >&2;}
19a0d4b6
MW
7096 fi
7097fi
7fbd9d09 7098 if test "x${have_nss_includes}${have_nss_libs}" == "xyesyes" -a "$enable_server" != "no"; then
19a0d4b6
MW
7099 BUILD_SERVER_TRUE=
7100 BUILD_SERVER_FALSE='#'
7101else
7102 BUILD_SERVER_TRUE='#'
7103 BUILD_SERVER_FALSE=
43498922
DB
7104fi
7105
19a0d4b6 7106
e8f3c2c2
DS
7107build_elfutils=no
7108
7fbd9d09 7109# Check whether --with-elfutils was given.
e8f3c2c2 7110if test "${with_elfutils+set}" = set; then
7fbd9d09 7111 withval=$with_elfutils;
e8f3c2c2 7112case "$with_elfutils" in
27aba29a
JS
7113yes) { { $as_echo "$as_me:$LINENO: error: --with-elfutils requires an argument" >&5
7114$as_echo "$as_me: error: --with-elfutils requires an argument" >&2;}
e8f3c2c2
DS
7115 { (exit 1); exit 1; }; } ;;
7116''|no) ;;
7117*) build_elfutils=yes ;;
7118esac
7fbd9d09 7119fi
e8f3c2c2 7120
7fbd9d09 7121 if test $build_elfutils = yes; then
e8f3c2c2
DS
7122 BUILD_ELFUTILS_TRUE=
7123 BUILD_ELFUTILS_FALSE='#'
7124else
7125 BUILD_ELFUTILS_TRUE='#'
7126 BUILD_ELFUTILS_FALSE=
7127fi
7128
7129elfutils_abs_srcdir=`if test $build_elfutils = yes; then
7130 cd $with_elfutils && pwd
7131fi
7132`
7133
7134
9cb3a339 7135if test $build_elfutils = no; then
8d4b1ab0 7136 # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/
4d9087fc 7137 save_LIBS="$LIBS"
4645fadb 7138
27aba29a
JS
7139{ $as_echo "$as_me:$LINENO: checking for dwfl_module_getsym in -ldw" >&5
7140$as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
4645fadb 7141if test "${ac_cv_lib_dw_dwfl_module_getsym+set}" = set; then
27aba29a 7142 $as_echo_n "(cached) " >&6
4645fadb
JS
7143else
7144 ac_check_lib_save_LIBS=$LIBS
7145LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS"
7146cat >conftest.$ac_ext <<_ACEOF
7147/* confdefs.h. */
7148_ACEOF
7149cat confdefs.h >>conftest.$ac_ext
7150cat >>conftest.$ac_ext <<_ACEOF
7151/* end confdefs.h. */
7152
7fbd9d09
FCE
7153/* Override any GCC internal prototype to avoid an error.
7154 Use char because int might match the return type of a GCC
7155 builtin and then its argument prototype would still apply. */
4645fadb
JS
7156#ifdef __cplusplus
7157extern "C"
7158#endif
7159char dwfl_module_getsym ();
7160int
7161main ()
7162{
7fbd9d09 7163return dwfl_module_getsym ();
4645fadb
JS
7164 ;
7165 return 0;
7166}
7167_ACEOF
7168rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
7169if { (ac_try="$ac_link"
7170case "(($ac_try" in
7171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172 *) ac_try_echo=$ac_try;;
7173esac
27aba29a
JS
7174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7175$as_echo "$ac_try_echo") >&5
7fbd9d09 7176 (eval "$ac_link") 2>conftest.er1
4645fadb
JS
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
27aba29a 7181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
27aba29a
JS
7185 } && test -s conftest$ac_exeext && {
7186 test "$cross_compiling" = yes ||
7187 $as_test_x conftest$ac_exeext
7188 }; then
4645fadb
JS
7189 ac_cv_lib_dw_dwfl_module_getsym=yes
7190else
27aba29a 7191 $as_echo "$as_me: failed program was:" >&5
4645fadb
JS
7192sed 's/^/| /' conftest.$ac_ext >&5
7193
7fbd9d09 7194 ac_cv_lib_dw_dwfl_module_getsym=no
4645fadb 7195fi
7fbd9d09 7196
27aba29a 7197rm -rf conftest.dSYM
7fbd9d09 7198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4645fadb
JS
7199 conftest$ac_exeext conftest.$ac_ext
7200LIBS=$ac_check_lib_save_LIBS
7201fi
27aba29a
JS
7202{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
7203$as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
7204if test "x$ac_cv_lib_dw_dwfl_module_getsym" = x""yes; then
4645fadb
JS
7205 cat >>confdefs.h <<_ACEOF
7206#define HAVE_LIBDW 1
7207_ACEOF
7208
7209 LIBS="-ldw $LIBS"
7210
7211else
7212
27aba29a
JS
7213 { { $as_echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&5
7214$as_echo "$as_me: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&2;}
4645fadb
JS
7215 { (exit 1); exit 1; }; }
7216fi
7217
87cb1275 7218
27aba29a
JS
7219{ $as_echo "$as_me:$LINENO: checking for dwarf_getelf in -ldw" >&5
7220$as_echo_n "checking for dwarf_getelf in -ldw... " >&6; }
87cb1275 7221if test "${ac_cv_lib_dw_dwarf_getelf+set}" = set; then
27aba29a 7222 $as_echo_n "(cached) " >&6
87cb1275
MW
7223else
7224 ac_check_lib_save_LIBS=$LIBS
7225LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS"
7226cat >conftest.$ac_ext <<_ACEOF
7227/* confdefs.h. */
7228_ACEOF
7229cat confdefs.h >>conftest.$ac_ext
7230cat >>conftest.$ac_ext <<_ACEOF
7231/* end confdefs.h. */
7232
7fbd9d09
FCE
7233/* Override any GCC internal prototype to avoid an error.
7234 Use char because int might match the return type of a GCC
7235 builtin and then its argument prototype would still apply. */
87cb1275
MW
7236#ifdef __cplusplus
7237extern "C"
7238#endif
7239char dwarf_getelf ();
7240int
7241main ()
7242{
7fbd9d09 7243return dwarf_getelf ();
87cb1275
MW
7244 ;
7245 return 0;
7246}
7247_ACEOF
7248rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
7249if { (ac_try="$ac_link"
7250case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253esac
27aba29a
JS
7254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7255$as_echo "$ac_try_echo") >&5
7fbd9d09 7256 (eval "$ac_link") 2>conftest.er1
87cb1275
MW
7257 ac_status=$?
7258 grep -v '^ *+' conftest.er1 >conftest.err
7259 rm -f conftest.er1
7260 cat conftest.err >&5
27aba29a 7261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7262 (exit $ac_status); } && {
7263 test -z "$ac_c_werror_flag" ||
7264 test ! -s conftest.err
27aba29a
JS
7265 } && test -s conftest$ac_exeext && {
7266 test "$cross_compiling" = yes ||
7267 $as_test_x conftest$ac_exeext
7268 }; then
87cb1275
MW
7269 ac_cv_lib_dw_dwarf_getelf=yes
7270else
27aba29a 7271 $as_echo "$as_me: failed program was:" >&5
87cb1275
MW
7272sed 's/^/| /' conftest.$ac_ext >&5
7273
7fbd9d09 7274 ac_cv_lib_dw_dwarf_getelf=no
87cb1275 7275fi
7fbd9d09 7276
27aba29a 7277rm -rf conftest.dSYM
7fbd9d09 7278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
87cb1275
MW
7279 conftest$ac_exeext conftest.$ac_ext
7280LIBS=$ac_check_lib_save_LIBS
7281fi
27aba29a
JS
7282{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwarf_getelf" >&5
7283$as_echo "$ac_cv_lib_dw_dwarf_getelf" >&6; }
7284if test "x$ac_cv_lib_dw_dwarf_getelf" = x""yes; then
87cb1275
MW
7285 cat >>confdefs.h <<_ACEOF
7286#define HAVE_LIBDW 1
7287_ACEOF
7288
7289 LIBS="-ldw $LIBS"
7290
7291else
7292
27aba29a
JS
7293 { { $as_echo "$as_me:$LINENO: error: elfutils, libdw too old, need 0.126+" >&5
7294$as_echo "$as_me: error: elfutils, libdw too old, need 0.126+" >&2;}
87cb1275
MW
7295 { (exit 1); exit 1; }; }
7296fi
7297
cfa2ca3c 7298 stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
e8f3c2c2 7299 LIBS="$save_LIBS"
4d9087fc
RM
7300else
7301 # We built our own and stap_LDFLAGS points at the install.
4645fadb
JS
7302 stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
7303fi
7304
6b1a0274 7305
27aba29a
JS
7306{ $as_echo "$as_me:$LINENO: stap will link $stap_LIBS" >&5
7307$as_echo "$as_me: stap will link $stap_LIBS" >&6;}
c3a3c0c9 7308
69c68955
FCE
7309date=`date +%Y-%m-%d`
7310
7311cat >>confdefs.h <<_ACEOF
7312#define DATE "$date"
7313_ACEOF
7314
82fab474 7315DATE="$date"
69c68955
FCE
7316
7317
10b20266
FCE
7318
7319# This procflags business is for staprun/stapio, which need to
7320# be compiled with the same bitness as the kernel. On e.g. PPC,
7321# userspace might be 32-bit default, but staprun needs to be
7322# 64-bit. See also bug #4037.
7323
5566993b
MH
7324processor=`uname -p`
7325case "$processor" in
c1536577 7326ppc64) PROCFLAGS=-m64 ;;
5566993b
MH
7327x86_64) PROCFLAGS=-m64 ;;
7328*) PROCFLAGS=""
7329esac
7330
7331
3bf6ac45 7332# Use tr1/unordered_map if available
7fbd9d09 7333ac_ext=cpp
3bf6ac45
TM
7334ac_cpp='$CXXCPP $CPPFLAGS'
7335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7338
7339
7fbd9d09 7340ac_ext=cpp
3bf6ac45
TM
7341ac_cpp='$CXXCPP $CPPFLAGS'
7342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27aba29a
JS
7345{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7346$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3bf6ac45
TM
7347if test -z "$CXXCPP"; then
7348 if test "${ac_cv_prog_CXXCPP+set}" = set; then
27aba29a 7349 $as_echo_n "(cached) " >&6
3bf6ac45
TM
7350else
7351 # Double quotes because CXXCPP needs to be expanded
7352 for CXXCPP in "$CXX -E" "/lib/cpp"
7353 do
7354 ac_preproc_ok=false
7355for ac_cxx_preproc_warn_flag in '' yes
7356do
7357 # Use a header file that comes with gcc, so configuring glibc
7358 # with a fresh cross-compiler works.
7359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7360 # <limits.h> exists even on freestanding compilers.
7361 # On the NeXT, cc -E runs the code through the compiler's parser,
7362 # not just through cpp. "Syntax error" is here to catch this case.
7363 cat >conftest.$ac_ext <<_ACEOF
7364/* confdefs.h. */
7365_ACEOF
7366cat confdefs.h >>conftest.$ac_ext
7367cat >>conftest.$ac_ext <<_ACEOF
7368/* end confdefs.h. */
7369#ifdef __STDC__
7370# include <limits.h>
7371#else
7372# include <assert.h>
7373#endif
7374 Syntax error
7375_ACEOF
7fbd9d09
FCE
7376if { (ac_try="$ac_cpp conftest.$ac_ext"
7377case "(($ac_try" in
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7380esac
27aba29a
JS
7381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382$as_echo "$ac_try_echo") >&5
7fbd9d09 7383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3bf6ac45
TM
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
27aba29a 7388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7389 (exit $ac_status); } >/dev/null && {
7390 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7391 test ! -s conftest.err
7392 }; then
3bf6ac45
TM
7393 :
7394else
27aba29a 7395 $as_echo "$as_me: failed program was:" >&5
3bf6ac45
TM
7396sed 's/^/| /' conftest.$ac_ext >&5
7397
7398 # Broken: fails on valid input.
7399continue
7400fi
7fbd9d09 7401
3bf6ac45
TM
7402rm -f conftest.err conftest.$ac_ext
7403
7fbd9d09 7404 # OK, works on sane cases. Now check whether nonexistent headers
3bf6ac45
TM
7405 # can be detected and how.
7406 cat >conftest.$ac_ext <<_ACEOF
7407/* confdefs.h. */
7408_ACEOF
7409cat confdefs.h >>conftest.$ac_ext
7410cat >>conftest.$ac_ext <<_ACEOF
7411/* end confdefs.h. */
7412#include <ac_nonexistent.h>
7413_ACEOF
7fbd9d09
FCE
7414if { (ac_try="$ac_cpp conftest.$ac_ext"
7415case "(($ac_try" in
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7418esac
27aba29a
JS
7419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7420$as_echo "$ac_try_echo") >&5
7fbd9d09 7421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3bf6ac45
TM
7422 ac_status=$?
7423 grep -v '^ *+' conftest.er1 >conftest.err
7424 rm -f conftest.er1
7425 cat conftest.err >&5
27aba29a 7426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7427 (exit $ac_status); } >/dev/null && {
7428 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7429 test ! -s conftest.err
7430 }; then
3bf6ac45
TM
7431 # Broken: success on invalid input.
7432continue
7433else
27aba29a 7434 $as_echo "$as_me: failed program was:" >&5
3bf6ac45
TM
7435sed 's/^/| /' conftest.$ac_ext >&5
7436
7437 # Passes both tests.
7438ac_preproc_ok=:
7439break
7440fi
7fbd9d09 7441
3bf6ac45
TM
7442rm -f conftest.err conftest.$ac_ext
7443
7444done
7445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7446rm -f conftest.err conftest.$ac_ext
7447if $ac_preproc_ok; then
7448 break
7449fi
7450
7451 done
7452 ac_cv_prog_CXXCPP=$CXXCPP
7453
7454fi
7455 CXXCPP=$ac_cv_prog_CXXCPP
7456else
7457 ac_cv_prog_CXXCPP=$CXXCPP
7458fi
27aba29a
JS
7459{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7460$as_echo "$CXXCPP" >&6; }
3bf6ac45
TM
7461ac_preproc_ok=false
7462for ac_cxx_preproc_warn_flag in '' yes
7463do
7464 # Use a header file that comes with gcc, so configuring glibc
7465 # with a fresh cross-compiler works.
7466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7467 # <limits.h> exists even on freestanding compilers.
7468 # On the NeXT, cc -E runs the code through the compiler's parser,
7469 # not just through cpp. "Syntax error" is here to catch this case.
7470 cat >conftest.$ac_ext <<_ACEOF
7471/* confdefs.h. */
7472_ACEOF
7473cat confdefs.h >>conftest.$ac_ext
7474cat >>conftest.$ac_ext <<_ACEOF
7475/* end confdefs.h. */
7476#ifdef __STDC__
7477# include <limits.h>
7478#else
7479# include <assert.h>
7480#endif
7481 Syntax error
7482_ACEOF
7fbd9d09
FCE
7483if { (ac_try="$ac_cpp conftest.$ac_ext"
7484case "(($ac_try" in
7485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486 *) ac_try_echo=$ac_try;;
7487esac
27aba29a
JS
7488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7489$as_echo "$ac_try_echo") >&5
7fbd9d09 7490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3bf6ac45
TM
7491 ac_status=$?
7492 grep -v '^ *+' conftest.er1 >conftest.err
7493 rm -f conftest.er1
7494 cat conftest.err >&5
27aba29a 7495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7496 (exit $ac_status); } >/dev/null && {
7497 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7498 test ! -s conftest.err
7499 }; then
3bf6ac45
TM
7500 :
7501else
27aba29a 7502 $as_echo "$as_me: failed program was:" >&5
3bf6ac45
TM
7503sed 's/^/| /' conftest.$ac_ext >&5
7504
7505 # Broken: fails on valid input.
7506continue
7507fi
7fbd9d09 7508
3bf6ac45
TM
7509rm -f conftest.err conftest.$ac_ext
7510
7fbd9d09 7511 # OK, works on sane cases. Now check whether nonexistent headers
3bf6ac45
TM
7512 # can be detected and how.
7513 cat >conftest.$ac_ext <<_ACEOF
7514/* confdefs.h. */
7515_ACEOF
7516cat confdefs.h >>conftest.$ac_ext
7517cat >>conftest.$ac_ext <<_ACEOF
7518/* end confdefs.h. */
7519#include <ac_nonexistent.h>
7520_ACEOF
7fbd9d09
FCE
7521if { (ac_try="$ac_cpp conftest.$ac_ext"
7522case "(($ac_try" in
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7525esac
27aba29a
JS
7526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7527$as_echo "$ac_try_echo") >&5
7fbd9d09 7528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3bf6ac45
TM
7529 ac_status=$?
7530 grep -v '^ *+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
27aba29a 7533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7534 (exit $ac_status); } >/dev/null && {
7535 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7536 test ! -s conftest.err
7537 }; then
3bf6ac45
TM
7538 # Broken: success on invalid input.
7539continue
7540else
27aba29a 7541 $as_echo "$as_me: failed program was:" >&5
3bf6ac45
TM
7542sed 's/^/| /' conftest.$ac_ext >&5
7543
7544 # Passes both tests.
7545ac_preproc_ok=:
7546break
7547fi
7fbd9d09 7548
3bf6ac45
TM
7549rm -f conftest.err conftest.$ac_ext
7550
7551done
7552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7553rm -f conftest.err conftest.$ac_ext
7554if $ac_preproc_ok; then
7555 :
7556else
27aba29a
JS
7557 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7559{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3bf6ac45 7560See \`config.log' for more details." >&5
27aba29a 7561$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3bf6ac45 7562See \`config.log' for more details." >&2;}
27aba29a 7563 { (exit 1); exit 1; }; }; }
3bf6ac45
TM
7564fi
7565
7fbd9d09 7566ac_ext=cpp
3bf6ac45
TM
7567ac_cpp='$CXXCPP $CPPFLAGS'
7568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7571
7572
7573
7574for ac_header in tr1/unordered_map
7575do
27aba29a 7576as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7fbd9d09 7577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a
JS
7578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7579$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 7580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 7581 $as_echo_n "(cached) " >&6
818ba2bc 7582fi
27aba29a
JS
7583ac_res=`eval 'as_val=${'$as_ac_Header'}
7584 $as_echo "$as_val"'`
7585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7586$as_echo "$ac_res" >&6; }
3bf6ac45
TM
7587else
7588 # Is the header compilable?
27aba29a
JS
7589{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7590$as_echo_n "checking $ac_header usability... " >&6; }
3bf6ac45
TM
7591cat >conftest.$ac_ext <<_ACEOF
7592/* confdefs.h. */
7593_ACEOF
7594cat confdefs.h >>conftest.$ac_ext
7595cat >>conftest.$ac_ext <<_ACEOF
7596/* end confdefs.h. */
7597$ac_includes_default
7598#include <$ac_header>
7599_ACEOF
7600rm -f conftest.$ac_objext
7fbd9d09
FCE
7601if { (ac_try="$ac_compile"
7602case "(($ac_try" in
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7605esac
27aba29a
JS
7606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7607$as_echo "$ac_try_echo") >&5
7fbd9d09 7608 (eval "$ac_compile") 2>conftest.er1
3bf6ac45
TM
7609 ac_status=$?
7610 grep -v '^ *+' conftest.er1 >conftest.err
7611 rm -f conftest.er1
7612 cat conftest.err >&5
27aba29a 7613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7614 (exit $ac_status); } && {
7615 test -z "$ac_cxx_werror_flag" ||
7616 test ! -s conftest.err
7617 } && test -s conftest.$ac_objext; then
3bf6ac45
TM
7618 ac_header_compiler=yes
7619else
27aba29a 7620 $as_echo "$as_me: failed program was:" >&5
3bf6ac45
TM
7621sed 's/^/| /' conftest.$ac_ext >&5
7622
7fbd9d09 7623 ac_header_compiler=no
3bf6ac45 7624fi
7fbd9d09
FCE
7625
7626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27aba29a
JS
7627{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7628$as_echo "$ac_header_compiler" >&6; }
3bf6ac45
TM
7629
7630# Is the header present?
27aba29a
JS
7631{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7632$as_echo_n "checking $ac_header presence... " >&6; }
3bf6ac45
TM
7633cat >conftest.$ac_ext <<_ACEOF
7634/* confdefs.h. */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h. */
7639#include <$ac_header>
7640_ACEOF
7fbd9d09
FCE
7641if { (ac_try="$ac_cpp conftest.$ac_ext"
7642case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645esac
27aba29a
JS
7646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7647$as_echo "$ac_try_echo") >&5
7fbd9d09 7648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3bf6ac45
TM
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
27aba29a 7653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7654 (exit $ac_status); } >/dev/null && {
7655 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7656 test ! -s conftest.err
7657 }; then
3bf6ac45
TM
7658 ac_header_preproc=yes
7659else
27aba29a 7660 $as_echo "$as_me: failed program was:" >&5
3bf6ac45
TM
7661sed 's/^/| /' conftest.$ac_ext >&5
7662
7663 ac_header_preproc=no
7664fi
7fbd9d09 7665
3bf6ac45 7666rm -f conftest.err conftest.$ac_ext
27aba29a
JS
7667{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7668$as_echo "$ac_header_preproc" >&6; }
3bf6ac45
TM
7669
7670# So? What about this header?
7671case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7672 yes:no: )
27aba29a
JS
7673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7674$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7676$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3bf6ac45
TM
7677 ac_header_preproc=yes
7678 ;;
7679 no:yes:* )
27aba29a
JS
7680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7681$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7683$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7685$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7687$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7689$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7691$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7fbd9d09 7692 ( cat <<\_ASBOX
3bf6ac45
TM
7693## ------------------------------------------- ##
7694## Report this to systemtap@sources.redhat.com ##
7695## ------------------------------------------- ##
7696_ASBOX
7fbd9d09 7697 ) | sed "s/^/$as_me: WARNING: /" >&2
3bf6ac45
TM
7698 ;;
7699esac
27aba29a
JS
7700{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7701$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 7702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 7703 $as_echo_n "(cached) " >&6
3bf6ac45
TM
7704else
7705 eval "$as_ac_Header=\$ac_header_preproc"
7706fi
27aba29a
JS
7707ac_res=`eval 'as_val=${'$as_ac_Header'}
7708 $as_echo "$as_val"'`
7709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7710$as_echo "$ac_res" >&6; }
3bf6ac45
TM
7711
7712fi
27aba29a
JS
7713as_val=`eval 'as_val=${'$as_ac_Header'}
7714 $as_echo "$as_val"'`
7715 if test "x$as_val" = x""yes; then
3bf6ac45 7716 cat >>confdefs.h <<_ACEOF
27aba29a 7717#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3bf6ac45
TM
7718_ACEOF
7719
7720fi
7721
7722done
7723
7724ac_ext=c
7725ac_cpp='$CPP $CPPFLAGS'
7726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7728ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729
7730
e016a49a
FCE
7731
7732if test $build_elfutils = yes; then
7733 case "$with_elfutils" in
7734 /*) elfutils_srcdir="$with_elfutils" ;;
7735 *) elfutils_srcdir="../$with_elfutils" ;;
7736 esac
27aba29a
JS
7737 { $as_echo "$as_me:$LINENO: running ${elfutils_srcdir}/configure" >&5
7738$as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
e016a49a
FCE
7739 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
7740 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
7741 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
7742 # So we must make sure to pass those settings to elfutils configure.
7743 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
7744 here=`pwd`
7745 (mkdir -p build-elfutils && cd build-elfutils &&
7746 ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
7747 --includedir="${here}/include-elfutils" \
7748 --libdir="${here}/lib-elfutils" \
7749 --exec-prefix="$exec_prefix" \
7750 --prefix="$prefix" \
7751 CFLAGS="${CFLAGS/-Wall/}" \
7752 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
e3633556
MW
7753 if test -f ${elfutils_srcdir}/config/version.h.in; then
7754 echo Trying to install elfutils version header...
7755 make install-pkgincludeHEADERS
7756 fi
7757 # so that elfutils/version.h - available from 0.138 - may be found.
93f86457 7758 # Don't use install-data because that will fail (installing in $prefix).
e016a49a 7759 )
93f86457 7760 if test $? != 0; then exit; fi
1c4cf93d
MW
7761 save_CPPFLAGS=${CPPFLAGS}
7762 CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils
7763
7764for ac_header in elfutils/version.h
7765do
27aba29a 7766as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7fbd9d09 7767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a
JS
7768 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7769$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 7770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 7771 $as_echo_n "(cached) " >&6
818ba2bc 7772fi
27aba29a
JS
7773ac_res=`eval 'as_val=${'$as_ac_Header'}
7774 $as_echo "$as_val"'`
7775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7776$as_echo "$ac_res" >&6; }
1c4cf93d
MW
7777else
7778 # Is the header compilable?
27aba29a
JS
7779{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7780$as_echo_n "checking $ac_header usability... " >&6; }
1c4cf93d
MW
7781cat >conftest.$ac_ext <<_ACEOF
7782/* confdefs.h. */
7783_ACEOF
7784cat confdefs.h >>conftest.$ac_ext
7785cat >>conftest.$ac_ext <<_ACEOF
7786/* end confdefs.h. */
7787$ac_includes_default
7788#include <$ac_header>
7789_ACEOF
7790rm -f conftest.$ac_objext
7fbd9d09
FCE
7791if { (ac_try="$ac_compile"
7792case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7795esac
27aba29a
JS
7796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7797$as_echo "$ac_try_echo") >&5
7fbd9d09 7798 (eval "$ac_compile") 2>conftest.er1
1c4cf93d
MW
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
27aba29a 7803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
1c4cf93d
MW
7808 ac_header_compiler=yes
7809else
27aba29a 7810 $as_echo "$as_me: failed program was:" >&5
1c4cf93d
MW
7811sed 's/^/| /' conftest.$ac_ext >&5
7812
7fbd9d09 7813 ac_header_compiler=no
e016a49a 7814fi
7fbd9d09
FCE
7815
7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27aba29a
JS
7817{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7818$as_echo "$ac_header_compiler" >&6; }
1c4cf93d
MW
7819
7820# Is the header present?
27aba29a
JS
7821{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7822$as_echo_n "checking $ac_header presence... " >&6; }
1c4cf93d
MW
7823cat >conftest.$ac_ext <<_ACEOF
7824/* confdefs.h. */
7825_ACEOF
7826cat confdefs.h >>conftest.$ac_ext
7827cat >>conftest.$ac_ext <<_ACEOF
7828/* end confdefs.h. */
7829#include <$ac_header>
7830_ACEOF
7fbd9d09
FCE
7831if { (ac_try="$ac_cpp conftest.$ac_ext"
7832case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835esac
27aba29a
JS
7836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7837$as_echo "$ac_try_echo") >&5
7fbd9d09 7838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1c4cf93d
MW
7839 ac_status=$?
7840 grep -v '^ *+' conftest.er1 >conftest.err
7841 rm -f conftest.er1
7842 cat conftest.err >&5
27aba29a 7843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7844 (exit $ac_status); } >/dev/null && {
7845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7847 }; then
1c4cf93d
MW
7848 ac_header_preproc=yes
7849else
27aba29a 7850 $as_echo "$as_me: failed program was:" >&5
1c4cf93d
MW
7851sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 ac_header_preproc=no
7854fi
7fbd9d09 7855
1c4cf93d 7856rm -f conftest.err conftest.$ac_ext
27aba29a
JS
7857{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7858$as_echo "$ac_header_preproc" >&6; }
1c4cf93d
MW
7859
7860# So? What about this header?
7861case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7862 yes:no: )
27aba29a
JS
7863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7864$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7866$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
1c4cf93d
MW
7867 ac_header_preproc=yes
7868 ;;
7869 no:yes:* )
27aba29a
JS
7870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7871$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7873$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7875$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7877$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7879$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7881$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7fbd9d09 7882 ( cat <<\_ASBOX
1c4cf93d
MW
7883## ------------------------------------------- ##
7884## Report this to systemtap@sources.redhat.com ##
7885## ------------------------------------------- ##
7886_ASBOX
7fbd9d09 7887 ) | sed "s/^/$as_me: WARNING: /" >&2
1c4cf93d
MW
7888 ;;
7889esac
27aba29a
JS
7890{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7891$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 7892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 7893 $as_echo_n "(cached) " >&6
1c4cf93d
MW
7894else
7895 eval "$as_ac_Header=\$ac_header_preproc"
7896fi
27aba29a
JS
7897ac_res=`eval 'as_val=${'$as_ac_Header'}
7898 $as_echo "$as_val"'`
7899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7900$as_echo "$ac_res" >&6; }
1c4cf93d
MW
7901
7902fi
27aba29a
JS
7903as_val=`eval 'as_val=${'$as_ac_Header'}
7904 $as_echo "$as_val"'`
7905 if test "x$as_val" = x""yes; then
1c4cf93d 7906 cat >>confdefs.h <<_ACEOF
27aba29a 7907#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1c4cf93d
MW
7908_ACEOF
7909
7910fi
7911
7912done
7913
7914 CPPFLAGS="$save_CPPFLAGS"
7915else
e016a49a
FCE
7916
7917for ac_header in elfutils/version.h
7918do
27aba29a 7919as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7fbd9d09 7920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a
JS
7921 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7922$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 7923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 7924 $as_echo_n "(cached) " >&6
818ba2bc 7925fi
27aba29a
JS
7926ac_res=`eval 'as_val=${'$as_ac_Header'}
7927 $as_echo "$as_val"'`
7928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7929$as_echo "$ac_res" >&6; }
e016a49a
FCE
7930else
7931 # Is the header compilable?
27aba29a
JS
7932{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7933$as_echo_n "checking $ac_header usability... " >&6; }
e016a49a
FCE
7934cat >conftest.$ac_ext <<_ACEOF
7935/* confdefs.h. */
7936_ACEOF
7937cat confdefs.h >>conftest.$ac_ext
7938cat >>conftest.$ac_ext <<_ACEOF
7939/* end confdefs.h. */
7940$ac_includes_default
7941#include <$ac_header>
7942_ACEOF
7943rm -f conftest.$ac_objext
7fbd9d09
FCE
7944if { (ac_try="$ac_compile"
7945case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948esac
27aba29a
JS
7949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7950$as_echo "$ac_try_echo") >&5
7fbd9d09 7951 (eval "$ac_compile") 2>conftest.er1
e016a49a
FCE
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
27aba29a 7956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest.$ac_objext; then
e016a49a
FCE
7961 ac_header_compiler=yes
7962else
27aba29a 7963 $as_echo "$as_me: failed program was:" >&5
e016a49a
FCE
7964sed 's/^/| /' conftest.$ac_ext >&5
7965
7fbd9d09 7966 ac_header_compiler=no
e016a49a 7967fi
7fbd9d09
FCE
7968
7969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27aba29a
JS
7970{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7971$as_echo "$ac_header_compiler" >&6; }
e016a49a
FCE
7972
7973# Is the header present?
27aba29a
JS
7974{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7975$as_echo_n "checking $ac_header presence... " >&6; }
e016a49a
FCE
7976cat >conftest.$ac_ext <<_ACEOF
7977/* confdefs.h. */
7978_ACEOF
7979cat confdefs.h >>conftest.$ac_ext
7980cat >>conftest.$ac_ext <<_ACEOF
7981/* end confdefs.h. */
7982#include <$ac_header>
7983_ACEOF
7fbd9d09
FCE
7984if { (ac_try="$ac_cpp conftest.$ac_ext"
7985case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7988esac
27aba29a
JS
7989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7990$as_echo "$ac_try_echo") >&5
7fbd9d09 7991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
e016a49a
FCE
7992 ac_status=$?
7993 grep -v '^ *+' conftest.er1 >conftest.err
7994 rm -f conftest.er1
7995 cat conftest.err >&5
27aba29a 7996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7997 (exit $ac_status); } >/dev/null && {
7998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7999 test ! -s conftest.err
8000 }; then
e016a49a
FCE
8001 ac_header_preproc=yes
8002else
27aba29a 8003 $as_echo "$as_me: failed program was:" >&5
e016a49a
FCE
8004sed 's/^/| /' conftest.$ac_ext >&5
8005
8006 ac_header_preproc=no
8007fi
7fbd9d09 8008
e016a49a 8009rm -f conftest.err conftest.$ac_ext
27aba29a
JS
8010{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8011$as_echo "$ac_header_preproc" >&6; }
e016a49a
FCE
8012
8013# So? What about this header?
8014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8015 yes:no: )
27aba29a
JS
8016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8017$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8019$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
e016a49a
FCE
8020 ac_header_preproc=yes
8021 ;;
8022 no:yes:* )
27aba29a
JS
8023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8024$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8026$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8028$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8030$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8032$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8034$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7fbd9d09 8035 ( cat <<\_ASBOX
e016a49a
FCE
8036## ------------------------------------------- ##
8037## Report this to systemtap@sources.redhat.com ##
8038## ------------------------------------------- ##
8039_ASBOX
7fbd9d09 8040 ) | sed "s/^/$as_me: WARNING: /" >&2
e016a49a
FCE
8041 ;;
8042esac
27aba29a
JS
8043{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8044$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 8045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 8046 $as_echo_n "(cached) " >&6
e016a49a
FCE
8047else
8048 eval "$as_ac_Header=\$ac_header_preproc"
8049fi
27aba29a
JS
8050ac_res=`eval 'as_val=${'$as_ac_Header'}
8051 $as_echo "$as_val"'`
8052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8053$as_echo "$ac_res" >&6; }
e016a49a
FCE
8054
8055fi
27aba29a
JS
8056as_val=`eval 'as_val=${'$as_ac_Header'}
8057 $as_echo "$as_val"'`
8058 if test "x$as_val" = x""yes; then
e016a49a 8059 cat >>confdefs.h <<_ACEOF
27aba29a 8060#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
e016a49a
FCE
8061_ACEOF
8062
8063fi
8064
8065done
8066
1c4cf93d 8067fi
e016a49a 8068
50431f30
MW
8069
8070cat >>confdefs.h <<_ACEOF
8071#define STAP_PREFIX "$prefix"
8072_ACEOF
8073
8074
7fbd9d09 8075ac_config_headers="$ac_config_headers config.h:config.in"
daae650d 8076
e97c0b29 8077ac_config_files="$ac_config_files Makefile doc/Makefile doc/SystemTap_Tapset_Reference/Makefile stap.1 stapprobes.3stap stapfuncs.3stap stapvars.3stap stapex.3stap staprun.8 stap-server.8 man/stapprobes.iosched.3stap man/stapprobes.netdev.3stap man/stapprobes.nfs.3stap man/stapprobes.nfsd.3stap man/stapprobes.pagefault.3stap man/stapprobes.process.3stap man/stapprobes.rpc.3stap man/stapprobes.scsi.3stap man/stapprobes.signal.3stap man/stapprobes.socket.3stap man/stapprobes.tcp.3stap man/stapprobes.udp.3stap initscript/systemtap"
daae650d 8078
27aba29a
JS
8079
8080
5ba96b90
FCE
8081subdirs="$subdirs testsuite"
8082
7fbd9d09 8083ac_config_files="$ac_config_files run-stap"
2f62657c 8084
2f1a1aea
FCE
8085cat >confcache <<\_ACEOF
8086# This file is a shell script that caches the results of configure
8087# tests run on this system so they can be shared between configure
8088# scripts and configure runs, see configure's option --config-cache.
8089# It is not useful on other systems. If it contains results you don't
8090# want to keep, you may remove or edit it.
8091#
8092# config.status only pays attention to the cache file if you give it
8093# the --recheck option to rerun configure.
8094#
8095# `ac_cv_env_foo' variables (set or unset) will be overridden when
8096# loading this file, other *unset* `ac_cv_foo' will be assigned the
8097# following values.
8098
8099_ACEOF
8100
8101# The following way of writing the cache mishandles newlines in values,
8102# but we know of no workaround that is simple, portable, and efficient.
7fbd9d09 8103# So, we kill variables containing newlines.
2f1a1aea
FCE
8104# Ultrix sh set writes to stderr and can't be redirected directly,
8105# and sets the high bit in the cache file unless we assign to the vars.
7fbd9d09
FCE
8106(
8107 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8108 eval ac_val=\$$ac_var
8109 case $ac_val in #(
8110 *${as_nl}*)
8111 case $ac_var in #(
27aba29a
JS
8112 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8113$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7fbd9d09
FCE
8114 esac
8115 case $ac_var in #(
8116 _ | IFS | as_nl) ;; #(
27aba29a 8117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7fbd9d09
FCE
8118 *) $as_unset $ac_var ;;
8119 esac ;;
8120 esac
8121 done
8122
2f1a1aea 8123 (set) 2>&1 |
7fbd9d09
FCE
8124 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8125 *${as_nl}ac_space=\ *)
2f1a1aea
FCE
8126 # `set' does not quote correctly, so add quotes (double-quote
8127 # substitution turns \\\\ into \\, and sed turns \\ into \).
8128 sed -n \
8129 "s/'/'\\\\''/g;
8130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7fbd9d09 8131 ;; #(
2f1a1aea
FCE
8132 *)
8133 # `set' quotes correctly as required by POSIX, so do not add quotes.
7fbd9d09 8134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2f1a1aea 8135 ;;
7fbd9d09
FCE
8136 esac |
8137 sort
8138) |
2f1a1aea 8139 sed '
7fbd9d09 8140 /^ac_cv_env_/b end
2f1a1aea 8141 t clear
7fbd9d09 8142 :clear
2f1a1aea
FCE
8143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8144 t end
7fbd9d09
FCE
8145 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8146 :end' >>confcache
8147if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8148 if test -w "$cache_file"; then
8149 test "x$cache_file" != "x/dev/null" &&
27aba29a
JS
8150 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8151$as_echo "$as_me: updating cache $cache_file" >&6;}
2f1a1aea
FCE
8152 cat confcache >$cache_file
8153 else
27aba29a
JS
8154 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8155$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2f1a1aea
FCE
8156 fi
8157fi
8158rm -f confcache
8159
8160test "x$prefix" = xNONE && prefix=$ac_default_prefix
8161# Let make expand exec_prefix.
8162test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8163
2f1a1aea
FCE
8164DEFS=-DHAVE_CONFIG_H
8165
8166ac_libobjs=
8167ac_ltlibobjs=
8168for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8169 # 1. Remove the extension, and $U if already installed.
7fbd9d09 8170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27aba29a 8171 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7fbd9d09
FCE
8172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8173 # will be set to the directory where LIBOBJS objects are built.
8174 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8175 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2f1a1aea
FCE
8176done
8177LIBOBJS=$ac_libobjs
8178
8179LTLIBOBJS=$ac_ltlibobjs
8180
8181
8182if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27aba29a 8183 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
2f1a1aea 8184Usually this means the macro was only invoked conditionally." >&5
27aba29a 8185$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
2f1a1aea
FCE
8186Usually this means the macro was only invoked conditionally." >&2;}
8187 { (exit 1); exit 1; }; }
8188fi
8189if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27aba29a 8190 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
2f1a1aea 8191Usually this means the macro was only invoked conditionally." >&5
27aba29a 8192$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
2f1a1aea
FCE
8193Usually this means the macro was only invoked conditionally." >&2;}
8194 { (exit 1); exit 1; }; }
8195fi
8196if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27aba29a 8197 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2f1a1aea 8198Usually this means the macro was only invoked conditionally." >&5
27aba29a 8199$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2f1a1aea
FCE
8200Usually this means the macro was only invoked conditionally." >&2;}
8201 { (exit 1); exit 1; }; }
8202fi
8203if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27aba29a 8204 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
2f1a1aea 8205Usually this means the macro was only invoked conditionally." >&5
27aba29a 8206$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
2f1a1aea
FCE
8207Usually this means the macro was only invoked conditionally." >&2;}
8208 { (exit 1); exit 1; }; }
8209fi
8210if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27aba29a 8211 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2f1a1aea 8212Usually this means the macro was only invoked conditionally." >&5
27aba29a 8213$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2f1a1aea
FCE
8214Usually this means the macro was only invoked conditionally." >&2;}
8215 { (exit 1); exit 1; }; }
8216fi
e8f3c2c2 8217if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
27aba29a 8218 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_CRASHMOD\" was never defined.
4d9087fc 8219Usually this means the macro was only invoked conditionally." >&5
27aba29a 8220$as_echo "$as_me: error: conditional \"BUILD_CRASHMOD\" was never defined.
4d9087fc
RM
8221Usually this means the macro was only invoked conditionally." >&2;}
8222 { (exit 1); exit 1; }; }
8223fi
465e8fbf 8224if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
27aba29a 8225 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
92aff3c7 8226Usually this means the macro was only invoked conditionally." >&5
27aba29a 8227$as_echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
92aff3c7
WC
8228Usually this means the macro was only invoked conditionally." >&2;}
8229 { (exit 1); exit 1; }; }
8230fi
8231if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
27aba29a 8232 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_REFDOCS\" was never defined.
19a0d4b6 8233Usually this means the macro was only invoked conditionally." >&5
27aba29a 8234$as_echo "$as_me: error: conditional \"BUILD_REFDOCS\" was never defined.
19a0d4b6
MW
8235Usually this means the macro was only invoked conditionally." >&2;}
8236 { (exit 1); exit 1; }; }
8237fi
8238if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
27aba29a 8239 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SERVER\" was never defined.
465e8fbf 8240Usually this means the macro was only invoked conditionally." >&5
27aba29a 8241$as_echo "$as_me: error: conditional \"BUILD_SERVER\" was never defined.
465e8fbf
FCE
8242Usually this means the macro was only invoked conditionally." >&2;}
8243 { (exit 1); exit 1; }; }
8244fi
e8f3c2c2 8245if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
27aba29a 8246 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ELFUTILS\" was never defined.
35a04c8e 8247Usually this means the macro was only invoked conditionally." >&5
27aba29a 8248$as_echo "$as_me: error: conditional \"BUILD_ELFUTILS\" was never defined.
35a04c8e
FCE
8249Usually this means the macro was only invoked conditionally." >&2;}
8250 { (exit 1); exit 1; }; }
8251fi
2f1a1aea
FCE
8252
8253: ${CONFIG_STATUS=./config.status}
27aba29a 8254ac_write_fail=0
2f1a1aea
FCE
8255ac_clean_files_save=$ac_clean_files
8256ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27aba29a
JS
8257{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8258$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8259cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea
FCE
8260#! $SHELL
8261# Generated by $as_me.
8262# Run this file to recreate the current configuration.
8263# Compiler output produced by configure, useful for debugging
8264# configure, is in config.log if it exists.
8265
8266debug=false
8267ac_cs_recheck=false
8268ac_cs_silent=false
8269SHELL=\${CONFIG_SHELL-$SHELL}
8270_ACEOF
8271
27aba29a 8272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2f1a1aea
FCE
8273## --------------------- ##
8274## M4sh Initialization. ##
8275## --------------------- ##
8276
7fbd9d09
FCE
8277# Be more Bourne compatible
8278DUALCASE=1; export DUALCASE # for MKS sh
2f1a1aea
FCE
8279if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8280 emulate sh
8281 NULLCMD=:
27aba29a 8282 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2f1a1aea
FCE
8283 # is contrary to our usage. Disable this feature.
8284 alias -g '${1+"$@"}'='"$@"'
7fbd9d09 8285 setopt NO_GLOB_SUBST
2f1a1aea 8286else
7fbd9d09
FCE
8287 case `(set -o) 2>/dev/null` in
8288 *posix*) set -o posix ;;
8289esac
8290
2f1a1aea
FCE
8291fi
8292
8293
7fbd9d09
FCE
8294
8295
8296# PATH needs CR
8297# Avoid depending upon Character Ranges.
8298as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8299as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8300as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8301as_cr_digits='0123456789'
8302as_cr_alnum=$as_cr_Letters$as_cr_digits
8303
27aba29a
JS
8304as_nl='
8305'
8306export as_nl
8307# Printing a long string crashes Solaris 7 /usr/bin/printf.
8308as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8309as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8310as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8311if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8312 as_echo='printf %s\n'
8313 as_echo_n='printf %s'
8314else
8315 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8316 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8317 as_echo_n='/usr/ucb/echo -n'
7fbd9d09 8318 else
27aba29a
JS
8319 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8320 as_echo_n_body='eval
8321 arg=$1;
8322 case $arg in
8323 *"$as_nl"*)
8324 expr "X$arg" : "X\\(.*\\)$as_nl";
8325 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8326 esac;
8327 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8328 '
8329 export as_echo_n_body
8330 as_echo_n='sh -c $as_echo_n_body as_echo'
7fbd9d09 8331 fi
27aba29a
JS
8332 export as_echo_body
8333 as_echo='sh -c $as_echo_body as_echo'
8334fi
8335
8336# The user is always right.
8337if test "${PATH_SEPARATOR+set}" != set; then
8338 PATH_SEPARATOR=:
8339 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8340 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8341 PATH_SEPARATOR=';'
8342 }
7fbd9d09
FCE
8343fi
8344
8345# Support unset when possible.
8346if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8347 as_unset=unset
8348else
8349 as_unset=false
8350fi
8351
8352
8353# IFS
8354# We need space, tab and new line, in precisely that order. Quoting is
8355# there to prevent editors from complaining about space-tab.
8356# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8357# splitting by setting IFS to empty value.)
7fbd9d09
FCE
8358IFS=" "" $as_nl"
8359
8360# Find who we are. Look in the path if we contain no directory separator.
8361case $0 in
8362 *[\\/]* ) as_myself=$0 ;;
8363 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8369done
8370IFS=$as_save_IFS
8371
8372 ;;
8373esac
8374# We did not find ourselves, most probably we were run as `sh COMMAND'
8375# in which case we are not to be found in the path.
8376if test "x$as_myself" = x; then
8377 as_myself=$0
8378fi
8379if test ! -f "$as_myself"; then
27aba29a 8380 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7fbd9d09
FCE
8381 { (exit 1); exit 1; }
8382fi
8383
8384# Work around bugs in pre-3.0 UWIN ksh.
8385for as_var in ENV MAIL MAILPATH
8386do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8387done
8388PS1='$ '
2f1a1aea
FCE
8389PS2='> '
8390PS4='+ '
8391
8392# NLS nuisances.
27aba29a
JS
8393LC_ALL=C
8394export LC_ALL
8395LANGUAGE=C
8396export LANGUAGE
2f1a1aea
FCE
8397
8398# Required to use basename.
7fbd9d09
FCE
8399if expr a : '\(a\)' >/dev/null 2>&1 &&
8400 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2f1a1aea
FCE
8401 as_expr=expr
8402else
8403 as_expr=false
8404fi
8405
7fbd9d09 8406if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2f1a1aea
FCE
8407 as_basename=basename
8408else
8409 as_basename=false
8410fi
8411
8412
8413# Name of the executable.
7fbd9d09 8414as_me=`$as_basename -- "$0" ||
2f1a1aea
FCE
8415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8416 X"$0" : 'X\(//\)$' \| \
7fbd9d09 8417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 8418$as_echo X/"$0" |
7fbd9d09
FCE
8419 sed '/^.*\/\([^/][^/]*\)\/*$/{
8420 s//\1/
8421 q
8422 }
8423 /^X\/\(\/\/\)$/{
8424 s//\1/
8425 q
8426 }
8427 /^X\/\(\/\).*/{
8428 s//\1/
8429 q
8430 }
8431 s/.*/./; q'`
8ae7a94a 8432
7fbd9d09
FCE
8433# CDPATH.
8434$as_unset CDPATH
2f1a1aea 8435
8ae7a94a 8436
818ba2bc 8437
818ba2bc
MW
8438 as_lineno_1=$LINENO
8439 as_lineno_2=$LINENO
818ba2bc 8440 test "x$as_lineno_1" != "x$as_lineno_2" &&
7fbd9d09 8441 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
818ba2bc
MW
8442
8443 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8444 # uniformly replaced by the line number. The first 'sed' inserts a
7fbd9d09
FCE
8445 # line-number line after each line using $LINENO; the second 'sed'
8446 # does the real work. The second script uses 'N' to pair each
8447 # line-number line with the line containing $LINENO, and appends
8448 # trailing '-' during substitution so that $LINENO is not a special
8449 # case at line end.
2f1a1aea 8450 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7fbd9d09
FCE
8451 # scripts with optimization help from Paolo Bonzini. Blame Lee
8452 # E. McMahon (1931-1989) for sed's syntax. :-)
8453 sed -n '
8454 p
8455 /[$]LINENO/=
8456 ' <$as_myself |
2f1a1aea 8457 sed '
7fbd9d09
FCE
8458 s/[$]LINENO.*/&-/
8459 t lineno
8460 b
8461 :lineno
2f1a1aea 8462 N
7fbd9d09
FCE
8463 :loop
8464 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2f1a1aea 8465 t loop
7fbd9d09 8466 s/-\n.*//
2f1a1aea 8467 ' >$as_me.lineno &&
7fbd9d09 8468 chmod +x "$as_me.lineno" ||
27aba29a 8469 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2f1a1aea
FCE
8470 { (exit 1); exit 1; }; }
8471
8472 # Don't try to exec as it changes $[0], causing all sort of problems
8473 # (the dirname of $[0] is not the place where we might find the
7fbd9d09
FCE
8474 # original and so on. Autoconf is especially sensitive to this).
8475 . "./$as_me.lineno"
2f1a1aea
FCE
8476 # Exit status is that of the last command.
8477 exit
8478}
8479
8480
7fbd9d09
FCE
8481if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8482 as_dirname=dirname
8483else
8484 as_dirname=false
8485fi
8486
8487ECHO_C= ECHO_N= ECHO_T=
8488case `echo -n x` in
8489-n*)
8490 case `echo 'x\c'` in
8491 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8492 *) ECHO_C='\c';;
8493 esac;;
8494*)
8495 ECHO_N='-n';;
2f1a1aea 8496esac
7fbd9d09
FCE
8497if expr a : '\(a\)' >/dev/null 2>&1 &&
8498 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2f1a1aea
FCE
8499 as_expr=expr
8500else
8501 as_expr=false
8502fi
8503
8504rm -f conf$$ conf$$.exe conf$$.file
7fbd9d09
FCE
8505if test -d conf$$.dir; then
8506 rm -f conf$$.dir/conf$$.file
8507else
8508 rm -f conf$$.dir
27aba29a
JS
8509 mkdir conf$$.dir 2>/dev/null
8510fi
8511if (echo >conf$$.file) 2>/dev/null; then
8512 if ln -s conf$$.file conf$$ 2>/dev/null; then
8513 as_ln_s='ln -s'
8514 # ... but there are two gotchas:
8515 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8516 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8517 # In both cases, we have to default to `cp -p'.
8518 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8519 as_ln_s='cp -p'
8520 elif ln conf$$.file conf$$ 2>/dev/null; then
8521 as_ln_s=ln
8522 else
2f1a1aea 8523 as_ln_s='cp -p'
27aba29a 8524 fi
2f1a1aea
FCE
8525else
8526 as_ln_s='cp -p'
8527fi
7fbd9d09
FCE
8528rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8529rmdir conf$$.dir 2>/dev/null
2f1a1aea
FCE
8530
8531if mkdir -p . 2>/dev/null; then
8532 as_mkdir_p=:
8533else
8534 test -d ./-p && rmdir ./-p
8535 as_mkdir_p=false
8536fi
8537
7fbd9d09
FCE
8538if test -x / >/dev/null 2>&1; then
8539 as_test_x='test -x'
8540else
8541 if ls -dL / >/dev/null 2>&1; then
8542 as_ls_L_option=L
8543 else
8544 as_ls_L_option=
8545 fi
8546 as_test_x='
8547 eval sh -c '\''
8548 if test -d "$1"; then
27aba29a 8549 test -d "$1/.";
7fbd9d09
FCE
8550 else
8551 case $1 in
27aba29a 8552 -*)set "./$1";;
7fbd9d09
FCE
8553 esac;
8554 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8555 ???[sx]*):;;*)false;;esac;fi
8556 '\'' sh
8557 '
8558fi
8559as_executable_p=$as_test_x
2f1a1aea
FCE
8560
8561# Sed expression to map a string onto a valid CPP name.
8562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8563
8564# Sed expression to map a string onto a valid variable name.
8565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8566
8567
2f1a1aea
FCE
8568exec 6>&1
8569
7fbd9d09 8570# Save the log message, to keep $[0] and so on meaningful, and to
2f1a1aea 8571# report actual input values of CONFIG_FILES etc. instead of their
7fbd9d09
FCE
8572# values after options handling.
8573ac_log="
27aba29a
JS
8574This file was extended by systemtap $as_me 0.9.5, which was
8575generated by GNU Autoconf 2.63. Invocation command line was
2f1a1aea
FCE
8576
8577 CONFIG_FILES = $CONFIG_FILES
8578 CONFIG_HEADERS = $CONFIG_HEADERS
8579 CONFIG_LINKS = $CONFIG_LINKS
8580 CONFIG_COMMANDS = $CONFIG_COMMANDS
8581 $ $0 $@
8582
7fbd9d09
FCE
8583on `(hostname || uname -n) 2>/dev/null | sed 1q`
8584"
8585
2f1a1aea
FCE
8586_ACEOF
8587
27aba29a
JS
8588case $ac_config_files in *"
8589"*) set x $ac_config_files; shift; ac_config_files=$*;;
8590esac
8591
8592case $ac_config_headers in *"
8593"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8594esac
8595
8596
8597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
818ba2bc 8598# Files that config.status was made for.
7fbd9d09
FCE
8599config_files="$ac_config_files"
8600config_headers="$ac_config_headers"
8601config_commands="$ac_config_commands"
daae650d 8602
7fbd9d09 8603_ACEOF
8ae7a94a 8604
27aba29a 8605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2f1a1aea
FCE
8606ac_cs_usage="\
8607\`$as_me' instantiates files from templates according to the
8608current configuration.
8609
27aba29a 8610Usage: $0 [OPTION]... [FILE]...
2f1a1aea
FCE
8611
8612 -h, --help print this help, then exit
7fbd9d09 8613 -V, --version print version number and configuration settings, then exit
27aba29a
JS
8614 -q, --quiet, --silent
8615 do not print progress messages
2f1a1aea
FCE
8616 -d, --debug don't remove temporary files
8617 --recheck update $as_me by reconfiguring in the same conditions
27aba29a
JS
8618 --file=FILE[:TEMPLATE]
8619 instantiate the configuration file FILE
8620 --header=FILE[:TEMPLATE]
8621 instantiate the configuration header FILE
2f1a1aea
FCE
8622
8623Configuration files:
8624$config_files
8625
8626Configuration headers:
8627$config_headers
8628
8629Configuration commands:
8630$config_commands
8631
8632Report bugs to <bug-autoconf@gnu.org>."
818ba2bc 8633
7fbd9d09 8634_ACEOF
27aba29a 8635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 8636ac_cs_version="\\
27aba29a
JS
8637systemtap config.status 0.9.5
8638configured by $0, generated by GNU Autoconf 2.63,
8639 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2f1a1aea 8640
27aba29a 8641Copyright (C) 2008 Free Software Foundation, Inc.
2f1a1aea
FCE
8642This config.status script is free software; the Free Software Foundation
8643gives unlimited permission to copy, distribute and modify it."
7fbd9d09
FCE
8644
8645ac_pwd='$ac_pwd'
8646srcdir='$srcdir'
8647INSTALL='$INSTALL'
8648MKDIR_P='$MKDIR_P'
27aba29a
JS
8649AWK='$AWK'
8650test -n "\$AWK" || AWK=awk
2f1a1aea
FCE
8651_ACEOF
8652
27aba29a
JS
8653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8654# The default lists apply if the user does not specify any file.
2f1a1aea
FCE
8655ac_need_defaults=:
8656while test $# != 0
8657do
8658 case $1 in
8659 --*=*)
7fbd9d09
FCE
8660 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8661 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2f1a1aea
FCE
8662 ac_shift=:
8663 ;;
7fbd9d09 8664 *)
2f1a1aea
FCE
8665 ac_option=$1
8666 ac_optarg=$2
8667 ac_shift=shift
8668 ;;
2f1a1aea
FCE
8669 esac
8670
8671 case $ac_option in
8672 # Handling of the options.
2f1a1aea
FCE
8673 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8674 ac_cs_recheck=: ;;
7fbd9d09 8675 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27aba29a 8676 $as_echo "$ac_cs_version"; exit ;;
7fbd9d09 8677 --debug | --debu | --deb | --de | --d | -d )
2f1a1aea
FCE
8678 debug=: ;;
8679 --file | --fil | --fi | --f )
8680 $ac_shift
27aba29a
JS
8681 case $ac_optarg in
8682 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8683 esac
8684 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
2f1a1aea
FCE
8685 ac_need_defaults=false;;
8686 --header | --heade | --head | --hea )
8687 $ac_shift
27aba29a
JS
8688 case $ac_optarg in
8689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8690 esac
8691 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
2f1a1aea 8692 ac_need_defaults=false;;
7fbd9d09
FCE
8693 --he | --h)
8694 # Conflict between --help and --header
27aba29a 8695 { $as_echo "$as_me: error: ambiguous option: $1
7fbd9d09
FCE
8696Try \`$0 --help' for more information." >&2
8697 { (exit 1); exit 1; }; };;
8698 --help | --hel | -h )
27aba29a 8699 $as_echo "$ac_cs_usage"; exit ;;
2f1a1aea
FCE
8700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8701 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8702 ac_cs_silent=: ;;
8703
8704 # This is an error.
27aba29a 8705 -*) { $as_echo "$as_me: error: unrecognized option: $1
7fbd9d09 8706Try \`$0 --help' for more information." >&2
2f1a1aea
FCE
8707 { (exit 1); exit 1; }; } ;;
8708
7fbd9d09
FCE
8709 *) ac_config_targets="$ac_config_targets $1"
8710 ac_need_defaults=false ;;
2f1a1aea
FCE
8711
8712 esac
8713 shift
8714done
8715
8716ac_configure_extra_args=
8717
8718if $ac_cs_silent; then
8719 exec 6>/dev/null
8720 ac_configure_extra_args="$ac_configure_extra_args --silent"
8721fi
8722
8723_ACEOF
27aba29a 8724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 8725if \$ac_cs_recheck; then
27aba29a
JS
8726 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8727 shift
8728 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8729 CONFIG_SHELL='$SHELL'
7fbd9d09 8730 export CONFIG_SHELL
27aba29a 8731 exec "\$@"
2f1a1aea
FCE
8732fi
8733
8734_ACEOF
27aba29a 8735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
8736exec 5>>config.log
8737{
8738 echo
8739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8740## Running $as_me. ##
8741_ASBOX
27aba29a 8742 $as_echo "$ac_log"
7fbd9d09 8743} >&5
2f1a1aea 8744
7fbd9d09 8745_ACEOF
27aba29a 8746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 8747#
7fbd9d09 8748# INIT-COMMANDS
2f1a1aea 8749#
2f1a1aea
FCE
8750AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8751
8752_ACEOF
8753
27aba29a 8754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
8755
8756# Handling of arguments.
2f1a1aea
FCE
8757for ac_config_target in $ac_config_targets
8758do
7fbd9d09
FCE
8759 case $ac_config_target in
8760 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8761 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8762 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8763 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8764 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
8765 "stap.1") CONFIG_FILES="$CONFIG_FILES stap.1" ;;
e97c0b29
WC
8766 "stapprobes.3stap") CONFIG_FILES="$CONFIG_FILES stapprobes.3stap" ;;
8767 "stapfuncs.3stap") CONFIG_FILES="$CONFIG_FILES stapfuncs.3stap" ;;
8768 "stapvars.3stap") CONFIG_FILES="$CONFIG_FILES stapvars.3stap" ;;
8769 "stapex.3stap") CONFIG_FILES="$CONFIG_FILES stapex.3stap" ;;
7fbd9d09
FCE
8770 "staprun.8") CONFIG_FILES="$CONFIG_FILES staprun.8" ;;
8771 "stap-server.8") CONFIG_FILES="$CONFIG_FILES stap-server.8" ;;
e97c0b29
WC
8772 "man/stapprobes.iosched.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.iosched.3stap" ;;
8773 "man/stapprobes.netdev.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.netdev.3stap" ;;
8774 "man/stapprobes.nfs.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfs.3stap" ;;
8775 "man/stapprobes.nfsd.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfsd.3stap" ;;
8776 "man/stapprobes.pagefault.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.pagefault.3stap" ;;
8777 "man/stapprobes.process.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.process.3stap" ;;
8778 "man/stapprobes.rpc.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.rpc.3stap" ;;
8779 "man/stapprobes.scsi.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.scsi.3stap" ;;
8780 "man/stapprobes.signal.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.signal.3stap" ;;
8781 "man/stapprobes.socket.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.socket.3stap" ;;
8782 "man/stapprobes.tcp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.tcp.3stap" ;;
8783 "man/stapprobes.udp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.udp.3stap" ;;
7fbd9d09
FCE
8784 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
8785 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
8786
27aba29a
JS
8787 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8788$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2f1a1aea
FCE
8789 { (exit 1); exit 1; }; };;
8790 esac
8791done
8792
7fbd9d09 8793
2f1a1aea
FCE
8794# If the user did not use the arguments to specify the items to instantiate,
8795# then the envvar interface is used. Set only those that are not.
8796# We use the long form for the default assignment because of an extremely
8797# bizarre bug on SunOS 4.1.3.
8798if $ac_need_defaults; then
8799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8800 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8801 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8802fi
8803
8804# Have a temporary directory for convenience. Make it in the build tree
7fbd9d09 8805# simply because there is no reason against having it here, and in addition,
2f1a1aea 8806# creating and moving files from /tmp can sometimes cause problems.
7fbd9d09
FCE
8807# Hook for its removal unless debugging.
8808# Note that there is a small window in which the directory will not be cleaned:
8809# after its creation but before its name has been assigned to `$tmp'.
2f1a1aea
FCE
8810$debug ||
8811{
7fbd9d09
FCE
8812 tmp=
8813 trap 'exit_status=$?
8814 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8815' 0
2f1a1aea
FCE
8816 trap '{ (exit 1); exit 1; }' 1 2 13 15
8817}
2f1a1aea
FCE
8818# Create a (secure) tmp directory for tmp files.
8819
8820{
7fbd9d09 8821 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2f1a1aea
FCE
8822 test -n "$tmp" && test -d "$tmp"
8823} ||
8824{
7fbd9d09
FCE
8825 tmp=./conf$$-$RANDOM
8826 (umask 077 && mkdir "$tmp")
2f1a1aea
FCE
8827} ||
8828{
27aba29a 8829 $as_echo "$as_me: cannot create a temporary directory in ." >&2
2f1a1aea
FCE
8830 { (exit 1); exit 1; }
8831}
8832
27aba29a
JS
8833# Set up the scripts for CONFIG_FILES section.
8834# No need to generate them if there are no CONFIG_FILES.
8835# This happens for instance with `./config.status config.h'.
7fbd9d09
FCE
8836if test -n "$CONFIG_FILES"; then
8837
7fbd9d09 8838
27aba29a
JS
8839ac_cr='\r'
8840ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8841if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8842 ac_cs_awk_cr='\\r'
8843else
8844 ac_cs_awk_cr=$ac_cr
7fbd9d09 8845fi
5e0d2ebf 8846
27aba29a 8847echo 'BEGIN {' >"$tmp/subs1.awk" &&
7fbd9d09
FCE
8848_ACEOF
8849
8850
27aba29a
JS
8851{
8852 echo "cat >conf$$subs.awk <<_ACEOF" &&
8853 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8854 echo "_ACEOF"
8855} >conf$$subs.sh ||
8856 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8857$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8858 { (exit 1); exit 1; }; }
8859ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7fbd9d09
FCE
8860ac_delim='%!_!# '
8861for ac_last_try in false false false false false :; do
27aba29a
JS
8862 . ./conf$$subs.sh ||
8863 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8864$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8865 { (exit 1); exit 1; }; }
8866
8867 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8868 if test $ac_delim_n = $ac_delim_num; then
7fbd9d09
FCE
8869 break
8870 elif $ac_last_try; then
27aba29a
JS
8871 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8872$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7fbd9d09
FCE
8873 { (exit 1); exit 1; }; }
8874 else
8875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8876 fi
8877done
27aba29a
JS
8878rm -f conf$$subs.sh
8879
8880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8881cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8882_ACEOF
8883sed -n '
8884h
8885s/^/S["/; s/!.*/"]=/
8886p
8887g
8888s/^[^!]*!//
8889:repl
8890t repl
8891s/'"$ac_delim"'$//
8892t delim
8893:nl
8894h
8895s/\(.\{148\}\).*/\1/
8896t more1
8897s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8898p
8899n
8900b repl
8901:more1
8902s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8903p
8904g
8905s/.\{148\}//
8906t nl
8907:delim
8908h
8909s/\(.\{148\}\).*/\1/
8910t more2
8911s/["\\]/\\&/g; s/^/"/; s/$/"/
8912p
8913b
8914:more2
8915s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8916p
8917g
8918s/.\{148\}//
8919t delim
8920' <conf$$subs.awk | sed '
8921/^[^""]/{
8922 N
8923 s/\n//
8924}
8925' >>$CONFIG_STATUS || ac_write_fail=1
8926rm -f conf$$subs.awk
8927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8928_ACAWK
8929cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8930 for (key in S) S_is_set[key] = 1
8931 FS = "\a"
7fbd9d09 8932
27aba29a
JS
8933}
8934{
8935 line = $ 0
8936 nfields = split(line, field, "@")
8937 substed = 0
8938 len = length(field[1])
8939 for (i = 2; i < nfields; i++) {
8940 key = field[i]
8941 keylen = length(key)
8942 if (S_is_set[key]) {
8943 value = S[key]
8944 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8945 len += length(value) + length(field[++i])
8946 substed = 1
8947 } else
8948 len += 1 + keylen
8949 }
8950
8951 print line
8952}
7fbd9d09 8953
27aba29a 8954_ACAWK
7fbd9d09 8955_ACEOF
27aba29a
JS
8956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8957if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8958 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8959else
8960 cat
8961fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8962 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
8963$as_echo "$as_me: error: could not setup config files machinery" >&2;}
8964 { (exit 1); exit 1; }; }
7fbd9d09
FCE
8965_ACEOF
8966
7fbd9d09
FCE
8967# VPATH may cause trouble with some makes, so we remove $(srcdir),
8968# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8969# trailing colons and then remove the whole line if VPATH becomes empty
8970# (actually we leave an empty line to preserve line numbers).
8971if test "x$srcdir" = x.; then
8972 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8973s/:*\$(srcdir):*/:/
8974s/:*\${srcdir}:*/:/
8975s/:*@srcdir@:*/:/
8976s/^\([^=]*=[ ]*\):*/\1/
8977s/:*$//
8978s/^[^=]*=[ ]*$//
8979}'
8980fi
8981
27aba29a 8982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
8983fi # test -n "$CONFIG_FILES"
8984
27aba29a
JS
8985# Set up the scripts for CONFIG_HEADERS section.
8986# No need to generate them if there are no CONFIG_HEADERS.
8987# This happens for instance with `./config.status Makefile'.
8988if test -n "$CONFIG_HEADERS"; then
8989cat >"$tmp/defines.awk" <<\_ACAWK ||
8990BEGIN {
8991_ACEOF
8992
8993# Transform confdefs.h into an awk script `defines.awk', embedded as
8994# here-document in config.status, that substitutes the proper values into
8995# config.h.in to produce config.h.
8996
8997# Create a delimiter string that does not exist in confdefs.h, to ease
8998# handling of long lines.
8999ac_delim='%!_!# '
9000for ac_last_try in false false :; do
9001 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9002 if test -z "$ac_t"; then
9003 break
9004 elif $ac_last_try; then
9005 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9006$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9007 { (exit 1); exit 1; }; }
9008 else
9009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9010 fi
9011done
9012
9013# For the awk script, D is an array of macro values keyed by name,
9014# likewise P contains macro parameters if any. Preserve backslash
9015# newline sequences.
9016
9017ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9018sed -n '
9019s/.\{148\}/&'"$ac_delim"'/g
9020t rset
9021:rset
9022s/^[ ]*#[ ]*define[ ][ ]*/ /
9023t def
9024d
9025:def
9026s/\\$//
9027t bsnl
9028s/["\\]/\\&/g
9029s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9030D["\1"]=" \3"/p
9031s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9032d
9033:bsnl
9034s/["\\]/\\&/g
9035s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9036D["\1"]=" \3\\\\\\n"\\/p
9037t cont
9038s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9039t cont
9040d
9041:cont
9042n
9043s/.\{148\}/&'"$ac_delim"'/g
9044t clear
9045:clear
9046s/\\$//
9047t bsnlc
9048s/["\\]/\\&/g; s/^/"/; s/$/"/p
9049d
9050:bsnlc
9051s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9052b cont
9053' <confdefs.h | sed '
9054s/'"$ac_delim"'/"\\\
9055"/g' >>$CONFIG_STATUS || ac_write_fail=1
9056
9057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9058 for (key in D) D_is_set[key] = 1
9059 FS = "\a"
9060}
9061/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9062 line = \$ 0
9063 split(line, arg, " ")
9064 if (arg[1] == "#") {
9065 defundef = arg[2]
9066 mac1 = arg[3]
9067 } else {
9068 defundef = substr(arg[1], 2)
9069 mac1 = arg[2]
9070 }
9071 split(mac1, mac2, "(") #)
9072 macro = mac2[1]
9073 prefix = substr(line, 1, index(line, defundef) - 1)
9074 if (D_is_set[macro]) {
9075 # Preserve the white space surrounding the "#".
9076 print prefix "define", macro P[macro] D[macro]
9077 next
9078 } else {
9079 # Replace #undef with comments. This is necessary, for example,
9080 # in the case of _POSIX_SOURCE, which is predefined and required
9081 # on some systems where configure will not decide to define it.
9082 if (defundef == "undef") {
9083 print "/*", prefix defundef, macro, "*/"
9084 next
9085 }
9086 }
9087}
9088{ print }
9089_ACAWK
9090_ACEOF
9091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9092 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9093$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9094 { (exit 1); exit 1; }; }
9095fi # test -n "$CONFIG_HEADERS"
7fbd9d09 9096
27aba29a
JS
9097
9098eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9099shift
9100for ac_tag
7fbd9d09
FCE
9101do
9102 case $ac_tag in
9103 :[FHLC]) ac_mode=$ac_tag; continue;;
2f1a1aea 9104 esac
7fbd9d09
FCE
9105 case $ac_mode$ac_tag in
9106 :[FHL]*:*);;
27aba29a
JS
9107 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9108$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7fbd9d09
FCE
9109 { (exit 1); exit 1; }; };;
9110 :[FH]-) ac_tag=-:-;;
9111 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9112 esac
9113 ac_save_IFS=$IFS
9114 IFS=:
9115 set x $ac_tag
9116 IFS=$ac_save_IFS
9117 shift
9118 ac_file=$1
9119 shift
2f1a1aea 9120
7fbd9d09
FCE
9121 case $ac_mode in
9122 :L) ac_source=$1;;
9123 :[FH])
9124 ac_file_inputs=
9125 for ac_f
9126 do
9127 case $ac_f in
9128 -) ac_f="$tmp/stdin";;
9129 *) # Look for the file first in the build tree, then in the source tree
9130 # (if the path is not absolute). The absolute path cannot be DOS-style,
9131 # because $ac_f cannot contain `:'.
9132 test -f "$ac_f" ||
9133 case $ac_f in
9134 [\\/$]*) false;;
9135 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9136 esac ||
27aba29a
JS
9137 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9138$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7fbd9d09
FCE
9139 { (exit 1); exit 1; }; };;
9140 esac
27aba29a
JS
9141 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9142 ac_file_inputs="$ac_file_inputs '$ac_f'"
7fbd9d09
FCE
9143 done
9144
9145 # Let's still pretend it is `configure' which instantiates (i.e., don't
9146 # use $as_me), people would be surprised to read:
9147 # /* config.h. Generated by config.status. */
27aba29a
JS
9148 configure_input='Generated from '`
9149 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9150 `' by configure.'
7fbd9d09
FCE
9151 if test x"$ac_file" != x-; then
9152 configure_input="$ac_file. $configure_input"
27aba29a
JS
9153 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9154$as_echo "$as_me: creating $ac_file" >&6;}
7fbd9d09 9155 fi
27aba29a
JS
9156 # Neutralize special characters interpreted by sed in replacement strings.
9157 case $configure_input in #(
9158 *\&* | *\|* | *\\* )
9159 ac_sed_conf_input=`$as_echo "$configure_input" |
9160 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9161 *) ac_sed_conf_input=$configure_input;;
9162 esac
7fbd9d09
FCE
9163
9164 case $ac_tag in
27aba29a
JS
9165 *:-:* | *:-) cat >"$tmp/stdin" \
9166 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9167$as_echo "$as_me: error: could not create $ac_file" >&2;}
9168 { (exit 1); exit 1; }; } ;;
7fbd9d09
FCE
9169 esac
9170 ;;
9171 esac
9172
9173 ac_dir=`$as_dirname -- "$ac_file" ||
2f1a1aea
FCE
9174$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9175 X"$ac_file" : 'X\(//\)[^/]' \| \
9176 X"$ac_file" : 'X\(//\)$' \| \
7fbd9d09 9177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9178$as_echo X"$ac_file" |
7fbd9d09
FCE
9179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9180 s//\1/
9181 q
9182 }
9183 /^X\(\/\/\)[^/].*/{
9184 s//\1/
9185 q
9186 }
9187 /^X\(\/\/\)$/{
9188 s//\1/
9189 q
9190 }
9191 /^X\(\/\).*/{
9192 s//\1/
9193 q
9194 }
9195 s/.*/./; q'`
9196 { as_dir="$ac_dir"
9197 case $as_dir in #(
9198 -*) as_dir=./$as_dir;;
9199 esac
9200 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2f1a1aea 9201 as_dirs=
7fbd9d09
FCE
9202 while :; do
9203 case $as_dir in #(
27aba29a 9204 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7fbd9d09
FCE
9205 *) as_qdir=$as_dir;;
9206 esac
9207 as_dirs="'$as_qdir' $as_dirs"
9208 as_dir=`$as_dirname -- "$as_dir" ||
2f1a1aea
FCE
9209$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9210 X"$as_dir" : 'X\(//\)[^/]' \| \
9211 X"$as_dir" : 'X\(//\)$' \| \
7fbd9d09 9212 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9213$as_echo X"$as_dir" |
7fbd9d09
FCE
9214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9215 s//\1/
9216 q
9217 }
9218 /^X\(\/\/\)[^/].*/{
9219 s//\1/
9220 q
9221 }
9222 /^X\(\/\/\)$/{
9223 s//\1/
9224 q
9225 }
9226 /^X\(\/\).*/{
9227 s//\1/
9228 q
9229 }
9230 s/.*/./; q'`
9231 test -d "$as_dir" && break
2f1a1aea 9232 done
7fbd9d09 9233 test -z "$as_dirs" || eval "mkdir $as_dirs"
27aba29a
JS
9234 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9235$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2f1a1aea 9236 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
9237 ac_builddir=.
9238
7fbd9d09
FCE
9239case "$ac_dir" in
9240.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9241*)
27aba29a 9242 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 9243 # A ".." for each directory in $ac_dir_suffix.
27aba29a 9244 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
9245 case $ac_top_builddir_sub in
9246 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9247 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9248 esac ;;
9249esac
9250ac_abs_top_builddir=$ac_pwd
9251ac_abs_builddir=$ac_pwd$ac_dir_suffix
9252# for backward compatibility:
9253ac_top_builddir=$ac_top_build_prefix
2f1a1aea
FCE
9254
9255case $srcdir in
7fbd9d09 9256 .) # We are building in place.
2f1a1aea 9257 ac_srcdir=.
7fbd9d09
FCE
9258 ac_top_srcdir=$ac_top_builddir_sub
9259 ac_abs_top_srcdir=$ac_pwd ;;
9260 [\\/]* | ?:[\\/]* ) # Absolute name.
2f1a1aea 9261 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
9262 ac_top_srcdir=$srcdir
9263 ac_abs_top_srcdir=$srcdir ;;
9264 *) # Relative name.
9265 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9266 ac_top_srcdir=$ac_top_build_prefix$srcdir
9267 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2f1a1aea 9268esac
7fbd9d09 9269ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2f1a1aea 9270
2f1a1aea 9271
7fbd9d09
FCE
9272 case $ac_mode in
9273 :F)
9274 #
9275 # CONFIG_FILE
9276 #
2f1a1aea
FCE
9277
9278 case $INSTALL in
9279 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7fbd9d09
FCE
9280 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9281 esac
9282 ac_MKDIR_P=$MKDIR_P
9283 case $MKDIR_P in
9284 [\\/$]* | ?:[\\/]* ) ;;
9285 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5e0d2ebf 9286 esac
7fbd9d09 9287_ACEOF
5e0d2ebf 9288
27aba29a 9289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
9290# If the template does not know about datarootdir, expand it.
9291# FIXME: This hack should be removed a few years after 2.60.
9292ac_datarootdir_hack=; ac_datarootdir_seen=
9293
27aba29a
JS
9294ac_sed_dataroot='
9295/datarootdir/ {
7fbd9d09
FCE
9296 p
9297 q
9298}
9299/@datadir@/p
9300/@docdir@/p
9301/@infodir@/p
9302/@localedir@/p
9303/@mandir@/p
27aba29a
JS
9304'
9305case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7fbd9d09
FCE
9306*datarootdir*) ac_datarootdir_seen=yes;;
9307*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27aba29a
JS
9308 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9309$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7fbd9d09 9310_ACEOF
27aba29a 9311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7fbd9d09
FCE
9312 ac_datarootdir_hack='
9313 s&@datadir@&$datadir&g
9314 s&@docdir@&$docdir&g
9315 s&@infodir@&$infodir&g
9316 s&@localedir@&$localedir&g
9317 s&@mandir@&$mandir&g
9318 s&\\\${datarootdir}&$datarootdir&g' ;;
9319esac
70d28673 9320_ACEOF
7fbd9d09
FCE
9321
9322# Neutralize VPATH when `$srcdir' = `.'.
9323# Shell code in configure.ac might set extrasub.
9324# FIXME: do we really want to maintain this feature?
27aba29a
JS
9325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9326ac_sed_extra="$ac_vpsub
2f1a1aea
FCE
9327$extrasub
9328_ACEOF
27aba29a 9329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2f1a1aea
FCE
9330:t
9331/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27aba29a 9332s|@configure_input@|$ac_sed_conf_input|;t t
7fbd9d09 9333s&@top_builddir@&$ac_top_builddir_sub&;t t
27aba29a 9334s&@top_build_prefix@&$ac_top_build_prefix&;t t
7fbd9d09
FCE
9335s&@srcdir@&$ac_srcdir&;t t
9336s&@abs_srcdir@&$ac_abs_srcdir&;t t
9337s&@top_srcdir@&$ac_top_srcdir&;t t
9338s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9339s&@builddir@&$ac_builddir&;t t
9340s&@abs_builddir@&$ac_abs_builddir&;t t
9341s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9342s&@INSTALL@&$ac_INSTALL&;t t
9343s&@MKDIR_P@&$ac_MKDIR_P&;t t
9344$ac_datarootdir_hack
27aba29a
JS
9345"
9346eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9347 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9348$as_echo "$as_me: error: could not create $ac_file" >&2;}
9349 { (exit 1); exit 1; }; }
7fbd9d09
FCE
9350
9351test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9352 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9353 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27aba29a 9354 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7fbd9d09 9355which seems to be undefined. Please make sure it is defined." >&5
27aba29a 9356$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7fbd9d09
FCE
9357which seems to be undefined. Please make sure it is defined." >&2;}
9358
9359 rm -f "$tmp/stdin"
818ba2bc 9360 case $ac_file in
27aba29a
JS
9361 -) cat "$tmp/out" && rm -f "$tmp/out";;
9362 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9363 esac \
9364 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9365$as_echo "$as_me: error: could not create $ac_file" >&2;}
9366 { (exit 1); exit 1; }; }
7fbd9d09
FCE
9367 ;;
9368 :H)
9369 #
9370 # CONFIG_HEADER
9371 #
818ba2bc 9372 if test x"$ac_file" != x-; then
27aba29a
JS
9373 {
9374 $as_echo "/* $configure_input */" \
9375 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9376 } >"$tmp/config.h" \
9377 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9378$as_echo "$as_me: error: could not create $ac_file" >&2;}
9379 { (exit 1); exit 1; }; }
9380 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9381 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9382$as_echo "$as_me: $ac_file is unchanged" >&6;}
2f1a1aea 9383 else
27aba29a
JS
9384 rm -f "$ac_file"
9385 mv "$tmp/config.h" "$ac_file" \
9386 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9387$as_echo "$as_me: error: could not create $ac_file" >&2;}
9388 { (exit 1); exit 1; }; }
2f1a1aea
FCE
9389 fi
9390 else
27aba29a
JS
9391 $as_echo "/* $configure_input */" \
9392 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9393 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
9394$as_echo "$as_me: error: could not create -" >&2;}
9395 { (exit 1); exit 1; }; }
2f1a1aea 9396 fi
27aba29a
JS
9397# Compute "$ac_file"'s index in $config_headers.
9398_am_arg="$ac_file"
2f1a1aea
FCE
9399_am_stamp_count=1
9400for _am_header in $config_headers :; do
9401 case $_am_header in
7fbd9d09 9402 $_am_arg | $_am_arg:* )
2f1a1aea
FCE
9403 break ;;
9404 * )
9405 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9406 esac
9407done
7fbd9d09
FCE
9408echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9409$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9410 X"$_am_arg" : 'X\(//\)[^/]' \| \
9411 X"$_am_arg" : 'X\(//\)$' \| \
9412 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9413$as_echo X"$_am_arg" |
7fbd9d09
FCE
9414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9415 s//\1/
9416 q
9417 }
9418 /^X\(\/\/\)[^/].*/{
9419 s//\1/
9420 q
9421 }
9422 /^X\(\/\/\)$/{
9423 s//\1/
9424 q
9425 }
9426 /^X\(\/\).*/{
9427 s//\1/
9428 q
9429 }
9430 s/.*/./; q'`/stamp-h$_am_stamp_count
9431 ;;
818ba2bc 9432
27aba29a
JS
9433 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
9434$as_echo "$as_me: executing $ac_file commands" >&6;}
7fbd9d09
FCE
9435 ;;
9436 esac
818ba2bc
MW
9437
9438
7fbd9d09
FCE
9439 case $ac_file$ac_mode in
9440 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
2f1a1aea
FCE
9441 # Strip MF so we end up with the name of the file.
9442 mf=`echo "$mf" | sed -e 's/:.*$//'`
9443 # Check whether this is an Automake generated Makefile or not.
9444 # We used to match only the files named `Makefile.in', but
9445 # some people rename them; so instead we look at the file content.
9446 # Grep'ing the first line is not enough: some people post-process
9447 # each Makefile.in and add a new line on top of each file to say so.
7fbd9d09
FCE
9448 # Grep'ing the whole file is not good either: AIX grep has a line
9449 # limit of 2048, but all sed's we know have understand at least 4000.
9450 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9451 dirpart=`$as_dirname -- "$mf" ||
2f1a1aea
FCE
9452$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9453 X"$mf" : 'X\(//\)[^/]' \| \
9454 X"$mf" : 'X\(//\)$' \| \
7fbd9d09 9455 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9456$as_echo X"$mf" |
7fbd9d09
FCE
9457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9458 s//\1/
9459 q
9460 }
9461 /^X\(\/\/\)[^/].*/{
9462 s//\1/
9463 q
9464 }
9465 /^X\(\/\/\)$/{
9466 s//\1/
9467 q
9468 }
9469 /^X\(\/\).*/{
9470 s//\1/
9471 q
9472 }
9473 s/.*/./; q'`
2f1a1aea
FCE
9474 else
9475 continue
9476 fi
9477 # Extract the definition of DEPDIR, am__include, and am__quote
9478 # from the Makefile without running `make'.
9479 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9480 test -z "$DEPDIR" && continue
9481 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9482 test -z "am__include" && continue
9483 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9484 # When using ansi2knr, U may be empty or an underscore; expand it
9485 U=`sed -n 's/^U = //p' < "$mf"`
9486 # Find all dependency output files, they are included files with
9487 # $(DEPDIR) in their names. We invoke sed twice because it is the
9488 # simplest approach to changing $(DEPDIR) to its actual value in the
9489 # expansion.
9490 for file in `sed -n "
9491 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9492 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9493 # Make sure the directory exists.
9494 test -f "$dirpart/$file" && continue
7fbd9d09 9495 fdir=`$as_dirname -- "$file" ||
2f1a1aea
FCE
9496$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9497 X"$file" : 'X\(//\)[^/]' \| \
9498 X"$file" : 'X\(//\)$' \| \
7fbd9d09 9499 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9500$as_echo X"$file" |
7fbd9d09
FCE
9501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9502 s//\1/
9503 q
9504 }
9505 /^X\(\/\/\)[^/].*/{
9506 s//\1/
9507 q
9508 }
9509 /^X\(\/\/\)$/{
9510 s//\1/
9511 q
9512 }
9513 /^X\(\/\).*/{
9514 s//\1/
9515 q
9516 }
9517 s/.*/./; q'`
9518 { as_dir=$dirpart/$fdir
9519 case $as_dir in #(
9520 -*) as_dir=./$as_dir;;
9521 esac
9522 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2f1a1aea 9523 as_dirs=
7fbd9d09
FCE
9524 while :; do
9525 case $as_dir in #(
27aba29a 9526 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7fbd9d09
FCE
9527 *) as_qdir=$as_dir;;
9528 esac
9529 as_dirs="'$as_qdir' $as_dirs"
9530 as_dir=`$as_dirname -- "$as_dir" ||
2f1a1aea
FCE
9531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9532 X"$as_dir" : 'X\(//\)[^/]' \| \
9533 X"$as_dir" : 'X\(//\)$' \| \
7fbd9d09 9534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9535$as_echo X"$as_dir" |
7fbd9d09
FCE
9536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9537 s//\1/
9538 q
9539 }
9540 /^X\(\/\/\)[^/].*/{
9541 s//\1/
9542 q
9543 }
9544 /^X\(\/\/\)$/{
9545 s//\1/
9546 q
9547 }
9548 /^X\(\/\).*/{
9549 s//\1/
9550 q
9551 }
9552 s/.*/./; q'`
9553 test -d "$as_dir" && break
2f1a1aea 9554 done
7fbd9d09 9555 test -z "$as_dirs" || eval "mkdir $as_dirs"
27aba29a
JS
9556 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9557$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2f1a1aea 9558 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
9559 # echo "creating $dirpart/$file"
9560 echo '# dummy' > "$dirpart/$file"
9561 done
9562done
9563 ;;
7fbd9d09
FCE
9564 "run-stap":F) chmod +x run-stap ;;
9565
2f1a1aea 9566 esac
7fbd9d09 9567done # for ac_tag
2f1a1aea 9568
2f1a1aea
FCE
9569
9570{ (exit 0); exit 0; }
9571_ACEOF
9572chmod +x $CONFIG_STATUS
9573ac_clean_files=$ac_clean_files_save
9574
27aba29a
JS
9575test $ac_write_fail = 0 ||
9576 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
9577$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
9578 { (exit 1); exit 1; }; }
9579
2f1a1aea
FCE
9580
9581# configure is writing to config.log, and then calls config.status.
9582# config.status does its own redirection, appending to config.log.
9583# Unfortunately, on DOS this fails, as config.log is still kept open
9584# by configure, so config.status won't be able to write to it; its
9585# output is simply discarded. So we exec the FD to /dev/null,
9586# effectively closing config.log, so it can be properly (re)opened and
9587# appended to by config.status. When coming back to configure, we
9588# need to make the FD available again.
9589if test "$no_create" != yes; then
9590 ac_cs_success=:
9591 ac_config_status_args=
9592 test "$silent" = yes &&
9593 ac_config_status_args="$ac_config_status_args --quiet"
9594 exec 5>/dev/null
9595 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9596 exec 5>>config.log
9597 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9598 # would make configure fail if this is the last instruction.
9599 $ac_cs_success || { (exit 1); exit 1; }
9600fi
9601
5ba96b90
FCE
9602#
9603# CONFIG_SUBDIRS section.
9604#
9605if test "$no_recursion" != yes; then
9606
27aba29a
JS
9607 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9608 # so they do not pile up.
5ba96b90
FCE
9609 ac_sub_configure_args=
9610 ac_prev=
7fbd9d09
FCE
9611 eval "set x $ac_configure_args"
9612 shift
9613 for ac_arg
9614 do
5ba96b90
FCE
9615 if test -n "$ac_prev"; then
9616 ac_prev=
9617 continue
9618 fi
9619 case $ac_arg in
9620 -cache-file | --cache-file | --cache-fil | --cache-fi \
9621 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9622 ac_prev=cache_file ;;
9623 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9624 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9625 | --c=*)
9626 ;;
9627 --config-cache | -C)
9628 ;;
9629 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9630 ac_prev=srcdir ;;
9631 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9632 ;;
9633 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9634 ac_prev=prefix ;;
9635 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9636 ;;
27aba29a
JS
9637 --disable-option-checking)
9638 ;;
7fbd9d09
FCE
9639 *)
9640 case $ac_arg in
27aba29a 9641 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fbd9d09
FCE
9642 esac
9643 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
5ba96b90
FCE
9644 esac
9645 done
9646
9647 # Always prepend --prefix to ensure using the same prefix
9648 # in subdir configurations.
7fbd9d09
FCE
9649 ac_arg="--prefix=$prefix"
9650 case $ac_arg in
27aba29a 9651 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fbd9d09
FCE
9652 esac
9653 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9654
9655 # Pass --silent
9656 if test "$silent" = yes; then
9657 ac_sub_configure_args="--silent $ac_sub_configure_args"
9658 fi
daae650d 9659
27aba29a
JS
9660 # Always prepend --disable-option-checking to silence warnings, since
9661 # different subdirs can have different --enable and --with options.
9662 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9663
5ba96b90
FCE
9664 ac_popdir=`pwd`
9665 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9666
9667 # Do not complain, so a configure script can configure whichever
9668 # parts of a large source tree are present.
7fbd9d09
FCE
9669 test -d "$srcdir/$ac_dir" || continue
9670
9671 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27aba29a
JS
9672 $as_echo "$as_me:$LINENO: $ac_msg" >&5
9673 $as_echo "$ac_msg" >&6
7fbd9d09
FCE
9674 { as_dir="$ac_dir"
9675 case $as_dir in #(
9676 -*) as_dir=./$as_dir;;
9677 esac
9678 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5ba96b90 9679 as_dirs=
7fbd9d09
FCE
9680 while :; do
9681 case $as_dir in #(
27aba29a 9682 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7fbd9d09
FCE
9683 *) as_qdir=$as_dir;;
9684 esac
9685 as_dirs="'$as_qdir' $as_dirs"
9686 as_dir=`$as_dirname -- "$as_dir" ||
5ba96b90
FCE
9687$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9688 X"$as_dir" : 'X\(//\)[^/]' \| \
9689 X"$as_dir" : 'X\(//\)$' \| \
7fbd9d09 9690 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9691$as_echo X"$as_dir" |
7fbd9d09
FCE
9692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9693 s//\1/
9694 q
9695 }
9696 /^X\(\/\/\)[^/].*/{
9697 s//\1/
9698 q
9699 }
9700 /^X\(\/\/\)$/{
9701 s//\1/
9702 q
9703 }
9704 /^X\(\/\).*/{
9705 s//\1/
9706 q
9707 }
9708 s/.*/./; q'`
9709 test -d "$as_dir" && break
5ba96b90 9710 done
7fbd9d09 9711 test -z "$as_dirs" || eval "mkdir $as_dirs"
27aba29a
JS
9712 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9713$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
5ba96b90 9714 { (exit 1); exit 1; }; }; }
5ba96b90
FCE
9715 ac_builddir=.
9716
7fbd9d09
FCE
9717case "$ac_dir" in
9718.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9719*)
27aba29a 9720 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 9721 # A ".." for each directory in $ac_dir_suffix.
27aba29a 9722 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
9723 case $ac_top_builddir_sub in
9724 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9725 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9726 esac ;;
9727esac
9728ac_abs_top_builddir=$ac_pwd
9729ac_abs_builddir=$ac_pwd$ac_dir_suffix
9730# for backward compatibility:
9731ac_top_builddir=$ac_top_build_prefix
5ba96b90
FCE
9732
9733case $srcdir in
7fbd9d09 9734 .) # We are building in place.
5ba96b90 9735 ac_srcdir=.
7fbd9d09
FCE
9736 ac_top_srcdir=$ac_top_builddir_sub
9737 ac_abs_top_srcdir=$ac_pwd ;;
9738 [\\/]* | ?:[\\/]* ) # Absolute name.
5ba96b90 9739 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
9740 ac_top_srcdir=$srcdir
9741 ac_abs_top_srcdir=$srcdir ;;
9742 *) # Relative name.
9743 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9744 ac_top_srcdir=$ac_top_build_prefix$srcdir
9745 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5ba96b90 9746esac
7fbd9d09 9747ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5ba96b90
FCE
9748
9749
7fbd9d09 9750 cd "$ac_dir"
5ba96b90
FCE
9751
9752 # Check for guested configure; otherwise get Cygnus style configure.
7fbd9d09
FCE
9753 if test -f "$ac_srcdir/configure.gnu"; then
9754 ac_sub_configure=$ac_srcdir/configure.gnu
9755 elif test -f "$ac_srcdir/configure"; then
9756 ac_sub_configure=$ac_srcdir/configure
9757 elif test -f "$ac_srcdir/configure.in"; then
9758 # This should be Cygnus configure.
9759 ac_sub_configure=$ac_aux_dir/configure
5ba96b90 9760 else
27aba29a
JS
9761 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9762$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
5ba96b90
FCE
9763 ac_sub_configure=
9764 fi
9765
9766 # The recursion is here.
9767 if test -n "$ac_sub_configure"; then
9768 # Make the cache file name correct relative to the subdirectory.
9769 case $cache_file in
9770 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7fbd9d09
FCE
9771 *) # Relative name.
9772 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5ba96b90
FCE
9773 esac
9774
27aba29a
JS
9775 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9776$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5ba96b90 9777 # The eval makes quoting arguments work.
7fbd9d09
FCE
9778 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9779 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27aba29a
JS
9780 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9781$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
5ba96b90
FCE
9782 { (exit 1); exit 1; }; }
9783 fi
9784
7fbd9d09 9785 cd "$ac_popdir"
5ba96b90
FCE
9786 done
9787fi
27aba29a
JS
9788if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9789 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9790$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9791fi
5ba96b90 9792
4d9087fc 9793
af29024d 9794if test "${prefix}" = "/usr/local"; then
27aba29a
JS
9795 { $as_echo "$as_me:$LINENO: " >&5
9796$as_echo "$as_me: " >&6;}
9797 { $as_echo "$as_me:$LINENO: For a private or temporary build of systemtap, we recommend" >&5
9798$as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
9799 { $as_echo "$as_me:$LINENO: configuring with a prefix. For example, try" >&5
9800$as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
9801 { $as_echo "$as_me:$LINENO: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
9802$as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
9803 { $as_echo "$as_me:$LINENO: Running systemtap uninstalled, entirely out of the build tree," >&5
9804$as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
9805 { $as_echo "$as_me:$LINENO: is not supported." >&5
9806$as_echo "$as_me: is not supported." >&6;}
af29024d 9807fi
This page took 1.361132 seconds and 5 git commands to generate.