]> sourceware.org Git - systemtap.git/blame - configure
Consolidate task_finder/vma tracker initialization.
[systemtap.git] / configure
CommitLineData
2f1a1aea
FCE
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
e36ba31a 3# Generated by GNU Autoconf 2.63 for systemtap 1.2.
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,
e6364d79 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.
e6364d79
MW
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
2f1a1aea 14
7fbd9d09
FCE
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
e6364d79 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2f1a1aea
FCE
18 emulate sh
19 NULLCMD=:
0710d850 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
e6364d79
MW
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
7fbd9d09 27esac
e6364d79 28
7fbd9d09
FCE
29fi
30
31
e6364d79
MW
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
0710d850
DS
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
e6364d79 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
0710d850
DS
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'
31f9baea 56 else
0710d850
DS
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
e6364d79 60 case $arg in
0710d850
DS
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'
31f9baea 69 fi
0710d850
DS
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 82
e6364d79
MW
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
2f1a1aea 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.
e6364d79 99case $0 in
7fbd9d09
FCE
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=.
e6364d79
MW
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
7fbd9d09
FCE
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
0710d850 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
e6364d79 119 { (exit 1); exit 1; }
7fbd9d09
FCE
120fi
121
e6364d79
MW
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7fbd9d09 125done
2f1a1aea
FCE
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
0710d850
DS
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
2f1a1aea 135
e6364d79 136# Required to use basename.
412e1bf7
FCE
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
e6364d79 151# Name of the executable.
412e1bf7
FCE
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 156$as_echo X/"$0" |
412e1bf7
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'`
170
e6364d79
MW
171# CDPATH.
172$as_unset CDPATH
412e1bf7 173
5e0d2ebf 174
e6364d79
MW
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
180fi
412e1bf7 181
e6364d79
MW
182 if test $as_have_required = yes && (eval ":
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
412e1bf7 197}
5e0d2ebf 198
e6364d79
MW
199exitcode=0
200if as_func_success; then
201 :
4b5627b1 202else
e6364d79
MW
203 exitcode=1
204 echo as_func_success failed.
7fbd9d09 205fi
e6364d79
MW
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
412e1bf7
FCE
210fi
211
e6364d79
MW
212if as_func_ret_success; then
213 :
4b5627b1 214else
e6364d79
MW
215 exitcode=1
216 echo as_func_ret_success failed.
412e1bf7
FCE
217fi
218
e6364d79
MW
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 :
412e1bf7 226else
e6364d79
MW
227 exitcode=1
228 echo positional parameters were not saved.
412e1bf7
FCE
229fi
230
e6364d79 231test \$exitcode = 0) || { (exit 1); exit 1; }
412e1bf7 232
e6364d79
MW
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=
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=.
247 case $as_dir in
248 /*)
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
7fbd9d09
FCE
255
256
e6364d79
MW
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=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
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
2f1a1aea 272
e6364d79
MW
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=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
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(
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
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
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+"$@"}
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.
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.
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" || {
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
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.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
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 |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
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
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485}
486
487
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';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
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
530 as_ln_s='cp -p'
531 fi
532else
533 as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
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
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
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
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
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
575
576exec 7<&0 </dev/null 6>&1
577
578# Name of the host.
2f1a1aea
FCE
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=
e6364d79 594SHELL=${CONFIG_SHELL-/bin/sh}
2f1a1aea 595
2f1a1aea
FCE
596# Identity of this package.
597PACKAGE_NAME='systemtap'
598PACKAGE_TARNAME='systemtap'
e36ba31a
FCE
599PACKAGE_VERSION='1.2'
600PACKAGE_STRING='systemtap 1.2'
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
0710d850
DS
639enable_option_checking=no
640ac_subst_vars='am__EXEEXT_FALSE
641am__EXEEXT_TRUE
642LTLIBOBJS
643LIBOBJS
644subdirs
645DATE
646stap_LIBS
647elfutils_abs_srcdir
648BUILD_ELFUTILS_FALSE
649BUILD_ELFUTILS_TRUE
0710d850
DS
650BUILD_GRAPHER_FALSE
651BUILD_GRAPHER_TRUE
652CXXCPP
653libglade_LIBS
654libglade_CFLAGS
655gtkmm_LIBS
656gtkmm_CFLAGS
657PKG_CONFIG
658HAVE_NSS_FALSE
659HAVE_NSS_TRUE
660BUILD_SERVER_FALSE
661BUILD_SERVER_TRUE
662nspr_CFLAGS
663nss_CFLAGS
664have_certutil
665BUILD_PDFREFDOCS_FALSE
666BUILD_PDFREFDOCS_TRUE
667XMLTO_STRINGPARAM_FALSE
668XMLTO_STRINGPARAM_TRUE
669BUILD_REFDOCS_FALSE
670BUILD_REFDOCS_TRUE
671have_xmlto
53ade4da
MW
672PUBLICAN_BRAND
673BUILD_PUBLICAN_FALSE
674BUILD_PUBLICAN_TRUE
675have_publican
0710d850
DS
676BUILD_DOCS_FALSE
677BUILD_DOCS_TRUE
678have_latex2html
679have_ps2pdf
680have_dvips
681have_latex
682BUILD_CRASHMOD_FALSE
683BUILD_CRASHMOD_TRUE
684staplog_CPPFLAGS
685BUILD_TRANSLATOR_FALSE
686BUILD_TRANSLATOR_TRUE
687sqlite3_LIBS
688PIECXXFLAGS
689PIECFLAGS
690PIELDFLAGS
691RANLIB
692ANSI2KNR
693U
694EGREP
695GREP
696CPP
697am__fastdepCXX_FALSE
698am__fastdepCXX_TRUE
699CXXDEPMODE
700ac_ct_CXX
701CXXFLAGS
702CXX
703am__fastdepCC_FALSE
704am__fastdepCC_TRUE
705CCDEPMODE
706AMDEPBACKSLASH
707AMDEP_FALSE
708AMDEP_TRUE
709am__quote
710am__include
711DEPDIR
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719LN_S
720AM_BACKSLASH
721AM_DEFAULT_VERBOSITY
31f9baea 722MAINT
0710d850
DS
723MAINTAINER_MODE_FALSE
724MAINTAINER_MODE_TRUE
725am__untar
726am__tar
727AMTAR
728am__leading_dot
729SET_MAKE
730AWK
731mkdir_p
7fbd9d09 732MKDIR_P
0710d850
DS
733INSTALL_STRIP_PROGRAM
734STRIP
735install_sh
736MAKEINFO
737AUTOHEADER
738AUTOMAKE
739AUTOCONF
740ACLOCAL
741VERSION
742PACKAGE
743CYGPATH_W
744am__isrc
745INSTALL_DATA
746INSTALL_SCRIPT
747INSTALL_PROGRAM
748target_alias
749host_alias
750build_alias
751LIBS
752ECHO_T
753ECHO_N
754ECHO_C
755DEFS
756mandir
757localedir
758libdir
759psdir
760pdfdir
761dvidir
762htmldir
763infodir
764docdir
765oldincludedir
766includedir
767localstatedir
768sharedstatedir
769sysconfdir
770datadir
771datarootdir
772libexecdir
773sbindir
774bindir
775program_transform_name
776prefix
777exec_prefix
778PACKAGE_BUGREPORT
779PACKAGE_STRING
780PACKAGE_VERSION
781PACKAGE_TARNAME
782PACKAGE_NAME
783PATH_SEPARATOR
784SHELL'
2f1a1aea 785ac_subst_files=''
0710d850
DS
786ac_user_opts='
787enable_option_checking
788enable_maintainer_mode
789enable_silent_rules
790enable_dependency_tracking
791enable_perfmon
792enable_prologues
793enable_ssp
794enable_pie
795enable_sqlite
796enable_translator
797enable_crash
798enable_docs
53ade4da
MW
799enable_publican
800with_publican_brand
0710d850
DS
801enable_refdocs
802enable_server
803enable_grapher
804with_rpm
805with_elfutils
806'
7fbd9d09
FCE
807 ac_precious_vars='build_alias
808host_alias
809target_alias
810CC
811CFLAGS
812LDFLAGS
813LIBS
814CPPFLAGS
815CXX
816CXXFLAGS
817CCC
818CPP
1087b83f 819PKG_CONFIG
c3f070d9
DS
820gtkmm_CFLAGS
821gtkmm_LIBS
f8a49389
DS
822libglade_CFLAGS
823libglade_LIBS
7f9ad862 824CXXCPP'
1087b83f 825ac_subdirs_all='testsuite'
2f1a1aea
FCE
826
827# Initialize some variables set by options.
828ac_init_help=
829ac_init_version=false
0710d850
DS
830ac_unrecognized_opts=
831ac_unrecognized_sep=
2f1a1aea
FCE
832# The variables have the same names as the options, with
833# dashes changed to underlines.
834cache_file=/dev/null
835exec_prefix=NONE
836no_create=
837no_recursion=
838prefix=NONE
839program_prefix=NONE
840program_suffix=NONE
841program_transform_name=s,x,x,
842silent=
843site=
844srcdir=
845verbose=
846x_includes=NONE
847x_libraries=NONE
848
849# Installation directory options.
850# These are left unexpanded so users can "make install exec_prefix=/foo"
851# and all the variables that are supposed to be based on exec_prefix
852# by default will actually change.
853# Use braces instead of parens because sh, perl, etc. also accept them.
7fbd9d09 854# (The list follows the same order as the GNU Coding Standards.)
2f1a1aea
FCE
855bindir='${exec_prefix}/bin'
856sbindir='${exec_prefix}/sbin'
857libexecdir='${exec_prefix}/libexec'
7fbd9d09
FCE
858datarootdir='${prefix}/share'
859datadir='${datarootdir}'
2f1a1aea
FCE
860sysconfdir='${prefix}/etc'
861sharedstatedir='${prefix}/com'
862localstatedir='${prefix}/var'
2f1a1aea
FCE
863includedir='${prefix}/include'
864oldincludedir='/usr/include'
7fbd9d09
FCE
865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866infodir='${datarootdir}/info'
867htmldir='${docdir}'
868dvidir='${docdir}'
869pdfdir='${docdir}'
870psdir='${docdir}'
871libdir='${exec_prefix}/lib'
872localedir='${datarootdir}/locale'
873mandir='${datarootdir}/man'
2f1a1aea
FCE
874
875ac_prev=
7fbd9d09 876ac_dashdash=
2f1a1aea
FCE
877for ac_option
878do
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
7fbd9d09 881 eval $ac_prev=\$ac_option
2f1a1aea
FCE
882 ac_prev=
883 continue
884 fi
885
7fbd9d09
FCE
886 case $ac_option in
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *) ac_optarg=yes ;;
889 esac
2f1a1aea
FCE
890
891 # Accept the important Cygnus configure options, so we can diagnose typos.
892
7fbd9d09
FCE
893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
2f1a1aea
FCE
896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
901
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
916
7fbd9d09 917 -datadir | --datadir | --datadi | --datad)
2f1a1aea 918 ac_prev=datadir ;;
7fbd9d09 919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
2f1a1aea
FCE
920 datadir=$ac_optarg ;;
921
7fbd9d09
FCE
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
2f1a1aea 929 -disable-* | --disable-*)
0710d850 930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2f1a1aea 931 # Reject names that are not valid shell variable names.
0710d850 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
e6364d79
MW
933 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
934 { (exit 1); exit 1; }; }
0710d850
DS
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939"enable_$ac_useropt"
940"*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
7fbd9d09
FCE
945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
2f1a1aea
FCE
955
956 -enable-* | --enable-*)
0710d850 957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2f1a1aea 958 # Reject names that are not valid shell variable names.
0710d850 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
e6364d79
MW
960 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
961 { (exit 1); exit 1; }; }
0710d850
DS
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966"enable_$ac_useropt"
967"*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=\$ac_optarg ;;
2f1a1aea
FCE
972
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
981
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
985
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
992
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
997
7fbd9d09
FCE
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1003
2f1a1aea
FCE
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1010
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1015
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1020
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1027
7fbd9d09
FCE
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1032
2f1a1aea 1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
7fbd9d09 1034 | --localstate | --localstat | --localsta | --localst | --locals)
2f1a1aea
FCE
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7fbd9d09 1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2f1a1aea
FCE
1038 localstatedir=$ac_optarg ;;
1039
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1044
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1048
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1051 no_create=yes ;;
1052
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1056
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1065
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1070
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1077
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1084
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1101
7fbd9d09
FCE
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1106
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1111
2f1a1aea
FCE
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1115
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1121
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1132
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1137
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1142
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1149
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1154
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1157
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1160
1161 -with-* | --with-*)
0710d850 1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2f1a1aea 1163 # Reject names that are not valid shell variable names.
0710d850 1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
e6364d79
MW
1165 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1166 { (exit 1); exit 1; }; }
0710d850
DS
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171"with_$ac_useropt"
1172"*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=\$ac_optarg ;;
2f1a1aea
FCE
1177
1178 -without-* | --without-*)
0710d850 1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2f1a1aea 1180 # Reject names that are not valid shell variable names.
0710d850 1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
e6364d79
MW
1182 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1183 { (exit 1); exit 1; }; }
0710d850
DS
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188"with_$ac_useropt"
1189"*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
2f1a1aea
FCE
1194
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1198
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1205
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1212
e6364d79
MW
1213 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1214Try \`$0 --help' for more information." >&2
1215 { (exit 1); exit 1; }; }
2f1a1aea
FCE
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
e6364d79
MW
1221 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1222 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1223 { (exit 1); exit 1; }; }
7fbd9d09 1224 eval $ac_envvar=\$ac_optarg
2f1a1aea
FCE
1225 export $ac_envvar ;;
1226
1227 *)
1228 # FIXME: should be removed in autoconf 3.0.
0710d850 1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2f1a1aea 1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
0710d850 1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2f1a1aea
FCE
1232 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1233 ;;
1234
1235 esac
1236done
1237
1238if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
e6364d79
MW
1240 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1241 { (exit 1); exit 1; }; }
2f1a1aea
FCE
1242fi
1243
0710d850
DS
1244if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
e6364d79
MW
1247 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1248 { (exit 1); exit 1; }; } ;;
0710d850
DS
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251fi
1252
1253# Check all directory arguments for consistency.
7fbd9d09
FCE
1254for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
818ba2bc 1258do
7fbd9d09 1259 eval ac_val=\$$ac_var
0710d850
DS
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
8ae7a94a 1267 case $ac_val in
7fbd9d09
FCE
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2f1a1aea 1270 esac
e6364d79
MW
1271 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1272 { (exit 1); exit 1; }; }
2f1a1aea
FCE
1273done
1274
1275# There might be people who depend on the old broken behavior: `$host'
1276# used to hold the argument of --host etc.
1277# FIXME: To remove some day.
1278build=$build_alias
1279host=$host_alias
1280target=$target_alias
1281
1282# FIXME: To remove some day.
1283if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
0710d850 1286 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2f1a1aea
FCE
1287 If a cross compiler is detected then cross compile mode will be used." >&2
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1290 fi
1291fi
1292
1293ac_tool_prefix=
1294test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296test "$silent" = yes && exec 6>/dev/null
1297
1298
7fbd9d09
FCE
1299ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300ac_ls_di=`ls -di .` &&
1301ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
e6364d79
MW
1302 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1303 { (exit 1); exit 1; }; }
7fbd9d09 1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
e6364d79
MW
1305 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1306 { (exit 1); exit 1; }; }
7fbd9d09
FCE
1307
1308
2f1a1aea
FCE
1309# Find the source files, if location was not specified.
1310if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
7fbd9d09 1312 # Try the directory containing this script, then the parent directory.
0710d850
DS
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318$as_echo X"$as_myself" |
7fbd9d09
FCE
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
2f1a1aea 1336 srcdir=$ac_confdir
7fbd9d09 1337 if test ! -r "$srcdir/$ac_unique_file"; then
2f1a1aea
FCE
1338 srcdir=..
1339 fi
1340else
1341 ac_srcdir_defaulted=no
1342fi
7fbd9d09
FCE
1343if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
e6364d79
MW
1345 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1346 { (exit 1); exit 1; }; }
8ae7a94a 1347fi
7fbd9d09
FCE
1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349ac_abs_confdir=`(
e6364d79
MW
1350 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1351 { (exit 1); exit 1; }; }
7fbd9d09
FCE
1352 pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
1363for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368done
2f1a1aea
FCE
1369
1370#
1371# Report the --help message.
1372#
1373if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
e36ba31a 1377\`configure' configures systemtap 1.2 to adapt to many kinds of systems.
2f1a1aea
FCE
1378
1379Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384Defaults for the options are specified in brackets.
1385
1386Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396
2f1a1aea
FCE
1397Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
0710d850 1399 [$ac_default_prefix]
2f1a1aea 1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
0710d850 1401 [PREFIX]
2f1a1aea
FCE
1402
1403By default, \`make install' will install all the files in
1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406for instance \`--prefix=\$HOME'.
1407
1408For better control, use the options below.
1409
1410Fine tuning of the installation directories:
0710d850
DS
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
2f1a1aea
FCE
1430_ACEOF
1431
1432 cat <<\_ACEOF
1433
1434Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438_ACEOF
1439fi
1440
1441if test -n "$ac_init_help"; then
1442 case $ac_init_help in
e36ba31a 1443 short | recursive ) echo "Configuration of systemtap 1.2:";;
2f1a1aea
FCE
1444 esac
1445 cat <<\_ACEOF
1446
1447Optional Features:
0710d850 1448 --disable-option-checking ignore unrecognized --enable/--with options
2f1a1aea
FCE
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-maintainer-mode enable make rules and dependencies not useful
1452 (and sometimes confusing) to the casual installer
0710d850
DS
1453 --enable-silent-rules less verbose build output (undo: `make V=1')
1454 --disable-silent-rules verbose build output (undo: `make V=0')
2f1a1aea
FCE
1455 --disable-dependency-tracking speeds up one-time build
1456 --enable-dependency-tracking do not reject slow dependency extractors
e8f3c2c2
DS
1457 --enable-perfmon[=DIRECTORY]
1458 enable perfmon support (default is disabled).
1459 Optional DIRECTORY is the path to the perfmon
1460 installation (needed if installed in a non-standard
1461 location).
44f75386 1462 --enable-prologues make -P prologue-searching default
bbfd8c1a 1463 --disable-ssp disable gcc stack-protector
882ddac1 1464 --enable-pie enable position-independent-executable
9921a199 1465 --enable-sqlite build with sqlite support
6d14a4a9 1466 --disable-translator build only runtime utilities
564eb0a8
DS
1467 --enable-crash[=DIRECTORY]
1468 enable crash extension (default is disabled).
1469 Optional DIRECTORY is the path to the crash header
1470 file (needed if installed in a non-standard
1471 location).
465e8fbf
FCE
1472 --enable-docs enable building documentation (default on if latex
1473 etc. found).
53ade4da
MW
1474 --enable-publican enable building publican documentation guides
1475 (default on if publican found and other
1476 documentation built).
92aff3c7
WC
1477 --enable-refdocs enable building reference documentation (default on
1478 if xmlto etc. found and other documentation built).
6275c8d7 1479 --enable-server enable building of stap-server/client (default on if
19a0d4b6 1480 nss etc. found).
f8a49389
DS
1481 --enable-grapher enable building of grapher (default on if needed
1482 requirements are found).
2f1a1aea 1483
4d9087fc
RM
1484Optional Packages:
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ade4da
MW
1487 --with-publican-brand=BRAND
1488 building publican documentation guides using given
89bc1a6a 1489 brand (defaults to "common").
bcfa72ed 1490 --with-rpm query rpm database for missing debuginfos
4d9087fc
RM
1491 --with-elfutils=DIRECTORY
1492 find elfutils source code in DIRECTORY
1493
2f1a1aea
FCE
1494Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
7fbd9d09 1499 LIBS libraries to pass to the linker, e.g. -l<library>
e6364d79 1500 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
7fbd9d09 1501 you have headers in a nonstandard directory <include dir>
2f1a1aea
FCE
1502 CXX C++ compiler command
1503 CXXFLAGS C++ compiler flags
1504 CPP C preprocessor
1087b83f 1505 PKG_CONFIG path to pkg-config utility
c3f070d9
DS
1506 gtkmm_CFLAGS
1507 C compiler flags for gtkmm, overriding pkg-config
1508 gtkmm_LIBS linker flags for gtkmm, overriding pkg-config
f8a49389
DS
1509 libglade_CFLAGS
1510 C compiler flags for libglade, overriding pkg-config
1511 libglade_LIBS
1512 linker flags for libglade, overriding pkg-config
1513 CXXCPP C++ preprocessor
2f1a1aea
FCE
1514
1515Use these variables to override the choices made by `configure' or to help
1516it to find libraries and programs with nonstandard names/locations.
1517
1518Report bugs to <systemtap@sources.redhat.com>.
1519_ACEOF
7fbd9d09 1520ac_status=$?
2f1a1aea
FCE
1521fi
1522
1523if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
2f1a1aea 1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
0710d850
DS
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
2f1a1aea
FCE
1529 ac_builddir=.
1530
7fbd9d09
FCE
1531case "$ac_dir" in
1532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533*)
0710d850 1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 1535 # A ".." for each directory in $ac_dir_suffix.
0710d850 1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541esac
1542ac_abs_top_builddir=$ac_pwd
1543ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544# for backward compatibility:
1545ac_top_builddir=$ac_top_build_prefix
2f1a1aea
FCE
1546
1547case $srcdir in
7fbd9d09 1548 .) # We are building in place.
2f1a1aea 1549 ac_srcdir=.
7fbd9d09
FCE
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
2f1a1aea 1553 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
818ba2bc 1560esac
7fbd9d09
FCE
1561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
2f1a1aea 1571 else
0710d850 1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7fbd9d09
FCE
1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
2f1a1aea
FCE
1575 done
1576fi
1577
7fbd9d09 1578test -n "$ac_init_help" && exit $ac_status
2f1a1aea
FCE
1579if $ac_init_version; then
1580 cat <<\_ACEOF
e36ba31a 1581systemtap configure 1.2
e6364d79 1582generated by GNU Autoconf 2.63
2f1a1aea 1583
e6364d79
MW
1584Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15852002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2f1a1aea
FCE
1586This configure script is free software; the Free Software Foundation
1587gives unlimited permission to copy, distribute and modify it.
1588_ACEOF
7fbd9d09 1589 exit
2f1a1aea 1590fi
e6364d79
MW
1591cat >config.log <<_ACEOF
1592This file contains any messages produced by compilers while
1593running configure, to aid debugging if configure makes a mistake.
2f1a1aea 1594
e36ba31a 1595It was created by systemtap $as_me 1.2, which was
e6364d79 1596generated by GNU Autoconf 2.63. Invocation command line was
2f1a1aea 1597
e6364d79 1598 $ $0 $@
2f1a1aea 1599
e6364d79
MW
1600_ACEOF
1601exec 5>>config.log
4b5627b1 1602{
e6364d79
MW
1603cat <<_ASUNAME
1604## --------- ##
1605## Platform. ##
1606## --------- ##
2f1a1aea 1607
e6364d79
MW
1608hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612uname -v = `(uname -v) 2>/dev/null || echo unknown`
4b5627b1 1613
e6364d79
MW
1614/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
4b5627b1
EM
1616
1617/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1618/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1619/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1621/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1622/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1623/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1624
1625_ASUNAME
2f1a1aea
FCE
1626
1627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628for as_dir in $PATH
1629do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
e6364d79
MW
1632 $as_echo "PATH: $as_dir"
1633done
7fbd9d09 1634IFS=$as_save_IFS
2f1a1aea
FCE
1635
1636} >&5
1637
1638cat >&5 <<_ACEOF
1639
1640
1641## ----------- ##
1642## Core tests. ##
1643## ----------- ##
1644
1645_ACEOF
1646
1647
1648# Keep a trace of the command line.
1649# Strip out --no-create and --no-recursion so they do not pile up.
1650# Strip out --silent because we don't want to record it for future runs.
1651# Also quote any args containing shell meta-characters.
1652# Make two passes to allow for proper duplicate-argument suppression.
1653ac_configure_args=
1654ac_configure_args0=
1655ac_configure_args1=
2f1a1aea
FCE
1656ac_must_keep_next=false
1657for ac_pass in 1 2
1658do
1659 for ac_arg
1660 do
1661 case $ac_arg in
1662 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664 | -silent | --silent | --silen | --sile | --sil)
1665 continue ;;
7fbd9d09 1666 *\'*)
0710d850 1667 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2f1a1aea
FCE
1668 esac
1669 case $ac_pass in
e6364d79 1670 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2f1a1aea 1671 2)
e6364d79 1672 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2f1a1aea
FCE
1673 if test $ac_must_keep_next = true; then
1674 ac_must_keep_next=false # Got value, back to normal.
1675 else
1676 case $ac_arg in
1677 *=* | --config-cache | -C | -disable-* | --disable-* \
1678 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680 | -with-* | --with-* | -without-* | --without-* | --x)
1681 case "$ac_configure_args0 " in
1682 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683 esac
1684 ;;
1685 -* ) ac_must_keep_next=true ;;
1686 esac
1687 fi
e6364d79 1688 ac_configure_args="$ac_configure_args '$ac_arg'"
2f1a1aea
FCE
1689 ;;
1690 esac
1691 done
1692done
e6364d79
MW
1693$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2f1a1aea
FCE
1695
1696# When interrupted or exit'd, cleanup temporary files, and complete
1697# config.log. We remove comments because anyway the quotes in there
1698# would cause problems or look ugly.
7fbd9d09
FCE
1699# WARNING: Use '\'' to represent an apostrophe within the trap.
1700# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2f1a1aea
FCE
1701trap 'exit_status=$?
1702 # Save into config.log some information that might help in debugging.
1703 {
1704 echo
1705
1706 cat <<\_ASBOX
1707## ---------------- ##
1708## Cache variables. ##
1709## ---------------- ##
1710_ASBOX
1711 echo
1712 # The following way of writing the cache mishandles newlines in values,
7fbd9d09
FCE
1713(
1714 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715 eval ac_val=\$$ac_var
1716 case $ac_val in #(
1717 *${as_nl}*)
1718 case $ac_var in #(
e6364d79 1719 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
0710d850 1720$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7fbd9d09
FCE
1721 esac
1722 case $ac_var in #(
1723 _ | IFS | as_nl) ;; #(
0710d850 1724 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
e6364d79 1725 *) $as_unset $ac_var ;;
7fbd9d09
FCE
1726 esac ;;
1727 esac
1728 done
2f1a1aea 1729 (set) 2>&1 |
7fbd9d09
FCE
1730 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731 *${as_nl}ac_space=\ *)
2f1a1aea 1732 sed -n \
7fbd9d09
FCE
1733 "s/'\''/'\''\\\\'\'''\''/g;
1734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735 ;; #(
2f1a1aea 1736 *)
7fbd9d09 1737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2f1a1aea 1738 ;;
7fbd9d09
FCE
1739 esac |
1740 sort
1741)
2f1a1aea
FCE
1742 echo
1743
1744 cat <<\_ASBOX
1745## ----------------- ##
1746## Output variables. ##
1747## ----------------- ##
1748_ASBOX
1749 echo
1750 for ac_var in $ac_subst_vars
1751 do
7fbd9d09
FCE
1752 eval ac_val=\$$ac_var
1753 case $ac_val in
0710d850 1754 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7fbd9d09 1755 esac
0710d850 1756 $as_echo "$ac_var='\''$ac_val'\''"
2f1a1aea
FCE
1757 done | sort
1758 echo
1759
1760 if test -n "$ac_subst_files"; then
1761 cat <<\_ASBOX
7fbd9d09
FCE
1762## ------------------- ##
1763## File substitutions. ##
1764## ------------------- ##
2f1a1aea
FCE
1765_ASBOX
1766 echo
1767 for ac_var in $ac_subst_files
1768 do
7fbd9d09
FCE
1769 eval ac_val=\$$ac_var
1770 case $ac_val in
0710d850 1771 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7fbd9d09 1772 esac
0710d850 1773 $as_echo "$ac_var='\''$ac_val'\''"
2f1a1aea
FCE
1774 done | sort
1775 echo
1776 fi
1777
1778 if test -s confdefs.h; then
1779 cat <<\_ASBOX
1780## ----------- ##
1781## confdefs.h. ##
1782## ----------- ##
1783_ASBOX
1784 echo
7fbd9d09 1785 cat confdefs.h
2f1a1aea
FCE
1786 echo
1787 fi
1788 test "$ac_signal" != 0 &&
0710d850
DS
1789 $as_echo "$as_me: caught signal $ac_signal"
1790 $as_echo "$as_me: exit $exit_status"
2f1a1aea 1791 } >&5
7fbd9d09
FCE
1792 rm -f core *.core core.conftest.* &&
1793 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2f1a1aea 1794 exit $exit_status
7fbd9d09 1795' 0
2f1a1aea 1796for ac_signal in 1 2 13 15; do
e6364d79 1797 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2f1a1aea
FCE
1798done
1799ac_signal=0
1800
1801# confdefs.h avoids OS command line length limits that DEFS can exceed.
7fbd9d09 1802rm -f -r conftest* confdefs.h
2f1a1aea
FCE
1803
1804# Predefined preprocessor variables.
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE_NAME "$PACKAGE_NAME"
1808_ACEOF
1809
e6364d79 1810
2f1a1aea
FCE
1811cat >>confdefs.h <<_ACEOF
1812#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1813_ACEOF
1814
e6364d79 1815
2f1a1aea
FCE
1816cat >>confdefs.h <<_ACEOF
1817#define PACKAGE_VERSION "$PACKAGE_VERSION"
1818_ACEOF
1819
e6364d79 1820
2f1a1aea
FCE
1821cat >>confdefs.h <<_ACEOF
1822#define PACKAGE_STRING "$PACKAGE_STRING"
1823_ACEOF
1824
4a3c19da 1825
4b5627b1 1826cat >>confdefs.h <<_ACEOF
e6364d79 1827#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
4b5627b1
EM
1828_ACEOF
1829
2f1a1aea
FCE
1830
1831# Let the site file select an alternate cache file if it wants to.
0710d850
DS
1832# Prefer an explicitly selected file to automatically selected ones.
1833ac_site_file1=NONE
1834ac_site_file2=NONE
7fbd9d09 1835if test -n "$CONFIG_SITE"; then
0710d850 1836 ac_site_file1=$CONFIG_SITE
7fbd9d09 1837elif test "x$prefix" != xNONE; then
0710d850
DS
1838 ac_site_file1=$prefix/share/config.site
1839 ac_site_file2=$prefix/etc/config.site
7fbd9d09 1840else
0710d850
DS
1841 ac_site_file1=$ac_default_prefix/share/config.site
1842 ac_site_file2=$ac_default_prefix/etc/config.site
818ba2bc 1843fi
0710d850 1844for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7fbd9d09 1845do
0710d850 1846 test "x$ac_site_file" = xNONE && continue
e6364d79
MW
1847 if test -r "$ac_site_file"; then
1848 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
0710d850 1849$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2f1a1aea
FCE
1850 sed 's/^/| /' "$ac_site_file" >&5
1851 . "$ac_site_file"
1852 fi
1853done
1854
1855if test -r "$cache_file"; then
e6364d79
MW
1856 # Some versions of bash will fail to source /dev/null (special
1857 # files actually), so we avoid doing that.
1858 if test -f "$cache_file"; then
1859 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
0710d850 1860$as_echo "$as_me: loading cache $cache_file" >&6;}
2f1a1aea 1861 case $cache_file in
7fbd9d09
FCE
1862 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1863 *) . "./$cache_file";;
2f1a1aea
FCE
1864 esac
1865 fi
1866else
e6364d79 1867 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
0710d850 1868$as_echo "$as_me: creating cache $cache_file" >&6;}
2f1a1aea
FCE
1869 >$cache_file
1870fi
1871
1872# Check that the precious variables saved in the cache have kept the same
1873# value.
1874ac_cache_corrupted=false
7fbd9d09 1875for ac_var in $ac_precious_vars; do
2f1a1aea
FCE
1876 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1877 eval ac_new_set=\$ac_env_${ac_var}_set
7fbd9d09
FCE
1878 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1879 eval ac_new_val=\$ac_env_${ac_var}_value
2f1a1aea
FCE
1880 case $ac_old_set,$ac_new_set in
1881 set,)
e6364d79 1882 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
0710d850 1883$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2f1a1aea
FCE
1884 ac_cache_corrupted=: ;;
1885 ,set)
e6364d79 1886 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
0710d850 1887$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2f1a1aea
FCE
1888 ac_cache_corrupted=: ;;
1889 ,);;
1890 *)
1891 if test "x$ac_old_val" != "x$ac_new_val"; then
0710d850
DS
1892 # differences in whitespace do not lead to failure.
1893 ac_old_val_w=`echo x $ac_old_val`
1894 ac_new_val_w=`echo x $ac_new_val`
1895 if test "$ac_old_val_w" != "$ac_new_val_w"; then
e6364d79 1896 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
0710d850
DS
1897$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1898 ac_cache_corrupted=:
1899 else
e6364d79 1900 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
0710d850
DS
1901$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1902 eval $ac_var=\$ac_old_val
1903 fi
e6364d79 1904 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
0710d850 1905$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
e6364d79 1906 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
0710d850 1907$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2f1a1aea
FCE
1908 fi;;
1909 esac
1910 # Pass precious variables to config.status.
1911 if test "$ac_new_set" = set; then
1912 case $ac_new_val in
0710d850 1913 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4a3c19da
EM
1914 *) ac_arg=$ac_var=$ac_new_val ;;
1915 esac
1916 case " $ac_configure_args " in
1917 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
e6364d79 1918 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
4a3c19da
EM
1919 esac
1920 fi
1921done
1922if $ac_cache_corrupted; then
e6364d79 1923 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
0710d850 1924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
e6364d79 1925 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
0710d850 1926$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
e6364d79
MW
1927 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1928$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1929 { (exit 1); exit 1; }; }
4a3c19da 1930fi
e6364d79
MW
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
2f1a1aea 1955
7fbd9d09
FCE
1956ac_ext=c
1957ac_cpp='$CPP $CPPFLAGS'
1958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960ac_compiler_gnu=$ac_cv_c_compiler_gnu
2f1a1aea
FCE
1961
1962
1963
2f1a1aea 1964
0710d850 1965am__api_version='1.11'
10b20266 1966
2f1a1aea 1967ac_aux_dir=
412e1bf7 1968for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
e6364d79
MW
1969 if test -f "$ac_dir/install-sh"; then
1970 ac_aux_dir=$ac_dir
1971 ac_install_sh="$ac_aux_dir/install-sh -c"
1972 break
1973 elif test -f "$ac_dir/install.sh"; then
1974 ac_aux_dir=$ac_dir
1975 ac_install_sh="$ac_aux_dir/install.sh -c"
1976 break
1977 elif test -f "$ac_dir/shtool"; then
1978 ac_aux_dir=$ac_dir
1979 ac_install_sh="$ac_aux_dir/shtool install -c"
1980 break
1981 fi
2f1a1aea
FCE
1982done
1983if test -z "$ac_aux_dir"; then
e6364d79
MW
1984 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1985$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1986 { (exit 1); exit 1; }; }
2f1a1aea 1987fi
7fbd9d09
FCE
1988
1989# These three variables are undocumented and unsupported,
1990# and are intended to be withdrawn in a future Autoconf release.
1991# They can cause serious problems if a builder's source tree is in a directory
1992# whose full name contains unusual characters.
1993ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1994ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1995ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1996
2f1a1aea
FCE
1997
1998# Find a good install program. We prefer a C program (faster),
1999# so one script is as good as another. But avoid the broken or
2000# incompatible versions:
2001# SysV /etc/install, /usr/sbin/install
2002# SunOS /usr/etc/install
2003# IRIX /sbin/install
2004# AIX /bin/install
2005# AmigaOS /C/install, which installs bootblocks on floppy discs
2006# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2007# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2008# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2009# OS/2's system install, which has a completely different semantic
2010# ./install, which can be erroneously created by make from ./install.sh.
0710d850 2011# Reject install programs that cannot install multiple files.
e6364d79 2012{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
0710d850 2013$as_echo_n "checking for a BSD-compatible install... " >&6; }
2f1a1aea 2014if test -z "$INSTALL"; then
e6364d79 2015if test "${ac_cv_path_install+set}" = set; then
0710d850 2016 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2017else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019for as_dir in $PATH
2020do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
e6364d79
MW
2023 # Account for people who put trailing slashes in PATH elements.
2024case $as_dir/ in
2025 ./ | .// | /cC/* | \
2f1a1aea 2026 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
e6364d79 2027 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2f1a1aea
FCE
2028 /usr/ucb/* ) ;;
2029 *)
2030 # OSF1 and SCO ODT 3.0 have their own names for install.
2031 # Don't use installbsd from OSF since it installs stuff as root
2032 # by default.
2033 for ac_prog in ginstall scoinst install; do
2034 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2035 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2f1a1aea
FCE
2036 if test $ac_prog = install &&
2037 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2038 # AIX install. It has an incompatible calling convention.
2039 :
2040 elif test $ac_prog = install &&
2041 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2042 # program-specific install script used by HP pwplus--don't use.
2043 :
2044 else
0710d850
DS
2045 rm -rf conftest.one conftest.two conftest.dir
2046 echo one > conftest.one
2047 echo two > conftest.two
2048 mkdir conftest.dir
2049 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2050 test -s conftest.one && test -s conftest.two &&
2051 test -s conftest.dir/conftest.one &&
2052 test -s conftest.dir/conftest.two
2053 then
2054 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2055 break 3
2056 fi
2f1a1aea
FCE
2057 fi
2058 fi
2059 done
2060 done
2061 ;;
2062esac
0710d850 2063
e6364d79 2064done
7fbd9d09 2065IFS=$as_save_IFS
2f1a1aea 2066
0710d850 2067rm -rf conftest.one conftest.two conftest.dir
2f1a1aea
FCE
2068
2069fi
2070 if test "${ac_cv_path_install+set}" = set; then
2071 INSTALL=$ac_cv_path_install
2072 else
7fbd9d09
FCE
2073 # As a last resort, use the slow shell script. Don't cache a
2074 # value for INSTALL within a source directory, because that will
2f1a1aea 2075 # break other packages using the cache if that directory is
7fbd9d09 2076 # removed, or if the value is a relative name.
2f1a1aea
FCE
2077 INSTALL=$ac_install_sh
2078 fi
2079fi
e6364d79 2080{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
0710d850 2081$as_echo "$INSTALL" >&6; }
2f1a1aea
FCE
2082
2083# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2084# It thinks the first close brace ends the variable substitution.
2085test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2086
2087test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2088
2089test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2090
e6364d79 2091{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
0710d850 2092$as_echo_n "checking whether build environment is sane... " >&6; }
2f1a1aea
FCE
2093# Just in case
2094sleep 1
2095echo timestamp > conftest.file
0710d850
DS
2096# Reject unsafe characters in $srcdir or the absolute working directory
2097# name. Accept space and tab only in the latter.
2098am_lf='
2099'
2100case `pwd` in
2101 *[\\\"\#\$\&\'\`$am_lf]*)
e6364d79
MW
2102 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2103$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2104 { (exit 1); exit 1; }; };;
0710d850
DS
2105esac
2106case $srcdir in
2107 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
e6364d79
MW
2108 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2109$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2110 { (exit 1); exit 1; }; };;
0710d850
DS
2111esac
2112
2f1a1aea
FCE
2113# Do `set' in a subshell so we don't clobber the current shell's
2114# arguments. Must try -L first in case configure is actually a
2115# symlink; some systems play weird games with the mod time of symlinks
2116# (eg FreeBSD returns the mod time of the symlink's containing
2117# directory).
2118if (
0710d850 2119 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2f1a1aea
FCE
2120 if test "$*" = "X"; then
2121 # -L didn't work.
0710d850 2122 set X `ls -t "$srcdir/configure" conftest.file`
2f1a1aea
FCE
2123 fi
2124 rm -f conftest.file
2125 if test "$*" != "X $srcdir/configure conftest.file" \
2126 && test "$*" != "X conftest.file $srcdir/configure"; then
2127
2128 # If neither matched, then we have a broken ls. This can happen
2129 # if, for instance, CONFIG_SHELL is bash and it inherits a
2130 # broken ls alias from the environment. This has actually
2131 # happened. Such a system could not be considered "sane".
e6364d79
MW
2132 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2133alias in your environment" >&5
2134$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2135alias in your environment" >&2;}
2136 { (exit 1); exit 1; }; }
2f1a1aea
FCE
2137 fi
2138
2139 test "$2" = conftest.file
2140 )
2141then
2142 # Ok.
2143 :
2144else
e6364d79
MW
2145 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2146Check your system clock" >&5
2147$as_echo "$as_me: error: newly created file is older than distributed files!
2148Check your system clock" >&2;}
2149 { (exit 1); exit 1; }; }
2f1a1aea 2150fi
e6364d79 2151{ $as_echo "$as_me:$LINENO: result: yes" >&5
0710d850 2152$as_echo "yes" >&6; }
2f1a1aea 2153test "$program_prefix" != NONE &&
7fbd9d09 2154 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2f1a1aea
FCE
2155# Use a double $ so make ignores it.
2156test "$program_suffix" != NONE &&
7fbd9d09 2157 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
0710d850 2158# Double any \ or $.
2f1a1aea 2159# By default was `s,x,x', remove it if useless.
0710d850
DS
2160ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2161program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2f1a1aea
FCE
2162
2163# expand $ac_aux_dir to an absolute path
2164am_aux_dir=`cd $ac_aux_dir && pwd`
2165
0710d850
DS
2166if test x"${MISSING+set}" != xset; then
2167 case $am_aux_dir in
2168 *\ * | *\ *)
2169 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2170 *)
2171 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2172 esac
2173fi
2f1a1aea
FCE
2174# Use eval to expand $SHELL
2175if eval "$MISSING --run true"; then
2176 am_missing_run="$MISSING --run "
2177else
2178 am_missing_run=
e6364d79 2179 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
0710d850
DS
2180$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2181fi
2182
2183if test x"${install_sh}" != xset; then
2184 case $am_aux_dir in
2185 *\ * | *\ *)
2186 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2187 *)
2188 install_sh="\${SHELL} $am_aux_dir/install-sh"
2189 esac
8d9d8fe1
DB
2190fi
2191
0710d850
DS
2192# Installed binaries are usually stripped using `strip' when the user
2193# run `make install-strip'. However `strip' might not be the right
2194# tool to use in cross-compilation environments, therefore Automake
2195# will honor the `STRIP' environment variable to overrule this program.
2196if test "$cross_compiling" != no; then
2197 if test -n "$ac_tool_prefix"; then
2198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2199set dummy ${ac_tool_prefix}strip; ac_word=$2
e6364d79 2200{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 2201$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 2202if test "${ac_cv_prog_STRIP+set}" = set; then
0710d850
DS
2203 $as_echo_n "(cached) " >&6
2204else
2205 if test -n "$STRIP"; then
2206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2207else
2208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209for as_dir in $PATH
2210do
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
e6364d79 2213 for ac_exec_ext in '' $ac_executable_extensions; do
0710d850
DS
2214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2215 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6364d79 2216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
0710d850
DS
2217 break 2
2218 fi
2219done
e6364d79 2220done
0710d850
DS
2221IFS=$as_save_IFS
2222
2223fi
2224fi
2225STRIP=$ac_cv_prog_STRIP
2226if test -n "$STRIP"; then
e6364d79 2227 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
0710d850
DS
2228$as_echo "$STRIP" >&6; }
2229else
e6364d79 2230 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850
DS
2231$as_echo "no" >&6; }
2232fi
2233
2234
2235fi
2236if test -z "$ac_cv_prog_STRIP"; then
2237 ac_ct_STRIP=$STRIP
2238 # Extract the first word of "strip", so it can be a program name with args.
2239set dummy strip; ac_word=$2
e6364d79 2240{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 2241$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 2242if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
0710d850
DS
2243 $as_echo_n "(cached) " >&6
2244else
2245 if test -n "$ac_ct_STRIP"; then
2246 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2247else
2248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249for as_dir in $PATH
2250do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
e6364d79 2253 for ac_exec_ext in '' $ac_executable_extensions; do
0710d850
DS
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_ac_ct_STRIP="strip"
e6364d79 2256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
0710d850
DS
2257 break 2
2258 fi
2259done
e6364d79 2260done
0710d850
DS
2261IFS=$as_save_IFS
2262
2263fi
2264fi
2265ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2266if test -n "$ac_ct_STRIP"; then
e6364d79 2267 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
0710d850
DS
2268$as_echo "$ac_ct_STRIP" >&6; }
2269else
e6364d79 2270 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850
DS
2271$as_echo "no" >&6; }
2272fi
2273
2274 if test "x$ac_ct_STRIP" = x; then
2275 STRIP=":"
2276 else
2277 case $cross_compiling:$ac_tool_warned in
2278yes:)
e6364d79 2279{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850
DS
2280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2281ac_tool_warned=yes ;;
2282esac
2283 STRIP=$ac_ct_STRIP
2284 fi
2285else
2286 STRIP="$ac_cv_prog_STRIP"
2287fi
2288
2289fi
2290INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2291
e6364d79 2292{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
0710d850 2293$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7fbd9d09 2294if test -z "$MKDIR_P"; then
e6364d79 2295 if test "${ac_cv_path_mkdir+set}" = set; then
0710d850 2296 $as_echo_n "(cached) " >&6
7fbd9d09
FCE
2297else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2300do
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
e6364d79 2303 for ac_prog in mkdir gmkdir; do
7fbd9d09
FCE
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2306 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2307 'mkdir (GNU coreutils) '* | \
2308 'mkdir (coreutils) '* | \
2309 'mkdir (fileutils) '4.1*)
2310 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2311 break 3;;
2312 esac
2313 done
2314 done
e6364d79 2315done
7fbd9d09
FCE
2316IFS=$as_save_IFS
2317
2318fi
2319
2320 if test "${ac_cv_path_mkdir+set}" = set; then
2321 MKDIR_P="$ac_cv_path_mkdir -p"
2f1a1aea 2322 else
7fbd9d09
FCE
2323 # As a last resort, use the slow shell script. Don't cache a
2324 # value for MKDIR_P within a source directory, because that will
2325 # break other packages using the cache if that directory is
2326 # removed, or if the value is a relative name.
e6364d79 2327 test -d ./--version && rmdir ./--version
7fbd9d09 2328 MKDIR_P="$ac_install_sh -d"
2f1a1aea
FCE
2329 fi
2330fi
e6364d79 2331{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
0710d850 2332$as_echo "$MKDIR_P" >&6; }
7fbd9d09
FCE
2333
2334mkdir_p="$MKDIR_P"
2335case $mkdir_p in
2336 [\\/$]* | ?:[\\/]*) ;;
2337 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2338esac
2f1a1aea
FCE
2339
2340for ac_prog in gawk mawk nawk awk
2341do
2342 # Extract the first word of "$ac_prog", so it can be a program name with args.
2343set dummy $ac_prog; ac_word=$2
e6364d79 2344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 2345$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 2346if test "${ac_cv_prog_AWK+set}" = set; then
0710d850 2347 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2348else
2349 if test -n "$AWK"; then
2350 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2351else
2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
e6364d79 2357 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2359 ac_cv_prog_AWK="$ac_prog"
e6364d79 2360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2361 break 2
2362 fi
2363done
e6364d79 2364done
7fbd9d09 2365IFS=$as_save_IFS
2f1a1aea
FCE
2366
2367fi
2368fi
2369AWK=$ac_cv_prog_AWK
2370if test -n "$AWK"; then
e6364d79 2371 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
0710d850 2372$as_echo "$AWK" >&6; }
2f1a1aea 2373else
e6364d79 2374 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 2375$as_echo "no" >&6; }
2f1a1aea
FCE
2376fi
2377
7fbd9d09 2378
2f1a1aea
FCE
2379 test -n "$AWK" && break
2380done
2381
e6364d79 2382{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
0710d850
DS
2383$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2384set x ${MAKE-make}
2385ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
e6364d79 2386if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
0710d850 2387 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2388else
2389 cat >conftest.make <<\_ACEOF
412e1bf7
FCE
2390SHELL = /bin/sh
2391all:
2392 @echo '@@@%%%=$(MAKE)=@@@%%%'
2393_ACEOF
2394# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2395case `${MAKE-make} -f conftest.make 2>/dev/null` in
2396 *@@@%%%=?*=@@@%%%*)
2397 eval ac_cv_prog_make_${ac_make}_set=yes;;
2398 *)
2399 eval ac_cv_prog_make_${ac_make}_set=no;;
2400esac
2401rm -f conftest.make
4a3c19da 2402fi
412e1bf7 2403if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
e6364d79 2404 { $as_echo "$as_me:$LINENO: result: yes" >&5
0710d850 2405$as_echo "yes" >&6; }
412e1bf7 2406 SET_MAKE=
4a3c19da 2407else
e6364d79 2408 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 2409$as_echo "no" >&6; }
412e1bf7 2410 SET_MAKE="MAKE=${MAKE-make}"
2f1a1aea
FCE
2411fi
2412
412e1bf7
FCE
2413rm -rf .tst 2>/dev/null
2414mkdir .tst 2>/dev/null
2415if test -d .tst; then
2416 am__leading_dot=.
4a3c19da 2417else
412e1bf7 2418 am__leading_dot=_
2f1a1aea 2419fi
412e1bf7 2420rmdir .tst 2>/dev/null
2f1a1aea 2421
412e1bf7
FCE
2422if test "`cd $srcdir && pwd`" != "`pwd`"; then
2423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2424 # is not polluted with repeated "-I."
2425 am__isrc=' -I$(srcdir)'
2426 # test to see if srcdir already configured
2427 if test -f $srcdir/config.status; then
e6364d79
MW
2428 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2429$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2430 { (exit 1); exit 1; }; }
412e1bf7 2431 fi
4a3c19da 2432fi
412e1bf7
FCE
2433
2434# test whether we have cygpath
2435if test -z "$CYGPATH_W"; then
2436 if (cygpath --version) >/dev/null 2>/dev/null; then
2437 CYGPATH_W='cygpath -w'
2438 else
2439 CYGPATH_W=echo
2440 fi
2441fi
2442
2443
2444# Define the identity of the package.
2445 PACKAGE='systemtap'
e36ba31a 2446 VERSION='1.2'
412e1bf7
FCE
2447
2448
2449cat >>confdefs.h <<_ACEOF
2450#define PACKAGE "$PACKAGE"
2451_ACEOF
2452
2453
2454cat >>confdefs.h <<_ACEOF
2455#define VERSION "$VERSION"
2456_ACEOF
2457
2458# Some tools Automake needs.
2459
2460ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2461
2462
2463AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2464
2465
0710d850 2466AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
31f9baea 2467
0710d850
DS
2468
2469AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2470
2471
2472MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2f1a1aea 2473
2f1a1aea
FCE
2474# We need awk for the "check" target. The system "awk" is bad on
2475# some platforms.
2476# Always define AMTAR for backward compatibility.
2477
2478AMTAR=${AMTAR-"${am_missing_run}tar"}
2479
2480am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2481
2482
2483
2484
2485
0710d850 2486
e6364d79 2487{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
0710d850 2488$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7fbd9d09 2489 # Check whether --enable-maintainer-mode was given.
e6364d79 2490if test "${enable_maintainer_mode+set}" = set; then
7fbd9d09 2491 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2f1a1aea
FCE
2492else
2493 USE_MAINTAINER_MODE=no
7fbd9d09 2494fi
2f1a1aea 2495
e6364d79 2496 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
0710d850 2497$as_echo "$USE_MAINTAINER_MODE" >&6; }
7fbd9d09 2498 if test $USE_MAINTAINER_MODE = yes; then
2f1a1aea
FCE
2499 MAINTAINER_MODE_TRUE=
2500 MAINTAINER_MODE_FALSE='#'
2501else
2502 MAINTAINER_MODE_TRUE='#'
2503 MAINTAINER_MODE_FALSE=
2504fi
2505
2506 MAINT=$MAINTAINER_MODE_TRUE
2507
2508
2509
0710d850 2510# Check whether --enable-silent-rules was given.
e6364d79 2511if test "${enable_silent_rules+set}" = set; then
0710d850
DS
2512 enableval=$enable_silent_rules;
2513fi
2514
2515case $enable_silent_rules in
2516yes) AM_DEFAULT_VERBOSITY=0;;
2517no) AM_DEFAULT_VERBOSITY=1;;
2518*) AM_DEFAULT_VERBOSITY=0;;
2519esac
2520AM_BACKSLASH='\'
618a8a63
JS
2521
2522
7fbd9d09
FCE
2523mkdir_p="$MKDIR_P"
2524case $mkdir_p in
2525 [\\/$]* | ?:[\\/]*) ;;
2526 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2527esac
2528
98aab489 2529
e6364d79 2530{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
0710d850 2531$as_echo_n "checking whether ln -s works... " >&6; }
2f1a1aea
FCE
2532LN_S=$as_ln_s
2533if test "$LN_S" = "ln -s"; then
e6364d79 2534 { $as_echo "$as_me:$LINENO: result: yes" >&5
0710d850 2535$as_echo "yes" >&6; }
2f1a1aea 2536else
e6364d79 2537 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
0710d850 2538$as_echo "no, using $LN_S" >&6; }
2f1a1aea
FCE
2539fi
2540
2541ac_ext=c
2542ac_cpp='$CPP $CPPFLAGS'
2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546if test -n "$ac_tool_prefix"; then
2547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2548set dummy ${ac_tool_prefix}gcc; ac_word=$2
e6364d79 2549{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 2550$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 2551if test "${ac_cv_prog_CC+set}" = set; then
0710d850 2552 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2553else
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2556else
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
e6364d79 2562 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
e6364d79 2565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2566 break 2
2567 fi
2568done
e6364d79 2569done
7fbd9d09 2570IFS=$as_save_IFS
2f1a1aea
FCE
2571
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
e6364d79 2576 { $as_echo "$as_me:$LINENO: result: $CC" >&5
0710d850 2577$as_echo "$CC" >&6; }
2f1a1aea 2578else
e6364d79 2579 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 2580$as_echo "no" >&6; }
2f1a1aea
FCE
2581fi
2582
7fbd9d09 2583
2f1a1aea
FCE
2584fi
2585if test -z "$ac_cv_prog_CC"; then
2586 ac_ct_CC=$CC
2587 # Extract the first word of "gcc", so it can be a program name with args.
2588set dummy gcc; ac_word=$2
e6364d79 2589{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 2590$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 2591if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
0710d850 2592 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2593else
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
e6364d79 2602 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2604 ac_cv_prog_ac_ct_CC="gcc"
e6364d79 2605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2606 break 2
2607 fi
2608done
e6364d79 2609done
7fbd9d09 2610IFS=$as_save_IFS
2f1a1aea
FCE
2611
2612fi
2613fi
2614ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615if test -n "$ac_ct_CC"; then
e6364d79 2616 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
0710d850 2617$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 2618else
e6364d79 2619 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 2620$as_echo "no" >&6; }
2f1a1aea
FCE
2621fi
2622
7fbd9d09
FCE
2623 if test "x$ac_ct_CC" = x; then
2624 CC=""
2625 else
2626 case $cross_compiling:$ac_tool_warned in
2627yes:)
e6364d79 2628{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 2629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
2630ac_tool_warned=yes ;;
2631esac
2632 CC=$ac_ct_CC
2633 fi
2f1a1aea
FCE
2634else
2635 CC="$ac_cv_prog_CC"
2636fi
2637
2638if test -z "$CC"; then
7fbd9d09
FCE
2639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2f1a1aea 2641set dummy ${ac_tool_prefix}cc; ac_word=$2
e6364d79 2642{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 2643$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 2644if test "${ac_cv_prog_CC+set}" = set; then
0710d850 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=.
e6364d79 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}cc"
e6364d79 2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2659 break 2
2660 fi
2661done
e6364d79 2662done
7fbd9d09 2663IFS=$as_save_IFS
2f1a1aea
FCE
2664
2665fi
2666fi
2667CC=$ac_cv_prog_CC
2668if test -n "$CC"; then
e6364d79 2669 { $as_echo "$as_me:$LINENO: result: $CC" >&5
0710d850 2670$as_echo "$CC" >&6; }
818ba2bc 2671else
e6364d79 2672 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 2673$as_echo "no" >&6; }
818ba2bc
MW
2674fi
2675
818ba2bc 2676
7fbd9d09 2677 fi
2f1a1aea
FCE
2678fi
2679if test -z "$CC"; then
2680 # Extract the first word of "cc", so it can be a program name with args.
2681set dummy cc; ac_word=$2
e6364d79 2682{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 2683$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 2684if test "${ac_cv_prog_CC+set}" = set; then
0710d850 2685 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2686else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689else
2690 ac_prog_rejected=no
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
e6364d79 2696 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea
FCE
2698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2699 ac_prog_rejected=yes
2700 continue
2701 fi
2702 ac_cv_prog_CC="cc"
e6364d79 2703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2704 break 2
2705 fi
2706done
e6364d79 2707done
7fbd9d09 2708IFS=$as_save_IFS
2f1a1aea
FCE
2709
2710if test $ac_prog_rejected = yes; then
2711 # We found a bogon in the path, so make sure we never use it.
2712 set dummy $ac_cv_prog_CC
2713 shift
2714 if test $# != 0; then
2715 # We chose a different compiler from the bogus one.
2716 # However, it has the same basename, so the bogon will be chosen
2717 # first if we set CC to just the basename; use the full file name.
2718 shift
2719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2720 fi
2721fi
2722fi
2723fi
2724CC=$ac_cv_prog_CC
2725if test -n "$CC"; then
e6364d79 2726 { $as_echo "$as_me:$LINENO: result: $CC" >&5
0710d850 2727$as_echo "$CC" >&6; }
2f1a1aea 2728else
e6364d79 2729 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 2730$as_echo "no" >&6; }
2f1a1aea
FCE
2731fi
2732
7fbd9d09 2733
2f1a1aea
FCE
2734fi
2735if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
7fbd9d09 2737 for ac_prog in cl.exe
2f1a1aea
FCE
2738 do
2739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
e6364d79 2741{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 2742$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 2743if test "${ac_cv_prog_CC+set}" = set; then
0710d850 2744 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2745else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
e6364d79 2754 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
e6364d79 2757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2758 break 2
2759 fi
2760done
e6364d79 2761done
7fbd9d09 2762IFS=$as_save_IFS
2f1a1aea
FCE
2763
2764fi
2765fi
2766CC=$ac_cv_prog_CC
2767if test -n "$CC"; then
e6364d79 2768 { $as_echo "$as_me:$LINENO: result: $CC" >&5
0710d850 2769$as_echo "$CC" >&6; }
2f1a1aea 2770else
e6364d79 2771 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 2772$as_echo "no" >&6; }
2f1a1aea
FCE
2773fi
2774
7fbd9d09 2775
2f1a1aea
FCE
2776 test -n "$CC" && break
2777 done
2778fi
2779if test -z "$CC"; then
2780 ac_ct_CC=$CC
7fbd9d09 2781 for ac_prog in cl.exe
2f1a1aea
FCE
2782do
2783 # Extract the first word of "$ac_prog", so it can be a program name with args.
2784set dummy $ac_prog; ac_word=$2
e6364d79 2785{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 2786$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 2787if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
0710d850 2788 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2789else
2790 if test -n "$ac_ct_CC"; then
2791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
e6364d79 2798 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2800 ac_cv_prog_ac_ct_CC="$ac_prog"
e6364d79 2801 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2802 break 2
2803 fi
2804done
e6364d79 2805done
7fbd9d09 2806IFS=$as_save_IFS
2f1a1aea
FCE
2807
2808fi
2809fi
2810ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811if test -n "$ac_ct_CC"; then
e6364d79 2812 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
0710d850 2813$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 2814else
e6364d79 2815 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 2816$as_echo "no" >&6; }
2f1a1aea
FCE
2817fi
2818
7fbd9d09 2819
2f1a1aea
FCE
2820 test -n "$ac_ct_CC" && break
2821done
2822
7fbd9d09
FCE
2823 if test "x$ac_ct_CC" = x; then
2824 CC=""
2825 else
2826 case $cross_compiling:$ac_tool_warned in
2827yes:)
e6364d79 2828{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 2829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
2830ac_tool_warned=yes ;;
2831esac
2832 CC=$ac_ct_CC
2833 fi
2f1a1aea
FCE
2834fi
2835
2836fi
2837
2838
e6364d79 2839test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
0710d850 2840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
e6364d79
MW
2841{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2842See \`config.log' for more details." >&5
2843$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2844See \`config.log' for more details." >&2;}
2845 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
2846
2847# Provide some information about the compiler.
e6364d79 2848$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
0710d850
DS
2849set X $ac_compile
2850ac_compiler=$2
e6364d79 2851{ (ac_try="$ac_compiler --version >&5"
412e1bf7
FCE
2852case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855esac
e6364d79
MW
2856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857$as_echo "$ac_try_echo") >&5
2858 (eval "$ac_compiler --version >&5") 2>&5
412e1bf7 2859 ac_status=$?
e6364d79
MW
2860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2862{ (ac_try="$ac_compiler -v >&5"
2863case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866esac
2867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868$as_echo "$ac_try_echo") >&5
2869 (eval "$ac_compiler -v >&5") 2>&5
2870 ac_status=$?
2871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2873{ (ac_try="$ac_compiler -V >&5"
2874case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
2878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879$as_echo "$ac_try_echo") >&5
2880 (eval "$ac_compiler -V >&5") 2>&5
2881 ac_status=$?
2882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2f1a1aea 2884
e6364d79
MW
2885cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h. */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea 2890/* end confdefs.h. */
412e1bf7 2891
2f1a1aea
FCE
2892int
2893main ()
2894{
2895
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900ac_clean_files_save=$ac_clean_files
0710d850 2901ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2f1a1aea
FCE
2902# Try to create an executable without -o first, disregard a.out.
2903# It will help us diagnose broken compilers, and finding out an intuition
2904# of exeext.
e6364d79
MW
2905{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2906$as_echo_n "checking for C compiler default output file name... " >&6; }
0710d850
DS
2907ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2908
2909# The possible output files:
2910ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2911
7fbd9d09
FCE
2912ac_rmfiles=
2913for ac_file in $ac_files
2914do
2915 case $ac_file in
0710d850 2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7fbd9d09
FCE
2917 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2918 esac
2919done
2920rm -f $ac_rmfiles
2921
e6364d79 2922if { (ac_try="$ac_link_default"
7fbd9d09
FCE
2923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
e6364d79
MW
2927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2928$as_echo "$ac_try_echo") >&5
7fbd9d09 2929 (eval "$ac_link_default") 2>&5
2f1a1aea 2930 ac_status=$?
e6364d79
MW
2931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; then
7fbd9d09
FCE
2933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935# in a Makefile. We should not override ac_cv_exeext if it was cached,
2936# so that the user can short-circuit this test for compilers unknown to
2937# Autoconf.
2938for ac_file in $ac_files ''
2f1a1aea
FCE
2939do
2940 test -f "$ac_file" || continue
2941 case $ac_file in
0710d850 2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2f1a1aea
FCE
2943 ;;
2944 [ab].out )
2945 # We found the default executable, but exeext='' is most
2946 # certainly right.
2947 break;;
2948 *.* )
e6364d79 2949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
7fbd9d09
FCE
2950 then :; else
2951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952 fi
2953 # We set ac_cv_exeext here because the later test for it is not
2954 # safe: cross compilers may not add the suffix if given an `-o'
2955 # argument, so we may need to know it at that point already.
2956 # Even if this section looks crufty: it has the advantage of
2957 # actually working.
2f1a1aea
FCE
2958 break;;
2959 * )
2960 break;;
2961 esac
2962done
7fbd9d09
FCE
2963test "$ac_cv_exeext" = no && ac_cv_exeext=
2964
2f1a1aea 2965else
7fbd9d09
FCE
2966 ac_file=''
2967fi
e6364d79
MW
2968
2969{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2970$as_echo "$ac_file" >&6; }
2971if test -z "$ac_file"; then
2972 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
e6364d79 2975{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
0710d850 2976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
e6364d79
MW
2977{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2978See \`config.log' for more details." >&5
2979$as_echo "$as_me: error: C compiler cannot create executables
2980See \`config.log' for more details." >&2;}
2981 { (exit 77); exit 77; }; }; }
2f1a1aea 2982fi
e6364d79 2983
2f1a1aea 2984ac_exeext=$ac_cv_exeext
2f1a1aea 2985
e6364d79
MW
2986# Check that the compiler produces executables we can run. If not, either
2987# the compiler is broken, or we cross compile.
2988{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2989$as_echo_n "checking whether the C compiler works... " >&6; }
2990# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2991# If not cross compiling, check that we can run a simple program.
2992if test "$cross_compiling" != yes; then
2993 if { ac_try='./$ac_file'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997esac
2998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2999$as_echo "$ac_try_echo") >&5
3000 (eval "$ac_try") 2>&5
3001 ac_status=$?
3002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 cross_compiling=no
3005 else
3006 if test "$cross_compiling" = maybe; then
3007 cross_compiling=yes
3008 else
3009 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3012If you meant to cross compile, use \`--host'.
3013See \`config.log' for more details." >&5
3014$as_echo "$as_me: error: cannot run C compiled programs.
3015If you meant to cross compile, use \`--host'.
3016See \`config.log' for more details." >&2;}
3017 { (exit 1); exit 1; }; }; }
3018 fi
3019 fi
3020fi
3021{ $as_echo "$as_me:$LINENO: result: yes" >&5
3022$as_echo "yes" >&6; }
3023
0710d850 3024rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2f1a1aea 3025ac_clean_files=$ac_clean_files_save
e6364d79
MW
3026# Check that the compiler produces executables we can run. If not, either
3027# the compiler is broken, or we cross compile.
3028{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3029$as_echo_n "checking whether we are cross compiling... " >&6; }
3030{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3031$as_echo "$cross_compiling" >&6; }
3032
3033{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
0710d850 3034$as_echo_n "checking for suffix of executables... " >&6; }
e6364d79 3035if { (ac_try="$ac_link"
7fbd9d09
FCE
3036case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
e6364d79
MW
3040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3041$as_echo "$ac_try_echo") >&5
7fbd9d09 3042 (eval "$ac_link") 2>&5
2f1a1aea 3043 ac_status=$?
e6364d79
MW
3044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; then
2f1a1aea
FCE
3046 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3047# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3048# work properly (i.e., refer to `conftest.exe'), while it won't with
3049# `rm'.
3050for ac_file in conftest.exe conftest conftest.*; do
3051 test -f "$ac_file" || continue
3052 case $ac_file in
0710d850 3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2f1a1aea 3054 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2f1a1aea
FCE
3055 break;;
3056 * ) break;;
3057 esac
3058done
3059else
e6364d79 3060 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
0710d850 3061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
e6364d79
MW
3062{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3063See \`config.log' for more details." >&5
3064$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3065See \`config.log' for more details." >&2;}
3066 { (exit 1); exit 1; }; }; }
2f1a1aea 3067fi
e6364d79
MW
3068
3069rm -f conftest$ac_cv_exeext
3070{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
0710d850 3071$as_echo "$ac_cv_exeext" >&6; }
2f1a1aea
FCE
3072
3073rm -f conftest.$ac_ext
3074EXEEXT=$ac_cv_exeext
3075ac_exeext=$EXEEXT
e6364d79 3076{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
0710d850 3077$as_echo_n "checking for suffix of object files... " >&6; }
e6364d79 3078if test "${ac_cv_objext+set}" = set; then
0710d850 3079 $as_echo_n "(cached) " >&6
2f1a1aea 3080else
e6364d79
MW
3081 cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h. */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3086/* end confdefs.h. */
3087
3088int
3089main ()
3090{
3091
3092 ;
3093 return 0;
3094}
3095_ACEOF
3096rm -f conftest.o conftest.obj
e6364d79 3097if { (ac_try="$ac_compile"
7fbd9d09
FCE
3098case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
e6364d79
MW
3102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3103$as_echo "$ac_try_echo") >&5
7fbd9d09 3104 (eval "$ac_compile") 2>&5
2f1a1aea 3105 ac_status=$?
e6364d79
MW
3106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; then
7fbd9d09
FCE
3108 for ac_file in conftest.o conftest.obj conftest.*; do
3109 test -f "$ac_file" || continue;
2f1a1aea 3110 case $ac_file in
0710d850 3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2f1a1aea
FCE
3112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3113 break;;
3114 esac
3115done
3116else
0710d850 3117 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
e6364d79 3120{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
0710d850 3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
e6364d79
MW
3122{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3123See \`config.log' for more details." >&5
3124$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3125See \`config.log' for more details." >&2;}
3126 { (exit 1); exit 1; }; }; }
2f1a1aea 3127fi
e6364d79 3128
2f1a1aea
FCE
3129rm -f conftest.$ac_cv_objext conftest.$ac_ext
3130fi
e6364d79 3131{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
0710d850 3132$as_echo "$ac_cv_objext" >&6; }
2f1a1aea
FCE
3133OBJEXT=$ac_cv_objext
3134ac_objext=$OBJEXT
e6364d79 3135{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
0710d850 3136$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
e6364d79 3137if test "${ac_cv_c_compiler_gnu+set}" = set; then
0710d850 3138 $as_echo_n "(cached) " >&6
2f1a1aea 3139else
e6364d79
MW
3140 cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3145/* end confdefs.h. */
3146
3147int
3148main ()
3149{
3150#ifndef __GNUC__
3151 choke me
3152#endif
3153
3154 ;
3155 return 0;
3156}
3157_ACEOF
e6364d79
MW
3158rm -f conftest.$ac_objext
3159if { (ac_try="$ac_compile"
3160case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165$as_echo "$ac_try_echo") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3167 ac_status=$?
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3176 ac_compiler_gnu=yes
3177else
e6364d79
MW
3178 $as_echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 ac_compiler_gnu=no
2f1a1aea 3182fi
e6364d79 3183
7fbd9d09 3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
3185ac_cv_c_compiler_gnu=$ac_compiler_gnu
3186
3187fi
e6364d79 3188{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
0710d850
DS
3189$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3190if test $ac_compiler_gnu = yes; then
3191 GCC=yes
3192else
3193 GCC=
3194fi
2f1a1aea
FCE
3195ac_test_CFLAGS=${CFLAGS+set}
3196ac_save_CFLAGS=$CFLAGS
e6364d79 3197{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
0710d850 3198$as_echo_n "checking whether $CC accepts -g... " >&6; }
e6364d79 3199if test "${ac_cv_prog_cc_g+set}" = set; then
0710d850 3200 $as_echo_n "(cached) " >&6
2f1a1aea 3201else
7fbd9d09
FCE
3202 ac_save_c_werror_flag=$ac_c_werror_flag
3203 ac_c_werror_flag=yes
3204 ac_cv_prog_cc_g=no
3205 CFLAGS="-g"
e6364d79
MW
3206 cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3211/* end confdefs.h. */
3212
3213int
3214main ()
3215{
3216
3217 ;
3218 return 0;
3219}
3220_ACEOF
e6364d79
MW
3221rm -f conftest.$ac_objext
3222if { (ac_try="$ac_compile"
3223case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226esac
3227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3228$as_echo "$ac_try_echo") >&5
3229 (eval "$ac_compile") 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } && {
3236 test -z "$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 } && test -s conftest.$ac_objext; then
7fbd9d09
FCE
3239 ac_cv_prog_cc_g=yes
3240else
e6364d79
MW
3241 $as_echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 CFLAGS=""
3245 cat >conftest.$ac_ext <<_ACEOF
3246/* confdefs.h. */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
7fbd9d09
FCE
3250/* end confdefs.h. */
3251
3252int
3253main ()
3254{
3255
3256 ;
3257 return 0;
3258}
3259_ACEOF
e6364d79
MW
3260rm -f conftest.$ac_objext
3261if { (ac_try="$ac_compile"
3262case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265esac
3266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267$as_echo "$ac_try_echo") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } && {
3275 test -z "$ac_c_werror_flag" ||
3276 test ! -s conftest.err
3277 } && test -s conftest.$ac_objext; then
3278 :
4b5627b1 3279else
e6364d79
MW
3280 $as_echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 ac_c_werror_flag=$ac_save_c_werror_flag
7fbd9d09 3284 CFLAGS="-g"
e6364d79
MW
3285 cat >conftest.$ac_ext <<_ACEOF
3286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
7fbd9d09
FCE
3290/* end confdefs.h. */
3291
3292int
3293main ()
3294{
3295
3296 ;
3297 return 0;
3298}
3299_ACEOF
e6364d79
MW
3300rm -f conftest.$ac_objext
3301if { (ac_try="$ac_compile"
3302case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305esac
3306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3307$as_echo "$ac_try_echo") >&5
3308 (eval "$ac_compile") 2>conftest.er1
3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } && {
3315 test -z "$ac_c_werror_flag" ||
3316 test ! -s conftest.err
3317 } && test -s conftest.$ac_objext; then
2f1a1aea 3318 ac_cv_prog_cc_g=yes
e6364d79
MW
3319else
3320 $as_echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323
7fbd9d09 3324fi
e6364d79 3325
7fbd9d09 3326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea 3327fi
e6364d79 3328
7fbd9d09
FCE
3329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330fi
e6364d79 3331
7fbd9d09
FCE
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_c_werror_flag=$ac_save_c_werror_flag
2f1a1aea 3334fi
e6364d79 3335{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
0710d850 3336$as_echo "$ac_cv_prog_cc_g" >&6; }
2f1a1aea
FCE
3337if test "$ac_test_CFLAGS" = set; then
3338 CFLAGS=$ac_save_CFLAGS
3339elif test $ac_cv_prog_cc_g = yes; then
3340 if test "$GCC" = yes; then
3341 CFLAGS="-g -O2"
3342 else
3343 CFLAGS="-g"
3344 fi
3345else
3346 if test "$GCC" = yes; then
3347 CFLAGS="-O2"
3348 else
3349 CFLAGS=
3350 fi
3351fi
e6364d79 3352{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
0710d850 3353$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
e6364d79 3354if test "${ac_cv_prog_cc_c89+set}" = set; then
0710d850 3355 $as_echo_n "(cached) " >&6
2f1a1aea 3356else
7fbd9d09 3357 ac_cv_prog_cc_c89=no
2f1a1aea 3358ac_save_CC=$CC
e6364d79
MW
3359cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h. */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3364/* end confdefs.h. */
3365#include <stdarg.h>
3366#include <stdio.h>
3367#include <sys/types.h>
3368#include <sys/stat.h>
3369/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3370struct buf { int x; };
3371FILE * (*rcsopen) (struct buf *, struct stat *, int);
3372static char *e (p, i)
3373 char **p;
3374 int i;
3375{
3376 return p[i];
3377}
3378static char *f (char * (*g) (char **, int), char **p, ...)
3379{
3380 char *s;
3381 va_list v;
3382 va_start (v,p);
3383 s = g (p, va_arg (v,int));
3384 va_end (v);
3385 return s;
3386}
3387
3388/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3389 function prototypes and stuff, but not '\xHH' hex character constants.
3390 These don't provoke an error unfortunately, instead are silently treated
7fbd9d09 3391 as 'x'. The following induces an error, until -std is added to get
2f1a1aea
FCE
3392 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3393 array size at least. It's necessary to write '\x00'==0 to get something
7fbd9d09 3394 that's true only with -std. */
2f1a1aea
FCE
3395int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396
7fbd9d09
FCE
3397/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3398 inside strings and character constants. */
3399#define FOO(x) 'x'
3400int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3401
2f1a1aea
FCE
3402int test (int i, double x);
3403struct s1 {int (*f) (int a);};
3404struct s2 {int (*f) (double a);};
3405int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406int argc;
3407char **argv;
3408int
3409main ()
3410{
3411return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3412 ;
3413 return 0;
3414}
3415_ACEOF
7fbd9d09
FCE
3416for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3417 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2f1a1aea
FCE
3418do
3419 CC="$ac_save_CC $ac_arg"
e6364d79
MW
3420 rm -f conftest.$ac_objext
3421if { (ac_try="$ac_compile"
3422case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3427$as_echo "$ac_try_echo") >&5
3428 (eval "$ac_compile") 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } && {
3435 test -z "$ac_c_werror_flag" ||
3436 test ! -s conftest.err
3437 } && test -s conftest.$ac_objext; then
7fbd9d09 3438 ac_cv_prog_cc_c89=$ac_arg
e6364d79
MW
3439else
3440 $as_echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443
2f1a1aea 3444fi
e6364d79 3445
7fbd9d09
FCE
3446rm -f core conftest.err conftest.$ac_objext
3447 test "x$ac_cv_prog_cc_c89" != "xno" && break
2f1a1aea 3448done
7fbd9d09 3449rm -f conftest.$ac_ext
2f1a1aea
FCE
3450CC=$ac_save_CC
3451
3452fi
7fbd9d09
FCE
3453# AC_CACHE_VAL
3454case "x$ac_cv_prog_cc_c89" in
3455 x)
e6364d79 3456 { $as_echo "$as_me:$LINENO: result: none needed" >&5
0710d850 3457$as_echo "none needed" >&6; } ;;
7fbd9d09 3458 xno)
e6364d79 3459 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
0710d850 3460$as_echo "unsupported" >&6; } ;;
2f1a1aea 3461 *)
7fbd9d09 3462 CC="$CC $ac_cv_prog_cc_c89"
e6364d79 3463 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
0710d850 3464$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2f1a1aea
FCE
3465esac
3466
818ba2bc 3467
818ba2bc
MW
3468ac_ext=c
3469ac_cpp='$CPP $CPPFLAGS'
3470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473DEPDIR="${am__leading_dot}deps"
3474
7fbd9d09 3475ac_config_commands="$ac_config_commands depfiles"
818ba2bc
MW
3476
3477
3478am_make=${MAKE-make}
3479cat > confinc << 'END'
3480am__doit:
0710d850 3481 @echo this is the am__doit target
8ae7a94a
FCE
3482.PHONY: am__doit
3483END
3484# If we don't find an include directive, just comment out the code.
e6364d79 3485{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
0710d850 3486$as_echo_n "checking for style of include used by $am_make... " >&6; }
8ae7a94a
FCE
3487am__include="#"
3488am__quote=
3489_am_result=none
3490# First try GNU make style include.
3491echo "include confinc" > confmf
0710d850
DS
3492# Ignore all kinds of additional output from `make'.
3493case `$am_make -s -f confmf 2> /dev/null` in #(
3494*the\ am__doit\ target*)
3495 am__include=include
3496 am__quote=
3497 _am_result=GNU
3498 ;;
3499esac
8ae7a94a
FCE
3500# Now try BSD make style include.
3501if test "$am__include" = "#"; then
3502 echo '.include "confinc"' > confmf
0710d850
DS
3503 case `$am_make -s -f confmf 2> /dev/null` in #(
3504 *the\ am__doit\ target*)
3505 am__include=.include
3506 am__quote="\""
3507 _am_result=BSD
3508 ;;
3509 esac
8ae7a94a 3510fi
2f1a1aea 3511
8ae7a94a 3512
e6364d79 3513{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
0710d850 3514$as_echo "$_am_result" >&6; }
2f1a1aea
FCE
3515rm -f confinc confmf
3516
7fbd9d09 3517# Check whether --enable-dependency-tracking was given.
e6364d79 3518if test "${enable_dependency_tracking+set}" = set; then
7fbd9d09
FCE
3519 enableval=$enable_dependency_tracking;
3520fi
2f1a1aea 3521
2f1a1aea
FCE
3522if test "x$enable_dependency_tracking" != xno; then
3523 am_depcomp="$ac_aux_dir/depcomp"
3524 AMDEPBACKSLASH='\'
3525fi
7fbd9d09 3526 if test "x$enable_dependency_tracking" != xno; then
2f1a1aea
FCE
3527 AMDEP_TRUE=
3528 AMDEP_FALSE='#'
3529else
3530 AMDEP_TRUE='#'
3531 AMDEP_FALSE=
3532fi
3533
3534
3535
2f1a1aea
FCE
3536depcc="$CC" am_compiler_list=
3537
e6364d79 3538{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
0710d850 3539$as_echo_n "checking dependency style of $depcc... " >&6; }
e6364d79 3540if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
0710d850 3541 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3542else
3543 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3544 # We make a subdir and do the tests there. Otherwise we can end up
3545 # making bogus files that we don't know about and never remove. For
3546 # instance it was reported that on HP-UX the gcc test will end up
3547 # making a dummy file named `D' -- because `-MD' means `put the output
3548 # in D'.
3549 mkdir conftest.dir
3550 # Copy depcomp to subdir because otherwise we won't find it if we're
3551 # using a relative directory.
3552 cp "$am_depcomp" conftest.dir
3553 cd conftest.dir
3554 # We will build objects and dependencies in a subdirectory because
3555 # it helps to detect inapplicable dependency modes. For instance
3556 # both Tru64's cc and ICC support -MD to output dependencies as a
3557 # side effect of compilation, but ICC will put the dependencies in
3558 # the current directory while Tru64 will put them in the object
3559 # directory.
3560 mkdir sub
3561
3562 am_cv_CC_dependencies_compiler_type=none
3563 if test "$am_compiler_list" = ""; then
3564 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3565 fi
0710d850
DS
3566 am__universal=false
3567 case " $depcc " in #(
3568 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3569 esac
3570
2f1a1aea
FCE
3571 for depmode in $am_compiler_list; do
3572 # Setup a source with many dependencies, because some compilers
3573 # like to wrap large dependency lists on column 80 (with \), and
3574 # we should not choose a depcomp mode which is confused by this.
3575 #
3576 # We need to recreate these files for each test, as the compiler may
3577 # overwrite some of them when testing with obscure command lines.
3578 # This happens at least with the AIX C compiler.
3579 : > sub/conftest.c
3580 for i in 1 2 3 4 5 6; do
3581 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3582 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3583 # Solaris 8's {/usr,}/bin/sh.
3584 touch sub/conftst$i.h
3585 done
3586 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3587
0710d850
DS
3588 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3589 # mode. It turns out that the SunPro C++ compiler does not properly
3590 # handle `-M -o', and we need to detect this. Also, some Intel
3591 # versions had trouble with output in subdirs
3592 am__obj=sub/conftest.${OBJEXT-o}
3593 am__minus_obj="-o $am__obj"
2f1a1aea 3594 case $depmode in
0710d850
DS
3595 gcc)
3596 # This depmode causes a compiler race in universal mode.
3597 test "$am__universal" = false || continue
3598 ;;
2f1a1aea
FCE
3599 nosideeffect)
3600 # after this tag, mechanisms are not by side-effect, so they'll
3601 # only be used when explicitly requested
3602 if test "x$enable_dependency_tracking" = xyes; then
3603 continue
3604 else
3605 break
3606 fi
3607 ;;
0710d850
DS
3608 msvisualcpp | msvcmsys)
3609 # This compiler won't grok `-c -o', but also, the minuso test has
3610 # not run yet. These depmodes are late enough in the game, and
3611 # so weak that their functioning should not be impacted.
3612 am__obj=conftest.${OBJEXT-o}
3613 am__minus_obj=
3614 ;;
2f1a1aea
FCE
3615 none) break ;;
3616 esac
2f1a1aea 3617 if depmode=$depmode \
0710d850 3618 source=sub/conftest.c object=$am__obj \
2f1a1aea 3619 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
0710d850 3620 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2f1a1aea 3621 >/dev/null 2>conftest.err &&
7fbd9d09 3622 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea 3623 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
0710d850 3624 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
3625 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3626 # icc doesn't choke on unknown options, it will just issue warnings
3627 # or remarks (even with -Werror). So we grep stderr for any message
3628 # that says an option was ignored or not supported.
3629 # When given -MP, icc 7.0 and 7.1 complain thusly:
3630 # icc: Command line warning: ignoring option '-M'; no argument required
3631 # The diagnosis changed in icc 8.0:
3632 # icc: Command line remark: option '-MP' not supported
3633 if (grep 'ignoring option' conftest.err ||
3634 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3635 am_cv_CC_dependencies_compiler_type=$depmode
3636 break
3637 fi
3638 fi
3639 done
3640
3641 cd ..
3642 rm -rf conftest.dir
3643else
3644 am_cv_CC_dependencies_compiler_type=none
3645fi
3646
3647fi
e6364d79 3648{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
0710d850 3649$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
3650CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3651
7fbd9d09 3652 if
2f1a1aea
FCE
3653 test "x$enable_dependency_tracking" != xno \
3654 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3655 am__fastdepCC_TRUE=
3656 am__fastdepCC_FALSE='#'
3657else
3658 am__fastdepCC_TRUE='#'
3659 am__fastdepCC_FALSE=
3660fi
3661
3662
7fbd9d09 3663ac_ext=cpp
2f1a1aea
FCE
3664ac_cpp='$CXXCPP $CPPFLAGS'
3665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7fbd9d09
FCE
3668if test -z "$CXX"; then
3669 if test -n "$CCC"; then
3670 CXX=$CCC
3671 else
3672 if test -n "$ac_tool_prefix"; then
3673 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2f1a1aea
FCE
3674 do
3675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3676set dummy $ac_tool_prefix$ac_prog; ac_word=$2
e6364d79 3677{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 3678$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 3679if test "${ac_cv_prog_CXX+set}" = set; then
0710d850 3680 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3681else
3682 if test -n "$CXX"; then
3683 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3684else
3685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686for as_dir in $PATH
3687do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
e6364d79 3690 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3692 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
e6364d79 3693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3694 break 2
3695 fi
3696done
e6364d79 3697done
7fbd9d09 3698IFS=$as_save_IFS
2f1a1aea
FCE
3699
3700fi
3701fi
3702CXX=$ac_cv_prog_CXX
3703if test -n "$CXX"; then
e6364d79 3704 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
0710d850 3705$as_echo "$CXX" >&6; }
2f1a1aea 3706else
e6364d79 3707 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 3708$as_echo "no" >&6; }
2f1a1aea
FCE
3709fi
3710
7fbd9d09 3711
2f1a1aea
FCE
3712 test -n "$CXX" && break
3713 done
3714fi
3715if test -z "$CXX"; then
3716 ac_ct_CXX=$CXX
7fbd9d09 3717 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2f1a1aea
FCE
3718do
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720set dummy $ac_prog; ac_word=$2
e6364d79 3721{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 3722$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 3723if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
0710d850 3724 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3725else
3726 if test -n "$ac_ct_CXX"; then
3727 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3728else
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH
3731do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
e6364d79 3734 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3736 ac_cv_prog_ac_ct_CXX="$ac_prog"
e6364d79 3737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3738 break 2
3739 fi
3740done
e6364d79 3741done
7fbd9d09 3742IFS=$as_save_IFS
2f1a1aea
FCE
3743
3744fi
3745fi
3746ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3747if test -n "$ac_ct_CXX"; then
e6364d79 3748 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
0710d850 3749$as_echo "$ac_ct_CXX" >&6; }
2f1a1aea 3750else
e6364d79 3751 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 3752$as_echo "no" >&6; }
2f1a1aea
FCE
3753fi
3754
7fbd9d09 3755
2f1a1aea
FCE
3756 test -n "$ac_ct_CXX" && break
3757done
2f1a1aea 3758
7fbd9d09
FCE
3759 if test "x$ac_ct_CXX" = x; then
3760 CXX="g++"
3761 else
3762 case $cross_compiling:$ac_tool_warned in
3763yes:)
e6364d79 3764{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 3765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
3766ac_tool_warned=yes ;;
3767esac
3768 CXX=$ac_ct_CXX
3769 fi
2f1a1aea
FCE
3770fi
3771
7fbd9d09
FCE
3772 fi
3773fi
2f1a1aea 3774# Provide some information about the compiler.
e6364d79 3775$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
0710d850
DS
3776set X $ac_compile
3777ac_compiler=$2
e6364d79 3778{ (ac_try="$ac_compiler --version >&5"
412e1bf7
FCE
3779case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782esac
e6364d79
MW
3783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3784$as_echo "$ac_try_echo") >&5
3785 (eval "$ac_compiler --version >&5") 2>&5
412e1bf7 3786 ac_status=$?
e6364d79
MW
3787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }
3789{ (ac_try="$ac_compiler -v >&5"
3790case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793esac
3794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3795$as_echo "$ac_try_echo") >&5
3796 (eval "$ac_compiler -v >&5") 2>&5
3797 ac_status=$?
3798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }
3800{ (ac_try="$ac_compiler -V >&5"
3801case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804esac
3805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3806$as_echo "$ac_try_echo") >&5
3807 (eval "$ac_compiler -V >&5") 2>&5
3808 ac_status=$?
3809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }
2f1a1aea 3811
e6364d79 3812{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
0710d850 3813$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
e6364d79 3814if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
0710d850 3815 $as_echo_n "(cached) " >&6
2f1a1aea 3816else
e6364d79
MW
3817 cat >conftest.$ac_ext <<_ACEOF
3818/* confdefs.h. */
3819_ACEOF
3820cat confdefs.h >>conftest.$ac_ext
3821cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3822/* end confdefs.h. */
3823
3824int
3825main ()
3826{
3827#ifndef __GNUC__
3828 choke me
3829#endif
3830
3831 ;
3832 return 0;
3833}
3834_ACEOF
e6364d79
MW
3835rm -f conftest.$ac_objext
3836if { (ac_try="$ac_compile"
3837case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840esac
3841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3842$as_echo "$ac_try_echo") >&5
3843 (eval "$ac_compile") 2>conftest.er1
3844 ac_status=$?
3845 grep -v '^ *+' conftest.er1 >conftest.err
3846 rm -f conftest.er1
3847 cat conftest.err >&5
3848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } && {
3850 test -z "$ac_cxx_werror_flag" ||
3851 test ! -s conftest.err
3852 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3853 ac_compiler_gnu=yes
3854else
e6364d79
MW
3855 $as_echo "$as_me: failed program was:" >&5
3856sed 's/^/| /' conftest.$ac_ext >&5
3857
3858 ac_compiler_gnu=no
2f1a1aea 3859fi
e6364d79 3860
7fbd9d09 3861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
3862ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3863
3864fi
e6364d79 3865{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
0710d850
DS
3866$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3867if test $ac_compiler_gnu = yes; then
3868 GXX=yes
3869else
3870 GXX=
3871fi
2f1a1aea
FCE
3872ac_test_CXXFLAGS=${CXXFLAGS+set}
3873ac_save_CXXFLAGS=$CXXFLAGS
e6364d79 3874{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
0710d850 3875$as_echo_n "checking whether $CXX accepts -g... " >&6; }
e6364d79 3876if test "${ac_cv_prog_cxx_g+set}" = set; then
0710d850 3877 $as_echo_n "(cached) " >&6
2f1a1aea 3878else
7fbd9d09
FCE
3879 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3880 ac_cxx_werror_flag=yes
3881 ac_cv_prog_cxx_g=no
3882 CXXFLAGS="-g"
e6364d79
MW
3883 cat >conftest.$ac_ext <<_ACEOF
3884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3888/* end confdefs.h. */
3889
3890int
3891main ()
3892{
3893
3894 ;
3895 return 0;
3896}
3897_ACEOF
e6364d79
MW
3898rm -f conftest.$ac_objext
3899if { (ac_try="$ac_compile"
3900case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903esac
3904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3905$as_echo "$ac_try_echo") >&5
3906 (eval "$ac_compile") 2>conftest.er1
3907 ac_status=$?
3908 grep -v '^ *+' conftest.er1 >conftest.err
3909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_cxx_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3916 ac_cv_prog_cxx_g=yes
3917else
e6364d79
MW
3918 $as_echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921 CXXFLAGS=""
3922 cat >conftest.$ac_ext <<_ACEOF
3923/* confdefs.h. */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea 3927/* end confdefs.h. */
7fbd9d09 3928
2f1a1aea
FCE
3929int
3930main ()
3931{
7fbd9d09 3932
2f1a1aea
FCE
3933 ;
3934 return 0;
3935}
3936_ACEOF
e6364d79
MW
3937rm -f conftest.$ac_objext
3938if { (ac_try="$ac_compile"
3939case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942esac
3943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3944$as_echo "$ac_try_echo") >&5
3945 (eval "$ac_compile") 2>conftest.er1
3946 ac_status=$?
3947 grep -v '^ *+' conftest.er1 >conftest.err
3948 rm -f conftest.er1
3949 cat conftest.err >&5
3950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } && {
3952 test -z "$ac_cxx_werror_flag" ||
3953 test ! -s conftest.err
3954 } && test -s conftest.$ac_objext; then
3955 :
4b5627b1 3956else
e6364d79
MW
3957 $as_echo "$as_me: failed program was:" >&5
3958sed 's/^/| /' conftest.$ac_ext >&5
3959
3960 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7fbd9d09 3961 CXXFLAGS="-g"
e6364d79
MW
3962 cat >conftest.$ac_ext <<_ACEOF
3963/* confdefs.h. */
3964_ACEOF
3965cat confdefs.h >>conftest.$ac_ext
3966cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea 3967/* end confdefs.h. */
7fbd9d09 3968
2f1a1aea
FCE
3969int
3970main ()
3971{
7fbd9d09 3972
2f1a1aea
FCE
3973 ;
3974 return 0;
3975}
4a3c19da 3976_ACEOF
e6364d79
MW
3977rm -f conftest.$ac_objext
3978if { (ac_try="$ac_compile"
3979case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982esac
3983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984$as_echo "$ac_try_echo") >&5
3985 (eval "$ac_compile") 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_cxx_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest.$ac_objext; then
4a3c19da 3995 ac_cv_prog_cxx_g=yes
e6364d79
MW
3996else
3997 $as_echo "$as_me: failed program was:" >&5
3998sed 's/^/| /' conftest.$ac_ext >&5
3999
4000
70d28673 4001fi
e6364d79 4002
7fbd9d09
FCE
4003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004fi
e6364d79 4005
7fbd9d09 4006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e0d2ebf 4007fi
e6364d79 4008
7fbd9d09
FCE
4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4011fi
e6364d79 4012{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
0710d850 4013$as_echo "$ac_cv_prog_cxx_g" >&6; }
7fbd9d09
FCE
4014if test "$ac_test_CXXFLAGS" = set; then
4015 CXXFLAGS=$ac_save_CXXFLAGS
4016elif test $ac_cv_prog_cxx_g = yes; then
4017 if test "$GXX" = yes; then
4018 CXXFLAGS="-g -O2"
4019 else
4020 CXXFLAGS="-g"
4021 fi
4022else
4023 if test "$GXX" = yes; then
4024 CXXFLAGS="-O2"
4025 else
4026 CXXFLAGS=
4027 fi
4028fi
2f1a1aea
FCE
4029ac_ext=c
4030ac_cpp='$CPP $CPPFLAGS'
4031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034
4035depcc="$CXX" am_compiler_list=
4036
e6364d79 4037{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
0710d850 4038$as_echo_n "checking dependency style of $depcc... " >&6; }
e6364d79 4039if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
0710d850 4040 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4041else
4042 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4043 # We make a subdir and do the tests there. Otherwise we can end up
4044 # making bogus files that we don't know about and never remove. For
4045 # instance it was reported that on HP-UX the gcc test will end up
4046 # making a dummy file named `D' -- because `-MD' means `put the output
4047 # in D'.
4048 mkdir conftest.dir
4049 # Copy depcomp to subdir because otherwise we won't find it if we're
4050 # using a relative directory.
4051 cp "$am_depcomp" conftest.dir
4052 cd conftest.dir
4053 # We will build objects and dependencies in a subdirectory because
4054 # it helps to detect inapplicable dependency modes. For instance
4055 # both Tru64's cc and ICC support -MD to output dependencies as a
4056 # side effect of compilation, but ICC will put the dependencies in
4057 # the current directory while Tru64 will put them in the object
4058 # directory.
4059 mkdir sub
4060
4061 am_cv_CXX_dependencies_compiler_type=none
4062 if test "$am_compiler_list" = ""; then
4063 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4064 fi
0710d850
DS
4065 am__universal=false
4066 case " $depcc " in #(
4067 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4068 esac
4069
2f1a1aea
FCE
4070 for depmode in $am_compiler_list; do
4071 # Setup a source with many dependencies, because some compilers
4072 # like to wrap large dependency lists on column 80 (with \), and
4073 # we should not choose a depcomp mode which is confused by this.
4074 #
4075 # We need to recreate these files for each test, as the compiler may
4076 # overwrite some of them when testing with obscure command lines.
4077 # This happens at least with the AIX C compiler.
4078 : > sub/conftest.c
4079 for i in 1 2 3 4 5 6; do
4080 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4081 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4082 # Solaris 8's {/usr,}/bin/sh.
4083 touch sub/conftst$i.h
4084 done
4085 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4086
0710d850
DS
4087 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4088 # mode. It turns out that the SunPro C++ compiler does not properly
4089 # handle `-M -o', and we need to detect this. Also, some Intel
4090 # versions had trouble with output in subdirs
4091 am__obj=sub/conftest.${OBJEXT-o}
4092 am__minus_obj="-o $am__obj"
2f1a1aea 4093 case $depmode in
0710d850
DS
4094 gcc)
4095 # This depmode causes a compiler race in universal mode.
4096 test "$am__universal" = false || continue
4097 ;;
2f1a1aea
FCE
4098 nosideeffect)
4099 # after this tag, mechanisms are not by side-effect, so they'll
4100 # only be used when explicitly requested
4101 if test "x$enable_dependency_tracking" = xyes; then
4102 continue
4103 else
4104 break
4105 fi
4106 ;;
0710d850
DS
4107 msvisualcpp | msvcmsys)
4108 # This compiler won't grok `-c -o', but also, the minuso test has
4109 # not run yet. These depmodes are late enough in the game, and
4110 # so weak that their functioning should not be impacted.
4111 am__obj=conftest.${OBJEXT-o}
4112 am__minus_obj=
4113 ;;
2f1a1aea
FCE
4114 none) break ;;
4115 esac
2f1a1aea 4116 if depmode=$depmode \
0710d850 4117 source=sub/conftest.c object=$am__obj \
2f1a1aea 4118 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
0710d850 4119 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2f1a1aea 4120 >/dev/null 2>conftest.err &&
7fbd9d09 4121 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea 4122 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
0710d850 4123 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
4124 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4125 # icc doesn't choke on unknown options, it will just issue warnings
4126 # or remarks (even with -Werror). So we grep stderr for any message
4127 # that says an option was ignored or not supported.
4128 # When given -MP, icc 7.0 and 7.1 complain thusly:
4129 # icc: Command line warning: ignoring option '-M'; no argument required
4130 # The diagnosis changed in icc 8.0:
4131 # icc: Command line remark: option '-MP' not supported
4132 if (grep 'ignoring option' conftest.err ||
4133 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4134 am_cv_CXX_dependencies_compiler_type=$depmode
4135 break
4136 fi
4137 fi
4138 done
4139
4140 cd ..
4141 rm -rf conftest.dir
4142else
4143 am_cv_CXX_dependencies_compiler_type=none
4144fi
4145
4146fi
e6364d79 4147{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
0710d850 4148$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
4149CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4150
7fbd9d09 4151 if
2f1a1aea
FCE
4152 test "x$enable_dependency_tracking" != xno \
4153 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4154 am__fastdepCXX_TRUE=
4155 am__fastdepCXX_FALSE='#'
4156else
4157 am__fastdepCXX_TRUE='#'
4158 am__fastdepCXX_FALSE=
4159fi
4160
4161
4162ac_ext=c
4163ac_cpp='$CPP $CPPFLAGS'
4164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166ac_compiler_gnu=$ac_cv_c_compiler_gnu
e6364d79 4167{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
0710d850 4168$as_echo_n "checking how to run the C preprocessor... " >&6; }
2f1a1aea
FCE
4169# On Suns, sometimes $CPP names a directory.
4170if test -n "$CPP" && test -d "$CPP"; then
4171 CPP=
4172fi
4173if test -z "$CPP"; then
e6364d79 4174 if test "${ac_cv_prog_CPP+set}" = set; then
0710d850 4175 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4176else
4177 # Double quotes because CPP needs to be expanded
4178 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4179 do
4180 ac_preproc_ok=false
4181for ac_c_preproc_warn_flag in '' yes
4182do
4183 # Use a header file that comes with gcc, so configuring glibc
4184 # with a fresh cross-compiler works.
4185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4186 # <limits.h> exists even on freestanding compilers.
4187 # On the NeXT, cc -E runs the code through the compiler's parser,
4188 # not just through cpp. "Syntax error" is here to catch this case.
e6364d79
MW
4189 cat >conftest.$ac_ext <<_ACEOF
4190/* confdefs.h. */
4191_ACEOF
4192cat confdefs.h >>conftest.$ac_ext
4193cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4194/* end confdefs.h. */
4195#ifdef __STDC__
4196# include <limits.h>
4197#else
4198# include <assert.h>
4199#endif
4200 Syntax error
4201_ACEOF
e6364d79
MW
4202if { (ac_try="$ac_cpp conftest.$ac_ext"
4203case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206esac
4207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4208$as_echo "$ac_try_echo") >&5
4209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4210 ac_status=$?
4211 grep -v '^ *+' conftest.er1 >conftest.err
4212 rm -f conftest.er1
4213 cat conftest.err >&5
4214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } >/dev/null && {
4216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4217 test ! -s conftest.err
4218 }; then
4219 :
4b5627b1 4220else
e6364d79
MW
4221 $as_echo "$as_me: failed program was:" >&5
4222sed 's/^/| /' conftest.$ac_ext >&5
4223
2f1a1aea
FCE
4224 # Broken: fails on valid input.
4225continue
4226fi
e6364d79 4227
2f1a1aea
FCE
4228rm -f conftest.err conftest.$ac_ext
4229
7fbd9d09 4230 # OK, works on sane cases. Now check whether nonexistent headers
2f1a1aea 4231 # can be detected and how.
e6364d79
MW
4232 cat >conftest.$ac_ext <<_ACEOF
4233/* confdefs.h. */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4237/* end confdefs.h. */
4238#include <ac_nonexistent.h>
4239_ACEOF
e6364d79
MW
4240if { (ac_try="$ac_cpp conftest.$ac_ext"
4241case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244esac
4245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4246$as_echo "$ac_try_echo") >&5
4247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4248 ac_status=$?
4249 grep -v '^ *+' conftest.er1 >conftest.err
4250 rm -f conftest.er1
4251 cat conftest.err >&5
4252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } >/dev/null && {
4254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4255 test ! -s conftest.err
4256 }; then
2f1a1aea
FCE
4257 # Broken: success on invalid input.
4258continue
4259else
e6364d79
MW
4260 $as_echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263 # Passes both tests.
4264ac_preproc_ok=:
2f1a1aea
FCE
4265break
4266fi
e6364d79 4267
2f1a1aea
FCE
4268rm -f conftest.err conftest.$ac_ext
4269
4270done
4271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4272rm -f conftest.err conftest.$ac_ext
e6364d79 4273if $ac_preproc_ok; then
2f1a1aea
FCE
4274 break
4275fi
4276
4277 done
4278 ac_cv_prog_CPP=$CPP
4279
4280fi
4281 CPP=$ac_cv_prog_CPP
4282else
4283 ac_cv_prog_CPP=$CPP
4284fi
e6364d79 4285{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
0710d850 4286$as_echo "$CPP" >&6; }
2f1a1aea
FCE
4287ac_preproc_ok=false
4288for ac_c_preproc_warn_flag in '' yes
4289do
4290 # Use a header file that comes with gcc, so configuring glibc
4291 # with a fresh cross-compiler works.
4292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4293 # <limits.h> exists even on freestanding compilers.
4294 # On the NeXT, cc -E runs the code through the compiler's parser,
4295 # not just through cpp. "Syntax error" is here to catch this case.
e6364d79
MW
4296 cat >conftest.$ac_ext <<_ACEOF
4297/* confdefs.h. */
4298_ACEOF
4299cat confdefs.h >>conftest.$ac_ext
4300cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4301/* end confdefs.h. */
4302#ifdef __STDC__
4303# include <limits.h>
4304#else
4305# include <assert.h>
4306#endif
4307 Syntax error
4308_ACEOF
e6364d79
MW
4309if { (ac_try="$ac_cpp conftest.$ac_ext"
4310case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4315$as_echo "$ac_try_echo") >&5
4316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4317 ac_status=$?
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
4321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } >/dev/null && {
4323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4324 test ! -s conftest.err
4325 }; then
4326 :
4b5627b1 4327else
e6364d79
MW
4328 $as_echo "$as_me: failed program was:" >&5
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
2f1a1aea
FCE
4331 # Broken: fails on valid input.
4332continue
4333fi
e6364d79 4334
2f1a1aea
FCE
4335rm -f conftest.err conftest.$ac_ext
4336
7fbd9d09 4337 # OK, works on sane cases. Now check whether nonexistent headers
2f1a1aea 4338 # can be detected and how.
e6364d79
MW
4339 cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4344/* end confdefs.h. */
4345#include <ac_nonexistent.h>
4346_ACEOF
e6364d79
MW
4347if { (ac_try="$ac_cpp conftest.$ac_ext"
4348case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351esac
4352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4353$as_echo "$ac_try_echo") >&5
4354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4355 ac_status=$?
4356 grep -v '^ *+' conftest.er1 >conftest.err
4357 rm -f conftest.er1
4358 cat conftest.err >&5
4359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } >/dev/null && {
4361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4362 test ! -s conftest.err
4363 }; then
2f1a1aea
FCE
4364 # Broken: success on invalid input.
4365continue
4366else
e6364d79
MW
4367 $as_echo "$as_me: failed program was:" >&5
4368sed 's/^/| /' conftest.$ac_ext >&5
4369
2f1a1aea
FCE
4370 # Passes both tests.
4371ac_preproc_ok=:
4372break
4373fi
e6364d79 4374
2f1a1aea
FCE
4375rm -f conftest.err conftest.$ac_ext
4376
4377done
4378# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4379rm -f conftest.err conftest.$ac_ext
e6364d79
MW
4380if $ac_preproc_ok; then
4381 :
2f1a1aea 4382else
e6364d79 4383 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
0710d850 4384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
e6364d79
MW
4385{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4386See \`config.log' for more details." >&5
4387$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4388See \`config.log' for more details." >&2;}
4389 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
4390fi
4391
4392ac_ext=c
4393ac_cpp='$CPP $CPPFLAGS'
4394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397
4398ac_ext=c
4399ac_cpp='$CPP $CPPFLAGS'
4400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403if test -n "$ac_tool_prefix"; then
4404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4405set dummy ${ac_tool_prefix}gcc; ac_word=$2
e6364d79 4406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 4407$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 4408if test "${ac_cv_prog_CC+set}" = set; then
0710d850 4409 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4410else
4411 if test -n "$CC"; then
4412 ac_cv_prog_CC="$CC" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
e6364d79 4419 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
e6364d79 4422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4423 break 2
4424 fi
4425done
e6364d79 4426done
7fbd9d09 4427IFS=$as_save_IFS
2f1a1aea
FCE
4428
4429fi
4430fi
4431CC=$ac_cv_prog_CC
4432if test -n "$CC"; then
e6364d79 4433 { $as_echo "$as_me:$LINENO: result: $CC" >&5
0710d850 4434$as_echo "$CC" >&6; }
2f1a1aea 4435else
e6364d79 4436 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 4437$as_echo "no" >&6; }
2f1a1aea
FCE
4438fi
4439
7fbd9d09 4440
2f1a1aea
FCE
4441fi
4442if test -z "$ac_cv_prog_CC"; then
4443 ac_ct_CC=$CC
4444 # Extract the first word of "gcc", so it can be a program name with args.
4445set dummy gcc; ac_word=$2
e6364d79 4446{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 4447$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 4448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
0710d850 4449 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4450else
4451 if test -n "$ac_ct_CC"; then
4452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4453else
4454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH
4456do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
e6364d79 4459 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4461 ac_cv_prog_ac_ct_CC="gcc"
e6364d79 4462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4463 break 2
4464 fi
4465done
e6364d79 4466done
7fbd9d09 4467IFS=$as_save_IFS
2f1a1aea
FCE
4468
4469fi
4470fi
4471ac_ct_CC=$ac_cv_prog_ac_ct_CC
4472if test -n "$ac_ct_CC"; then
e6364d79 4473 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
0710d850 4474$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 4475else
e6364d79 4476 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 4477$as_echo "no" >&6; }
2f1a1aea
FCE
4478fi
4479
7fbd9d09
FCE
4480 if test "x$ac_ct_CC" = x; then
4481 CC=""
4482 else
4483 case $cross_compiling:$ac_tool_warned in
4484yes:)
e6364d79 4485{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 4486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
4487ac_tool_warned=yes ;;
4488esac
4489 CC=$ac_ct_CC
4490 fi
2f1a1aea
FCE
4491else
4492 CC="$ac_cv_prog_CC"
4493fi
4494
4495if test -z "$CC"; then
7fbd9d09
FCE
4496 if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2f1a1aea 4498set dummy ${ac_tool_prefix}cc; ac_word=$2
e6364d79 4499{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 4500$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 4501if test "${ac_cv_prog_CC+set}" = set; then
0710d850 4502 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4503else
4504 if test -n "$CC"; then
4505 ac_cv_prog_CC="$CC" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
e6364d79 4512 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4514 ac_cv_prog_CC="${ac_tool_prefix}cc"
e6364d79 4515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4516 break 2
4517 fi
4518done
e6364d79 4519done
7fbd9d09 4520IFS=$as_save_IFS
2f1a1aea
FCE
4521
4522fi
4523fi
4524CC=$ac_cv_prog_CC
4525if test -n "$CC"; then
e6364d79 4526 { $as_echo "$as_me:$LINENO: result: $CC" >&5
0710d850 4527$as_echo "$CC" >&6; }
818ba2bc 4528else
e6364d79 4529 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 4530$as_echo "no" >&6; }
818ba2bc
MW
4531fi
4532
818ba2bc 4533
7fbd9d09 4534 fi
8ae7a94a
FCE
4535fi
4536if test -z "$CC"; then
4537 # Extract the first word of "cc", so it can be a program name with args.
4538set dummy cc; ac_word=$2
e6364d79 4539{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 4540$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 4541if test "${ac_cv_prog_CC+set}" = set; then
0710d850 4542 $as_echo_n "(cached) " >&6
8ae7a94a
FCE
4543else
4544 if test -n "$CC"; then
2f1a1aea
FCE
4545 ac_cv_prog_CC="$CC" # Let the user override the test.
4546else
4547 ac_prog_rejected=no
4548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
e6364d79 4553 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea
FCE
4555 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4556 ac_prog_rejected=yes
4557 continue
4558 fi
4559 ac_cv_prog_CC="cc"
e6364d79 4560 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4561 break 2
4562 fi
4563done
e6364d79 4564done
7fbd9d09 4565IFS=$as_save_IFS
2f1a1aea
FCE
4566
4567if test $ac_prog_rejected = yes; then
4568 # We found a bogon in the path, so make sure we never use it.
4569 set dummy $ac_cv_prog_CC
4570 shift
4571 if test $# != 0; then
4572 # We chose a different compiler from the bogus one.
4573 # However, it has the same basename, so the bogon will be chosen
4574 # first if we set CC to just the basename; use the full file name.
4575 shift
4576 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4577 fi
4578fi
4579fi
4580fi
4581CC=$ac_cv_prog_CC
4582if test -n "$CC"; then
e6364d79 4583 { $as_echo "$as_me:$LINENO: result: $CC" >&5
0710d850 4584$as_echo "$CC" >&6; }
2f1a1aea 4585else
e6364d79 4586 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 4587$as_echo "no" >&6; }
2f1a1aea
FCE
4588fi
4589
7fbd9d09 4590
2f1a1aea
FCE
4591fi
4592if test -z "$CC"; then
4593 if test -n "$ac_tool_prefix"; then
7fbd9d09 4594 for ac_prog in cl.exe
2f1a1aea
FCE
4595 do
4596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4597set dummy $ac_tool_prefix$ac_prog; ac_word=$2
e6364d79 4598{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 4599$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 4600if test "${ac_cv_prog_CC+set}" = set; then
0710d850 4601 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4602else
4603 if test -n "$CC"; then
4604 ac_cv_prog_CC="$CC" # Let the user override the test.
4605else
4606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
4608do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
e6364d79 4611 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4613 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
e6364d79 4614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4615 break 2
4616 fi
4617done
e6364d79 4618done
7fbd9d09 4619IFS=$as_save_IFS
2f1a1aea
FCE
4620
4621fi
4622fi
4623CC=$ac_cv_prog_CC
4624if test -n "$CC"; then
e6364d79 4625 { $as_echo "$as_me:$LINENO: result: $CC" >&5
0710d850 4626$as_echo "$CC" >&6; }
2f1a1aea 4627else
e6364d79 4628 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 4629$as_echo "no" >&6; }
2f1a1aea
FCE
4630fi
4631
7fbd9d09 4632
2f1a1aea
FCE
4633 test -n "$CC" && break
4634 done
4635fi
4636if test -z "$CC"; then
4637 ac_ct_CC=$CC
7fbd9d09 4638 for ac_prog in cl.exe
2f1a1aea
FCE
4639do
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641set dummy $ac_prog; ac_word=$2
e6364d79 4642{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 4643$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 4644if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
0710d850 4645 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4646else
4647 if test -n "$ac_ct_CC"; then
4648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
e6364d79 4655 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4657 ac_cv_prog_ac_ct_CC="$ac_prog"
e6364d79 4658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4659 break 2
4660 fi
4661done
e6364d79 4662done
7fbd9d09 4663IFS=$as_save_IFS
2f1a1aea
FCE
4664
4665fi
4666fi
4667ac_ct_CC=$ac_cv_prog_ac_ct_CC
4668if test -n "$ac_ct_CC"; then
e6364d79 4669 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
0710d850 4670$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 4671else
e6364d79 4672 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 4673$as_echo "no" >&6; }
2f1a1aea
FCE
4674fi
4675
7fbd9d09 4676
2f1a1aea
FCE
4677 test -n "$ac_ct_CC" && break
4678done
4679
7fbd9d09
FCE
4680 if test "x$ac_ct_CC" = x; then
4681 CC=""
4682 else
4683 case $cross_compiling:$ac_tool_warned in
4684yes:)
e6364d79 4685{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 4686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
4687ac_tool_warned=yes ;;
4688esac
4689 CC=$ac_ct_CC
4690 fi
2f1a1aea
FCE
4691fi
4692
4693fi
4694
4695
e6364d79 4696test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
0710d850 4697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
e6364d79
MW
4698{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4699See \`config.log' for more details." >&5
4700$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4701See \`config.log' for more details." >&2;}
4702 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
4703
4704# Provide some information about the compiler.
e6364d79 4705$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
0710d850
DS
4706set X $ac_compile
4707ac_compiler=$2
e6364d79 4708{ (ac_try="$ac_compiler --version >&5"
7fbd9d09
FCE
4709case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712esac
e6364d79
MW
4713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4714$as_echo "$ac_try_echo") >&5
4715 (eval "$ac_compiler --version >&5") 2>&5
2f1a1aea 4716 ac_status=$?
e6364d79
MW
4717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }
4719{ (ac_try="$ac_compiler -v >&5"
4720case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723esac
4724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4725$as_echo "$ac_try_echo") >&5
4726 (eval "$ac_compiler -v >&5") 2>&5
4727 ac_status=$?
4728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }
4730{ (ac_try="$ac_compiler -V >&5"
4731case "(($ac_try" in
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4734esac
4735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4736$as_echo "$ac_try_echo") >&5
4737 (eval "$ac_compiler -V >&5") 2>&5
4738 ac_status=$?
4739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }
2f1a1aea 4741
e6364d79 4742{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
0710d850 4743$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
e6364d79 4744if test "${ac_cv_c_compiler_gnu+set}" = set; then
0710d850 4745 $as_echo_n "(cached) " >&6
2f1a1aea 4746else
e6364d79
MW
4747 cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h. */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4752/* end confdefs.h. */
4753
4754int
4755main ()
4756{
4757#ifndef __GNUC__
4758 choke me
4759#endif
4760
4761 ;
4762 return 0;
4763}
4764_ACEOF
e6364d79
MW
4765rm -f conftest.$ac_objext
4766if { (ac_try="$ac_compile"
4767case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770esac
4771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4772$as_echo "$ac_try_echo") >&5
4773 (eval "$ac_compile") 2>conftest.er1
4774 ac_status=$?
4775 grep -v '^ *+' conftest.er1 >conftest.err
4776 rm -f conftest.er1
4777 cat conftest.err >&5
4778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } && {
4780 test -z "$ac_c_werror_flag" ||
4781 test ! -s conftest.err
4782 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
4783 ac_compiler_gnu=yes
4784else
e6364d79
MW
4785 $as_echo "$as_me: failed program was:" >&5
4786sed 's/^/| /' conftest.$ac_ext >&5
4787
4788 ac_compiler_gnu=no
2f1a1aea 4789fi
e6364d79 4790
7fbd9d09 4791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
4792ac_cv_c_compiler_gnu=$ac_compiler_gnu
4793
4794fi
e6364d79 4795{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
0710d850
DS
4796$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4797if test $ac_compiler_gnu = yes; then
4798 GCC=yes
4799else
4800 GCC=
4801fi
2f1a1aea
FCE
4802ac_test_CFLAGS=${CFLAGS+set}
4803ac_save_CFLAGS=$CFLAGS
e6364d79 4804{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
0710d850 4805$as_echo_n "checking whether $CC accepts -g... " >&6; }
e6364d79 4806if test "${ac_cv_prog_cc_g+set}" = set; then
0710d850 4807 $as_echo_n "(cached) " >&6
2f1a1aea 4808else
7fbd9d09
FCE
4809 ac_save_c_werror_flag=$ac_c_werror_flag
4810 ac_c_werror_flag=yes
4811 ac_cv_prog_cc_g=no
4812 CFLAGS="-g"
e6364d79
MW
4813 cat >conftest.$ac_ext <<_ACEOF
4814/* confdefs.h. */
4815_ACEOF
4816cat confdefs.h >>conftest.$ac_ext
4817cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4818/* end confdefs.h. */
4819
4820int
4821main ()
4822{
4823
4824 ;
4825 return 0;
4826}
4827_ACEOF
e6364d79
MW
4828rm -f conftest.$ac_objext
4829if { (ac_try="$ac_compile"
4830case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833esac
4834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4835$as_echo "$ac_try_echo") >&5
4836 (eval "$ac_compile") 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } && {
4843 test -z "$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 } && test -s conftest.$ac_objext; then
7fbd9d09
FCE
4846 ac_cv_prog_cc_g=yes
4847else
e6364d79
MW
4848 $as_echo "$as_me: failed program was:" >&5
4849sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 CFLAGS=""
4852 cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h. */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
7fbd9d09
FCE
4857/* end confdefs.h. */
4858
4859int
4860main ()
4861{
4862
4863 ;
4864 return 0;
4865}
4866_ACEOF
e6364d79
MW
4867rm -f conftest.$ac_objext
4868if { (ac_try="$ac_compile"
4869case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872esac
4873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4874$as_echo "$ac_try_echo") >&5
4875 (eval "$ac_compile") 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } && {
4882 test -z "$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4884 } && test -s conftest.$ac_objext; then
4885 :
4b5627b1 4886else
e6364d79
MW
4887 $as_echo "$as_me: failed program was:" >&5
4888sed 's/^/| /' conftest.$ac_ext >&5
4889
4890 ac_c_werror_flag=$ac_save_c_werror_flag
7fbd9d09 4891 CFLAGS="-g"
e6364d79
MW
4892 cat >conftest.$ac_ext <<_ACEOF
4893/* confdefs.h. */
4894_ACEOF
4895cat confdefs.h >>conftest.$ac_ext
4896cat >>conftest.$ac_ext <<_ACEOF
7fbd9d09
FCE
4897/* end confdefs.h. */
4898
4899int
4900main ()
4901{
4902
4903 ;
4904 return 0;
4905}
4906_ACEOF
e6364d79
MW
4907rm -f conftest.$ac_objext
4908if { (ac_try="$ac_compile"
4909case "(($ac_try" in
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4912esac
4913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4914$as_echo "$ac_try_echo") >&5
4915 (eval "$ac_compile") 2>conftest.er1
4916 ac_status=$?
4917 grep -v '^ *+' conftest.er1 >conftest.err
4918 rm -f conftest.er1
4919 cat conftest.err >&5
4920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } && {
4922 test -z "$ac_c_werror_flag" ||
4923 test ! -s conftest.err
4924 } && test -s conftest.$ac_objext; then
5e0d2ebf 4925 ac_cv_prog_cc_g=yes
e6364d79
MW
4926else
4927 $as_echo "$as_me: failed program was:" >&5
4928sed 's/^/| /' conftest.$ac_ext >&5
4929
4930
7fbd9d09 4931fi
e6364d79 4932
7fbd9d09
FCE
4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934fi
e6364d79 4935
7fbd9d09 4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e0d2ebf 4937fi
e6364d79 4938
7fbd9d09
FCE
4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 ac_c_werror_flag=$ac_save_c_werror_flag
70d28673 4941fi
e6364d79 4942{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
0710d850 4943$as_echo "$ac_cv_prog_cc_g" >&6; }
70d28673
DS
4944if test "$ac_test_CFLAGS" = set; then
4945 CFLAGS=$ac_save_CFLAGS
4946elif test $ac_cv_prog_cc_g = yes; then
4947 if test "$GCC" = yes; then
4948 CFLAGS="-g -O2"
4949 else
4950 CFLAGS="-g"
4951 fi
4952else
4953 if test "$GCC" = yes; then
4954 CFLAGS="-O2"
4955 else
4956 CFLAGS=
4957 fi
4958fi
e6364d79 4959{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
0710d850 4960$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
e6364d79 4961if test "${ac_cv_prog_cc_c89+set}" = set; then
0710d850 4962 $as_echo_n "(cached) " >&6
70d28673 4963else
7fbd9d09 4964 ac_cv_prog_cc_c89=no
70d28673 4965ac_save_CC=$CC
e6364d79
MW
4966cat >conftest.$ac_ext <<_ACEOF
4967/* confdefs.h. */
4968_ACEOF
4969cat confdefs.h >>conftest.$ac_ext
4970cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea 4971/* end confdefs.h. */
70d28673
DS
4972#include <stdarg.h>
4973#include <stdio.h>
4974#include <sys/types.h>
4975#include <sys/stat.h>
4976/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4977struct buf { int x; };
4978FILE * (*rcsopen) (struct buf *, struct stat *, int);
4979static char *e (p, i)
4980 char **p;
4981 int i;
4982{
4983 return p[i];
4984}
4985static char *f (char * (*g) (char **, int), char **p, ...)
4986{
4987 char *s;
4988 va_list v;
4989 va_start (v,p);
4990 s = g (p, va_arg (v,int));
4991 va_end (v);
4992 return s;
4993}
4994
4995/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4996 function prototypes and stuff, but not '\xHH' hex character constants.
4997 These don't provoke an error unfortunately, instead are silently treated
7fbd9d09 4998 as 'x'. The following induces an error, until -std is added to get
70d28673
DS
4999 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5000 array size at least. It's necessary to write '\x00'==0 to get something
7fbd9d09 5001 that's true only with -std. */
70d28673
DS
5002int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5003
7fbd9d09
FCE
5004/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5005 inside strings and character constants. */
5006#define FOO(x) 'x'
5007int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5008
70d28673
DS
5009int test (int i, double x);
5010struct s1 {int (*f) (int a);};
5011struct s2 {int (*f) (double a);};
5012int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5013int argc;
5014char **argv;
2f1a1aea
FCE
5015int
5016main ()
5017{
70d28673 5018return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2f1a1aea
FCE
5019 ;
5020 return 0;
5021}
5022_ACEOF
7fbd9d09
FCE
5023for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5024 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
70d28673
DS
5025do
5026 CC="$ac_save_CC $ac_arg"
e6364d79
MW
5027 rm -f conftest.$ac_objext
5028if { (ac_try="$ac_compile"
5029case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5032esac
5033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5034$as_echo "$ac_try_echo") >&5
5035 (eval "$ac_compile") 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } && {
5042 test -z "$ac_c_werror_flag" ||
5043 test ! -s conftest.err
5044 } && test -s conftest.$ac_objext; then
7fbd9d09 5045 ac_cv_prog_cc_c89=$ac_arg
e6364d79
MW
5046else
5047 $as_echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050
2f1a1aea 5051fi
e6364d79 5052
7fbd9d09
FCE
5053rm -f core conftest.err conftest.$ac_objext
5054 test "x$ac_cv_prog_cc_c89" != "xno" && break
2f1a1aea 5055done
7fbd9d09 5056rm -f conftest.$ac_ext
70d28673
DS
5057CC=$ac_save_CC
5058
2f1a1aea 5059fi
7fbd9d09
FCE
5060# AC_CACHE_VAL
5061case "x$ac_cv_prog_cc_c89" in
5062 x)
e6364d79 5063 { $as_echo "$as_me:$LINENO: result: none needed" >&5
0710d850 5064$as_echo "none needed" >&6; } ;;
7fbd9d09 5065 xno)
e6364d79 5066 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
0710d850 5067$as_echo "unsupported" >&6; } ;;
70d28673 5068 *)
7fbd9d09 5069 CC="$CC $ac_cv_prog_cc_c89"
e6364d79 5070 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
0710d850 5071$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
70d28673 5072esac
2f1a1aea 5073
2f1a1aea 5074
2f1a1aea
FCE
5075ac_ext=c
5076ac_cpp='$CPP $CPPFLAGS'
5077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080
5081depcc="$CC" am_compiler_list=
5082
e6364d79 5083{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
0710d850 5084$as_echo_n "checking dependency style of $depcc... " >&6; }
e6364d79 5085if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
0710d850 5086 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5087else
5088 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5089 # We make a subdir and do the tests there. Otherwise we can end up
5090 # making bogus files that we don't know about and never remove. For
5091 # instance it was reported that on HP-UX the gcc test will end up
5092 # making a dummy file named `D' -- because `-MD' means `put the output
5093 # in D'.
5094 mkdir conftest.dir
5095 # Copy depcomp to subdir because otherwise we won't find it if we're
5096 # using a relative directory.
5097 cp "$am_depcomp" conftest.dir
5098 cd conftest.dir
5099 # We will build objects and dependencies in a subdirectory because
5100 # it helps to detect inapplicable dependency modes. For instance
5101 # both Tru64's cc and ICC support -MD to output dependencies as a
5102 # side effect of compilation, but ICC will put the dependencies in
5103 # the current directory while Tru64 will put them in the object
5104 # directory.
5105 mkdir sub
5106
5107 am_cv_CC_dependencies_compiler_type=none
5108 if test "$am_compiler_list" = ""; then
5109 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5110 fi
0710d850
DS
5111 am__universal=false
5112 case " $depcc " in #(
5113 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5114 esac
5115
2f1a1aea
FCE
5116 for depmode in $am_compiler_list; do
5117 # Setup a source with many dependencies, because some compilers
5118 # like to wrap large dependency lists on column 80 (with \), and
5119 # we should not choose a depcomp mode which is confused by this.
5120 #
5121 # We need to recreate these files for each test, as the compiler may
5122 # overwrite some of them when testing with obscure command lines.
5123 # This happens at least with the AIX C compiler.
5124 : > sub/conftest.c
5125 for i in 1 2 3 4 5 6; do
5126 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5127 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5128 # Solaris 8's {/usr,}/bin/sh.
5129 touch sub/conftst$i.h
5130 done
5131 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5132
0710d850
DS
5133 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5134 # mode. It turns out that the SunPro C++ compiler does not properly
5135 # handle `-M -o', and we need to detect this. Also, some Intel
5136 # versions had trouble with output in subdirs
5137 am__obj=sub/conftest.${OBJEXT-o}
5138 am__minus_obj="-o $am__obj"
2f1a1aea 5139 case $depmode in
0710d850
DS
5140 gcc)
5141 # This depmode causes a compiler race in universal mode.
5142 test "$am__universal" = false || continue
5143 ;;
2f1a1aea
FCE
5144 nosideeffect)
5145 # after this tag, mechanisms are not by side-effect, so they'll
5146 # only be used when explicitly requested
5147 if test "x$enable_dependency_tracking" = xyes; then
5148 continue
5149 else
5150 break
5151 fi
5152 ;;
0710d850
DS
5153 msvisualcpp | msvcmsys)
5154 # This compiler won't grok `-c -o', but also, the minuso test has
5155 # not run yet. These depmodes are late enough in the game, and
5156 # so weak that their functioning should not be impacted.
5157 am__obj=conftest.${OBJEXT-o}
5158 am__minus_obj=
5159 ;;
2f1a1aea
FCE
5160 none) break ;;
5161 esac
2f1a1aea 5162 if depmode=$depmode \
0710d850 5163 source=sub/conftest.c object=$am__obj \
2f1a1aea 5164 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
0710d850 5165 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2f1a1aea 5166 >/dev/null 2>conftest.err &&
7fbd9d09 5167 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea 5168 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
0710d850 5169 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
5170 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5171 # icc doesn't choke on unknown options, it will just issue warnings
5172 # or remarks (even with -Werror). So we grep stderr for any message
5173 # that says an option was ignored or not supported.
5174 # When given -MP, icc 7.0 and 7.1 complain thusly:
5175 # icc: Command line warning: ignoring option '-M'; no argument required
5176 # The diagnosis changed in icc 8.0:
5177 # icc: Command line remark: option '-MP' not supported
5178 if (grep 'ignoring option' conftest.err ||
5179 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5180 am_cv_CC_dependencies_compiler_type=$depmode
5181 break
5182 fi
5183 fi
5184 done
5185
5186 cd ..
5187 rm -rf conftest.dir
5188else
5189 am_cv_CC_dependencies_compiler_type=none
5190fi
5191
5192fi
e6364d79 5193{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
0710d850 5194$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
5195CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5196
7fbd9d09 5197 if
2f1a1aea
FCE
5198 test "x$enable_dependency_tracking" != xno \
5199 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5200 am__fastdepCC_TRUE=
5201 am__fastdepCC_FALSE='#'
5202else
5203 am__fastdepCC_TRUE='#'
5204 am__fastdepCC_FALSE=
5205fi
5206
5207
5208
5209am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5210
8ae7a94a 5211if test "x$CC" != xcc; then
e6364d79 5212 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
0710d850 5213$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
8ae7a94a 5214else
e6364d79 5215 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
0710d850 5216$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
8ae7a94a 5217fi
0710d850 5218set dummy $CC; ac_cc=`$as_echo "$2" |
8ae7a94a 5219 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
e6364d79 5220if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
0710d850 5221 $as_echo_n "(cached) " >&6
8ae7a94a 5222else
e6364d79
MW
5223 cat >conftest.$ac_ext <<_ACEOF
5224/* confdefs.h. */
5225_ACEOF
5226cat confdefs.h >>conftest.$ac_ext
5227cat >>conftest.$ac_ext <<_ACEOF
8ae7a94a
FCE
5228/* end confdefs.h. */
5229
5230int
5231main ()
5232{
5233
5234 ;
5235 return 0;
5236}
5237_ACEOF
5238# Make sure it works both with $CC and with simple cc.
5239# We do the test twice because some compilers refuse to overwrite an
5240# existing .o file with -o, though they will create one.
7fbd9d09
FCE
5241ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5242rm -f conftest2.*
e6364d79 5243if { (case "(($ac_try" in
7fbd9d09
FCE
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5246esac
e6364d79
MW
5247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5248$as_echo "$ac_try_echo") >&5
7fbd9d09 5249 (eval "$ac_try") 2>&5
8ae7a94a 5250 ac_status=$?
e6364d79
MW
5251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } &&
5253 test -f conftest2.$ac_objext && { (case "(($ac_try" in
7fbd9d09
FCE
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256esac
e6364d79
MW
5257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5258$as_echo "$ac_try_echo") >&5
7fbd9d09 5259 (eval "$ac_try") 2>&5
8ae7a94a 5260 ac_status=$?
e6364d79
MW
5261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); };
8ae7a94a
FCE
5263then
5264 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5265 if test "x$CC" != xcc; then
5266 # Test first that cc exists at all.
5267 if { ac_try='cc -c conftest.$ac_ext >&5'
e6364d79 5268 { (case "(($ac_try" in
7fbd9d09
FCE
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271esac
e6364d79
MW
5272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5273$as_echo "$ac_try_echo") >&5
7fbd9d09 5274 (eval "$ac_try") 2>&5
8ae7a94a 5275 ac_status=$?
e6364d79
MW
5276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
7fbd9d09
FCE
5278 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5279 rm -f conftest2.*
e6364d79 5280 if { (case "(($ac_try" in
7fbd9d09
FCE
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5283esac
e6364d79
MW
5284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5285$as_echo "$ac_try_echo") >&5
7fbd9d09 5286 (eval "$ac_try") 2>&5
8ae7a94a 5287 ac_status=$?
e6364d79
MW
5288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 test -f conftest2.$ac_objext && { (case "(($ac_try" in
7fbd9d09
FCE
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293esac
e6364d79
MW
5294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5295$as_echo "$ac_try_echo") >&5
7fbd9d09 5296 (eval "$ac_try") 2>&5
8ae7a94a 5297 ac_status=$?
e6364d79
MW
5298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); };
8ae7a94a
FCE
5300 then
5301 # cc works too.
5302 :
5303 else
5304 # cc exists but doesn't like -o.
5305 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5306 fi
5307 fi
5308 fi
5309else
5310 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5311fi
7fbd9d09 5312rm -f core conftest*
8ae7a94a
FCE
5313
5314fi
7fbd9d09 5315if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
e6364d79 5316 { $as_echo "$as_me:$LINENO: result: yes" >&5
0710d850 5317$as_echo "yes" >&6; }
8ae7a94a 5318else
e6364d79 5319 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 5320$as_echo "no" >&6; }
8ae7a94a 5321
e6364d79
MW
5322cat >>confdefs.h <<\_ACEOF
5323#define NO_MINUS_C_MINUS_O 1
5324_ACEOF
8ae7a94a
FCE
5325
5326fi
5327
5328# FIXME: we rely on the cache variable name because
5329# there is no other way.
5330set dummy $CC
0710d850
DS
5331am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5332eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5333if test "$am_t" != yes; then
8ae7a94a
FCE
5334 # Losing compiler, so override with the script.
5335 # FIXME: It is wrong to rewrite CC.
5336 # But if we don't then we get into trouble of one sort or another.
5337 # A longer-term fix would be to have automake use am__CC in this case,
5338 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5339 CC="$am_aux_dir/compile $CC"
5340fi
5341
7fbd9d09 5342
e6364d79 5343{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
0710d850 5344$as_echo_n "checking for function prototypes... " >&6; }
7fbd9d09 5345if test "$ac_cv_prog_cc_c89" != no; then
e6364d79 5346 { $as_echo "$as_me:$LINENO: result: yes" >&5
0710d850 5347$as_echo "yes" >&6; }
2f1a1aea 5348
e6364d79
MW
5349cat >>confdefs.h <<\_ACEOF
5350#define PROTOTYPES 1
5351_ACEOF
2f1a1aea
FCE
5352
5353
e6364d79
MW
5354cat >>confdefs.h <<\_ACEOF
5355#define __PROTOTYPES 1
5356_ACEOF
2f1a1aea
FCE
5357
5358else
e6364d79 5359 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 5360$as_echo "no" >&6; }
7fbd9d09
FCE
5361fi
5362
5363
5364
e6364d79 5365{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
0710d850 5366$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
e6364d79 5367if test "${ac_cv_path_GREP+set}" = set; then
0710d850 5368 $as_echo_n "(cached) " >&6
7fbd9d09 5369else
0710d850 5370 if test -z "$GREP"; then
7fbd9d09 5371 ac_path_GREP_found=false
0710d850
DS
5372 # Loop through the user's path and test for each of PROGNAME-LIST
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7fbd9d09
FCE
5374for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5375do
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
e6364d79 5378 for ac_prog in grep ggrep; do
0710d850
DS
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5381 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5382# Check for GNU ac_path_GREP and select it if it is found.
7fbd9d09
FCE
5383 # Check for GNU $ac_path_GREP
5384case `"$ac_path_GREP" --version 2>&1` in
5385*GNU*)
5386 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5387*)
5388 ac_count=0
0710d850 5389 $as_echo_n 0123456789 >"conftest.in"
7fbd9d09
FCE
5390 while :
5391 do
5392 cat "conftest.in" "conftest.in" >"conftest.tmp"
5393 mv "conftest.tmp" "conftest.in"
5394 cp "conftest.in" "conftest.nl"
0710d850 5395 $as_echo 'GREP' >> "conftest.nl"
7fbd9d09
FCE
5396 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
e6364d79 5398 ac_count=`expr $ac_count + 1`
7fbd9d09
FCE
5399 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5400 # Best one so far, save it but keep looking for a better one
5401 ac_cv_path_GREP="$ac_path_GREP"
5402 ac_path_GREP_max=$ac_count
5403 fi
5404 # 10*(2^10) chars as input seems more than enough
5405 test $ac_count -gt 10 && break
5406 done
5407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5408esac
5409
0710d850
DS
5410 $ac_path_GREP_found && break 3
5411 done
7fbd9d09 5412 done
e6364d79 5413done
7fbd9d09 5414IFS=$as_save_IFS
0710d850 5415 if test -z "$ac_cv_path_GREP"; then
e6364d79
MW
5416 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5417$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5418 { (exit 1); exit 1; }; }
0710d850 5419 fi
7fbd9d09
FCE
5420else
5421 ac_cv_path_GREP=$GREP
70d28673
DS
5422fi
5423
7fbd9d09 5424fi
e6364d79 5425{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
0710d850 5426$as_echo "$ac_cv_path_GREP" >&6; }
7fbd9d09
FCE
5427 GREP="$ac_cv_path_GREP"
5428
70d28673 5429
e6364d79 5430{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
0710d850 5431$as_echo_n "checking for egrep... " >&6; }
e6364d79 5432if test "${ac_cv_path_EGREP+set}" = set; then
0710d850 5433 $as_echo_n "(cached) " >&6
7fbd9d09
FCE
5434else
5435 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5436 then ac_cv_path_EGREP="$GREP -E"
5437 else
0710d850 5438 if test -z "$EGREP"; then
7fbd9d09 5439 ac_path_EGREP_found=false
0710d850
DS
5440 # Loop through the user's path and test for each of PROGNAME-LIST
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7fbd9d09
FCE
5442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5443do
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
e6364d79 5446 for ac_prog in egrep; do
0710d850
DS
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5449 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5450# Check for GNU ac_path_EGREP and select it if it is found.
7fbd9d09
FCE
5451 # Check for GNU $ac_path_EGREP
5452case `"$ac_path_EGREP" --version 2>&1` in
5453*GNU*)
5454 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5455*)
5456 ac_count=0
0710d850 5457 $as_echo_n 0123456789 >"conftest.in"
7fbd9d09
FCE
5458 while :
5459 do
5460 cat "conftest.in" "conftest.in" >"conftest.tmp"
5461 mv "conftest.tmp" "conftest.in"
5462 cp "conftest.in" "conftest.nl"
0710d850 5463 $as_echo 'EGREP' >> "conftest.nl"
7fbd9d09
FCE
5464 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
e6364d79 5466 ac_count=`expr $ac_count + 1`
7fbd9d09
FCE
5467 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5468 # Best one so far, save it but keep looking for a better one
5469 ac_cv_path_EGREP="$ac_path_EGREP"
5470 ac_path_EGREP_max=$ac_count
2f1a1aea 5471 fi
7fbd9d09
FCE
5472 # 10*(2^10) chars as input seems more than enough
5473 test $ac_count -gt 10 && break
5474 done
5475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5476esac
5477
0710d850
DS
5478 $ac_path_EGREP_found && break 3
5479 done
7fbd9d09 5480 done
e6364d79 5481done
7fbd9d09 5482IFS=$as_save_IFS
0710d850 5483 if test -z "$ac_cv_path_EGREP"; then
e6364d79
MW
5484 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5485$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5486 { (exit 1); exit 1; }; }
0710d850 5487 fi
7fbd9d09
FCE
5488else
5489 ac_cv_path_EGREP=$EGREP
5490fi
5491
7fbd9d09 5492 fi
2f1a1aea 5493fi
e6364d79 5494{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
0710d850 5495$as_echo "$ac_cv_path_EGREP" >&6; }
7fbd9d09 5496 EGREP="$ac_cv_path_EGREP"
2f1a1aea
FCE
5497
5498
e6364d79 5499{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
0710d850 5500$as_echo_n "checking for ANSI C header files... " >&6; }
e6364d79 5501if test "${ac_cv_header_stdc+set}" = set; then
0710d850 5502 $as_echo_n "(cached) " >&6
2f1a1aea 5503else
e6364d79
MW
5504 cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h. */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
5509/* end confdefs.h. */
5510#include <stdlib.h>
5511#include <stdarg.h>
5512#include <string.h>
5513#include <float.h>
5514
5515int
5516main ()
5517{
5518
5519 ;
5520 return 0;
5521}
5522_ACEOF
e6364d79
MW
5523rm -f conftest.$ac_objext
5524if { (ac_try="$ac_compile"
5525case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5528esac
5529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5530$as_echo "$ac_try_echo") >&5
5531 (eval "$ac_compile") 2>conftest.er1
5532 ac_status=$?
5533 grep -v '^ *+' conftest.er1 >conftest.err
5534 rm -f conftest.er1
5535 cat conftest.err >&5
5536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } && {
5538 test -z "$ac_c_werror_flag" ||
5539 test ! -s conftest.err
5540 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
5541 ac_cv_header_stdc=yes
5542else
e6364d79
MW
5543 $as_echo "$as_me: failed program was:" >&5
5544sed 's/^/| /' conftest.$ac_ext >&5
5545
5546 ac_cv_header_stdc=no
2f1a1aea 5547fi
e6364d79 5548
7fbd9d09 5549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
5550
5551if test $ac_cv_header_stdc = yes; then
5552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
e6364d79
MW
5553 cat >conftest.$ac_ext <<_ACEOF
5554/* confdefs.h. */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
5558/* end confdefs.h. */
5559#include <string.h>
5560
5561_ACEOF
5562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6364d79
MW
5563 $EGREP "memchr" >/dev/null 2>&1; then
5564 :
2f1a1aea
FCE
5565else
5566 ac_cv_header_stdc=no
5567fi
5568rm -f conftest*
5569
5570fi
5571
5572if test $ac_cv_header_stdc = yes; then
5573 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
e6364d79
MW
5574 cat >conftest.$ac_ext <<_ACEOF
5575/* confdefs.h. */
5576_ACEOF
5577cat confdefs.h >>conftest.$ac_ext
5578cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
5579/* end confdefs.h. */
5580#include <stdlib.h>
5581
5582_ACEOF
5583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6364d79
MW
5584 $EGREP "free" >/dev/null 2>&1; then
5585 :
2f1a1aea
FCE
5586else
5587 ac_cv_header_stdc=no
5588fi
5589rm -f conftest*
5590
5591fi
5592
5593if test $ac_cv_header_stdc = yes; then
5594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
e6364d79 5595 if test "$cross_compiling" = yes; then
2f1a1aea
FCE
5596 :
5597else
e6364d79
MW
5598 cat >conftest.$ac_ext <<_ACEOF
5599/* confdefs.h. */
5600_ACEOF
5601cat confdefs.h >>conftest.$ac_ext
5602cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
5603/* end confdefs.h. */
5604#include <ctype.h>
7fbd9d09 5605#include <stdlib.h>
2f1a1aea
FCE
5606#if ((' ' & 0x0FF) == 0x020)
5607# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5608# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5609#else
5610# define ISLOWER(c) \
5611 (('a' <= (c) && (c) <= 'i') \
5612 || ('j' <= (c) && (c) <= 'r') \
5613 || ('s' <= (c) && (c) <= 'z'))
5614# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5615#endif
5616
5617#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5618int
5619main ()
5620{
5621 int i;
5622 for (i = 0; i < 256; i++)
5623 if (XOR (islower (i), ISLOWER (i))
5624 || toupper (i) != TOUPPER (i))
7fbd9d09
FCE
5625 return 2;
5626 return 0;
2f1a1aea
FCE
5627}
5628_ACEOF
e6364d79
MW
5629rm -f conftest$ac_exeext
5630if { (ac_try="$ac_link"
5631case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634esac
5635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5636$as_echo "$ac_try_echo") >&5
5637 (eval "$ac_link") 2>&5
5638 ac_status=$?
5639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5641 { (case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644esac
5645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5646$as_echo "$ac_try_echo") >&5
5647 (eval "$ac_try") 2>&5
5648 ac_status=$?
5649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5651 :
4b5627b1 5652else
e6364d79
MW
5653 $as_echo "$as_me: program exited with status $ac_status" >&5
5654$as_echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
5656
5657( exit $ac_status )
5658ac_cv_header_stdc=no
412e1bf7 5659fi
e6364d79
MW
5660rm -rf conftest.dSYM
5661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
412e1bf7
FCE
5662fi
5663
e6364d79 5664
412e1bf7
FCE
5665fi
5666fi
e6364d79 5667{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
0710d850 5668$as_echo "$ac_cv_header_stdc" >&6; }
412e1bf7
FCE
5669if test $ac_cv_header_stdc = yes; then
5670
e6364d79
MW
5671cat >>confdefs.h <<\_ACEOF
5672#define STDC_HEADERS 1
5673_ACEOF
412e1bf7
FCE
5674
5675fi
5676
5677# On IRIX 5.3, sys/types and inttypes.h are conflicting.
e6364d79
MW
5678
5679
5680
5681
5682
5683
5684
5685
5686
412e1bf7
FCE
5687for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5688 inttypes.h stdint.h unistd.h
e6364d79
MW
5689do
5690as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5691{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5692$as_echo_n "checking for $ac_header... " >&6; }
5693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5694 $as_echo_n "(cached) " >&6
5695else
5696 cat >conftest.$ac_ext <<_ACEOF
5697/* confdefs.h. */
5698_ACEOF
5699cat confdefs.h >>conftest.$ac_ext
5700cat >>conftest.$ac_ext <<_ACEOF
5701/* end confdefs.h. */
5702$ac_includes_default
5703
5704#include <$ac_header>
5705_ACEOF
5706rm -f conftest.$ac_objext
5707if { (ac_try="$ac_compile"
5708case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711esac
5712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5713$as_echo "$ac_try_echo") >&5
5714 (eval "$ac_compile") 2>conftest.er1
5715 ac_status=$?
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
5719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && {
5721 test -z "$ac_c_werror_flag" ||
5722 test ! -s conftest.err
5723 } && test -s conftest.$ac_objext; then
5724 eval "$as_ac_Header=yes"
5725else
5726 $as_echo "$as_me: failed program was:" >&5
5727sed 's/^/| /' conftest.$ac_ext >&5
5728
5729 eval "$as_ac_Header=no"
5730fi
5731
5732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5733fi
5734ac_res=`eval 'as_val=${'$as_ac_Header'}
5735 $as_echo "$as_val"'`
5736 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5737$as_echo "$ac_res" >&6; }
5738as_val=`eval 'as_val=${'$as_ac_Header'}
5739 $as_echo "$as_val"'`
5740 if test "x$as_val" = x""yes; then
2f1a1aea 5741 cat >>confdefs.h <<_ACEOF
0710d850 5742#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2f1a1aea
FCE
5743_ACEOF
5744
5745fi
5746
5747done
5748
5749
5750
5751if test "$ac_cv_prog_cc_stdc" != no; then
5752 U= ANSI2KNR=
5753else
5754 U=_ ANSI2KNR=./ansi2knr
5755fi
5756# Ensure some checks needed by ansi2knr itself.
5757
e6364d79 5758
2f1a1aea 5759for ac_header in string.h
e6364d79
MW
5760do
5761as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5763 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5764$as_echo_n "checking for $ac_header... " >&6; }
5765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 $as_echo_n "(cached) " >&6
5767fi
5768ac_res=`eval 'as_val=${'$as_ac_Header'}
5769 $as_echo "$as_val"'`
5770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5771$as_echo "$ac_res" >&6; }
5772else
5773 # Is the header compilable?
5774{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5775$as_echo_n "checking $ac_header usability... " >&6; }
5776cat >conftest.$ac_ext <<_ACEOF
5777/* confdefs.h. */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h. */
5782$ac_includes_default
5783#include <$ac_header>
412e1bf7 5784_ACEOF
e6364d79
MW
5785rm -f conftest.$ac_objext
5786if { (ac_try="$ac_compile"
5787case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790esac
5791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5792$as_echo "$ac_try_echo") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest.$ac_objext; then
5803 ac_header_compiler=yes
5804else
5805 $as_echo "$as_me: failed program was:" >&5
5806sed 's/^/| /' conftest.$ac_ext >&5
412e1bf7 5807
e6364d79 5808 ac_header_compiler=no
412e1bf7
FCE
5809fi
5810
e6364d79
MW
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5813$as_echo "$ac_header_compiler" >&6; }
2f1a1aea 5814
e6364d79
MW
5815# Is the header present?
5816{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5817$as_echo_n "checking $ac_header presence... " >&6; }
5818cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h. */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */
5824#include <$ac_header>
5825_ACEOF
5826if { (ac_try="$ac_cpp conftest.$ac_ext"
5827case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830esac
5831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5832$as_echo "$ac_try_echo") >&5
5833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } >/dev/null && {
5840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 }; then
5843 ac_header_preproc=yes
2f1a1aea 5844else
e6364d79
MW
5845 $as_echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 ac_header_preproc=no
5849fi
5850
5851rm -f conftest.err conftest.$ac_ext
5852{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5853$as_echo "$ac_header_preproc" >&6; }
5854
5855# So? What about this header?
5856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5857 yes:no: )
5858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5859$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5861$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5862 ac_header_preproc=yes
5863 ;;
5864 no:yes:* )
5865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5866$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5868$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5870$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5872$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5874$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5876$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5877 ( cat <<\_ASBOX
5878## ------------------------------------------- ##
5879## Report this to systemtap@sources.redhat.com ##
5880## ------------------------------------------- ##
5881_ASBOX
5882 ) | sed "s/^/$as_me: WARNING: /" >&2
5883 ;;
5884esac
5885{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5886$as_echo_n "checking for $ac_header... " >&6; }
5887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5888 $as_echo_n "(cached) " >&6
5889else
5890 eval "$as_ac_Header=\$ac_header_preproc"
5891fi
5892ac_res=`eval 'as_val=${'$as_ac_Header'}
5893 $as_echo "$as_val"'`
5894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5895$as_echo "$ac_res" >&6; }
5896
5897fi
5898as_val=`eval 'as_val=${'$as_ac_Header'}
5899 $as_echo "$as_val"'`
5900 if test "x$as_val" = x""yes; then
5901 cat >>confdefs.h <<_ACEOF
5902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5903_ACEOF
5904
5905fi
5906
5907done
5908
5909
5910if test -n "$ac_tool_prefix"; then
5911 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5912set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5913{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5914$as_echo_n "checking for $ac_word... " >&6; }
5915if test "${ac_cv_prog_RANLIB+set}" = set; then
5916 $as_echo_n "(cached) " >&6
5917else
5918 if test -n "$RANLIB"; then
2f1a1aea
FCE
5919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5920else
5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
e6364d79 5926 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 5928 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
e6364d79 5929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5930 break 2
5931 fi
5932done
e6364d79 5933done
7fbd9d09 5934IFS=$as_save_IFS
2f1a1aea
FCE
5935
5936fi
5937fi
5938RANLIB=$ac_cv_prog_RANLIB
5939if test -n "$RANLIB"; then
e6364d79 5940 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
0710d850 5941$as_echo "$RANLIB" >&6; }
2f1a1aea 5942else
e6364d79 5943 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 5944$as_echo "no" >&6; }
2f1a1aea
FCE
5945fi
5946
7fbd9d09 5947
2f1a1aea
FCE
5948fi
5949if test -z "$ac_cv_prog_RANLIB"; then
5950 ac_ct_RANLIB=$RANLIB
5951 # Extract the first word of "ranlib", so it can be a program name with args.
5952set dummy ranlib; ac_word=$2
e6364d79 5953{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 5954$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 5955if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
0710d850 5956 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5957else
5958 if test -n "$ac_ct_RANLIB"; then
5959 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5960else
5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962for as_dir in $PATH
5963do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
e6364d79 5966 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 5968 ac_cv_prog_ac_ct_RANLIB="ranlib"
e6364d79 5969 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5970 break 2
5971 fi
5972done
e6364d79 5973done
7fbd9d09 5974IFS=$as_save_IFS
2f1a1aea 5975
2f1a1aea
FCE
5976fi
5977fi
5978ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5979if test -n "$ac_ct_RANLIB"; then
e6364d79 5980 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
0710d850 5981$as_echo "$ac_ct_RANLIB" >&6; }
2f1a1aea 5982else
e6364d79 5983 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 5984$as_echo "no" >&6; }
2f1a1aea
FCE
5985fi
5986
7fbd9d09
FCE
5987 if test "x$ac_ct_RANLIB" = x; then
5988 RANLIB=":"
5989 else
5990 case $cross_compiling:$ac_tool_warned in
5991yes:)
e6364d79 5992{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 5993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
5994ac_tool_warned=yes ;;
5995esac
5996 RANLIB=$ac_ct_RANLIB
5997 fi
2f1a1aea
FCE
5998else
5999 RANLIB="$ac_cv_prog_RANLIB"
6000fi
6001
6002
6003
e6364d79
MW
6004# Find a good install program. We prefer a C program (faster),
6005# so one script is as good as another. But avoid the broken or
6006# incompatible versions:
6007# SysV /etc/install, /usr/sbin/install
6008# SunOS /usr/etc/install
6009# IRIX /sbin/install
6010# AIX /bin/install
6011# AmigaOS /C/install, which installs bootblocks on floppy discs
6012# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6013# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6014# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6015# OS/2's system install, which has a completely different semantic
6016# ./install, which can be erroneously created by make from ./install.sh.
6017# Reject install programs that cannot install multiple files.
6018{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6019$as_echo_n "checking for a BSD-compatible install... " >&6; }
6020if test -z "$INSTALL"; then
6021if test "${ac_cv_path_install+set}" = set; then
6022 $as_echo_n "(cached) " >&6
6023else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 # Account for people who put trailing slashes in PATH elements.
6030case $as_dir/ in
6031 ./ | .// | /cC/* | \
6032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6034 /usr/ucb/* ) ;;
6035 *)
6036 # OSF1 and SCO ODT 3.0 have their own names for install.
6037 # Don't use installbsd from OSF since it installs stuff as root
6038 # by default.
6039 for ac_prog in ginstall scoinst install; do
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6042 if test $ac_prog = install &&
6043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6044 # AIX install. It has an incompatible calling convention.
6045 :
6046 elif test $ac_prog = install &&
6047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6048 # program-specific install script used by HP pwplus--don't use.
6049 :
6050 else
6051 rm -rf conftest.one conftest.two conftest.dir
6052 echo one > conftest.one
6053 echo two > conftest.two
6054 mkdir conftest.dir
6055 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6056 test -s conftest.one && test -s conftest.two &&
6057 test -s conftest.dir/conftest.one &&
6058 test -s conftest.dir/conftest.two
6059 then
6060 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6061 break 3
6062 fi
6063 fi
6064 fi
6065 done
6066 done
6067 ;;
6068esac
6069
6070done
6071IFS=$as_save_IFS
6072
6073rm -rf conftest.one conftest.two conftest.dir
6074
6075fi
6076 if test "${ac_cv_path_install+set}" = set; then
6077 INSTALL=$ac_cv_path_install
6078 else
6079 # As a last resort, use the slow shell script. Don't cache a
6080 # value for INSTALL within a source directory, because that will
6081 # break other packages using the cache if that directory is
6082 # removed, or if the value is a relative name.
6083 INSTALL=$ac_install_sh
6084 fi
6085fi
6086{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6087$as_echo "$INSTALL" >&6; }
6088
6089# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6090# It thinks the first close brace ends the variable substitution.
6091test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6092
6093test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6094
6095test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2f1a1aea 6096
e6364d79 6097{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
0710d850
DS
6098$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6099set x ${MAKE-make}
6100ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
e6364d79 6101if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
0710d850 6102 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
6103else
6104 cat >conftest.make <<\_ACEOF
7fbd9d09 6105SHELL = /bin/sh
2f1a1aea 6106all:
7fbd9d09 6107 @echo '@@@%%%=$(MAKE)=@@@%%%'
2f1a1aea
FCE
6108_ACEOF
6109# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7fbd9d09
FCE
6110case `${MAKE-make} -f conftest.make 2>/dev/null` in
6111 *@@@%%%=?*=@@@%%%*)
6112 eval ac_cv_prog_make_${ac_make}_set=yes;;
6113 *)
6114 eval ac_cv_prog_make_${ac_make}_set=no;;
6115esac
2f1a1aea
FCE
6116rm -f conftest.make
6117fi
7fbd9d09 6118if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
e6364d79 6119 { $as_echo "$as_me:$LINENO: result: yes" >&5
0710d850 6120$as_echo "yes" >&6; }
2f1a1aea
FCE
6121 SET_MAKE=
6122else
e6364d79 6123 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 6124$as_echo "no" >&6; }
2f1a1aea
FCE
6125 SET_MAKE="MAKE=${MAKE-make}"
6126fi
6127
6128
6129
6130
7fbd9d09 6131# Check whether --enable-perfmon was given.
e6364d79 6132if test "${enable_perfmon+set}" = set; then
7fbd9d09 6133 enableval=$enable_perfmon;
564eb0a8
DS
6134 if test "$enable_perfmon" != "no"; then
6135 CPPFLAGS="$CPPFLAGS -DPERFMON"
6136 LIBS="$LIBS -lpfm"
6137 if test "$enable_perfmon" != "yes"; then
6138 CPPFLAGS="$CPPFLAGS -I$enable_perfmon/include"
6139 LDFLAGS="$LDFLAGS -L$enable_perfmon/lib"
6140 fi
e6364d79
MW
6141
6142{ $as_echo "$as_me:$LINENO: checking for pfm_start in -lpfm" >&5
0710d850 6143$as_echo_n "checking for pfm_start in -lpfm... " >&6; }
e6364d79 6144if test "${ac_cv_lib_pfm_pfm_start+set}" = set; then
0710d850 6145 $as_echo_n "(cached) " >&6
47dd066d
WC
6146else
6147 ac_check_lib_save_LIBS=$LIBS
6148LIBS="-lpfm $LIBS"
e6364d79
MW
6149cat >conftest.$ac_ext <<_ACEOF
6150/* confdefs.h. */
6151_ACEOF
6152cat confdefs.h >>conftest.$ac_ext
6153cat >>conftest.$ac_ext <<_ACEOF
47dd066d
WC
6154/* end confdefs.h. */
6155
7fbd9d09
FCE
6156/* Override any GCC internal prototype to avoid an error.
6157 Use char because int might match the return type of a GCC
6158 builtin and then its argument prototype would still apply. */
47dd066d
WC
6159#ifdef __cplusplus
6160extern "C"
6161#endif
47dd066d
WC
6162char pfm_start ();
6163int
6164main ()
6165{
7fbd9d09 6166return pfm_start ();
47dd066d
WC
6167 ;
6168 return 0;
6169}
6170_ACEOF
e6364d79
MW
6171rm -f conftest.$ac_objext conftest$ac_exeext
6172if { (ac_try="$ac_link"
6173case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176esac
6177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6178$as_echo "$ac_try_echo") >&5
6179 (eval "$ac_link") 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && {
6186 test -z "$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 } && test -s conftest$ac_exeext && {
6189 test "$cross_compiling" = yes ||
6190 $as_test_x conftest$ac_exeext
6191 }; then
47dd066d
WC
6192 ac_cv_lib_pfm_pfm_start=yes
6193else
e6364d79
MW
6194 $as_echo "$as_me: failed program was:" >&5
6195sed 's/^/| /' conftest.$ac_ext >&5
6196
6197 ac_cv_lib_pfm_pfm_start=no
47dd066d 6198fi
e6364d79
MW
6199
6200rm -rf conftest.dSYM
6201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6202 conftest$ac_exeext conftest.$ac_ext
47dd066d
WC
6203LIBS=$ac_check_lib_save_LIBS
6204fi
e6364d79 6205{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_start" >&5
0710d850 6206$as_echo "$ac_cv_lib_pfm_pfm_start" >&6; }
e6364d79 6207if test "x$ac_cv_lib_pfm_pfm_start" = x""yes; then
47dd066d
WC
6208 cat >>confdefs.h <<_ACEOF
6209#define HAVE_LIBPFM 1
6210_ACEOF
6211
6212 LIBS="-lpfm $LIBS"
6213
6214else
6215
e6364d79
MW
6216 { { $as_echo "$as_me:$LINENO: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&5
6217$as_echo "$as_me: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&2;}
6218 { (exit 1); exit 1; }; }
47dd066d
WC
6219fi
6220
564eb0a8 6221 fi
7fbd9d09
FCE
6222fi
6223
70d28673
DS
6224
6225if test "${enable_prologues+set}" != set; then
e6364d79 6226 { $as_echo "$as_me:$LINENO: checking to see if prologue searching should be the default" >&5
0710d850 6227$as_echo_n "checking to see if prologue searching should be the default... " >&6; }
70d28673
DS
6228 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
6229 echo ' yes '
6230 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6231 enable_prologues=yes
e6364d79 6232 { $as_echo "$as_me:$LINENO: result: yes" >&5
0710d850 6233$as_echo "yes" >&6; }
70d28673 6234 else
e6364d79 6235 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 6236$as_echo "no" >&6; }
70d28673
DS
6237 fi
6238fi
7fbd9d09 6239# Check whether --enable-prologues was given.
e6364d79 6240if test "${enable_prologues+set}" = set; then
7fbd9d09 6241 enableval=$enable_prologues;
70d28673 6242if test "$enable_prologues" = yes; then
44f75386 6243
e6364d79
MW
6244cat >>confdefs.h <<\_ACEOF
6245#define ENABLE_PROLOGUES /**/
6246_ACEOF
44f75386 6247
70d28673 6248fi
7fbd9d09 6249fi
70d28673 6250
7fbd9d09
FCE
6251
6252# Check whether --enable-ssp was given.
e6364d79 6253if test "${enable_ssp+set}" = set; then
7fbd9d09
FCE
6254 enableval=$enable_ssp;
6255fi
9921a199 6256
e6364d79 6257if test "x$enable_ssp" != xno; then
bbfd8c1a
FCE
6258
6259 save_CFLAGS="$CFLAGS"
6260 save_CXXFLAGS="$CXXFLAGS"
f0510eaa
FCE
6261 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
6262 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
e6364d79 6263 cat >conftest.$ac_ext <<_ACEOF
bbfd8c1a
FCE
6264int something ();
6265_ACEOF
e6364d79
MW
6266rm -f conftest.$ac_objext
6267if { (ac_try="$ac_compile"
6268case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271esac
6272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6273$as_echo "$ac_try_echo") >&5
6274 (eval "$ac_compile") 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } && {
6281 test -z "$ac_c_werror_flag" ||
6282 test ! -s conftest.err
6283 } && test -s conftest.$ac_objext; then
818ba2bc 6284
e6364d79 6285 { $as_echo "$as_me:$LINENO: Compiling with gcc -fstack-protector-all et al." >&5
0710d850 6286$as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
f0510eaa
FCE
6287 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
6288 CXFXLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
bbfd8c1a 6289else
e6364d79
MW
6290 $as_echo "$as_me: failed program was:" >&5
6291sed 's/^/| /' conftest.$ac_ext >&5
bbfd8c1a 6292
e6364d79
MW
6293
6294 { $as_echo "$as_me:$LINENO: Compiler does not support -fstack-protector-all et al." >&5
0710d850 6295$as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
bbfd8c1a
FCE
6296 CFLAGS="$save_CFLAGS"
6297 CXXFLAGS="$save_CXXFLAGS"
6298fi
e6364d79 6299
7fbd9d09 6300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921a199 6301fi
70d28673 6302
e6364d79 6303
e1e3ba36 6304# Compiling without fPIE by default (see PR 9922)
7fbd9d09 6305# Check whether --enable-pie was given.
e6364d79 6306if test "${enable_pie+set}" = set; then
7fbd9d09
FCE
6307 enableval=$enable_pie;
6308fi
8730f377 6309
e6364d79 6310if test "x$enable_pie" == xyes; then
8730f377
FCE
6311
6312 save_CFLAGS="$CFLAGS"
6313 save_CXXFLAGS="$CXXFLAGS"
6314 save_LDFLAGS="$LDFLAGS"
7b53a460
SD
6315 CFLAGS="$CFLAGS -fPIE"
6316 CXXFLAGS="$CXXFLAGS -fPIE"
8730f377 6317 LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
e6364d79 6318 cat >conftest.$ac_ext <<_ACEOF
8730f377
FCE
6319void main () {}
6320_ACEOF
e6364d79
MW
6321rm -f conftest.$ac_objext conftest$ac_exeext
6322if { (ac_try="$ac_link"
6323case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326esac
6327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6328$as_echo "$ac_try_echo") >&5
6329 (eval "$ac_link") 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && {
6336 test -z "$ac_c_werror_flag" ||
6337 test ! -s conftest.err
6338 } && test -s conftest$ac_exeext && {
6339 test "$cross_compiling" = yes ||
6340 $as_test_x conftest$ac_exeext
6341 }; then
818ba2bc 6342
e6364d79 6343 { $as_echo "$as_me:$LINENO: Compiling with gcc pie et al." >&5
0710d850 6344$as_echo "$as_me: Compiling with gcc pie et al." >&6;}
8730f377
FCE
6345 # LDFLAGS is special since it may be passed down to bundled-elfutils,
6346 # and interfere with the .so's built therein
5574ef2c 6347 PIELDFLAGS="$LDFLAGS"
8730f377 6348 LDFLAGS="$save_LDFLAGS"
5574ef2c
MW
6349 PIECFLAGS="$CFLAGS"
6350 CFLAGS="$save_CFLAGS"
6351 PIECXXFLAGS="$CXXFLAGS"
6352 CXXFLAGS="$save_CXXFLAGS"
8730f377
FCE
6353
6354else
e6364d79
MW
6355 $as_echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
8730f377 6357
e6364d79
MW
6358
6359 { $as_echo "$as_me:$LINENO: Compiler does not support -pie et al." >&5
0710d850 6360$as_echo "$as_me: Compiler does not support -pie et al." >&6;}
5574ef2c 6361 PIECFLAGS=""
8730f377 6362 CFLAGS="$save_CFLAGS"
5574ef2c 6363 PIECXXFLAGS=""
8730f377
FCE
6364 CXXFLAGS="$save_CXXFLAGS"
6365 PIELDFLAGS=""
6366 LDFLAGS="$save_LDFLAGS"
6367fi
e6364d79
MW
6368
6369rm -rf conftest.dSYM
6370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6371 conftest$ac_exeext conftest.$ac_ext
8730f377
FCE
6372fi
6373
6374
6375
5574ef2c 6376
e6364d79 6377
7fbd9d09 6378# Check whether --enable-sqlite was given.
e6364d79 6379if test "${enable_sqlite+set}" = set; then
7fbd9d09 6380 enableval=$enable_sqlite;
9921a199 6381else
e8f3c2c2 6382 enable_sqlite=check
7fbd9d09
FCE
6383fi
6384 sqlite3_LIBS=
e6364d79
MW
6385if test "x$enable_sqlite" != xno; then
6386 { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
0710d850 6387$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
e6364d79 6388if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
0710d850 6389 $as_echo_n "(cached) " >&6
42feb3c0
WC
6390else
6391 ac_check_lib_save_LIBS=$LIBS
6392LIBS="-lsqlite3 $LIBS"
e6364d79
MW
6393cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h. */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
42feb3c0
WC
6398/* end confdefs.h. */
6399
7fbd9d09
FCE
6400/* Override any GCC internal prototype to avoid an error.
6401 Use char because int might match the return type of a GCC
6402 builtin and then its argument prototype would still apply. */
42feb3c0
WC
6403#ifdef __cplusplus
6404extern "C"
6405#endif
6406char sqlite3_open ();
6407int
6408main ()
6409{
7fbd9d09 6410return sqlite3_open ();
42feb3c0
WC
6411 ;
6412 return 0;
6413}
6414_ACEOF
e6364d79
MW
6415rm -f conftest.$ac_objext conftest$ac_exeext
6416if { (ac_try="$ac_link"
6417case "(($ac_try" in
6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419 *) ac_try_echo=$ac_try;;
6420esac
6421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6422$as_echo "$ac_try_echo") >&5
6423 (eval "$ac_link") 2>conftest.er1
6424 ac_status=$?
6425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
6428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && {
6430 test -z "$ac_c_werror_flag" ||
6431 test ! -s conftest.err
6432 } && test -s conftest$ac_exeext && {
6433 test "$cross_compiling" = yes ||
6434 $as_test_x conftest$ac_exeext
6435 }; then
42feb3c0
WC
6436 ac_cv_lib_sqlite3_sqlite3_open=yes
6437else
e6364d79
MW
6438 $as_echo "$as_me: failed program was:" >&5
6439sed 's/^/| /' conftest.$ac_ext >&5
6440
6441 ac_cv_lib_sqlite3_sqlite3_open=no
42feb3c0 6442fi
e6364d79
MW
6443
6444rm -rf conftest.dSYM
6445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6446 conftest$ac_exeext conftest.$ac_ext
42feb3c0
WC
6447LIBS=$ac_check_lib_save_LIBS
6448fi
e6364d79 6449{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
0710d850 6450$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
e6364d79 6451if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then
9921a199 6452 sqlite3_LIBS=-lsqlite3
42feb3c0 6453
0d563e60 6454
e6364d79
MW
6455cat >>confdefs.h <<\_ACEOF
6456#define HAVE_LIBSQLITE3 1
6457_ACEOF
07606685 6458
9921a199
DS
6459else
6460 if test "x$enable_sqlite" != xcheck; then
e6364d79 6461 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
0710d850 6462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
e6364d79
MW
6463{ { $as_echo "$as_me:$LINENO: error: --enable-sqlite was given, but test for sqlite failed
6464See \`config.log' for more details." >&5
6465$as_echo "$as_me: error: --enable-sqlite was given, but test for sqlite failed
6466See \`config.log' for more details." >&2;}
6467 { (exit 1); exit 1; }; }; }
9921a199 6468 fi
42feb3c0
WC
6469fi
6470
9921a199 6471fi
44f75386 6472
e6364d79 6473
6d14a4a9 6474# Check whether --enable-translator was given.
e6364d79 6475if test "${enable_translator+set}" = set; then
6d14a4a9
EB
6476 enableval=$enable_translator;
6477else
6478 enable_translator="yes"
6479fi
6480
6481 if test "$enable_translator" == "yes"; then
6482 BUILD_TRANSLATOR_TRUE=
6483 BUILD_TRANSLATOR_FALSE='#'
6484else
6485 BUILD_TRANSLATOR_TRUE='#'
6486 BUILD_TRANSLATOR_FALSE=
6487fi
6488
6489
7fbd9d09 6490# Check whether --enable-crash was given.
e6364d79 6491if test "${enable_crash+set}" = set; then
7fbd9d09 6492 enableval=$enable_crash; if test "$enable_crash" != "no"; then
564eb0a8
DS
6493 save_CPPFLAGS="$CPPFLAGS"
6494 if test "$enable_crash" != "yes"; then
6495 staplog_CPPFLAGS=-I$enable_crash
4a3c19da 6496 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
35a04c8e 6497
412e1bf7 6498 fi
e6364d79
MW
6499
6500for ac_header in crash/defs.h
6501do
6502as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6503{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6504$as_echo_n "checking for $ac_header... " >&6; }
6505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6506 $as_echo_n "(cached) " >&6
6507else
6508 cat >conftest.$ac_ext <<_ACEOF
6509/* confdefs.h. */
6510_ACEOF
6511cat confdefs.h >>conftest.$ac_ext
6512cat >>conftest.$ac_ext <<_ACEOF
6513/* end confdefs.h. */
6514
4a3c19da 6515#define NR_CPUS 256
7fbd9d09 6516
e6364d79
MW
6517
6518#include <$ac_header>
6519_ACEOF
6520rm -f conftest.$ac_objext
6521if { (ac_try="$ac_compile"
6522case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525esac
6526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6527$as_echo "$ac_try_echo") >&5
6528 (eval "$ac_compile") 2>conftest.er1
6529 ac_status=$?
6530 grep -v '^ *+' conftest.er1 >conftest.err
6531 rm -f conftest.er1
6532 cat conftest.err >&5
6533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } && {
6535 test -z "$ac_c_werror_flag" ||
6536 test ! -s conftest.err
6537 } && test -s conftest.$ac_objext; then
6538 eval "$as_ac_Header=yes"
6539else
6540 $as_echo "$as_me: failed program was:" >&5
6541sed 's/^/| /' conftest.$ac_ext >&5
6542
6543 eval "$as_ac_Header=no"
6544fi
6545
6546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547fi
6548ac_res=`eval 'as_val=${'$as_ac_Header'}
6549 $as_echo "$as_val"'`
6550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6551$as_echo "$ac_res" >&6; }
6552as_val=`eval 'as_val=${'$as_ac_Header'}
6553 $as_echo "$as_val"'`
6554 if test "x$as_val" = x""yes; then
35a04c8e 6555 cat >>confdefs.h <<_ACEOF
e6364d79 6556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35a04c8e 6557_ACEOF
564eb0a8 6558
35a04c8e 6559else
e6364d79
MW
6560 { { $as_echo "$as_me:$LINENO: error: cannot find required crash header (crash-devel may need to be installed)" >&5
6561$as_echo "$as_me: error: cannot find required crash header (crash-devel may need to be installed)" >&2;}
6562 { (exit 1); exit 1; }; }
35a04c8e
FCE
6563fi
6564
6565done
6566
564eb0a8
DS
6567 CPPFLAGS="$save_CPPFLAGS"
6568 fi
6569else
6570 enable_crash="no"
7fbd9d09 6571fi
564eb0a8 6572
7fbd9d09 6573 if test "$enable_crash" != "no"; then
35a04c8e
FCE
6574 BUILD_CRASHMOD_TRUE=
6575 BUILD_CRASHMOD_FALSE='#'
6576else
6577 BUILD_CRASHMOD_TRUE='#'
6578 BUILD_CRASHMOD_FALSE=
6579fi
6580
6581
92aff3c7 6582building_docs="no"
7fbd9d09 6583# Check whether --enable-docs was given.
e6364d79 6584if test "${enable_docs+set}" = set; then
7fbd9d09 6585 enableval=$enable_docs; enable_docs=$enableval
465e8fbf
FCE
6586else
6587 enable_docs="check"
7fbd9d09
FCE
6588fi
6589
465e8fbf
FCE
6590# Extract the first word of "latex", so it can be a program name with args.
6591set dummy latex; ac_word=$2
e6364d79 6592{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 6593$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 6594if test "${ac_cv_prog_have_latex+set}" = set; then
0710d850 6595 $as_echo_n "(cached) " >&6
465e8fbf
FCE
6596else
6597 if test -n "$have_latex"; then
6598 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
e6364d79 6605 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6607 ac_cv_prog_have_latex="yes"
e6364d79 6608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6609 break 2
6610 fi
6611done
e6364d79 6612done
7fbd9d09 6613IFS=$as_save_IFS
465e8fbf
FCE
6614
6615 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
6616fi
6617fi
6618have_latex=$ac_cv_prog_have_latex
6619if test -n "$have_latex"; then
e6364d79 6620 { $as_echo "$as_me:$LINENO: result: $have_latex" >&5
0710d850 6621$as_echo "$have_latex" >&6; }
465e8fbf 6622else
e6364d79 6623 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 6624$as_echo "no" >&6; }
465e8fbf
FCE
6625fi
6626
7fbd9d09 6627
465e8fbf
FCE
6628# Extract the first word of "dvips", so it can be a program name with args.
6629set dummy dvips; ac_word=$2
e6364d79 6630{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 6631$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 6632if test "${ac_cv_prog_have_dvips+set}" = set; then
0710d850 6633 $as_echo_n "(cached) " >&6
465e8fbf
FCE
6634else
6635 if test -n "$have_dvips"; then
6636 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
6637else
6638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639for as_dir in $PATH
6640do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
e6364d79 6643 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6645 ac_cv_prog_have_dvips="yes"
e6364d79 6646 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6647 break 2
6648 fi
6649done
e6364d79 6650done
7fbd9d09 6651IFS=$as_save_IFS
465e8fbf
FCE
6652
6653 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
6654fi
6655fi
6656have_dvips=$ac_cv_prog_have_dvips
6657if test -n "$have_dvips"; then
e6364d79 6658 { $as_echo "$as_me:$LINENO: result: $have_dvips" >&5
0710d850 6659$as_echo "$have_dvips" >&6; }
465e8fbf 6660else
e6364d79 6661 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 6662$as_echo "no" >&6; }
465e8fbf
FCE
6663fi
6664
7fbd9d09 6665
465e8fbf
FCE
6666# Extract the first word of "ps2pdf", so it can be a program name with args.
6667set dummy ps2pdf; ac_word=$2
e6364d79 6668{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 6669$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 6670if test "${ac_cv_prog_have_ps2pdf+set}" = set; then
0710d850 6671 $as_echo_n "(cached) " >&6
465e8fbf
FCE
6672else
6673 if test -n "$have_ps2pdf"; then
6674 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
e6364d79 6681 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6683 ac_cv_prog_have_ps2pdf="yes"
e6364d79 6684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6685 break 2
6686 fi
6687done
e6364d79 6688done
7fbd9d09 6689IFS=$as_save_IFS
465e8fbf
FCE
6690
6691 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
6692fi
6693fi
6694have_ps2pdf=$ac_cv_prog_have_ps2pdf
6695if test -n "$have_ps2pdf"; then
e6364d79 6696 { $as_echo "$as_me:$LINENO: result: $have_ps2pdf" >&5
0710d850 6697$as_echo "$have_ps2pdf" >&6; }
465e8fbf 6698else
e6364d79 6699 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 6700$as_echo "no" >&6; }
465e8fbf
FCE
6701fi
6702
7fbd9d09 6703
b62c413b
EM
6704# Extract the first word of "latex2html", so it can be a program name with args.
6705set dummy latex2html; ac_word=$2
e6364d79 6706{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 6707$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 6708if test "${ac_cv_prog_have_latex2html+set}" = set; then
0710d850 6709 $as_echo_n "(cached) " >&6
b62c413b
EM
6710else
6711 if test -n "$have_latex2html"; then
6712 ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test.
6713else
6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
e6364d79 6719 for ac_exec_ext in '' $ac_executable_extensions; do
b62c413b
EM
6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6721 ac_cv_prog_have_latex2html="yes"
e6364d79 6722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b62c413b
EM
6723 break 2
6724 fi
6725done
e6364d79 6726done
b62c413b
EM
6727IFS=$as_save_IFS
6728
6729 test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no"
6730fi
6731fi
6732have_latex2html=$ac_cv_prog_have_latex2html
6733if test -n "$have_latex2html"; then
e6364d79 6734 { $as_echo "$as_me:$LINENO: result: $have_latex2html" >&5
0710d850 6735$as_echo "$have_latex2html" >&6; }
b62c413b 6736else
e6364d79 6737 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 6738$as_echo "no" >&6; }
b62c413b
EM
6739fi
6740
6741
6742if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then
2d4b8ddf 6743 if test "$enable_docs" == "yes"; then
e6364d79
MW
6744 { { $as_echo "$as_me:$LINENO: error: cannot find all tools for building documentation" >&5
6745$as_echo "$as_me: error: cannot find all tools for building documentation" >&2;}
6746 { (exit 1); exit 1; }; }
465e8fbf 6747 fi
2d4b8ddf 6748 if test "$enable_docs" == "check"; then
e6364d79 6749 { $as_echo "$as_me:$LINENO: WARNING: will not build documentation, cannot find all tools" >&5
0710d850 6750$as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
2d4b8ddf 6751 fi
465e8fbf 6752fi
b62c413b 6753if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then
92aff3c7
WC
6754 building_docs="yes"
6755fi
7fbd9d09 6756 if test "$building_docs" == "yes"; then
465e8fbf
FCE
6757 BUILD_DOCS_TRUE=
6758 BUILD_DOCS_FALSE='#'
6759else
6760 BUILD_DOCS_TRUE='#'
6761 BUILD_DOCS_FALSE=
6762fi
6763
6764
53ade4da
MW
6765building_publican="no"
6766# Check whether --enable-publican was given.
e6364d79 6767if test "${enable_publican+set}" = set; then
53ade4da
MW
6768 enableval=$enable_publican; enable_publican=$enableval
6769else
6770 enable_publican="check"
6771fi
6772
6773if test "$building_docs" == "no" -a "$enable_publican" == "yes" ; then
e6364d79
MW
6774 { { $as_echo "$as_me:$LINENO: error: must use --enable-docs with --enable-publican" >&5
6775$as_echo "$as_me: error: must use --enable-docs with --enable-publican" >&2;}
6776 { (exit 1); exit 1; }; }
53ade4da
MW
6777fi
6778# Extract the first word of "publican", so it can be a program name with args.
6779set dummy publican; ac_word=$2
e6364d79 6780{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
53ade4da 6781$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 6782if test "${ac_cv_prog_have_publican+set}" = set; then
53ade4da
MW
6783 $as_echo_n "(cached) " >&6
6784else
6785 if test -n "$have_publican"; then
6786 ac_cv_prog_have_publican="$have_publican" # Let the user override the test.
6787else
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
e6364d79 6793 for ac_exec_ext in '' $ac_executable_extensions; do
53ade4da
MW
6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795 ac_cv_prog_have_publican="yes"
e6364d79 6796 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53ade4da
MW
6797 break 2
6798 fi
6799done
e6364d79 6800done
53ade4da
MW
6801IFS=$as_save_IFS
6802
6803 test -z "$ac_cv_prog_have_publican" && ac_cv_prog_have_publican="no"
6804fi
6805fi
6806have_publican=$ac_cv_prog_have_publican
6807if test -n "$have_publican"; then
e6364d79 6808 { $as_echo "$as_me:$LINENO: result: $have_publican" >&5
53ade4da
MW
6809$as_echo "$have_publican" >&6; }
6810else
e6364d79 6811 { $as_echo "$as_me:$LINENO: result: no" >&5
53ade4da
MW
6812$as_echo "no" >&6; }
6813fi
6814
6815
6816if test "$enable_publican" == "yes"; then
6817 if test "x${have_publican}" != "xyes"; then
e6364d79
MW
6818 { { $as_echo "$as_me:$LINENO: error: cannot find publican for building publican guides" >&5
6819$as_echo "$as_me: error: cannot find publican for building publican guides" >&2;}
6820 { (exit 1); exit 1; }; }
53ade4da
MW
6821 fi
6822fi
6823if test "x${have_publican}" == "xyes" -a "$enable_publican" != "no" -a "${building_docs}" == "yes"; then
6824 building_publican="yes"
6825fi
6826 if test "$building_publican" == "yes"; then
6827 BUILD_PUBLICAN_TRUE=
6828 BUILD_PUBLICAN_FALSE='#'
6829else
6830 BUILD_PUBLICAN_TRUE='#'
6831 BUILD_PUBLICAN_FALSE=
6832fi
6833
89bc1a6a 6834publican_brand="common"
53ade4da
MW
6835
6836# Check whether --with-publican-brand was given.
e6364d79 6837if test "${with_publican_brand+set}" = set; then
53ade4da
MW
6838 withval=$with_publican_brand; publican_brand=$withval
6839else
89bc1a6a 6840 publican_brand="common"
53ade4da
MW
6841fi
6842
6843PUBLICAN_BRAND=$publican_brand
6844
6845
92aff3c7 6846building_refdocs="no"
7fbd9d09 6847# Check whether --enable-refdocs was given.
e6364d79 6848if test "${enable_refdocs+set}" = set; then
7fbd9d09 6849 enableval=$enable_refdocs; enable_refdocs=$enableval
92aff3c7
WC
6850else
6851 enable_refdocs="check"
7fbd9d09
FCE
6852fi
6853
92aff3c7 6854if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
e6364d79
MW
6855 { { $as_echo "$as_me:$LINENO: error: must use --enable-docs with --enable-refdocs" >&5
6856$as_echo "$as_me: error: must use --enable-docs with --enable-refdocs" >&2;}
6857 { (exit 1); exit 1; }; }
92aff3c7
WC
6858fi
6859# Extract the first word of "xmlto", so it can be a program name with args.
6860set dummy xmlto; ac_word=$2
e6364d79 6861{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 6862$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 6863if test "${ac_cv_prog_have_xmlto+set}" = set; then
0710d850 6864 $as_echo_n "(cached) " >&6
92aff3c7
WC
6865else
6866 if test -n "$have_xmlto"; then
6867 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
e6364d79 6874 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
92aff3c7 6876 ac_cv_prog_have_xmlto="yes"
e6364d79 6877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
92aff3c7
WC
6878 break 2
6879 fi
6880done
e6364d79 6881done
7fbd9d09 6882IFS=$as_save_IFS
92aff3c7
WC
6883
6884 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
6885fi
6886fi
6887have_xmlto=$ac_cv_prog_have_xmlto
6888if test -n "$have_xmlto"; then
e6364d79 6889 { $as_echo "$as_me:$LINENO: result: $have_xmlto" >&5
0710d850 6890$as_echo "$have_xmlto" >&6; }
92aff3c7 6891else
e6364d79 6892 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 6893$as_echo "no" >&6; }
92aff3c7
WC
6894fi
6895
7fbd9d09 6896
ccf8bc85
EM
6897if test "$enable_refdocs" == "yes"; then
6898 if test "x${have_xmlto}" != "xyes"; then
e6364d79
MW
6899 { { $as_echo "$as_me:$LINENO: error: cannot find xmlto for building reference documentation" >&5
6900$as_echo "$as_me: error: cannot find xmlto for building reference documentation" >&2;}
6901 { (exit 1); exit 1; }; }
ccf8bc85
EM
6902 fi
6903fi
6904if test "x${have_xmlto}" == "xyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
6905 building_refdocs="yes"
6906fi
6907 if test "$building_refdocs" == "yes"; then
6908 BUILD_REFDOCS_TRUE=
6909 BUILD_REFDOCS_FALSE='#'
6910else
6911 BUILD_REFDOCS_TRUE='#'
6912 BUILD_REFDOCS_FALSE=
6913fi
6914
6915
468abaf4 6916cat > conftest.xml << 'EOF'
aa5951be
WC
6917<?xml version="1.0" encoding="UTF-8"?>
6918<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
6919"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
468abaf4
FCE
6920 <book lang="en">
6921 <bookinfo><title>foo</title></bookinfo>
a8fcf687
MW
6922 <chapter id="logging.stp"><title>Logging Tapset</title>
6923 <refentry id="API-log"><refnamediv><refname>log</refname>
6924 <refpurpose>logging</refpurpose></refnamediv>
6925 <refsect1><title>Description</title>
6926 <para>baz</para></refsect1></refentry></chapter>
aa5951be
WC
6927 </book>
6928EOF
468abaf4
FCE
6929
6930if test "x${have_xmlto}" == "xyes"; then
e6364d79 6931{ $as_echo "$as_me:$LINENO: checking for xmlto --stringparam support" >&5
0710d850 6932$as_echo_n "checking for xmlto --stringparam support... " >&6; }
4b5627b1 6933 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
468abaf4
FCE
6934 if test $? == 0; then
6935 have_xmlto_stringparam="yes"
e6364d79 6936 { $as_echo "$as_me:$LINENO: result: yes" >&5
0710d850 6937$as_echo "yes" >&6; }
468abaf4 6938 else
e6364d79 6939 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 6940$as_echo "no" >&6; }
468abaf4 6941 fi
4b5627b1 6942 rm -f conftest.html
468abaf4
FCE
6943fi
6944 if test "$have_xmlto_stringparam" == "yes"; then
6945 XMLTO_STRINGPARAM_TRUE=
6946 XMLTO_STRINGPARAM_FALSE='#'
6947else
6948 XMLTO_STRINGPARAM_TRUE='#'
6949 XMLTO_STRINGPARAM_FALSE=
6950fi
6951
6952
6953if test "x${building_refdocs}" == "xyes"; then
e6364d79 6954{ $as_echo "$as_me:$LINENO: checking for xmlto pdf support" >&5
0710d850 6955$as_echo_n "checking for xmlto pdf support... " >&6; }
468abaf4 6956 xmlto pdf conftest.xml >& /dev/null
aa5951be
WC
6957 if test $? == 0; then
6958 have_xmlto_pdf="yes"
e6364d79 6959 { $as_echo "$as_me:$LINENO: result: yes" >&5
0710d850 6960$as_echo "yes" >&6; }
aa5951be 6961 else
e6364d79 6962 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 6963$as_echo "no" >&6; }
e6364d79 6964 { $as_echo "$as_me:$LINENO: WARNING: Not building reference documentation in PDF format" >&5
0710d850 6965$as_echo "$as_me: WARNING: Not building reference documentation in PDF format" >&2;}
aa5951be 6966 fi
468abaf4 6967 rm -f conftest.pdf
aa5951be 6968fi
a8fcf687 6969 if test "$have_xmlto_pdf" == "yes"; then
ccf8bc85
EM
6970 BUILD_PDFREFDOCS_TRUE=
6971 BUILD_PDFREFDOCS_FALSE='#'
92aff3c7 6972else
ccf8bc85
EM
6973 BUILD_PDFREFDOCS_TRUE='#'
6974 BUILD_PDFREFDOCS_FALSE=
92aff3c7
WC
6975fi
6976
6977
468abaf4
FCE
6978rm -f conftest.xml
6979
6980
7fbd9d09 6981# Check whether --enable-server was given.
e6364d79 6982if test "${enable_server+set}" = set; then
7fbd9d09 6983 enableval=$enable_server; enable_server=$enableval
19a0d4b6
MW
6984else
6985 enable_server="check"
7fbd9d09
FCE
6986fi
6987
6462165c
JS
6988if test "$enable_server" != "no"; then
6989 # Extract the first word of "certutil", so it can be a program name with args.
07f82253 6990set dummy certutil; ac_word=$2
e6364d79 6991{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 6992$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 6993if test "${ac_cv_prog_have_certutil+set}" = set; then
0710d850 6994 $as_echo_n "(cached) " >&6
07f82253
MW
6995else
6996 if test -n "$have_certutil"; then
6997 ac_cv_prog_have_certutil="$have_certutil" # Let the user override the test.
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
e6364d79 7004 for ac_exec_ext in '' $ac_executable_extensions; do
07f82253
MW
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_prog_have_certutil="yes"
e6364d79 7007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
07f82253
MW
7008 break 2
7009 fi
7010done
e6364d79 7011done
07f82253
MW
7012IFS=$as_save_IFS
7013
7014 test -z "$ac_cv_prog_have_certutil" && ac_cv_prog_have_certutil="no"
7015fi
7016fi
7017have_certutil=$ac_cv_prog_have_certutil
7018if test -n "$have_certutil"; then
e6364d79 7019 { $as_echo "$as_me:$LINENO: result: $have_certutil" >&5
0710d850 7020$as_echo "$have_certutil" >&6; }
07f82253 7021else
e6364d79 7022 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 7023$as_echo "no" >&6; }
07f82253
MW
7024fi
7025
7026
e6364d79 7027 { $as_echo "$as_me:$LINENO: checking for /usr/include/nss3" >&5
0710d850 7028$as_echo_n "checking for /usr/include/nss3... " >&6; }
e6364d79 7029if test "${ac_cv_file__usr_include_nss3+set}" = set; then
0710d850 7030 $as_echo_n "(cached) " >&6
43498922 7031else
8ca54d60 7032 test "$cross_compiling" = yes &&
e6364d79
MW
7033 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
7034$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
7035 { (exit 1); exit 1; }; }
8ca54d60
EB
7036if test -r "/usr/include/nss3"; then
7037 ac_cv_file__usr_include_nss3=yes
7038else
7039 ac_cv_file__usr_include_nss3=no
43498922 7040fi
8ca54d60 7041fi
e6364d79 7042{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss3" >&5
0710d850 7043$as_echo "$ac_cv_file__usr_include_nss3" >&6; }
e6364d79 7044if test "x$ac_cv_file__usr_include_nss3" = x""yes; then
8ca54d60 7045 nssdir=nss3
43498922 7046else
8ca54d60 7047
e6364d79 7048 { $as_echo "$as_me:$LINENO: checking for /usr/include/nss" >&5
0710d850 7049$as_echo_n "checking for /usr/include/nss... " >&6; }
e6364d79 7050if test "${ac_cv_file__usr_include_nss+set}" = set; then
0710d850 7051 $as_echo_n "(cached) " >&6
8ca54d60
EB
7052else
7053 test "$cross_compiling" = yes &&
e6364d79
MW
7054 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
7055$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
7056 { (exit 1); exit 1; }; }
8ca54d60
EB
7057if test -r "/usr/include/nss"; then
7058 ac_cv_file__usr_include_nss=yes
7059else
7060 ac_cv_file__usr_include_nss=no
7061fi
7062fi
e6364d79 7063{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss" >&5
0710d850 7064$as_echo "$ac_cv_file__usr_include_nss" >&6; }
e6364d79 7065if test "x$ac_cv_file__usr_include_nss" = x""yes; then
8ca54d60 7066 nssdir=nss
43498922
DB
7067fi
7068
7069
7070fi
8ca54d60 7071
e6364d79 7072 { $as_echo "$as_me:$LINENO: checking for /usr/include/nspr4" >&5
0710d850 7073$as_echo_n "checking for /usr/include/nspr4... " >&6; }
e6364d79 7074if test "${ac_cv_file__usr_include_nspr4+set}" = set; then
0710d850 7075 $as_echo_n "(cached) " >&6
43498922 7076else
8ca54d60 7077 test "$cross_compiling" = yes &&
e6364d79
MW
7078 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
7079$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
7080 { (exit 1); exit 1; }; }
8ca54d60
EB
7081if test -r "/usr/include/nspr4"; then
7082 ac_cv_file__usr_include_nspr4=yes
43498922 7083else
8ca54d60
EB
7084 ac_cv_file__usr_include_nspr4=no
7085fi
43498922 7086fi
e6364d79 7087{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr4" >&5
0710d850 7088$as_echo "$ac_cv_file__usr_include_nspr4" >&6; }
e6364d79 7089if test "x$ac_cv_file__usr_include_nspr4" = x""yes; then
8ca54d60
EB
7090 nsprdir=nspr4
7091else
43498922 7092
e6364d79 7093 { $as_echo "$as_me:$LINENO: checking for /usr/include/nspr" >&5
0710d850 7094$as_echo_n "checking for /usr/include/nspr... " >&6; }
e6364d79 7095if test "${ac_cv_file__usr_include_nspr+set}" = set; then
0710d850 7096 $as_echo_n "(cached) " >&6
43498922 7097else
8ca54d60 7098 test "$cross_compiling" = yes &&
e6364d79
MW
7099 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
7100$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
7101 { (exit 1); exit 1; }; }
8ca54d60
EB
7102if test -r "/usr/include/nspr"; then
7103 ac_cv_file__usr_include_nspr=yes
7104else
7105 ac_cv_file__usr_include_nspr=no
43498922 7106fi
43498922 7107fi
e6364d79 7108{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr" >&5
0710d850 7109$as_echo "$ac_cv_file__usr_include_nspr" >&6; }
e6364d79 7110if test "x$ac_cv_file__usr_include_nspr" = x""yes; then
8ca54d60
EB
7111 nsprdir=nspr
7112fi
7113
43498922
DB
7114
7115fi
7116
6462165c
JS
7117 if test "x$nssdir" != "x" -a "x$nsprdir" != "x"; then
7118 nss_CFLAGS="-I/usr/include/$nssdir"
7119 nspr_CFLAGS="-I/usr/include/$nsprdir"
8ca54d60
EB
7120
7121
6462165c
JS
7122 save_CPPFLAGS="$CPPFLAGS"
7123 CPPFLAGS="$CFLAGS $nss_CFLAGS $nspr_CFLAGS"
7124 have_nss_includes=yes
412e1bf7
FCE
7125
7126
8ca54d60 7127
e6364d79
MW
7128
7129
7130
7131
7132for ac_header in "$nsprdir/nspr.h" "$nsprdir/plgetopt.h" "$nsprdir/prerror.h" "$nssdir/ssl.h" "$nssdir/nss.h" "$nssdir/pk11func.h" "$nssdir/secerr.h"
7133do
7134as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7136 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7137$as_echo_n "checking for $ac_header... " >&6; }
7138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7139 $as_echo_n "(cached) " >&6
7140fi
7141ac_res=`eval 'as_val=${'$as_ac_Header'}
7142 $as_echo "$as_val"'`
7143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7144$as_echo "$ac_res" >&6; }
7145else
7146 # Is the header compilable?
7147{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7148$as_echo_n "checking $ac_header usability... " >&6; }
7149cat >conftest.$ac_ext <<_ACEOF
7150/* confdefs.h. */
7151_ACEOF
7152cat confdefs.h >>conftest.$ac_ext
7153cat >>conftest.$ac_ext <<_ACEOF
7154/* end confdefs.h. */
7155$ac_includes_default
7156#include <$ac_header>
7157_ACEOF
7158rm -f conftest.$ac_objext
7159if { (ac_try="$ac_compile"
7160case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163esac
7164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7165$as_echo "$ac_try_echo") >&5
7166 (eval "$ac_compile") 2>conftest.er1
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && {
7173 test -z "$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 } && test -s conftest.$ac_objext; then
7176 ac_header_compiler=yes
7177else
7178 $as_echo "$as_me: failed program was:" >&5
7179sed 's/^/| /' conftest.$ac_ext >&5
7180
7181 ac_header_compiler=no
7182fi
7183
7184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7186$as_echo "$ac_header_compiler" >&6; }
7187
7188# Is the header present?
7189{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7190$as_echo_n "checking $ac_header presence... " >&6; }
7191cat >conftest.$ac_ext <<_ACEOF
7192/* confdefs.h. */
7193_ACEOF
7194cat confdefs.h >>conftest.$ac_ext
7195cat >>conftest.$ac_ext <<_ACEOF
7196/* end confdefs.h. */
7197#include <$ac_header>
7198_ACEOF
7199if { (ac_try="$ac_cpp conftest.$ac_ext"
7200case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203esac
7204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7205$as_echo "$ac_try_echo") >&5
7206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } >/dev/null && {
7213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 }; then
7216 ac_header_preproc=yes
7217else
7218 $as_echo "$as_me: failed program was:" >&5
7219sed 's/^/| /' conftest.$ac_ext >&5
7220
7221 ac_header_preproc=no
7222fi
7223
7224rm -f conftest.err conftest.$ac_ext
7225{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7226$as_echo "$ac_header_preproc" >&6; }
7227
7228# So? What about this header?
7229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7230 yes:no: )
7231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7232$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7234$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7235 ac_header_preproc=yes
7236 ;;
7237 no:yes:* )
7238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7239$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7241$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7243$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7245$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7247$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7249$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7250 ( cat <<\_ASBOX
7251## ------------------------------------------- ##
7252## Report this to systemtap@sources.redhat.com ##
7253## ------------------------------------------- ##
7254_ASBOX
7255 ) | sed "s/^/$as_me: WARNING: /" >&2
7256 ;;
7257esac
7258{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7259$as_echo_n "checking for $ac_header... " >&6; }
7260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7261 $as_echo_n "(cached) " >&6
7262else
7263 eval "$as_ac_Header=\$ac_header_preproc"
7264fi
7265ac_res=`eval 'as_val=${'$as_ac_Header'}
7266 $as_echo "$as_val"'`
7267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7268$as_echo "$ac_res" >&6; }
7269
7270fi
7271as_val=`eval 'as_val=${'$as_ac_Header'}
7272 $as_echo "$as_val"'`
7273 if test "x$as_val" = x""yes; then
7274 cat >>confdefs.h <<_ACEOF
7275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7276_ACEOF
7277
7278else
7279 have_nss_includes=no
7280fi
7281
7282done
7283
7284 CPPFLAGS="$save_CPPFLAGS"
7285 have_nss_libs=no
7286 { $as_echo "$as_me:$LINENO: checking for PR_Connect in -lnspr4" >&5
7287$as_echo_n "checking for PR_Connect in -lnspr4... " >&6; }
7288if test "${ac_cv_lib_nspr4_PR_Connect+set}" = set; then
7289 $as_echo_n "(cached) " >&6
7290else
8ca54d60
EB
7291 ac_check_lib_save_LIBS=$LIBS
7292LIBS="-lnspr4 $LIBS"
e6364d79
MW
7293cat >conftest.$ac_ext <<_ACEOF
7294/* confdefs.h. */
7295_ACEOF
7296cat confdefs.h >>conftest.$ac_ext
7297cat >>conftest.$ac_ext <<_ACEOF
8ca54d60 7298/* end confdefs.h. */
19a0d4b6 7299
7fbd9d09
FCE
7300/* Override any GCC internal prototype to avoid an error.
7301 Use char because int might match the return type of a GCC
7302 builtin and then its argument prototype would still apply. */
8ca54d60
EB
7303#ifdef __cplusplus
7304extern "C"
7305#endif
7306char PR_Connect ();
7307int
7308main ()
7309{
7fbd9d09 7310return PR_Connect ();
8ca54d60
EB
7311 ;
7312 return 0;
7313}
7314_ACEOF
e6364d79
MW
7315rm -f conftest.$ac_objext conftest$ac_exeext
7316if { (ac_try="$ac_link"
7317case "(($ac_try" in
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7320esac
7321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7322$as_echo "$ac_try_echo") >&5
7323 (eval "$ac_link") 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest$ac_exeext && {
7333 test "$cross_compiling" = yes ||
7334 $as_test_x conftest$ac_exeext
7335 }; then
8ca54d60 7336 ac_cv_lib_nspr4_PR_Connect=yes
43498922 7337else
e6364d79
MW
7338 $as_echo "$as_me: failed program was:" >&5
7339sed 's/^/| /' conftest.$ac_ext >&5
7340
7341 ac_cv_lib_nspr4_PR_Connect=no
43498922 7342fi
e6364d79
MW
7343
7344rm -rf conftest.dSYM
7345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7346 conftest$ac_exeext conftest.$ac_ext
8ca54d60 7347LIBS=$ac_check_lib_save_LIBS
43498922 7348fi
e6364d79 7349{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nspr4_PR_Connect" >&5
0710d850 7350$as_echo "$ac_cv_lib_nspr4_PR_Connect" >&6; }
e6364d79 7351if test "x$ac_cv_lib_nspr4_PR_Connect" = x""yes; then
8ca54d60 7352
e6364d79 7353 { $as_echo "$as_me:$LINENO: checking for SSL_ReHandshake in -lssl3" >&5
0710d850 7354$as_echo_n "checking for SSL_ReHandshake in -lssl3... " >&6; }
e6364d79 7355if test "${ac_cv_lib_ssl3_SSL_ReHandshake+set}" = set; then
0710d850 7356 $as_echo_n "(cached) " >&6
8ca54d60
EB
7357else
7358 ac_check_lib_save_LIBS=$LIBS
7359LIBS="-lssl3 $LIBS"
e6364d79
MW
7360cat >conftest.$ac_ext <<_ACEOF
7361/* confdefs.h. */
7362_ACEOF
7363cat confdefs.h >>conftest.$ac_ext
7364cat >>conftest.$ac_ext <<_ACEOF
8ca54d60
EB
7365/* end confdefs.h. */
7366
7fbd9d09
FCE
7367/* Override any GCC internal prototype to avoid an error.
7368 Use char because int might match the return type of a GCC
7369 builtin and then its argument prototype would still apply. */
8ca54d60
EB
7370#ifdef __cplusplus
7371extern "C"
7372#endif
7373char SSL_ReHandshake ();
7374int
7375main ()
7376{
7fbd9d09 7377return SSL_ReHandshake ();
8ca54d60
EB
7378 ;
7379 return 0;
7380}
7381_ACEOF
e6364d79
MW
7382rm -f conftest.$ac_objext conftest$ac_exeext
7383if { (ac_try="$ac_link"
7384case "(($ac_try" in
7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7387esac
7388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7389$as_echo "$ac_try_echo") >&5
7390 (eval "$ac_link") 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest$ac_exeext && {
7400 test "$cross_compiling" = yes ||
7401 $as_test_x conftest$ac_exeext
7402 }; then
8ca54d60 7403 ac_cv_lib_ssl3_SSL_ReHandshake=yes
43498922 7404else
e6364d79
MW
7405 $as_echo "$as_me: failed program was:" >&5
7406sed 's/^/| /' conftest.$ac_ext >&5
7407
7408 ac_cv_lib_ssl3_SSL_ReHandshake=no
8ca54d60 7409fi
e6364d79
MW
7410
7411rm -rf conftest.dSYM
7412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7413 conftest$ac_exeext conftest.$ac_ext
8ca54d60
EB
7414LIBS=$ac_check_lib_save_LIBS
7415fi
e6364d79 7416{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl3_SSL_ReHandshake" >&5
0710d850 7417$as_echo "$ac_cv_lib_ssl3_SSL_ReHandshake" >&6; }
e6364d79 7418if test "x$ac_cv_lib_ssl3_SSL_ReHandshake" = x""yes; then
8ca54d60
EB
7419 have_nss_libs=yes
7420fi
43498922 7421
43498922 7422
43498922 7423fi
43498922 7424
19a0d4b6 7425 fi
6462165c
JS
7426 if test "x${have_nss_includes}${have_nss_libs}${have_certutil}" != "xyesyesyes"; then
7427 if test "$enable_server" == "yes"; then
e6364d79
MW
7428 { { $as_echo "$as_me:$LINENO: error: cannot find all libraries or tools for stap-server" >&5
7429$as_echo "$as_me: error: cannot find all libraries or tools for stap-server" >&2;}
7430 { (exit 1); exit 1; }; }
6462165c
JS
7431 fi
7432 if test "$enable_server" == "check"; then
e6364d79 7433 { $as_echo "$as_me:$LINENO: WARNING: will not build stap-server, cannot find all libraries or tools" >&5
0710d850 7434$as_echo "$as_me: WARNING: will not build stap-server, cannot find all libraries or tools" >&2;}
6462165c
JS
7435 fi
7436 else
2035bcd4 7437
e6364d79
MW
7438cat >>confdefs.h <<\_ACEOF
7439#define HAVE_NSS 1
7440_ACEOF
2035bcd4 7441
6462165c 7442 fi
19a0d4b6 7443fi
d450a957 7444 if test "x${have_nss_includes}${have_nss_libs}${have_certutil}" == "xyesyesyes" -a "$enable_server" != "no"; then
19a0d4b6
MW
7445 BUILD_SERVER_TRUE=
7446 BUILD_SERVER_FALSE='#'
7447else
7448 BUILD_SERVER_TRUE='#'
7449 BUILD_SERVER_FALSE=
43498922
DB
7450fi
7451
07f82253 7452 if test "x${have_nss_includes}${have_nss_libs}${have_certutil}" == "xyesyesyes"; then
2035bcd4
DB
7453 HAVE_NSS_TRUE=
7454 HAVE_NSS_FALSE='#'
7455else
7456 HAVE_NSS_TRUE='#'
7457 HAVE_NSS_FALSE=
7458fi
7459
19a0d4b6 7460
1087b83f 7461# Check whether --enable-grapher was given.
e6364d79 7462if test "${enable_grapher+set}" = set; then
c3f070d9 7463 enableval=$enable_grapher;
1087b83f 7464else
c3f070d9 7465 enable_grapher="check"
1087b83f
TM
7466fi
7467
7468
1087b83f
TM
7469if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7470 if test -n "$ac_tool_prefix"; then
7471 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7472set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
e6364d79 7473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 7474$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 7475if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
0710d850 7476 $as_echo_n "(cached) " >&6
1087b83f
TM
7477else
7478 case $PKG_CONFIG in
7479 [\\/]* | ?:[\\/]*)
7480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7481 ;;
7482 *)
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
e6364d79 7488 for ac_exec_ext in '' $ac_executable_extensions; do
1087b83f
TM
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
e6364d79 7491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1087b83f
TM
7492 break 2
7493 fi
7494done
e6364d79 7495done
1087b83f
TM
7496IFS=$as_save_IFS
7497
7498 ;;
7499esac
7500fi
7501PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7502if test -n "$PKG_CONFIG"; then
e6364d79 7503 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
0710d850 7504$as_echo "$PKG_CONFIG" >&6; }
1087b83f 7505else
e6364d79 7506 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 7507$as_echo "no" >&6; }
1087b83f
TM
7508fi
7509
7510
7511fi
7512if test -z "$ac_cv_path_PKG_CONFIG"; then
7513 ac_pt_PKG_CONFIG=$PKG_CONFIG
7514 # Extract the first word of "pkg-config", so it can be a program name with args.
7515set dummy pkg-config; ac_word=$2
e6364d79 7516{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
0710d850 7517$as_echo_n "checking for $ac_word... " >&6; }
e6364d79 7518if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
0710d850 7519 $as_echo_n "(cached) " >&6
1087b83f
TM
7520else
7521 case $ac_pt_PKG_CONFIG in
7522 [\\/]* | ?:[\\/]*)
7523 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7524 ;;
7525 *)
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527for as_dir in $PATH
7528do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
e6364d79 7531 for ac_exec_ext in '' $ac_executable_extensions; do
1087b83f
TM
7532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7533 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
e6364d79 7534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1087b83f
TM
7535 break 2
7536 fi
7537done
e6364d79 7538done
1087b83f
TM
7539IFS=$as_save_IFS
7540
7541 ;;
7542esac
7543fi
7544ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7545if test -n "$ac_pt_PKG_CONFIG"; then
e6364d79 7546 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
0710d850 7547$as_echo "$ac_pt_PKG_CONFIG" >&6; }
1087b83f 7548else
e6364d79 7549 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 7550$as_echo "no" >&6; }
1087b83f
TM
7551fi
7552
7553 if test "x$ac_pt_PKG_CONFIG" = x; then
7554 PKG_CONFIG=""
7555 else
7556 case $cross_compiling:$ac_tool_warned in
7557yes:)
e6364d79 7558{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 7559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1087b83f
TM
7560ac_tool_warned=yes ;;
7561esac
7562 PKG_CONFIG=$ac_pt_PKG_CONFIG
7563 fi
7564else
7565 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7566fi
7567
7568fi
7569if test -n "$PKG_CONFIG"; then
7570 _pkg_min_version=0.9.0
e6364d79 7571 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
0710d850 7572$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
1087b83f 7573 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
e6364d79 7574 { $as_echo "$as_me:$LINENO: result: yes" >&5
0710d850 7575$as_echo "yes" >&6; }
1087b83f 7576 else
e6364d79 7577 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 7578$as_echo "no" >&6; }
1087b83f
TM
7579 PKG_CONFIG=""
7580 fi
7581
7582fi
f8a49389
DS
7583
7584ac_ext=cpp
7585ac_cpp='$CXXCPP $CPPFLAGS'
7586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
e6364d79 7589{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
0710d850 7590$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
f8a49389 7591if test -z "$CXXCPP"; then
e6364d79 7592 if test "${ac_cv_prog_CXXCPP+set}" = set; then
0710d850 7593 $as_echo_n "(cached) " >&6
f8a49389
DS
7594else
7595 # Double quotes because CXXCPP needs to be expanded
7596 for CXXCPP in "$CXX -E" "/lib/cpp"
7597 do
7598 ac_preproc_ok=false
7599for ac_cxx_preproc_warn_flag in '' yes
7600do
7601 # Use a header file that comes with gcc, so configuring glibc
7602 # with a fresh cross-compiler works.
7603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7604 # <limits.h> exists even on freestanding compilers.
7605 # On the NeXT, cc -E runs the code through the compiler's parser,
7606 # not just through cpp. "Syntax error" is here to catch this case.
e6364d79
MW
7607 cat >conftest.$ac_ext <<_ACEOF
7608/* confdefs.h. */
7609_ACEOF
7610cat confdefs.h >>conftest.$ac_ext
7611cat >>conftest.$ac_ext <<_ACEOF
f8a49389
DS
7612/* end confdefs.h. */
7613#ifdef __STDC__
7614# include <limits.h>
7615#else
7616# include <assert.h>
7617#endif
7618 Syntax error
7619_ACEOF
e6364d79
MW
7620if { (ac_try="$ac_cpp conftest.$ac_ext"
7621case "(($ac_try" in
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7624esac
7625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7626$as_echo "$ac_try_echo") >&5
7627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } >/dev/null && {
7634 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7635 test ! -s conftest.err
7636 }; then
7637 :
4b5627b1 7638else
e6364d79
MW
7639 $as_echo "$as_me: failed program was:" >&5
7640sed 's/^/| /' conftest.$ac_ext >&5
7641
f8a49389
DS
7642 # Broken: fails on valid input.
7643continue
7644fi
e6364d79 7645
f8a49389
DS
7646rm -f conftest.err conftest.$ac_ext
7647
7648 # OK, works on sane cases. Now check whether nonexistent headers
7649 # can be detected and how.
e6364d79
MW
7650 cat >conftest.$ac_ext <<_ACEOF
7651/* confdefs.h. */
7652_ACEOF
7653cat confdefs.h >>conftest.$ac_ext
7654cat >>conftest.$ac_ext <<_ACEOF
f8a49389
DS
7655/* end confdefs.h. */
7656#include <ac_nonexistent.h>
7657_ACEOF
e6364d79
MW
7658if { (ac_try="$ac_cpp conftest.$ac_ext"
7659case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662esac
7663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7664$as_echo "$ac_try_echo") >&5
7665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7666 ac_status=$?
7667 grep -v '^ *+' conftest.er1 >conftest.err
7668 rm -f conftest.er1
7669 cat conftest.err >&5
7670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } >/dev/null && {
7672 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7673 test ! -s conftest.err
7674 }; then
f8a49389
DS
7675 # Broken: success on invalid input.
7676continue
7677else
e6364d79
MW
7678 $as_echo "$as_me: failed program was:" >&5
7679sed 's/^/| /' conftest.$ac_ext >&5
7680
f8a49389
DS
7681 # Passes both tests.
7682ac_preproc_ok=:
7683break
7684fi
e6364d79 7685
f8a49389
DS
7686rm -f conftest.err conftest.$ac_ext
7687
7688done
7689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7690rm -f conftest.err conftest.$ac_ext
e6364d79 7691if $ac_preproc_ok; then
f8a49389
DS
7692 break
7693fi
7694
7695 done
7696 ac_cv_prog_CXXCPP=$CXXCPP
7697
7698fi
7699 CXXCPP=$ac_cv_prog_CXXCPP
7700else
7701 ac_cv_prog_CXXCPP=$CXXCPP
7702fi
e6364d79 7703{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
0710d850 7704$as_echo "$CXXCPP" >&6; }
f8a49389
DS
7705ac_preproc_ok=false
7706for ac_cxx_preproc_warn_flag in '' yes
7707do
7708 # Use a header file that comes with gcc, so configuring glibc
7709 # with a fresh cross-compiler works.
7710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7711 # <limits.h> exists even on freestanding compilers.
7712 # On the NeXT, cc -E runs the code through the compiler's parser,
7713 # not just through cpp. "Syntax error" is here to catch this case.
e6364d79
MW
7714 cat >conftest.$ac_ext <<_ACEOF
7715/* confdefs.h. */
7716_ACEOF
7717cat confdefs.h >>conftest.$ac_ext
7718cat >>conftest.$ac_ext <<_ACEOF
f8a49389
DS
7719/* end confdefs.h. */
7720#ifdef __STDC__
7721# include <limits.h>
7722#else
7723# include <assert.h>
7724#endif
7725 Syntax error
7726_ACEOF
e6364d79
MW
7727if { (ac_try="$ac_cpp conftest.$ac_ext"
7728case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731esac
7732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7733$as_echo "$ac_try_echo") >&5
7734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7735 ac_status=$?
7736 grep -v '^ *+' conftest.er1 >conftest.err
7737 rm -f conftest.er1
7738 cat conftest.err >&5
7739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } >/dev/null && {
7741 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7742 test ! -s conftest.err
7743 }; then
7744 :
4b5627b1 7745else
e6364d79
MW
7746 $as_echo "$as_me: failed program was:" >&5
7747sed 's/^/| /' conftest.$ac_ext >&5
7748
f8a49389
DS
7749 # Broken: fails on valid input.
7750continue
7751fi
e6364d79 7752
f8a49389
DS
7753rm -f conftest.err conftest.$ac_ext
7754
7755 # OK, works on sane cases. Now check whether nonexistent headers
7756 # can be detected and how.
e6364d79
MW
7757 cat >conftest.$ac_ext <<_ACEOF
7758/* confdefs.h. */
7759_ACEOF
7760cat confdefs.h >>conftest.$ac_ext
7761cat >>conftest.$ac_ext <<_ACEOF
f8a49389
DS
7762/* end confdefs.h. */
7763#include <ac_nonexistent.h>
7764_ACEOF
e6364d79
MW
7765if { (ac_try="$ac_cpp conftest.$ac_ext"
7766case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769esac
7770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7771$as_echo "$ac_try_echo") >&5
7772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } >/dev/null && {
7779 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7780 test ! -s conftest.err
7781 }; then
f8a49389
DS
7782 # Broken: success on invalid input.
7783continue
7784else
e6364d79
MW
7785 $as_echo "$as_me: failed program was:" >&5
7786sed 's/^/| /' conftest.$ac_ext >&5
7787
f8a49389
DS
7788 # Passes both tests.
7789ac_preproc_ok=:
7790break
7791fi
e6364d79 7792
f8a49389
DS
7793rm -f conftest.err conftest.$ac_ext
7794
7795done
7796# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7797rm -f conftest.err conftest.$ac_ext
e6364d79
MW
7798if $ac_preproc_ok; then
7799 :
f8a49389 7800else
e6364d79 7801 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
0710d850 7802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
e6364d79
MW
7803{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7804See \`config.log' for more details." >&5
7805$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7806See \`config.log' for more details." >&2;}
7807 { (exit 1); exit 1; }; }; }
f8a49389
DS
7808fi
7809
7810ac_ext=cpp
7811ac_cpp='$CXXCPP $CPPFLAGS'
7812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7815
7816
e6364d79 7817if test "x$enable_grapher" != xno; then
1087b83f 7818
f8a49389 7819
1087b83f 7820pkg_failed=no
e6364d79 7821{ $as_echo "$as_me:$LINENO: checking for gtkmm" >&5
0710d850
DS
7822$as_echo_n "checking for gtkmm... " >&6; }
7823
6462165c
JS
7824if test -n "$gtkmm_CFLAGS"; then
7825 pkg_cv_gtkmm_CFLAGS="$gtkmm_CFLAGS"
7826 elif test -n "$PKG_CONFIG"; then
7827 if test -n "$PKG_CONFIG" && \
e6364d79 7828 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\"") >&5
f8a49389 7829 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5
1087b83f 7830 ac_status=$?
e6364d79
MW
7831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; then
f8a49389 7833 pkg_cv_gtkmm_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.8.0" 2>/dev/null`
1087b83f
TM
7834else
7835 pkg_failed=yes
7836fi
6462165c
JS
7837 else
7838 pkg_failed=untried
1087b83f 7839fi
6462165c
JS
7840if test -n "$gtkmm_LIBS"; then
7841 pkg_cv_gtkmm_LIBS="$gtkmm_LIBS"
7842 elif test -n "$PKG_CONFIG"; then
7843 if test -n "$PKG_CONFIG" && \
e6364d79 7844 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\"") >&5
f8a49389 7845 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5
1087b83f 7846 ac_status=$?
e6364d79
MW
7847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; then
f8a49389 7849 pkg_cv_gtkmm_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.8.0" 2>/dev/null`
1087b83f
TM
7850else
7851 pkg_failed=yes
7852fi
6462165c
JS
7853 else
7854 pkg_failed=untried
1087b83f
TM
7855fi
7856
7857
7858
7859if test $pkg_failed = yes; then
7860
7861if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7862 _pkg_short_errors_supported=yes
7863else
7864 _pkg_short_errors_supported=no
7865fi
7866 if test $_pkg_short_errors_supported = yes; then
6462165c 7867 gtkmm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1`
1087b83f 7868 else
6462165c 7869 gtkmm_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1`
1087b83f
TM
7870 fi
7871 # Put the nasty error message in config.log where it belongs
c3f070d9 7872 echo "$gtkmm_PKG_ERRORS" >&5
1087b83f 7873
e6364d79 7874 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 7875$as_echo "no" >&6; }
c3f070d9 7876 have_gtkmm="no"
1087b83f 7877elif test $pkg_failed = untried; then
c3f070d9 7878 have_gtkmm="no"
1087b83f 7879else
c3f070d9
DS
7880 gtkmm_CFLAGS=$pkg_cv_gtkmm_CFLAGS
7881 gtkmm_LIBS=$pkg_cv_gtkmm_LIBS
e6364d79 7882 { $as_echo "$as_me:$LINENO: result: yes" >&5
0710d850 7883$as_echo "yes" >&6; }
c3f070d9
DS
7884 have_gtkmm="yes"
7885fi
e6364d79
MW
7886 if test "x${have_gtkmm}" == "xno" -a x"$enable_grapher" == "xyes"; then
7887 { $as_echo "$as_me:$LINENO: WARNING: systemtap cannot find required gtkmm libs (gtkmm24-devel version 2.8.0 or higher may need to be installed)" >&5
0710d850 7888$as_echo "$as_me: WARNING: systemtap cannot find required gtkmm libs (gtkmm24-devel version 2.8.0 or higher may need to be installed)" >&2;}
c3f070d9
DS
7889fi
7890
f8a49389 7891
e6364d79 7892
f8a49389 7893pkg_failed=no
e6364d79 7894{ $as_echo "$as_me:$LINENO: checking for libglade" >&5
0710d850
DS
7895$as_echo_n "checking for libglade... " >&6; }
7896
6462165c
JS
7897if test -n "$libglade_CFLAGS"; then
7898 pkg_cv_libglade_CFLAGS="$libglade_CFLAGS"
7899 elif test -n "$PKG_CONFIG"; then
7900 if test -n "$PKG_CONFIG" && \
e6364d79 7901 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\"") >&5
f8a49389
DS
7902 ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5
7903 ac_status=$?
e6364d79
MW
7904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; then
f8a49389
DS
7906 pkg_cv_libglade_CFLAGS=`$PKG_CONFIG --cflags "libglademm-2.4 >= 2.6.7" 2>/dev/null`
7907else
7908 pkg_failed=yes
7909fi
6462165c
JS
7910 else
7911 pkg_failed=untried
f8a49389 7912fi
6462165c
JS
7913if test -n "$libglade_LIBS"; then
7914 pkg_cv_libglade_LIBS="$libglade_LIBS"
7915 elif test -n "$PKG_CONFIG"; then
7916 if test -n "$PKG_CONFIG" && \
e6364d79 7917 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\"") >&5
f8a49389
DS
7918 ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5
7919 ac_status=$?
e6364d79
MW
7920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; then
f8a49389
DS
7922 pkg_cv_libglade_LIBS=`$PKG_CONFIG --libs "libglademm-2.4 >= 2.6.7" 2>/dev/null`
7923else
7924 pkg_failed=yes
7925fi
6462165c
JS
7926 else
7927 pkg_failed=untried
f8a49389
DS
7928fi
7929
7930
7931
7932if test $pkg_failed = yes; then
7933
7934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7935 _pkg_short_errors_supported=yes
7936else
7937 _pkg_short_errors_supported=no
7938fi
7939 if test $_pkg_short_errors_supported = yes; then
6462165c 7940 libglade_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libglademm-2.4 >= 2.6.7" 2>&1`
f8a49389 7941 else
6462165c 7942 libglade_PKG_ERRORS=`$PKG_CONFIG --print-errors "libglademm-2.4 >= 2.6.7" 2>&1`
f8a49389
DS
7943 fi
7944 # Put the nasty error message in config.log where it belongs
7945 echo "$libglade_PKG_ERRORS" >&5
7946
e6364d79 7947 { $as_echo "$as_me:$LINENO: result: no" >&5
0710d850 7948$as_echo "no" >&6; }
f8a49389
DS
7949 have_libglade="no"
7950elif test $pkg_failed = untried; then
7951 have_libglade="no"
7952else
7953 libglade_CFLAGS=$pkg_cv_libglade_CFLAGS
7954 libglade_LIBS=$pkg_cv_libglade_LIBS
e6364d79 7955 { $as_echo "$as_me:$LINENO: result: yes" >&5
0710d850 7956$as_echo "yes" >&6; }
f8a49389
DS
7957 have_libglade="yes"
7958fi
e6364d79
MW
7959 if test "x${have_libglade}" == "xno" -a x"$enable_grapher" == "xyes"; then
7960 { $as_echo "$as_me:$LINENO: WARNING: systemtap cannot find required libglade libs (libglademm24-devel version 2.6.7 or higher may need to be installed)" >&5
0710d850 7961$as_echo "$as_me: WARNING: systemtap cannot find required libglade libs (libglademm24-devel version 2.6.7 or higher may need to be installed)" >&2;}
f8a49389
DS
7962fi
7963
e6364d79 7964
f8a49389
DS
7965 have_boost_headers="yes"
7966 ac_ext=cpp
7967ac_cpp='$CXXCPP $CPPFLAGS'
7968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7971
e6364d79
MW
7972
7973
7974for ac_header in boost/algorithm/string.hpp boost/range.hpp
7975do
7976as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7979$as_echo_n "checking for $ac_header... " >&6; }
7980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7981 $as_echo_n "(cached) " >&6
7982fi
7983ac_res=`eval 'as_val=${'$as_ac_Header'}
7984 $as_echo "$as_val"'`
7985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7986$as_echo "$ac_res" >&6; }
7987else
7988 # Is the header compilable?
7989{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7990$as_echo_n "checking $ac_header usability... " >&6; }
7991cat >conftest.$ac_ext <<_ACEOF
7992/* confdefs.h. */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h. */
7997$ac_includes_default
7998#include <$ac_header>
7999_ACEOF
8000rm -f conftest.$ac_objext
8001if { (ac_try="$ac_compile"
8002case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005esac
8006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8007$as_echo "$ac_try_echo") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
8012 cat conftest.err >&5
8013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_cxx_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
8018 ac_header_compiler=yes
8019else
8020 $as_echo "$as_me: failed program was:" >&5
8021sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 ac_header_compiler=no
8024fi
8025
8026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8028$as_echo "$ac_header_compiler" >&6; }
8029
8030# Is the header present?
8031{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8032$as_echo_n "checking $ac_header presence... " >&6; }
8033cat >conftest.$ac_ext <<_ACEOF
8034/* confdefs.h. */
8035_ACEOF
8036cat confdefs.h >>conftest.$ac_ext
8037cat >>conftest.$ac_ext <<_ACEOF
8038/* end confdefs.h. */
8039#include <$ac_header>
8040_ACEOF
8041if { (ac_try="$ac_cpp conftest.$ac_ext"
8042case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8045esac
8046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8047$as_echo "$ac_try_echo") >&5
8048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8049 ac_status=$?
8050 grep -v '^ *+' conftest.er1 >conftest.err
8051 rm -f conftest.er1
8052 cat conftest.err >&5
8053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); } >/dev/null && {
8055 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8056 test ! -s conftest.err
8057 }; then
8058 ac_header_preproc=yes
8059else
8060 $as_echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 ac_header_preproc=no
8064fi
8065
8066rm -f conftest.err conftest.$ac_ext
8067{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8068$as_echo "$ac_header_preproc" >&6; }
8069
8070# So? What about this header?
8071case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8072 yes:no: )
8073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8074$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8076$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8077 ac_header_preproc=yes
8078 ;;
8079 no:yes:* )
8080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8081$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8083$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8085$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8087$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8089$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8091$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8092 ( cat <<\_ASBOX
8093## ------------------------------------------- ##
8094## Report this to systemtap@sources.redhat.com ##
8095## ------------------------------------------- ##
8096_ASBOX
8097 ) | sed "s/^/$as_me: WARNING: /" >&2
8098 ;;
8099esac
8100{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8101$as_echo_n "checking for $ac_header... " >&6; }
8102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8103 $as_echo_n "(cached) " >&6
8104else
8105 eval "$as_ac_Header=\$ac_header_preproc"
8106fi
8107ac_res=`eval 'as_val=${'$as_ac_Header'}
8108 $as_echo "$as_val"'`
8109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8110$as_echo "$ac_res" >&6; }
8111
8112fi
8113as_val=`eval 'as_val=${'$as_ac_Header'}
8114 $as_echo "$as_val"'`
8115 if test "x$as_val" = x""yes; then
f8a49389 8116 cat >>confdefs.h <<_ACEOF
0710d850 8117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
f8a49389
DS
8118_ACEOF
8119
8120else
8121 have_boost_headers="no"
8122fi
8123
8124done
8125
8126 ac_ext=c
8127ac_cpp='$CPP $CPPFLAGS'
8128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8130ac_compiler_gnu=$ac_cv_c_compiler_gnu
8131
e6364d79
MW
8132 if test "x${have_boost_headers}" == "xno" -a x"$enable_grapher" == "xyes"; then
8133 { $as_echo "$as_me:$LINENO: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&5
0710d850 8134$as_echo "$as_me: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&2;}
f8a49389
DS
8135fi
8136
e6364d79
MW
8137
8138 if test "x${have_gtkmm}${have_libglade}${have_boost_headers}" == "xyesyesyes"; then
f8a49389
DS
8139 have_grapher_reqs="yes"
8140else
8141 have_grapher_reqs="no"
8142fi
8143
e6364d79 8144
f8a49389 8145fi
e6364d79
MW
8146
8147if test "x${have_grapher_reqs}" == "xno" -a x"$enable_grapher" == "xyes"; then
8148 { { $as_echo "$as_me:$LINENO: error: systemtap cannot find grapher build requirements (gtkmm, libglade, and boost headers)" >&5
8149$as_echo "$as_me: error: systemtap cannot find grapher build requirements (gtkmm, libglade, and boost headers)" >&2;}
8150 { (exit 1); exit 1; }; }
f8a49389 8151fi
e6364d79 8152
f8a49389
DS
8153 if test "x${have_grapher_reqs}" == "xyes" -a x"$enable_grapher" != "xno"; then
8154 BUILD_GRAPHER_TRUE=
8155 BUILD_GRAPHER_FALSE='#'
8156else
8157 BUILD_GRAPHER_TRUE='#'
8158 BUILD_GRAPHER_FALSE=
8159fi
1087b83f
TM
8160
8161
2ed04863 8162
2ed04863
WC
8163
8164# Check whether --with-rpm was given.
e6364d79 8165if test "${with_rpm+set}" = set; then
2ed04863
WC
8166 withval=$with_rpm;
8167else
8168 with_rpm="auto"
8169fi
8170
bcfa72ed 8171if test "$with_rpm" != "no"; then
7f9ad862 8172 { $as_echo "$as_me:$LINENO: checking for rpmtsInitIterator in -lrpm" >&5
bcfa72ed
FCE
8173$as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; }
8174if test "${ac_cv_lib_rpm_rpmtsInitIterator+set}" = set; then
8175 $as_echo_n "(cached) " >&6
e6364d79 8176else
bcfa72ed
FCE
8177 ac_check_lib_save_LIBS=$LIBS
8178LIBS="-lrpm $LIBS"
8179cat >conftest.$ac_ext <<_ACEOF
e6364d79
MW
8180/* confdefs.h. */
8181_ACEOF
8182cat confdefs.h >>conftest.$ac_ext
8183cat >>conftest.$ac_ext <<_ACEOF
2ed04863
WC
8184/* end confdefs.h. */
8185
bcfa72ed
FCE
8186/* Override any GCC internal prototype to avoid an error.
8187 Use char because int might match the return type of a GCC
8188 builtin and then its argument prototype would still apply. */
8189#ifdef __cplusplus
8190extern "C"
8191#endif
8192char rpmtsInitIterator ();
2ed04863
WC
8193int
8194main ()
8195{
bcfa72ed 8196return rpmtsInitIterator ();
2ed04863
WC
8197 ;
8198 return 0;
8199}
8200_ACEOF
bcfa72ed 8201rm -f conftest.$ac_objext conftest$ac_exeext
e6364d79
MW
8202if { (ac_try="$ac_link"
8203case "(($ac_try" in
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8206esac
8207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8208$as_echo "$ac_try_echo") >&5
bcfa72ed 8209 (eval "$ac_link") 2>conftest.er1
e6364d79
MW
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
bcfa72ed
FCE
8218 } && test -s conftest$ac_exeext && {
8219 test "$cross_compiling" = yes ||
8220 $as_test_x conftest$ac_exeext
8221 }; then
8222 ac_cv_lib_rpm_rpmtsInitIterator=yes
2ed04863 8223else
e6364d79
MW
8224 $as_echo "$as_me: failed program was:" >&5
8225sed 's/^/| /' conftest.$ac_ext >&5
8226
bcfa72ed 8227 ac_cv_lib_rpm_rpmtsInitIterator=no
2ed04863 8228fi
2ed04863 8229
bcfa72ed
FCE
8230rm -rf conftest.dSYM
8231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8232 conftest$ac_exeext conftest.$ac_ext
8233LIBS=$ac_check_lib_save_LIBS
2ed04863 8234fi
bcfa72ed
FCE
8235{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
8236$as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
8237if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = x""yes; then
12c1a007
FCE
8238
8239
8240cat >>confdefs.h <<\_ACEOF
8241#define HAVE_LIBRPM 1
8242_ACEOF
8243
8244 stap_LIBS="$stap_LIBS -lrpm"
8245 have_librpm="yes"
7f9ad862
SC
8246else
8247 have_librpm="no"
2ed04863 8248fi
e6364d79 8249
bcfa72ed
FCE
8250 if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
8251 { { $as_echo "$as_me:$LINENO: error: cannot find librpm" >&5
8252$as_echo "$as_me: error: cannot find librpm" >&2;}
e6364d79 8253 { (exit 1); exit 1; }; }
2ed04863
WC
8254 fi
8255fi
8256
8257
e8f3c2c2
DS
8258build_elfutils=no
8259
7fbd9d09 8260# Check whether --with-elfutils was given.
e6364d79 8261if test "${with_elfutils+set}" = set; then
7fbd9d09 8262 withval=$with_elfutils;
e8f3c2c2 8263case "$with_elfutils" in
e6364d79
MW
8264yes) { { $as_echo "$as_me:$LINENO: error: --with-elfutils requires an argument" >&5
8265$as_echo "$as_me: error: --with-elfutils requires an argument" >&2;}
8266 { (exit 1); exit 1; }; } ;;
e8f3c2c2
DS
8267''|no) ;;
8268*) build_elfutils=yes ;;
8269esac
7fbd9d09 8270fi
e8f3c2c2 8271
7fbd9d09 8272 if test $build_elfutils = yes; then
e8f3c2c2
DS
8273 BUILD_ELFUTILS_TRUE=
8274 BUILD_ELFUTILS_FALSE='#'
8275else
8276 BUILD_ELFUTILS_TRUE='#'
8277 BUILD_ELFUTILS_FALSE=
8278fi
8279
e6364d79 8280elfutils_abs_srcdir=`if test $build_elfutils = yes; then
e8f3c2c2 8281 cd $with_elfutils && pwd
e6364d79
MW
8282fi
8283`
e8f3c2c2
DS
8284
8285
efa6ba96
PP
8286if test $enable_translator = yes; then
8287 if test $build_elfutils = no; then
8288 # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/
8289 save_LIBS="$LIBS"
e6364d79
MW
8290
8291{ $as_echo "$as_me:$LINENO: checking for dwfl_module_getsym in -ldw" >&5
0710d850 8292$as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
e6364d79 8293if test "${ac_cv_lib_dw_dwfl_module_getsym+set}" = set; then
0710d850 8294 $as_echo_n "(cached) " >&6
4645fadb
JS
8295else
8296 ac_check_lib_save_LIBS=$LIBS
8297LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS"
e6364d79
MW
8298cat >conftest.$ac_ext <<_ACEOF
8299/* confdefs.h. */
8300_ACEOF
8301cat confdefs.h >>conftest.$ac_ext
8302cat >>conftest.$ac_ext <<_ACEOF
4645fadb
JS
8303/* end confdefs.h. */
8304
7fbd9d09
FCE
8305/* Override any GCC internal prototype to avoid an error.
8306 Use char because int might match the return type of a GCC
8307 builtin and then its argument prototype would still apply. */
4645fadb
JS
8308#ifdef __cplusplus
8309extern "C"
8310#endif
8311char dwfl_module_getsym ();
8312int
8313main ()
8314{
7fbd9d09 8315return dwfl_module_getsym ();
4645fadb
JS
8316 ;
8317 return 0;
8318}
8319_ACEOF
e6364d79
MW
8320rm -f conftest.$ac_objext conftest$ac_exeext
8321if { (ac_try="$ac_link"
8322case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8325esac
8326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8327$as_echo "$ac_try_echo") >&5
8328 (eval "$ac_link") 2>conftest.er1
8329 ac_status=$?
8330 grep -v '^ *+' conftest.er1 >conftest.err
8331 rm -f conftest.er1
8332 cat conftest.err >&5
8333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && {
8335 test -z "$ac_c_werror_flag" ||
8336 test ! -s conftest.err
8337 } && test -s conftest$ac_exeext && {
8338 test "$cross_compiling" = yes ||
8339 $as_test_x conftest$ac_exeext
8340 }; then
4645fadb
JS
8341 ac_cv_lib_dw_dwfl_module_getsym=yes
8342else
e6364d79
MW
8343 $as_echo "$as_me: failed program was:" >&5
8344sed 's/^/| /' conftest.$ac_ext >&5
8345
8346 ac_cv_lib_dw_dwfl_module_getsym=no
4645fadb 8347fi
e6364d79
MW
8348
8349rm -rf conftest.dSYM
8350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8351 conftest$ac_exeext conftest.$ac_ext
4645fadb
JS
8352LIBS=$ac_check_lib_save_LIBS
8353fi
e6364d79 8354{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
0710d850 8355$as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
e6364d79 8356if test "x$ac_cv_lib_dw_dwfl_module_getsym" = x""yes; then
4645fadb
JS
8357 cat >>confdefs.h <<_ACEOF
8358#define HAVE_LIBDW 1
8359_ACEOF
8360
8361 LIBS="-ldw $LIBS"
8362
8363else
8364
efa6ba96 8365 { { $as_echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&5
e6364d79
MW
8366$as_echo "$as_me: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&2;}
8367 { (exit 1); exit 1; }; }
4645fadb
JS
8368fi
8369
e6364d79
MW
8370
8371{ $as_echo "$as_me:$LINENO: checking for dwarf_getelf in -ldw" >&5
0710d850 8372$as_echo_n "checking for dwarf_getelf in -ldw... " >&6; }
e6364d79 8373if test "${ac_cv_lib_dw_dwarf_getelf+set}" = set; then
0710d850 8374 $as_echo_n "(cached) " >&6
87cb1275
MW
8375else
8376 ac_check_lib_save_LIBS=$LIBS
8377LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS"
e6364d79
MW
8378cat >conftest.$ac_ext <<_ACEOF
8379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
87cb1275
MW
8383/* end confdefs.h. */
8384
7fbd9d09
FCE
8385/* Override any GCC internal prototype to avoid an error.
8386 Use char because int might match the return type of a GCC
8387 builtin and then its argument prototype would still apply. */
87cb1275
MW
8388#ifdef __cplusplus
8389extern "C"
8390#endif
8391char dwarf_getelf ();
8392int
8393main ()
8394{
7fbd9d09 8395return dwarf_getelf ();
87cb1275
MW
8396 ;
8397 return 0;
8398}
8399_ACEOF
e6364d79
MW
8400rm -f conftest.$ac_objext conftest$ac_exeext
8401if { (ac_try="$ac_link"
8402case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405esac
8406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8407$as_echo "$ac_try_echo") >&5
8408 (eval "$ac_link") 2>conftest.er1
8409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest$ac_exeext && {
8418 test "$cross_compiling" = yes ||
8419 $as_test_x conftest$ac_exeext
8420 }; then
87cb1275
MW
8421 ac_cv_lib_dw_dwarf_getelf=yes
8422else
e6364d79
MW
8423 $as_echo "$as_me: failed program was:" >&5
8424sed 's/^/| /' conftest.$ac_ext >&5
8425
8426 ac_cv_lib_dw_dwarf_getelf=no
87cb1275 8427fi
e6364d79
MW
8428
8429rm -rf conftest.dSYM
8430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8431 conftest$ac_exeext conftest.$ac_ext
87cb1275
MW
8432LIBS=$ac_check_lib_save_LIBS
8433fi
e6364d79 8434{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwarf_getelf" >&5
0710d850 8435$as_echo "$ac_cv_lib_dw_dwarf_getelf" >&6; }
e6364d79 8436if test "x$ac_cv_lib_dw_dwarf_getelf" = x""yes; then
87cb1275
MW
8437 cat >>confdefs.h <<_ACEOF
8438#define HAVE_LIBDW 1
8439_ACEOF
8440
8441 LIBS="-ldw $LIBS"
8442
8443else
8444
efa6ba96 8445 { { $as_echo "$as_me:$LINENO: error: elfutils, libdw too old, need 0.126+" >&5
e6364d79
MW
8446$as_echo "$as_me: error: elfutils, libdw too old, need 0.126+" >&2;}
8447 { (exit 1); exit 1; }; }
87cb1275
MW
8448fi
8449
12c1a007 8450 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
efa6ba96
PP
8451 LIBS="$save_LIBS"
8452 else
8453 # We built our own and stap_LDFLAGS points at the install.
12c1a007 8454 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
efa6ba96 8455 fi
4645fadb
JS
8456fi
8457
6b1a0274 8458
e6364d79 8459{ $as_echo "$as_me:$LINENO: stap will link $stap_LIBS" >&5
0710d850 8460$as_echo "$as_me: stap will link $stap_LIBS" >&6;}
c3a3c0c9 8461
69c68955
FCE
8462date=`date +%Y-%m-%d`
8463
8464cat >>confdefs.h <<_ACEOF
8465#define DATE "$date"
8466_ACEOF
8467
82fab474 8468DATE="$date"
69c68955
FCE
8469
8470
47f390f9
FCE
8471# Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
8472# being compiled on 32-bit userspace but running against 64-bit kernels.
8473# This is no longer necessary.
5566993b 8474
3bf6ac45 8475# Use tr1/unordered_map if available
7fbd9d09 8476ac_ext=cpp
3bf6ac45
TM
8477ac_cpp='$CXXCPP $CPPFLAGS'
8478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8481
e6364d79 8482
3bf6ac45 8483for ac_header in tr1/unordered_map
e6364d79
MW
8484do
8485as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8487 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8488$as_echo_n "checking for $ac_header... " >&6; }
8489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8490 $as_echo_n "(cached) " >&6
8491fi
8492ac_res=`eval 'as_val=${'$as_ac_Header'}
8493 $as_echo "$as_val"'`
8494 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8495$as_echo "$ac_res" >&6; }
8496else
8497 # Is the header compilable?
8498{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8499$as_echo_n "checking $ac_header usability... " >&6; }
8500cat >conftest.$ac_ext <<_ACEOF
8501/* confdefs.h. */
8502_ACEOF
8503cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */
8506$ac_includes_default
8507#include <$ac_header>
8508_ACEOF
8509rm -f conftest.$ac_objext
8510if { (ac_try="$ac_compile"
8511case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514esac
8515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8516$as_echo "$ac_try_echo") >&5
8517 (eval "$ac_compile") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_cxx_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest.$ac_objext; then
8527 ac_header_compiler=yes
8528else
8529 $as_echo "$as_me: failed program was:" >&5
8530sed 's/^/| /' conftest.$ac_ext >&5
8531
8532 ac_header_compiler=no
8533fi
8534
8535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8537$as_echo "$ac_header_compiler" >&6; }
8538
8539# Is the header present?
8540{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8541$as_echo_n "checking $ac_header presence... " >&6; }
8542cat >conftest.$ac_ext <<_ACEOF
8543/* confdefs.h. */
8544_ACEOF
8545cat confdefs.h >>conftest.$ac_ext
8546cat >>conftest.$ac_ext <<_ACEOF
8547/* end confdefs.h. */
8548#include <$ac_header>
8549_ACEOF
8550if { (ac_try="$ac_cpp conftest.$ac_ext"
8551case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8556$as_echo "$ac_try_echo") >&5
8557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8558 ac_status=$?
8559 grep -v '^ *+' conftest.er1 >conftest.err
8560 rm -f conftest.er1
8561 cat conftest.err >&5
8562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } >/dev/null && {
8564 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8565 test ! -s conftest.err
8566 }; then
8567 ac_header_preproc=yes
8568else
8569 $as_echo "$as_me: failed program was:" >&5
8570sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 ac_header_preproc=no
8573fi
8574
8575rm -f conftest.err conftest.$ac_ext
8576{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8577$as_echo "$ac_header_preproc" >&6; }
8578
8579# So? What about this header?
8580case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8581 yes:no: )
8582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8583$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8585$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8586 ac_header_preproc=yes
8587 ;;
8588 no:yes:* )
8589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8590$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8592$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8594$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8596$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8598$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8600$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8601 ( cat <<\_ASBOX
8602## ------------------------------------------- ##
8603## Report this to systemtap@sources.redhat.com ##
8604## ------------------------------------------- ##
8605_ASBOX
8606 ) | sed "s/^/$as_me: WARNING: /" >&2
8607 ;;
8608esac
8609{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8610$as_echo_n "checking for $ac_header... " >&6; }
8611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8612 $as_echo_n "(cached) " >&6
8613else
8614 eval "$as_ac_Header=\$ac_header_preproc"
8615fi
8616ac_res=`eval 'as_val=${'$as_ac_Header'}
8617 $as_echo "$as_val"'`
8618 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8619$as_echo "$ac_res" >&6; }
8620
8621fi
8622as_val=`eval 'as_val=${'$as_ac_Header'}
8623 $as_echo "$as_val"'`
8624 if test "x$as_val" = x""yes; then
469c1a1b 8625 cat >>confdefs.h <<_ACEOF
e6364d79 8626#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
469c1a1b
FCE
8627_ACEOF
8628
8629fi
8630
8631done
8632
e6364d79 8633
469c1a1b 8634for ac_header in tr1/memory
e6364d79
MW
8635do
8636as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8639$as_echo_n "checking for $ac_header... " >&6; }
8640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8641 $as_echo_n "(cached) " >&6
8642fi
8643ac_res=`eval 'as_val=${'$as_ac_Header'}
8644 $as_echo "$as_val"'`
8645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8646$as_echo "$ac_res" >&6; }
8647else
8648 # Is the header compilable?
8649{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8650$as_echo_n "checking $ac_header usability... " >&6; }
8651cat >conftest.$ac_ext <<_ACEOF
8652/* confdefs.h. */
8653_ACEOF
8654cat confdefs.h >>conftest.$ac_ext
8655cat >>conftest.$ac_ext <<_ACEOF
8656/* end confdefs.h. */
8657$ac_includes_default
8658#include <$ac_header>
8659_ACEOF
8660rm -f conftest.$ac_objext
8661if { (ac_try="$ac_compile"
8662case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665esac
8666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667$as_echo "$ac_try_echo") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8669 ac_status=$?
8670 grep -v '^ *+' conftest.er1 >conftest.err
8671 rm -f conftest.er1
8672 cat conftest.err >&5
8673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_cxx_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8678 ac_header_compiler=yes
8679else
8680 $as_echo "$as_me: failed program was:" >&5
8681sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 ac_header_compiler=no
8684fi
8685
8686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8688$as_echo "$ac_header_compiler" >&6; }
8689
8690# Is the header present?
8691{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8692$as_echo_n "checking $ac_header presence... " >&6; }
8693cat >conftest.$ac_ext <<_ACEOF
8694/* confdefs.h. */
8695_ACEOF
8696cat confdefs.h >>conftest.$ac_ext
8697cat >>conftest.$ac_ext <<_ACEOF
8698/* end confdefs.h. */
8699#include <$ac_header>
8700_ACEOF
8701if { (ac_try="$ac_cpp conftest.$ac_ext"
8702case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705esac
8706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8707$as_echo "$ac_try_echo") >&5
8708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8709 ac_status=$?
8710 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1
8712 cat conftest.err >&5
8713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } >/dev/null && {
8715 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8716 test ! -s conftest.err
8717 }; then
8718 ac_header_preproc=yes
8719else
8720 $as_echo "$as_me: failed program was:" >&5
8721sed 's/^/| /' conftest.$ac_ext >&5
8722
8723 ac_header_preproc=no
8724fi
8725
8726rm -f conftest.err conftest.$ac_ext
8727{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8728$as_echo "$ac_header_preproc" >&6; }
8729
8730# So? What about this header?
8731case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8732 yes:no: )
8733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8734$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8736$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8737 ac_header_preproc=yes
8738 ;;
8739 no:yes:* )
8740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8741$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8743$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8745$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8747$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8749$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8751$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8752 ( cat <<\_ASBOX
8753## ------------------------------------------- ##
8754## Report this to systemtap@sources.redhat.com ##
8755## ------------------------------------------- ##
8756_ASBOX
8757 ) | sed "s/^/$as_me: WARNING: /" >&2
8758 ;;
8759esac
8760{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8761$as_echo_n "checking for $ac_header... " >&6; }
8762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8763 $as_echo_n "(cached) " >&6
8764else
8765 eval "$as_ac_Header=\$ac_header_preproc"
8766fi
8767ac_res=`eval 'as_val=${'$as_ac_Header'}
8768 $as_echo "$as_val"'`
8769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8770$as_echo "$ac_res" >&6; }
8771
8772fi
8773as_val=`eval 'as_val=${'$as_ac_Header'}
8774 $as_echo "$as_val"'`
8775 if test "x$as_val" = x""yes; then
469c1a1b 8776 cat >>confdefs.h <<_ACEOF
e6364d79 8777#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
469c1a1b
FCE
8778_ACEOF
8779
8780fi
8781
8782done
8783
e6364d79 8784
469c1a1b 8785for ac_header in boost/shared_ptr.hpp
e6364d79
MW
8786do
8787as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8789 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8790$as_echo_n "checking for $ac_header... " >&6; }
8791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8792 $as_echo_n "(cached) " >&6
8793fi
8794ac_res=`eval 'as_val=${'$as_ac_Header'}
8795 $as_echo "$as_val"'`
8796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8797$as_echo "$ac_res" >&6; }
8798else
8799 # Is the header compilable?
8800{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8801$as_echo_n "checking $ac_header usability... " >&6; }
8802cat >conftest.$ac_ext <<_ACEOF
8803/* confdefs.h. */
8804_ACEOF
8805cat confdefs.h >>conftest.$ac_ext
8806cat >>conftest.$ac_ext <<_ACEOF
8807/* end confdefs.h. */
8808$ac_includes_default
8809#include <$ac_header>
8810_ACEOF
8811rm -f conftest.$ac_objext
8812if { (ac_try="$ac_compile"
8813case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8816esac
8817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8818$as_echo "$ac_try_echo") >&5
8819 (eval "$ac_compile") 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } && {
8826 test -z "$ac_cxx_werror_flag" ||
8827 test ! -s conftest.err
8828 } && test -s conftest.$ac_objext; then
8829 ac_header_compiler=yes
8830else
8831 $as_echo "$as_me: failed program was:" >&5
8832sed 's/^/| /' conftest.$ac_ext >&5
8833
8834 ac_header_compiler=no
8835fi
8836
8837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8839$as_echo "$ac_header_compiler" >&6; }
8840
8841# Is the header present?
8842{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8843$as_echo_n "checking $ac_header presence... " >&6; }
8844cat >conftest.$ac_ext <<_ACEOF
8845/* confdefs.h. */
8846_ACEOF
8847cat confdefs.h >>conftest.$ac_ext
8848cat >>conftest.$ac_ext <<_ACEOF
8849/* end confdefs.h. */
8850#include <$ac_header>
8851_ACEOF
8852if { (ac_try="$ac_cpp conftest.$ac_ext"
8853case "(($ac_try" in
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8856esac
8857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8858$as_echo "$ac_try_echo") >&5
8859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8860 ac_status=$?
8861 grep -v '^ *+' conftest.er1 >conftest.err
8862 rm -f conftest.er1
8863 cat conftest.err >&5
8864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } >/dev/null && {
8866 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8867 test ! -s conftest.err
8868 }; then
8869 ac_header_preproc=yes
8870else
8871 $as_echo "$as_me: failed program was:" >&5
8872sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 ac_header_preproc=no
8875fi
8876
8877rm -f conftest.err conftest.$ac_ext
8878{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8879$as_echo "$ac_header_preproc" >&6; }
8880
8881# So? What about this header?
8882case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8883 yes:no: )
8884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8885$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8887$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8888 ac_header_preproc=yes
8889 ;;
8890 no:yes:* )
8891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8892$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8894$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8896$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8898$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8900$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8902$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8903 ( cat <<\_ASBOX
8904## ------------------------------------------- ##
8905## Report this to systemtap@sources.redhat.com ##
8906## ------------------------------------------- ##
8907_ASBOX
8908 ) | sed "s/^/$as_me: WARNING: /" >&2
8909 ;;
8910esac
8911{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8912$as_echo_n "checking for $ac_header... " >&6; }
8913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8914 $as_echo_n "(cached) " >&6
8915else
8916 eval "$as_ac_Header=\$ac_header_preproc"
8917fi
8918ac_res=`eval 'as_val=${'$as_ac_Header'}
8919 $as_echo "$as_val"'`
8920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8921$as_echo "$ac_res" >&6; }
8922
8923fi
8924as_val=`eval 'as_val=${'$as_ac_Header'}
8925 $as_echo "$as_val"'`
8926 if test "x$as_val" = x""yes; then
3bf6ac45 8927 cat >>confdefs.h <<_ACEOF
e6364d79 8928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3bf6ac45
TM
8929_ACEOF
8930
8931fi
8932
8933done
8934
8935ac_ext=c
8936ac_cpp='$CPP $CPPFLAGS'
8937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8939ac_compiler_gnu=$ac_cv_c_compiler_gnu
8940
8941
e016a49a 8942
efa6ba96 8943if test $build_elfutils = yes -a $enable_translator = yes; then
e016a49a
FCE
8944 case "$with_elfutils" in
8945 /*) elfutils_srcdir="$with_elfutils" ;;
8946 *) elfutils_srcdir="../$with_elfutils" ;;
8947 esac
e6364d79 8948 { $as_echo "$as_me:$LINENO: running ${elfutils_srcdir}/configure" >&5
0710d850 8949$as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
29b694a7
DS
8950
8951 save_CFLAGS="$CFLAGS"
8952 save_CXXFLAGS="$CXXFLAGS"
8953 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
8954 CFLAGS="$CFLAGS -fgnu89-inline"
8955 gnu89_inline_flag=""
e6364d79 8956 cat >conftest.$ac_ext <<_ACEOF
29b694a7
DS
8957int something ();
8958_ACEOF
e6364d79
MW
8959rm -f conftest.$ac_objext
8960if { (ac_try="$ac_compile"
8961case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964esac
8965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8966$as_echo "$ac_try_echo") >&5
8967 (eval "$ac_compile") 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } && {
8974 test -z "$ac_c_werror_flag" ||
8975 test ! -s conftest.err
8976 } && test -s conftest.$ac_objext; then
29b694a7 8977
e6364d79 8978 { $as_echo "$as_me:$LINENO: Compiling elfutils with gcc -fgnu89-inline" >&5
0710d850 8979$as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
29b694a7
DS
8980 gnu89_inline_flag="-fgnu89-inline"
8981else
e6364d79
MW
8982 $as_echo "$as_me: failed program was:" >&5
8983sed 's/^/| /' conftest.$ac_ext >&5
8984
29b694a7 8985
e6364d79 8986 { $as_echo "$as_me:$LINENO: Compiler does not support -fgnu89-inline" >&5
0710d850 8987$as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
29b694a7 8988fi
e6364d79 8989
29b694a7
DS
8990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 CFLAGS="$save_CFLAGS"
8992 CXXFLAGS="$save_CXXFLAGS"
8993
e016a49a
FCE
8994 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
8995 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
8996 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
8997 # So we must make sure to pass those settings to elfutils configure.
8998 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
8999 here=`pwd`
9000 (mkdir -p build-elfutils && cd build-elfutils &&
412e1bf7 9001 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
e016a49a
FCE
9002 --includedir="${here}/include-elfutils" \
9003 --libdir="${here}/lib-elfutils" \
9004 --exec-prefix="$exec_prefix" \
9005 --prefix="$prefix" \
29b694a7 9006 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag" \
e016a49a 9007 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
e3633556
MW
9008 if test -f ${elfutils_srcdir}/config/version.h.in; then
9009 echo Trying to install elfutils version header...
9010 make install-pkgincludeHEADERS
9011 fi
9012 # so that elfutils/version.h - available from 0.138 - may be found.
93f86457 9013 # Don't use install-data because that will fail (installing in $prefix).
e016a49a 9014 )
93f86457 9015 if test $? != 0; then exit; fi
1c4cf93d
MW
9016 save_CPPFLAGS=${CPPFLAGS}
9017 CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils
e6364d79
MW
9018
9019for ac_header in elfutils/version.h
9020do
9021as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9024$as_echo_n "checking for $ac_header... " >&6; }
9025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9026 $as_echo_n "(cached) " >&6
9027fi
9028ac_res=`eval 'as_val=${'$as_ac_Header'}
9029 $as_echo "$as_val"'`
9030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9031$as_echo "$ac_res" >&6; }
9032else
9033 # Is the header compilable?
9034{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9035$as_echo_n "checking $ac_header usability... " >&6; }
9036cat >conftest.$ac_ext <<_ACEOF
9037/* confdefs.h. */
9038_ACEOF
9039cat confdefs.h >>conftest.$ac_ext
9040cat >>conftest.$ac_ext <<_ACEOF
9041/* end confdefs.h. */
9042$ac_includes_default
9043#include <$ac_header>
9044_ACEOF
9045rm -f conftest.$ac_objext
9046if { (ac_try="$ac_compile"
9047case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9050esac
9051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9052$as_echo "$ac_try_echo") >&5
9053 (eval "$ac_compile") 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && {
9060 test -z "$ac_c_werror_flag" ||
9061 test ! -s conftest.err
9062 } && test -s conftest.$ac_objext; then
9063 ac_header_compiler=yes
9064else
9065 $as_echo "$as_me: failed program was:" >&5
9066sed 's/^/| /' conftest.$ac_ext >&5
9067
9068 ac_header_compiler=no
9069fi
9070
9071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9073$as_echo "$ac_header_compiler" >&6; }
9074
9075# Is the header present?
9076{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9077$as_echo_n "checking $ac_header presence... " >&6; }
9078cat >conftest.$ac_ext <<_ACEOF
9079/* confdefs.h. */
9080_ACEOF
9081cat confdefs.h >>conftest.$ac_ext
9082cat >>conftest.$ac_ext <<_ACEOF
9083/* end confdefs.h. */
9084#include <$ac_header>
9085_ACEOF
9086if { (ac_try="$ac_cpp conftest.$ac_ext"
9087case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090esac
9091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9092$as_echo "$ac_try_echo") >&5
9093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9094 ac_status=$?
9095 grep -v '^ *+' conftest.er1 >conftest.err
9096 rm -f conftest.er1
9097 cat conftest.err >&5
9098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } >/dev/null && {
9100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9101 test ! -s conftest.err
9102 }; then
9103 ac_header_preproc=yes
9104else
9105 $as_echo "$as_me: failed program was:" >&5
9106sed 's/^/| /' conftest.$ac_ext >&5
9107
9108 ac_header_preproc=no
9109fi
9110
9111rm -f conftest.err conftest.$ac_ext
9112{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9113$as_echo "$ac_header_preproc" >&6; }
9114
9115# So? What about this header?
9116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9117 yes:no: )
9118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9119$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9121$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9122 ac_header_preproc=yes
9123 ;;
9124 no:yes:* )
9125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9126$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9128$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9130$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9132$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9134$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9136$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9137 ( cat <<\_ASBOX
9138## ------------------------------------------- ##
9139## Report this to systemtap@sources.redhat.com ##
9140## ------------------------------------------- ##
9141_ASBOX
9142 ) | sed "s/^/$as_me: WARNING: /" >&2
9143 ;;
9144esac
9145{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9146$as_echo_n "checking for $ac_header... " >&6; }
9147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9148 $as_echo_n "(cached) " >&6
9149else
9150 eval "$as_ac_Header=\$ac_header_preproc"
9151fi
9152ac_res=`eval 'as_val=${'$as_ac_Header'}
9153 $as_echo "$as_val"'`
9154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9155$as_echo "$ac_res" >&6; }
9156
9157fi
9158as_val=`eval 'as_val=${'$as_ac_Header'}
9159 $as_echo "$as_val"'`
9160 if test "x$as_val" = x""yes; then
1c4cf93d 9161 cat >>confdefs.h <<_ACEOF
e6364d79 9162#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1c4cf93d
MW
9163_ACEOF
9164
9165fi
9166
9167done
9168
9169 CPPFLAGS="$save_CPPFLAGS"
4b5627b1 9170else
e6364d79
MW
9171
9172for ac_header in elfutils/version.h
9173do
9174as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9176 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9177$as_echo_n "checking for $ac_header... " >&6; }
9178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9179 $as_echo_n "(cached) " >&6
9180fi
9181ac_res=`eval 'as_val=${'$as_ac_Header'}
9182 $as_echo "$as_val"'`
9183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9184$as_echo "$ac_res" >&6; }
9185else
9186 # Is the header compilable?
9187{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9188$as_echo_n "checking $ac_header usability... " >&6; }
9189cat >conftest.$ac_ext <<_ACEOF
9190/* confdefs.h. */
9191_ACEOF
9192cat confdefs.h >>conftest.$ac_ext
9193cat >>conftest.$ac_ext <<_ACEOF
9194/* end confdefs.h. */
9195$ac_includes_default
9196#include <$ac_header>
9197_ACEOF
9198rm -f conftest.$ac_objext
9199if { (ac_try="$ac_compile"
9200case "(($ac_try" in
9201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202 *) ac_try_echo=$ac_try;;
9203esac
9204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9205$as_echo "$ac_try_echo") >&5
9206 (eval "$ac_compile") 2>conftest.er1
9207 ac_status=$?
9208 grep -v '^ *+' conftest.er1 >conftest.err
9209 rm -f conftest.er1
9210 cat conftest.err >&5
9211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } && {
9213 test -z "$ac_c_werror_flag" ||
9214 test ! -s conftest.err
9215 } && test -s conftest.$ac_objext; then
9216 ac_header_compiler=yes
9217else
9218 $as_echo "$as_me: failed program was:" >&5
9219sed 's/^/| /' conftest.$ac_ext >&5
9220
9221 ac_header_compiler=no
9222fi
9223
9224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9225{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9226$as_echo "$ac_header_compiler" >&6; }
9227
9228# Is the header present?
9229{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9230$as_echo_n "checking $ac_header presence... " >&6; }
9231cat >conftest.$ac_ext <<_ACEOF
9232/* confdefs.h. */
9233_ACEOF
9234cat confdefs.h >>conftest.$ac_ext
9235cat >>conftest.$ac_ext <<_ACEOF
9236/* end confdefs.h. */
9237#include <$ac_header>
9238_ACEOF
9239if { (ac_try="$ac_cpp conftest.$ac_ext"
9240case "(($ac_try" in
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9243esac
9244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9245$as_echo "$ac_try_echo") >&5
9246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } >/dev/null && {
9253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 }; then
9256 ac_header_preproc=yes
9257else
9258 $as_echo "$as_me: failed program was:" >&5
9259sed 's/^/| /' conftest.$ac_ext >&5
9260
9261 ac_header_preproc=no
9262fi
9263
9264rm -f conftest.err conftest.$ac_ext
9265{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9266$as_echo "$ac_header_preproc" >&6; }
9267
9268# So? What about this header?
9269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9270 yes:no: )
9271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9272$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9274$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9275 ac_header_preproc=yes
9276 ;;
9277 no:yes:* )
9278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9279$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9281$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9283$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9285$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9287$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9289$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9290 ( cat <<\_ASBOX
9291## ------------------------------------------- ##
9292## Report this to systemtap@sources.redhat.com ##
9293## ------------------------------------------- ##
9294_ASBOX
9295 ) | sed "s/^/$as_me: WARNING: /" >&2
9296 ;;
9297esac
9298{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9299$as_echo_n "checking for $ac_header... " >&6; }
9300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9301 $as_echo_n "(cached) " >&6
9302else
9303 eval "$as_ac_Header=\$ac_header_preproc"
9304fi
9305ac_res=`eval 'as_val=${'$as_ac_Header'}
9306 $as_echo "$as_val"'`
9307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9308$as_echo "$ac_res" >&6; }
9309
9310fi
9311as_val=`eval 'as_val=${'$as_ac_Header'}
9312 $as_echo "$as_val"'`
9313 if test "x$as_val" = x""yes; then
e016a49a 9314 cat >>confdefs.h <<_ACEOF
e6364d79 9315#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
e016a49a
FCE
9316_ACEOF
9317
9318fi
9319
9320done
9321
1c4cf93d 9322fi
e016a49a 9323
2a1c9b5d
FCE
9324stap_prefix=$prefix
9325test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
50431f30
MW
9326
9327cat >>confdefs.h <<_ACEOF
2a1c9b5d 9328#define STAP_PREFIX "$stap_prefix"
50431f30
MW
9329_ACEOF
9330
9331
7fbd9d09 9332ac_config_headers="$ac_config_headers config.h:config.in"
daae650d 9333
c24a9d9a 9334ac_config_files="$ac_config_files Makefile doc/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile grapher/Makefile grapher/stapgraph.1 stap.1 stapprobes.3stap stapfuncs.3stap stapvars.3stap stapex.3stap staprun.8 stap-client.8 stap-server.8 stap-authorize-server-cert.8 stap-authorize-signing-cert.8 initscript/systemtap initscript/stap-server dtrace.1"
8d9d8fe1 9335
0710d850
DS
9336
9337
1087b83f 9338subdirs="$subdirs testsuite"
5ba96b90 9339
6d14a4a9
EB
9340if test $enable_translator == "yes"; then
9341 ac_config_files="$ac_config_files run-stap"
2f62657c 9342
6d14a4a9 9343fi
65ffc3f3 9344ac_config_files="$ac_config_files run-staprun"
3c960a7c 9345
e4aaabda
MW
9346ac_config_files="$ac_config_files dtrace"
9347
53ade4da
MW
9348
9349# Setup "shadow" directory doc/beginners that has everything setup for
9350# publican in one directory (through directory links if necessary).
9351# It would be nice to use AC_CONFIG_LINKS, but automake complains when
9352# the src is a directory and not a file.
9353ac_config_files="$ac_config_files doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in"
9354
9355ac_config_commands="$ac_config_commands doc/beginners"
9356
9357
2f1a1aea
FCE
9358cat >confcache <<\_ACEOF
9359# This file is a shell script that caches the results of configure
9360# tests run on this system so they can be shared between configure
9361# scripts and configure runs, see configure's option --config-cache.
9362# It is not useful on other systems. If it contains results you don't
9363# want to keep, you may remove or edit it.
9364#
9365# config.status only pays attention to the cache file if you give it
9366# the --recheck option to rerun configure.
9367#
9368# `ac_cv_env_foo' variables (set or unset) will be overridden when
9369# loading this file, other *unset* `ac_cv_foo' will be assigned the
9370# following values.
9371
9372_ACEOF
9373
9374# The following way of writing the cache mishandles newlines in values,
9375# but we know of no workaround that is simple, portable, and efficient.
7fbd9d09 9376# So, we kill variables containing newlines.
2f1a1aea
FCE
9377# Ultrix sh set writes to stderr and can't be redirected directly,
9378# and sets the high bit in the cache file unless we assign to the vars.
7fbd9d09
FCE
9379(
9380 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9381 eval ac_val=\$$ac_var
9382 case $ac_val in #(
9383 *${as_nl}*)
9384 case $ac_var in #(
e6364d79 9385 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
0710d850 9386$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7fbd9d09
FCE
9387 esac
9388 case $ac_var in #(
9389 _ | IFS | as_nl) ;; #(
0710d850 9390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
e6364d79 9391 *) $as_unset $ac_var ;;
7fbd9d09
FCE
9392 esac ;;
9393 esac
9394 done
9395
2f1a1aea 9396 (set) 2>&1 |
7fbd9d09
FCE
9397 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9398 *${as_nl}ac_space=\ *)
e6364d79
MW
9399 # `set' does not quote correctly, so add quotes (double-quote
9400 # substitution turns \\\\ into \\, and sed turns \\ into \).
2f1a1aea
FCE
9401 sed -n \
9402 "s/'/'\\\\''/g;
9403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7fbd9d09 9404 ;; #(
2f1a1aea
FCE
9405 *)
9406 # `set' quotes correctly as required by POSIX, so do not add quotes.
7fbd9d09 9407 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2f1a1aea 9408 ;;
7fbd9d09
FCE
9409 esac |
9410 sort
9411) |
2f1a1aea 9412 sed '
7fbd9d09 9413 /^ac_cv_env_/b end
2f1a1aea 9414 t clear
7fbd9d09 9415 :clear
2f1a1aea
FCE
9416 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9417 t end
7fbd9d09
FCE
9418 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9419 :end' >>confcache
9420if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9421 if test -w "$cache_file"; then
9422 test "x$cache_file" != "x/dev/null" &&
e6364d79 9423 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
0710d850 9424$as_echo "$as_me: updating cache $cache_file" >&6;}
2f1a1aea
FCE
9425 cat confcache >$cache_file
9426 else
e6364d79 9427 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
0710d850 9428$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2f1a1aea
FCE
9429 fi
9430fi
9431rm -f confcache
9432
9433test "x$prefix" = xNONE && prefix=$ac_default_prefix
9434# Let make expand exec_prefix.
9435test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9436
2f1a1aea
FCE
9437DEFS=-DHAVE_CONFIG_H
9438
9439ac_libobjs=
9440ac_ltlibobjs=
9441for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9442 # 1. Remove the extension, and $U if already installed.
7fbd9d09 9443 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
0710d850 9444 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7fbd9d09
FCE
9445 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9446 # will be set to the directory where LIBOBJS objects are built.
e6364d79
MW
9447 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9448 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2f1a1aea
FCE
9449done
9450LIBOBJS=$ac_libobjs
9451
9452LTLIBOBJS=$ac_ltlibobjs
9453
9454
0710d850
DS
9455 if test -n "$EXEEXT"; then
9456 am__EXEEXT_TRUE=
9457 am__EXEEXT_FALSE='#'
9458else
9459 am__EXEEXT_TRUE='#'
9460 am__EXEEXT_FALSE=
9461fi
9462
2f1a1aea 9463if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
e6364d79
MW
9464 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9465Usually this means the macro was only invoked conditionally." >&5
9466$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9467Usually this means the macro was only invoked conditionally." >&2;}
9468 { (exit 1); exit 1; }; }
2f1a1aea
FCE
9469fi
9470if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
e6364d79
MW
9471 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9472Usually this means the macro was only invoked conditionally." >&5
9473$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
9474Usually this means the macro was only invoked conditionally." >&2;}
9475 { (exit 1); exit 1; }; }
2f1a1aea
FCE
9476fi
9477if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
e6364d79
MW
9478 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9479Usually this means the macro was only invoked conditionally." >&5
9480$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9481Usually this means the macro was only invoked conditionally." >&2;}
9482 { (exit 1); exit 1; }; }
2f1a1aea
FCE
9483fi
9484if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
e6364d79
MW
9485 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9486Usually this means the macro was only invoked conditionally." >&5
9487$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9488Usually this means the macro was only invoked conditionally." >&2;}
9489 { (exit 1); exit 1; }; }
2f1a1aea
FCE
9490fi
9491if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
e6364d79
MW
9492 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9493Usually this means the macro was only invoked conditionally." >&5
9494$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9495Usually this means the macro was only invoked conditionally." >&2;}
9496 { (exit 1); exit 1; }; }
2f1a1aea 9497fi
6d14a4a9 9498if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
e6364d79
MW
9499 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TRANSLATOR\" was never defined.
9500Usually this means the macro was only invoked conditionally." >&5
9501$as_echo "$as_me: error: conditional \"BUILD_TRANSLATOR\" was never defined.
9502Usually this means the macro was only invoked conditionally." >&2;}
9503 { (exit 1); exit 1; }; }
6d14a4a9 9504fi
e8f3c2c2 9505if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
e6364d79
MW
9506 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_CRASHMOD\" was never defined.
9507Usually this means the macro was only invoked conditionally." >&5
9508$as_echo "$as_me: error: conditional \"BUILD_CRASHMOD\" was never defined.
9509Usually this means the macro was only invoked conditionally." >&2;}
9510 { (exit 1); exit 1; }; }
4d9087fc 9511fi
465e8fbf 9512if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
e6364d79
MW
9513 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
9514Usually this means the macro was only invoked conditionally." >&5
9515$as_echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
9516Usually this means the macro was only invoked conditionally." >&2;}
9517 { (exit 1); exit 1; }; }
92aff3c7 9518fi
53ade4da 9519if test -z "${BUILD_PUBLICAN_TRUE}" && test -z "${BUILD_PUBLICAN_FALSE}"; then
e6364d79
MW
9520 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PUBLICAN\" was never defined.
9521Usually this means the macro was only invoked conditionally." >&5
9522$as_echo "$as_me: error: conditional \"BUILD_PUBLICAN\" was never defined.
9523Usually this means the macro was only invoked conditionally." >&2;}
9524 { (exit 1); exit 1; }; }
53ade4da 9525fi
92aff3c7 9526if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
e6364d79
MW
9527 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_REFDOCS\" was never defined.
9528Usually this means the macro was only invoked conditionally." >&5
9529$as_echo "$as_me: error: conditional \"BUILD_REFDOCS\" was never defined.
9530Usually this means the macro was only invoked conditionally." >&2;}
9531 { (exit 1); exit 1; }; }
468abaf4
FCE
9532fi
9533if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
e6364d79
MW
9534 { { $as_echo "$as_me:$LINENO: error: conditional \"XMLTO_STRINGPARAM\" was never defined.
9535Usually this means the macro was only invoked conditionally." >&5
9536$as_echo "$as_me: error: conditional \"XMLTO_STRINGPARAM\" was never defined.
9537Usually this means the macro was only invoked conditionally." >&2;}
9538 { (exit 1); exit 1; }; }
19a0d4b6 9539fi
ccf8bc85 9540if test -z "${BUILD_PDFREFDOCS_TRUE}" && test -z "${BUILD_PDFREFDOCS_FALSE}"; then
e6364d79
MW
9541 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFREFDOCS\" was never defined.
9542Usually this means the macro was only invoked conditionally." >&5
9543$as_echo "$as_me: error: conditional \"BUILD_PDFREFDOCS\" was never defined.
9544Usually this means the macro was only invoked conditionally." >&2;}
9545 { (exit 1); exit 1; }; }
ccf8bc85 9546fi
19a0d4b6 9547if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
e6364d79
MW
9548 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SERVER\" was never defined.
9549Usually this means the macro was only invoked conditionally." >&5
9550$as_echo "$as_me: error: conditional \"BUILD_SERVER\" was never defined.
9551Usually this means the macro was only invoked conditionally." >&2;}
9552 { (exit 1); exit 1; }; }
2035bcd4
DB
9553fi
9554if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
e6364d79
MW
9555 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NSS\" was never defined.
9556Usually this means the macro was only invoked conditionally." >&5
9557$as_echo "$as_me: error: conditional \"HAVE_NSS\" was never defined.
9558Usually this means the macro was only invoked conditionally." >&2;}
9559 { (exit 1); exit 1; }; }
465e8fbf 9560fi
1087b83f 9561if test -z "${BUILD_GRAPHER_TRUE}" && test -z "${BUILD_GRAPHER_FALSE}"; then
e6364d79
MW
9562 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GRAPHER\" was never defined.
9563Usually this means the macro was only invoked conditionally." >&5
9564$as_echo "$as_me: error: conditional \"BUILD_GRAPHER\" was never defined.
9565Usually this means the macro was only invoked conditionally." >&2;}
9566 { (exit 1); exit 1; }; }
1087b83f 9567fi
e8f3c2c2 9568if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
e6364d79
MW
9569 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ELFUTILS\" was never defined.
9570Usually this means the macro was only invoked conditionally." >&5
9571$as_echo "$as_me: error: conditional \"BUILD_ELFUTILS\" was never defined.
9572Usually this means the macro was only invoked conditionally." >&2;}
9573 { (exit 1); exit 1; }; }
35a04c8e 9574fi
2f1a1aea
FCE
9575
9576: ${CONFIG_STATUS=./config.status}
0710d850 9577ac_write_fail=0
2f1a1aea
FCE
9578ac_clean_files_save=$ac_clean_files
9579ac_clean_files="$ac_clean_files $CONFIG_STATUS"
e6364d79 9580{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
0710d850 9581$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
e6364d79 9582cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea
FCE
9583#! $SHELL
9584# Generated by $as_me.
9585# Run this file to recreate the current configuration.
9586# Compiler output produced by configure, useful for debugging
9587# configure, is in config.log if it exists.
9588
9589debug=false
9590ac_cs_recheck=false
9591ac_cs_silent=false
4b5627b1 9592SHELL=\${CONFIG_SHELL-$SHELL}
e6364d79
MW
9593_ACEOF
9594
9595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9596## --------------------- ##
9597## M4sh Initialization. ##
9598## --------------------- ##
2f1a1aea 9599
7fbd9d09
FCE
9600# Be more Bourne compatible
9601DUALCASE=1; export DUALCASE # for MKS sh
e6364d79 9602if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2f1a1aea
FCE
9603 emulate sh
9604 NULLCMD=:
0710d850 9605 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2f1a1aea
FCE
9606 # is contrary to our usage. Disable this feature.
9607 alias -g '${1+"$@"}'='"$@"'
7fbd9d09 9608 setopt NO_GLOB_SUBST
4a3c19da 9609else
e6364d79
MW
9610 case `(set -o) 2>/dev/null` in
9611 *posix*) set -o posix ;;
4a3c19da 9612esac
e6364d79 9613
4a3c19da
EM
9614fi
9615
7fbd9d09 9616
e6364d79
MW
9617
9618
9619# PATH needs CR
9620# Avoid depending upon Character Ranges.
9621as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9622as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9623as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9624as_cr_digits='0123456789'
9625as_cr_alnum=$as_cr_Letters$as_cr_digits
9626
0710d850
DS
9627as_nl='
9628'
9629export as_nl
9630# Printing a long string crashes Solaris 7 /usr/bin/printf.
9631as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9632as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9633as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
e6364d79 9634if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
0710d850
DS
9635 as_echo='printf %s\n'
9636 as_echo_n='printf %s'
9637else
9638 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9639 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9640 as_echo_n='/usr/ucb/echo -n'
31f9baea 9641 else
0710d850
DS
9642 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9643 as_echo_n_body='eval
9644 arg=$1;
e6364d79 9645 case $arg in
0710d850
DS
9646 *"$as_nl"*)
9647 expr "X$arg" : "X\\(.*\\)$as_nl";
9648 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9649 esac;
9650 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9651 '
9652 export as_echo_n_body
9653 as_echo_n='sh -c $as_echo_n_body as_echo'
31f9baea 9654 fi
0710d850
DS
9655 export as_echo_body
9656 as_echo='sh -c $as_echo_body as_echo'
9657fi
9658
9659# The user is always right.
9660if test "${PATH_SEPARATOR+set}" != set; then
9661 PATH_SEPARATOR=:
9662 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9663 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9664 PATH_SEPARATOR=';'
9665 }
7fbd9d09
FCE
9666fi
9667
e6364d79
MW
9668# Support unset when possible.
9669if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9670 as_unset=unset
9671else
9672 as_unset=false
9673fi
9674
7fbd9d09
FCE
9675
9676# IFS
9677# We need space, tab and new line, in precisely that order. Quoting is
9678# there to prevent editors from complaining about space-tab.
9679# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9680# splitting by setting IFS to empty value.)
7fbd9d09
FCE
9681IFS=" "" $as_nl"
9682
9683# Find who we are. Look in the path if we contain no directory separator.
e6364d79 9684case $0 in
7fbd9d09
FCE
9685 *[\\/]* ) as_myself=$0 ;;
9686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687for as_dir in $PATH
9688do
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
e6364d79
MW
9691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9692done
7fbd9d09
FCE
9693IFS=$as_save_IFS
9694
9695 ;;
9696esac
9697# We did not find ourselves, most probably we were run as `sh COMMAND'
9698# in which case we are not to be found in the path.
9699if test "x$as_myself" = x; then
9700 as_myself=$0
9701fi
9702if test ! -f "$as_myself"; then
0710d850 9703 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
e6364d79 9704 { (exit 1); exit 1; }
7fbd9d09
FCE
9705fi
9706
e6364d79
MW
9707# Work around bugs in pre-3.0 UWIN ksh.
9708for as_var in ENV MAIL MAILPATH
9709do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7fbd9d09
FCE
9710done
9711PS1='$ '
2f1a1aea
FCE
9712PS2='> '
9713PS4='+ '
9714
9715# NLS nuisances.
0710d850
DS
9716LC_ALL=C
9717export LC_ALL
9718LANGUAGE=C
9719export LANGUAGE
2f1a1aea 9720
e6364d79 9721# Required to use basename.
7fbd9d09
FCE
9722if expr a : '\(a\)' >/dev/null 2>&1 &&
9723 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2f1a1aea
FCE
9724 as_expr=expr
9725else
9726 as_expr=false
9727fi
9728
7fbd9d09 9729if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2f1a1aea
FCE
9730 as_basename=basename
9731else
9732 as_basename=false
9733fi
9734
9735
e6364d79 9736# Name of the executable.
7fbd9d09 9737as_me=`$as_basename -- "$0" ||
2f1a1aea
FCE
9738$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9739 X"$0" : 'X\(//\)$' \| \
7fbd9d09 9740 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 9741$as_echo X/"$0" |
7fbd9d09
FCE
9742 sed '/^.*\/\([^/][^/]*\)\/*$/{
9743 s//\1/
9744 q
9745 }
9746 /^X\/\(\/\/\)$/{
9747 s//\1/
9748 q
9749 }
9750 /^X\/\(\/\).*/{
9751 s//\1/
9752 q
9753 }
9754 s/.*/./; q'`
8ae7a94a 9755
e6364d79
MW
9756# CDPATH.
9757$as_unset CDPATH
9758
9759
9760
9761 as_lineno_1=$LINENO
9762 as_lineno_2=$LINENO
9763 test "x$as_lineno_1" != "x$as_lineno_2" &&
9764 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9765
9766 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9767 # uniformly replaced by the line number. The first 'sed' inserts a
9768 # line-number line after each line using $LINENO; the second 'sed'
9769 # does the real work. The second script uses 'N' to pair each
9770 # line-number line with the line containing $LINENO, and appends
9771 # trailing '-' during substitution so that $LINENO is not a special
9772 # case at line end.
9773 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9774 # scripts with optimization help from Paolo Bonzini. Blame Lee
9775 # E. McMahon (1931-1989) for sed's syntax. :-)
9776 sed -n '
9777 p
9778 /[$]LINENO/=
9779 ' <$as_myself |
9780 sed '
9781 s/[$]LINENO.*/&-/
9782 t lineno
9783 b
9784 :lineno
9785 N
9786 :loop
9787 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9788 t loop
9789 s/-\n.*//
9790 ' >$as_me.lineno &&
9791 chmod +x "$as_me.lineno" ||
9792 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9793 { (exit 1); exit 1; }; }
9794
9795 # Don't try to exec as it changes $[0], causing all sort of problems
9796 # (the dirname of $[0] is not the place where we might find the
9797 # original and so on. Autoconf is especially sensitive to this).
9798 . "./$as_me.lineno"
9799 # Exit status is that of the last command.
9800 exit
9801}
9802
9803
9804if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9805 as_dirname=dirname
9806else
9807 as_dirname=false
9808fi
7fbd9d09
FCE
9809
9810ECHO_C= ECHO_N= ECHO_T=
e6364d79 9811case `echo -n x` in
7fbd9d09 9812-n*)
e6364d79 9813 case `echo 'x\c'` in
7fbd9d09 9814 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
e6364d79 9815 *) ECHO_C='\c';;
7fbd9d09
FCE
9816 esac;;
9817*)
9818 ECHO_N='-n';;
2f1a1aea 9819esac
e6364d79
MW
9820if expr a : '\(a\)' >/dev/null 2>&1 &&
9821 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9822 as_expr=expr
9823else
9824 as_expr=false
9825fi
2f1a1aea
FCE
9826
9827rm -f conf$$ conf$$.exe conf$$.file
7fbd9d09
FCE
9828if test -d conf$$.dir; then
9829 rm -f conf$$.dir/conf$$.file
9830else
9831 rm -f conf$$.dir
0710d850
DS
9832 mkdir conf$$.dir 2>/dev/null
9833fi
9834if (echo >conf$$.file) 2>/dev/null; then
9835 if ln -s conf$$.file conf$$ 2>/dev/null; then
9836 as_ln_s='ln -s'
9837 # ... but there are two gotchas:
9838 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9839 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9840 # In both cases, we have to default to `cp -p'.
9841 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9842 as_ln_s='cp -p'
9843 elif ln conf$$.file conf$$ 2>/dev/null; then
9844 as_ln_s=ln
9845 else
2f1a1aea 9846 as_ln_s='cp -p'
0710d850 9847 fi
2f1a1aea
FCE
9848else
9849 as_ln_s='cp -p'
9850fi
7fbd9d09
FCE
9851rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9852rmdir conf$$.dir 2>/dev/null
2f1a1aea
FCE
9853
9854if mkdir -p . 2>/dev/null; then
e6364d79 9855 as_mkdir_p=:
2f1a1aea
FCE
9856else
9857 test -d ./-p && rmdir ./-p
9858 as_mkdir_p=false
9859fi
9860
7fbd9d09
FCE
9861if test -x / >/dev/null 2>&1; then
9862 as_test_x='test -x'
9863else
9864 if ls -dL / >/dev/null 2>&1; then
9865 as_ls_L_option=L
9866 else
9867 as_ls_L_option=
9868 fi
9869 as_test_x='
9870 eval sh -c '\''
9871 if test -d "$1"; then
0710d850 9872 test -d "$1/.";
7fbd9d09 9873 else
e6364d79 9874 case $1 in
0710d850 9875 -*)set "./$1";;
7fbd9d09 9876 esac;
e6364d79 9877 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7fbd9d09
FCE
9878 ???[sx]*):;;*)false;;esac;fi
9879 '\'' sh
9880 '
9881fi
9882as_executable_p=$as_test_x
2f1a1aea
FCE
9883
9884# Sed expression to map a string onto a valid CPP name.
9885as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9886
9887# Sed expression to map a string onto a valid variable name.
9888as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9889
9890
2f1a1aea
FCE
9891exec 6>&1
9892
e6364d79 9893# Save the log message, to keep $[0] and so on meaningful, and to
2f1a1aea 9894# report actual input values of CONFIG_FILES etc. instead of their
7fbd9d09
FCE
9895# values after options handling.
9896ac_log="
e36ba31a 9897This file was extended by systemtap $as_me 1.2, which was
e6364d79 9898generated by GNU Autoconf 2.63. Invocation command line was
2f1a1aea
FCE
9899
9900 CONFIG_FILES = $CONFIG_FILES
9901 CONFIG_HEADERS = $CONFIG_HEADERS
9902 CONFIG_LINKS = $CONFIG_LINKS
9903 CONFIG_COMMANDS = $CONFIG_COMMANDS
9904 $ $0 $@
9905
7fbd9d09
FCE
9906on `(hostname || uname -n) 2>/dev/null | sed 1q`
9907"
9908
2f1a1aea
FCE
9909_ACEOF
9910
0710d850
DS
9911case $ac_config_files in *"
9912"*) set x $ac_config_files; shift; ac_config_files=$*;;
9913esac
9914
9915case $ac_config_headers in *"
9916"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9917esac
9918
9919
9920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
818ba2bc 9921# Files that config.status was made for.
7fbd9d09
FCE
9922config_files="$ac_config_files"
9923config_headers="$ac_config_headers"
9924config_commands="$ac_config_commands"
daae650d 9925
7fbd9d09 9926_ACEOF
8ae7a94a 9927
0710d850 9928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2f1a1aea 9929ac_cs_usage="\
e6364d79
MW
9930\`$as_me' instantiates files from templates according to the
9931current configuration.
2f1a1aea 9932
e6364d79 9933Usage: $0 [OPTION]... [FILE]...
2f1a1aea
FCE
9934
9935 -h, --help print this help, then exit
7fbd9d09 9936 -V, --version print version number and configuration settings, then exit
0710d850
DS
9937 -q, --quiet, --silent
9938 do not print progress messages
2f1a1aea
FCE
9939 -d, --debug don't remove temporary files
9940 --recheck update $as_me by reconfiguring in the same conditions
0710d850
DS
9941 --file=FILE[:TEMPLATE]
9942 instantiate the configuration file FILE
9943 --header=FILE[:TEMPLATE]
9944 instantiate the configuration header FILE
2f1a1aea
FCE
9945
9946Configuration files:
9947$config_files
9948
9949Configuration headers:
9950$config_headers
9951
9952Configuration commands:
9953$config_commands
9954
e6364d79 9955Report bugs to <bug-autoconf@gnu.org>."
818ba2bc 9956
7fbd9d09 9957_ACEOF
0710d850 9958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 9959ac_cs_version="\\
e36ba31a 9960systemtap config.status 1.2
e6364d79
MW
9961configured by $0, generated by GNU Autoconf 2.63,
9962 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2f1a1aea 9963
e6364d79 9964Copyright (C) 2008 Free Software Foundation, Inc.
2f1a1aea
FCE
9965This config.status script is free software; the Free Software Foundation
9966gives unlimited permission to copy, distribute and modify it."
7fbd9d09
FCE
9967
9968ac_pwd='$ac_pwd'
9969srcdir='$srcdir'
9970INSTALL='$INSTALL'
9971MKDIR_P='$MKDIR_P'
0710d850
DS
9972AWK='$AWK'
9973test -n "\$AWK" || AWK=awk
2f1a1aea
FCE
9974_ACEOF
9975
0710d850
DS
9976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9977# The default lists apply if the user does not specify any file.
2f1a1aea
FCE
9978ac_need_defaults=:
9979while test $# != 0
9980do
9981 case $1 in
9982 --*=*)
7fbd9d09
FCE
9983 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9984 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2f1a1aea
FCE
9985 ac_shift=:
9986 ;;
7fbd9d09 9987 *)
2f1a1aea
FCE
9988 ac_option=$1
9989 ac_optarg=$2
9990 ac_shift=shift
9991 ;;
2f1a1aea
FCE
9992 esac
9993
9994 case $ac_option in
9995 # Handling of the options.
2f1a1aea
FCE
9996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9997 ac_cs_recheck=: ;;
7fbd9d09 9998 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
0710d850 9999 $as_echo "$ac_cs_version"; exit ;;
7fbd9d09 10000 --debug | --debu | --deb | --de | --d | -d )
2f1a1aea
FCE
10001 debug=: ;;
10002 --file | --fil | --fi | --f )
10003 $ac_shift
0710d850
DS
10004 case $ac_optarg in
10005 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10006 esac
e6364d79 10007 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
2f1a1aea
FCE
10008 ac_need_defaults=false;;
10009 --header | --heade | --head | --hea )
10010 $ac_shift
0710d850
DS
10011 case $ac_optarg in
10012 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10013 esac
e6364d79 10014 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
2f1a1aea 10015 ac_need_defaults=false;;
7fbd9d09
FCE
10016 --he | --h)
10017 # Conflict between --help and --header
e6364d79
MW
10018 { $as_echo "$as_me: error: ambiguous option: $1
10019Try \`$0 --help' for more information." >&2
10020 { (exit 1); exit 1; }; };;
7fbd9d09 10021 --help | --hel | -h )
0710d850 10022 $as_echo "$ac_cs_usage"; exit ;;
2f1a1aea
FCE
10023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10024 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10025 ac_cs_silent=: ;;
10026
10027 # This is an error.
e6364d79
MW
10028 -*) { $as_echo "$as_me: error: unrecognized option: $1
10029Try \`$0 --help' for more information." >&2
10030 { (exit 1); exit 1; }; } ;;
2f1a1aea 10031
e6364d79 10032 *) ac_config_targets="$ac_config_targets $1"
7fbd9d09 10033 ac_need_defaults=false ;;
2f1a1aea
FCE
10034
10035 esac
10036 shift
10037done
10038
10039ac_configure_extra_args=
10040
10041if $ac_cs_silent; then
10042 exec 6>/dev/null
10043 ac_configure_extra_args="$ac_configure_extra_args --silent"
10044fi
10045
10046_ACEOF
0710d850 10047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 10048if \$ac_cs_recheck; then
0710d850
DS
10049 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10050 shift
10051 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10052 CONFIG_SHELL='$SHELL'
7fbd9d09 10053 export CONFIG_SHELL
0710d850 10054 exec "\$@"
2f1a1aea
FCE
10055fi
10056
10057_ACEOF
0710d850 10058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
10059exec 5>>config.log
10060{
10061 echo
10062 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10063## Running $as_me. ##
10064_ASBOX
0710d850 10065 $as_echo "$ac_log"
7fbd9d09 10066} >&5
2f1a1aea 10067
7fbd9d09 10068_ACEOF
0710d850 10069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 10070#
7fbd9d09 10071# INIT-COMMANDS
2f1a1aea 10072#
2f1a1aea
FCE
10073AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10074
10075_ACEOF
10076
0710d850 10077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
10078
10079# Handling of arguments.
2f1a1aea
FCE
10080for ac_config_target in $ac_config_targets
10081do
7fbd9d09
FCE
10082 case $ac_config_target in
10083 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10084 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10085 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10086 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
53ade4da 10087 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
7fbd9d09 10088 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
1087b83f 10089 "grapher/Makefile") CONFIG_FILES="$CONFIG_FILES grapher/Makefile" ;;
9ed28fbc 10090 "grapher/stapgraph.1") CONFIG_FILES="$CONFIG_FILES grapher/stapgraph.1" ;;
7fbd9d09 10091 "stap.1") CONFIG_FILES="$CONFIG_FILES stap.1" ;;
e97c0b29
WC
10092 "stapprobes.3stap") CONFIG_FILES="$CONFIG_FILES stapprobes.3stap" ;;
10093 "stapfuncs.3stap") CONFIG_FILES="$CONFIG_FILES stapfuncs.3stap" ;;
10094 "stapvars.3stap") CONFIG_FILES="$CONFIG_FILES stapvars.3stap" ;;
10095 "stapex.3stap") CONFIG_FILES="$CONFIG_FILES stapex.3stap" ;;
7fbd9d09 10096 "staprun.8") CONFIG_FILES="$CONFIG_FILES staprun.8" ;;
31f9baea 10097 "stap-client.8") CONFIG_FILES="$CONFIG_FILES stap-client.8" ;;
7fbd9d09 10098 "stap-server.8") CONFIG_FILES="$CONFIG_FILES stap-server.8" ;;
31f9baea
DB
10099 "stap-authorize-server-cert.8") CONFIG_FILES="$CONFIG_FILES stap-authorize-server-cert.8" ;;
10100 "stap-authorize-signing-cert.8") CONFIG_FILES="$CONFIG_FILES stap-authorize-signing-cert.8" ;;
7fbd9d09 10101 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
2f78bee0 10102 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
4e6d866f 10103 "dtrace.1") CONFIG_FILES="$CONFIG_FILES dtrace.1" ;;
7fbd9d09 10104 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
65ffc3f3 10105 "run-staprun") CONFIG_FILES="$CONFIG_FILES run-staprun" ;;
e4aaabda 10106 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
53ade4da
MW
10107 "doc/beginners/publican.cfg") CONFIG_FILES="$CONFIG_FILES doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in" ;;
10108 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
7fbd9d09 10109
e6364d79
MW
10110 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10111$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10112 { (exit 1); exit 1; }; };;
2f1a1aea
FCE
10113 esac
10114done
10115
7fbd9d09 10116
2f1a1aea
FCE
10117# If the user did not use the arguments to specify the items to instantiate,
10118# then the envvar interface is used. Set only those that are not.
10119# We use the long form for the default assignment because of an extremely
10120# bizarre bug on SunOS 4.1.3.
10121if $ac_need_defaults; then
10122 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10123 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10124 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10125fi
10126
10127# Have a temporary directory for convenience. Make it in the build tree
7fbd9d09 10128# simply because there is no reason against having it here, and in addition,
2f1a1aea 10129# creating and moving files from /tmp can sometimes cause problems.
7fbd9d09
FCE
10130# Hook for its removal unless debugging.
10131# Note that there is a small window in which the directory will not be cleaned:
10132# after its creation but before its name has been assigned to `$tmp'.
2f1a1aea
FCE
10133$debug ||
10134{
7fbd9d09
FCE
10135 tmp=
10136 trap 'exit_status=$?
10137 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10138' 0
e6364d79 10139 trap '{ (exit 1); exit 1; }' 1 2 13 15
2f1a1aea 10140}
2f1a1aea
FCE
10141# Create a (secure) tmp directory for tmp files.
10142
10143{
7fbd9d09 10144 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2f1a1aea
FCE
10145 test -n "$tmp" && test -d "$tmp"
10146} ||
10147{
7fbd9d09
FCE
10148 tmp=./conf$$-$RANDOM
10149 (umask 077 && mkdir "$tmp")
e6364d79
MW
10150} ||
10151{
10152 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10153 { (exit 1); exit 1; }
10154}
2f1a1aea 10155
0710d850
DS
10156# Set up the scripts for CONFIG_FILES section.
10157# No need to generate them if there are no CONFIG_FILES.
10158# This happens for instance with `./config.status config.h'.
7fbd9d09
FCE
10159if test -n "$CONFIG_FILES"; then
10160
31f9baea 10161
e6364d79 10162ac_cr='\r'
0710d850
DS
10163ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10164if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
e6364d79 10165 ac_cs_awk_cr='\\r'
0710d850
DS
10166else
10167 ac_cs_awk_cr=$ac_cr
7fbd9d09 10168fi
5e0d2ebf 10169
0710d850 10170echo 'BEGIN {' >"$tmp/subs1.awk" &&
7fbd9d09
FCE
10171_ACEOF
10172
10173
0710d850
DS
10174{
10175 echo "cat >conf$$subs.awk <<_ACEOF" &&
10176 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10177 echo "_ACEOF"
10178} >conf$$subs.sh ||
e6364d79
MW
10179 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10180$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10181 { (exit 1); exit 1; }; }
0710d850 10182ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7fbd9d09
FCE
10183ac_delim='%!_!# '
10184for ac_last_try in false false false false false :; do
0710d850 10185 . ./conf$$subs.sh ||
e6364d79
MW
10186 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10187$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10188 { (exit 1); exit 1; }; }
0710d850
DS
10189
10190 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10191 if test $ac_delim_n = $ac_delim_num; then
7fbd9d09
FCE
10192 break
10193 elif $ac_last_try; then
e6364d79
MW
10194 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10195$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10196 { (exit 1); exit 1; }; }
7fbd9d09
FCE
10197 else
10198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10199 fi
10200done
0710d850
DS
10201rm -f conf$$subs.sh
10202
10203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10204cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10205_ACEOF
10206sed -n '
10207h
10208s/^/S["/; s/!.*/"]=/
10209p
10210g
10211s/^[^!]*!//
10212:repl
10213t repl
10214s/'"$ac_delim"'$//
10215t delim
10216:nl
10217h
e6364d79 10218s/\(.\{148\}\).*/\1/
0710d850
DS
10219t more1
10220s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10221p
10222n
10223b repl
10224:more1
10225s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10226p
10227g
10228s/.\{148\}//
10229t nl
10230:delim
10231h
e6364d79 10232s/\(.\{148\}\).*/\1/
0710d850
DS
10233t more2
10234s/["\\]/\\&/g; s/^/"/; s/$/"/
10235p
10236b
10237:more2
10238s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10239p
10240g
10241s/.\{148\}//
10242t delim
10243' <conf$$subs.awk | sed '
10244/^[^""]/{
10245 N
10246 s/\n//
10247}
10248' >>$CONFIG_STATUS || ac_write_fail=1
10249rm -f conf$$subs.awk
10250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10251_ACAWK
10252cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10253 for (key in S) S_is_set[key] = 1
10254 FS = "\a"
7fbd9d09 10255
0710d850
DS
10256}
10257{
10258 line = $ 0
10259 nfields = split(line, field, "@")
10260 substed = 0
10261 len = length(field[1])
10262 for (i = 2; i < nfields; i++) {
10263 key = field[i]
10264 keylen = length(key)
10265 if (S_is_set[key]) {
10266 value = S[key]
10267 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10268 len += length(value) + length(field[++i])
10269 substed = 1
10270 } else
10271 len += 1 + keylen
10272 }
10273
10274 print line
10275}
7fbd9d09 10276
0710d850 10277_ACAWK
7fbd9d09 10278_ACEOF
0710d850
DS
10279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10280if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10281 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10282else
10283 cat
10284fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
e6364d79
MW
10285 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10286$as_echo "$as_me: error: could not setup config files machinery" >&2;}
10287 { (exit 1); exit 1; }; }
7fbd9d09
FCE
10288_ACEOF
10289
7fbd9d09
FCE
10290# VPATH may cause trouble with some makes, so we remove $(srcdir),
10291# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10292# trailing colons and then remove the whole line if VPATH becomes empty
10293# (actually we leave an empty line to preserve line numbers).
10294if test "x$srcdir" = x.; then
10295 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10296s/:*\$(srcdir):*/:/
10297s/:*\${srcdir}:*/:/
10298s/:*@srcdir@:*/:/
10299s/^\([^=]*=[ ]*\):*/\1/
10300s/:*$//
10301s/^[^=]*=[ ]*$//
10302}'
10303fi
10304
0710d850 10305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
10306fi # test -n "$CONFIG_FILES"
10307
0710d850
DS
10308# Set up the scripts for CONFIG_HEADERS section.
10309# No need to generate them if there are no CONFIG_HEADERS.
10310# This happens for instance with `./config.status Makefile'.
10311if test -n "$CONFIG_HEADERS"; then
10312cat >"$tmp/defines.awk" <<\_ACAWK ||
10313BEGIN {
10314_ACEOF
10315
10316# Transform confdefs.h into an awk script `defines.awk', embedded as
10317# here-document in config.status, that substitutes the proper values into
10318# config.h.in to produce config.h.
10319
10320# Create a delimiter string that does not exist in confdefs.h, to ease
10321# handling of long lines.
10322ac_delim='%!_!# '
10323for ac_last_try in false false :; do
10324 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10325 if test -z "$ac_t"; then
10326 break
10327 elif $ac_last_try; then
e6364d79
MW
10328 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10329$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10330 { (exit 1); exit 1; }; }
0710d850
DS
10331 else
10332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10333 fi
10334done
10335
10336# For the awk script, D is an array of macro values keyed by name,
10337# likewise P contains macro parameters if any. Preserve backslash
10338# newline sequences.
10339
10340ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10341sed -n '
10342s/.\{148\}/&'"$ac_delim"'/g
10343t rset
10344:rset
10345s/^[ ]*#[ ]*define[ ][ ]*/ /
10346t def
10347d
10348:def
10349s/\\$//
10350t bsnl
10351s/["\\]/\\&/g
10352s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10353D["\1"]=" \3"/p
10354s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10355d
10356:bsnl
10357s/["\\]/\\&/g
10358s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10359D["\1"]=" \3\\\\\\n"\\/p
10360t cont
10361s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10362t cont
10363d
10364:cont
10365n
10366s/.\{148\}/&'"$ac_delim"'/g
10367t clear
10368:clear
10369s/\\$//
10370t bsnlc
10371s/["\\]/\\&/g; s/^/"/; s/$/"/p
10372d
10373:bsnlc
10374s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10375b cont
10376' <confdefs.h | sed '
10377s/'"$ac_delim"'/"\\\
10378"/g' >>$CONFIG_STATUS || ac_write_fail=1
10379
10380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10381 for (key in D) D_is_set[key] = 1
10382 FS = "\a"
10383}
10384/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10385 line = \$ 0
10386 split(line, arg, " ")
10387 if (arg[1] == "#") {
10388 defundef = arg[2]
10389 mac1 = arg[3]
10390 } else {
10391 defundef = substr(arg[1], 2)
10392 mac1 = arg[2]
10393 }
10394 split(mac1, mac2, "(") #)
10395 macro = mac2[1]
10396 prefix = substr(line, 1, index(line, defundef) - 1)
10397 if (D_is_set[macro]) {
10398 # Preserve the white space surrounding the "#".
10399 print prefix "define", macro P[macro] D[macro]
10400 next
10401 } else {
10402 # Replace #undef with comments. This is necessary, for example,
10403 # in the case of _POSIX_SOURCE, which is predefined and required
10404 # on some systems where configure will not decide to define it.
10405 if (defundef == "undef") {
10406 print "/*", prefix defundef, macro, "*/"
10407 next
10408 }
10409 }
10410}
10411{ print }
10412_ACAWK
10413_ACEOF
10414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e6364d79
MW
10415 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10416$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10417 { (exit 1); exit 1; }; }
0710d850
DS
10418fi # test -n "$CONFIG_HEADERS"
10419
27aba29a 10420
0710d850
DS
10421eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10422shift
10423for ac_tag
7fbd9d09
FCE
10424do
10425 case $ac_tag in
10426 :[FHLC]) ac_mode=$ac_tag; continue;;
2f1a1aea 10427 esac
7fbd9d09
FCE
10428 case $ac_mode$ac_tag in
10429 :[FHL]*:*);;
e6364d79
MW
10430 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10431$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10432 { (exit 1); exit 1; }; };;
7fbd9d09
FCE
10433 :[FH]-) ac_tag=-:-;;
10434 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10435 esac
10436 ac_save_IFS=$IFS
10437 IFS=:
10438 set x $ac_tag
10439 IFS=$ac_save_IFS
10440 shift
10441 ac_file=$1
10442 shift
2f1a1aea 10443
7fbd9d09
FCE
10444 case $ac_mode in
10445 :L) ac_source=$1;;
10446 :[FH])
10447 ac_file_inputs=
10448 for ac_f
10449 do
10450 case $ac_f in
10451 -) ac_f="$tmp/stdin";;
10452 *) # Look for the file first in the build tree, then in the source tree
10453 # (if the path is not absolute). The absolute path cannot be DOS-style,
10454 # because $ac_f cannot contain `:'.
10455 test -f "$ac_f" ||
10456 case $ac_f in
10457 [\\/$]*) false;;
10458 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10459 esac ||
e6364d79
MW
10460 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10461$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10462 { (exit 1); exit 1; }; };;
7fbd9d09 10463 esac
0710d850 10464 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
e6364d79 10465 ac_file_inputs="$ac_file_inputs '$ac_f'"
7fbd9d09
FCE
10466 done
10467
10468 # Let's still pretend it is `configure' which instantiates (i.e., don't
10469 # use $as_me), people would be surprised to read:
10470 # /* config.h. Generated by config.status. */
0710d850
DS
10471 configure_input='Generated from '`
10472 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10473 `' by configure.'
7fbd9d09
FCE
10474 if test x"$ac_file" != x-; then
10475 configure_input="$ac_file. $configure_input"
e6364d79 10476 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
0710d850 10477$as_echo "$as_me: creating $ac_file" >&6;}
7fbd9d09 10478 fi
0710d850
DS
10479 # Neutralize special characters interpreted by sed in replacement strings.
10480 case $configure_input in #(
10481 *\&* | *\|* | *\\* )
10482 ac_sed_conf_input=`$as_echo "$configure_input" |
10483 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10484 *) ac_sed_conf_input=$configure_input;;
10485 esac
7fbd9d09
FCE
10486
10487 case $ac_tag in
0710d850 10488 *:-:* | *:-) cat >"$tmp/stdin" \
e6364d79
MW
10489 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10490$as_echo "$as_me: error: could not create $ac_file" >&2;}
10491 { (exit 1); exit 1; }; } ;;
7fbd9d09
FCE
10492 esac
10493 ;;
10494 esac
10495
10496 ac_dir=`$as_dirname -- "$ac_file" ||
2f1a1aea
FCE
10497$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10498 X"$ac_file" : 'X\(//\)[^/]' \| \
10499 X"$ac_file" : 'X\(//\)$' \| \
7fbd9d09 10500 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 10501$as_echo X"$ac_file" |
7fbd9d09
FCE
10502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10503 s//\1/
10504 q
10505 }
10506 /^X\(\/\/\)[^/].*/{
10507 s//\1/
10508 q
10509 }
10510 /^X\(\/\/\)$/{
10511 s//\1/
10512 q
10513 }
10514 /^X\(\/\).*/{
10515 s//\1/
10516 q
10517 }
10518 s/.*/./; q'`
e6364d79
MW
10519 { as_dir="$ac_dir"
10520 case $as_dir in #(
10521 -*) as_dir=./$as_dir;;
10522 esac
10523 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10524 as_dirs=
10525 while :; do
10526 case $as_dir in #(
10527 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10528 *) as_qdir=$as_dir;;
10529 esac
10530 as_dirs="'$as_qdir' $as_dirs"
10531 as_dir=`$as_dirname -- "$as_dir" ||
10532$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10533 X"$as_dir" : 'X\(//\)[^/]' \| \
10534 X"$as_dir" : 'X\(//\)$' \| \
10535 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10536$as_echo X"$as_dir" |
10537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10538 s//\1/
10539 q
10540 }
10541 /^X\(\/\/\)[^/].*/{
10542 s//\1/
10543 q
10544 }
10545 /^X\(\/\/\)$/{
10546 s//\1/
10547 q
10548 }
10549 /^X\(\/\).*/{
10550 s//\1/
10551 q
10552 }
10553 s/.*/./; q'`
10554 test -d "$as_dir" && break
10555 done
10556 test -z "$as_dirs" || eval "mkdir $as_dirs"
10557 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10558$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10559 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
10560 ac_builddir=.
10561
7fbd9d09
FCE
10562case "$ac_dir" in
10563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10564*)
0710d850 10565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 10566 # A ".." for each directory in $ac_dir_suffix.
0710d850 10567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
10568 case $ac_top_builddir_sub in
10569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10571 esac ;;
10572esac
10573ac_abs_top_builddir=$ac_pwd
10574ac_abs_builddir=$ac_pwd$ac_dir_suffix
10575# for backward compatibility:
10576ac_top_builddir=$ac_top_build_prefix
2f1a1aea
FCE
10577
10578case $srcdir in
7fbd9d09 10579 .) # We are building in place.
2f1a1aea 10580 ac_srcdir=.
7fbd9d09
FCE
10581 ac_top_srcdir=$ac_top_builddir_sub
10582 ac_abs_top_srcdir=$ac_pwd ;;
10583 [\\/]* | ?:[\\/]* ) # Absolute name.
2f1a1aea 10584 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
10585 ac_top_srcdir=$srcdir
10586 ac_abs_top_srcdir=$srcdir ;;
10587 *) # Relative name.
10588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10589 ac_top_srcdir=$ac_top_build_prefix$srcdir
10590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2f1a1aea 10591esac
7fbd9d09 10592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2f1a1aea 10593
2f1a1aea 10594
7fbd9d09
FCE
10595 case $ac_mode in
10596 :F)
10597 #
10598 # CONFIG_FILE
10599 #
2f1a1aea
FCE
10600
10601 case $INSTALL in
10602 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7fbd9d09
FCE
10603 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10604 esac
10605 ac_MKDIR_P=$MKDIR_P
10606 case $MKDIR_P in
10607 [\\/$]* | ?:[\\/]* ) ;;
10608 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5e0d2ebf 10609 esac
7fbd9d09 10610_ACEOF
5e0d2ebf 10611
0710d850 10612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
10613# If the template does not know about datarootdir, expand it.
10614# FIXME: This hack should be removed a few years after 2.60.
10615ac_datarootdir_hack=; ac_datarootdir_seen=
e6364d79 10616
0710d850
DS
10617ac_sed_dataroot='
10618/datarootdir/ {
7fbd9d09
FCE
10619 p
10620 q
10621}
10622/@datadir@/p
10623/@docdir@/p
10624/@infodir@/p
10625/@localedir@/p
e6364d79
MW
10626/@mandir@/p
10627'
0710d850 10628case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7fbd9d09
FCE
10629*datarootdir*) ac_datarootdir_seen=yes;;
10630*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
e6364d79 10631 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
0710d850 10632$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7fbd9d09 10633_ACEOF
0710d850 10634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7fbd9d09
FCE
10635 ac_datarootdir_hack='
10636 s&@datadir@&$datadir&g
10637 s&@docdir@&$docdir&g
10638 s&@infodir@&$infodir&g
10639 s&@localedir@&$localedir&g
10640 s&@mandir@&$mandir&g
e6364d79 10641 s&\\\${datarootdir}&$datarootdir&g' ;;
7fbd9d09 10642esac
70d28673 10643_ACEOF
7fbd9d09
FCE
10644
10645# Neutralize VPATH when `$srcdir' = `.'.
10646# Shell code in configure.ac might set extrasub.
10647# FIXME: do we really want to maintain this feature?
0710d850
DS
10648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10649ac_sed_extra="$ac_vpsub
2f1a1aea
FCE
10650$extrasub
10651_ACEOF
0710d850 10652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2f1a1aea
FCE
10653:t
10654/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
0710d850 10655s|@configure_input@|$ac_sed_conf_input|;t t
7fbd9d09 10656s&@top_builddir@&$ac_top_builddir_sub&;t t
0710d850 10657s&@top_build_prefix@&$ac_top_build_prefix&;t t
7fbd9d09
FCE
10658s&@srcdir@&$ac_srcdir&;t t
10659s&@abs_srcdir@&$ac_abs_srcdir&;t t
10660s&@top_srcdir@&$ac_top_srcdir&;t t
10661s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10662s&@builddir@&$ac_builddir&;t t
10663s&@abs_builddir@&$ac_abs_builddir&;t t
10664s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10665s&@INSTALL@&$ac_INSTALL&;t t
10666s&@MKDIR_P@&$ac_MKDIR_P&;t t
10667$ac_datarootdir_hack
0710d850
DS
10668"
10669eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
e6364d79
MW
10670 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10671$as_echo "$as_me: error: could not create $ac_file" >&2;}
10672 { (exit 1); exit 1; }; }
7fbd9d09
FCE
10673
10674test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10675 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10676 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
e6364d79 10677 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7fbd9d09 10678which seems to be undefined. Please make sure it is defined." >&5
0710d850 10679$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7fbd9d09
FCE
10680which seems to be undefined. Please make sure it is defined." >&2;}
10681
10682 rm -f "$tmp/stdin"
818ba2bc 10683 case $ac_file in
0710d850
DS
10684 -) cat "$tmp/out" && rm -f "$tmp/out";;
10685 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10686 esac \
e6364d79
MW
10687 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10688$as_echo "$as_me: error: could not create $ac_file" >&2;}
10689 { (exit 1); exit 1; }; }
7fbd9d09
FCE
10690 ;;
10691 :H)
10692 #
10693 # CONFIG_HEADER
10694 #
818ba2bc 10695 if test x"$ac_file" != x-; then
0710d850
DS
10696 {
10697 $as_echo "/* $configure_input */" \
10698 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10699 } >"$tmp/config.h" \
e6364d79
MW
10700 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10701$as_echo "$as_me: error: could not create $ac_file" >&2;}
10702 { (exit 1); exit 1; }; }
0710d850 10703 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
e6364d79 10704 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
0710d850 10705$as_echo "$as_me: $ac_file is unchanged" >&6;}
2f1a1aea 10706 else
0710d850
DS
10707 rm -f "$ac_file"
10708 mv "$tmp/config.h" "$ac_file" \
e6364d79
MW
10709 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10710$as_echo "$as_me: error: could not create $ac_file" >&2;}
10711 { (exit 1); exit 1; }; }
2f1a1aea
FCE
10712 fi
10713 else
0710d850
DS
10714 $as_echo "/* $configure_input */" \
10715 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
e6364d79
MW
10716 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10717$as_echo "$as_me: error: could not create -" >&2;}
10718 { (exit 1); exit 1; }; }
2f1a1aea 10719 fi
0710d850
DS
10720# Compute "$ac_file"'s index in $config_headers.
10721_am_arg="$ac_file"
2f1a1aea
FCE
10722_am_stamp_count=1
10723for _am_header in $config_headers :; do
10724 case $_am_header in
0710d850 10725 $_am_arg | $_am_arg:* )
2f1a1aea
FCE
10726 break ;;
10727 * )
10728 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10729 esac
10730done
0710d850
DS
10731echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10732$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10733 X"$_am_arg" : 'X\(//\)[^/]' \| \
10734 X"$_am_arg" : 'X\(//\)$' \| \
10735 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10736$as_echo X"$_am_arg" |
7fbd9d09
FCE
10737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10738 s//\1/
10739 q
10740 }
10741 /^X\(\/\/\)[^/].*/{
10742 s//\1/
10743 q
10744 }
10745 /^X\(\/\/\)$/{
10746 s//\1/
10747 q
10748 }
10749 /^X\(\/\).*/{
10750 s//\1/
10751 q
10752 }
10753 s/.*/./; q'`/stamp-h$_am_stamp_count
10754 ;;
818ba2bc 10755
e6364d79 10756 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
0710d850 10757$as_echo "$as_me: executing $ac_file commands" >&6;}
7fbd9d09
FCE
10758 ;;
10759 esac
818ba2bc
MW
10760
10761
7fbd9d09 10762 case $ac_file$ac_mode in
0710d850
DS
10763 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10764 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10765 # are listed without --file. Let's play safe and only enable the eval
10766 # if we detect the quoting.
10767 case $CONFIG_FILES in
10768 *\'*) eval set x "$CONFIG_FILES" ;;
10769 *) set x $CONFIG_FILES ;;
10770 esac
10771 shift
10772 for mf
10773 do
10774 # Strip MF so we end up with the name of the file.
10775 mf=`echo "$mf" | sed -e 's/:.*$//'`
10776 # Check whether this is an Automake generated Makefile or not.
10777 # We used to match only the files named `Makefile.in', but
10778 # some people rename them; so instead we look at the file content.
10779 # Grep'ing the first line is not enough: some people post-process
10780 # each Makefile.in and add a new line on top of each file to say so.
10781 # Grep'ing the whole file is not good either: AIX grep has a line
10782 # limit of 2048, but all sed's we know have understand at least 4000.
10783 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10784 dirpart=`$as_dirname -- "$mf" ||
2f1a1aea
FCE
10785$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10786 X"$mf" : 'X\(//\)[^/]' \| \
10787 X"$mf" : 'X\(//\)$' \| \
7fbd9d09 10788 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 10789$as_echo X"$mf" |
7fbd9d09
FCE
10790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10791 s//\1/
10792 q
10793 }
10794 /^X\(\/\/\)[^/].*/{
10795 s//\1/
10796 q
10797 }
10798 /^X\(\/\/\)$/{
10799 s//\1/
10800 q
10801 }
10802 /^X\(\/\).*/{
10803 s//\1/
10804 q
10805 }
10806 s/.*/./; q'`
0710d850
DS
10807 else
10808 continue
10809 fi
10810 # Extract the definition of DEPDIR, am__include, and am__quote
10811 # from the Makefile without running `make'.
10812 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10813 test -z "$DEPDIR" && continue
10814 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10815 test -z "am__include" && continue
10816 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10817 # When using ansi2knr, U may be empty or an underscore; expand it
10818 U=`sed -n 's/^U = //p' < "$mf"`
10819 # Find all dependency output files, they are included files with
10820 # $(DEPDIR) in their names. We invoke sed twice because it is the
10821 # simplest approach to changing $(DEPDIR) to its actual value in the
10822 # expansion.
10823 for file in `sed -n "
10824 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10825 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10826 # Make sure the directory exists.
10827 test -f "$dirpart/$file" && continue
10828 fdir=`$as_dirname -- "$file" ||
2f1a1aea
FCE
10829$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10830 X"$file" : 'X\(//\)[^/]' \| \
10831 X"$file" : 'X\(//\)$' \| \
7fbd9d09 10832 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 10833$as_echo X"$file" |
7fbd9d09
FCE
10834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10835 s//\1/
10836 q
10837 }
10838 /^X\(\/\/\)[^/].*/{
10839 s//\1/
10840 q
10841 }
10842 /^X\(\/\/\)$/{
10843 s//\1/
10844 q
10845 }
10846 /^X\(\/\).*/{
10847 s//\1/
10848 q
10849 }
10850 s/.*/./; q'`
e6364d79
MW
10851 { as_dir=$dirpart/$fdir
10852 case $as_dir in #(
10853 -*) as_dir=./$as_dir;;
10854 esac
10855 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10856 as_dirs=
10857 while :; do
10858 case $as_dir in #(
10859 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10860 *) as_qdir=$as_dir;;
10861 esac
10862 as_dirs="'$as_qdir' $as_dirs"
10863 as_dir=`$as_dirname -- "$as_dir" ||
10864$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10865 X"$as_dir" : 'X\(//\)[^/]' \| \
10866 X"$as_dir" : 'X\(//\)$' \| \
10867 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10868$as_echo X"$as_dir" |
10869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10870 s//\1/
10871 q
10872 }
10873 /^X\(\/\/\)[^/].*/{
10874 s//\1/
10875 q
10876 }
10877 /^X\(\/\/\)$/{
10878 s//\1/
10879 q
10880 }
10881 /^X\(\/\).*/{
10882 s//\1/
10883 q
10884 }
10885 s/.*/./; q'`
10886 test -d "$as_dir" && break
10887 done
10888 test -z "$as_dirs" || eval "mkdir $as_dirs"
10889 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10890$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10891 { (exit 1); exit 1; }; }; }
0710d850
DS
10892 # echo "creating $dirpart/$file"
10893 echo '# dummy' > "$dirpart/$file"
10894 done
2f1a1aea 10895 done
0710d850 10896}
2f1a1aea 10897 ;;
7fbd9d09 10898 "run-stap":F) chmod +x run-stap ;;
65ffc3f3 10899 "run-staprun":F) chmod +x run-staprun ;;
e4aaabda 10900 "dtrace":F) chmod +x dtrace ;;
53ade4da 10901 "doc/beginners":C) rm -f $ac_abs_top_builddir/doc/beginners/en-US $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite && mkdir -p $ac_abs_top_builddir/doc/beginners/build/en-US && ln -s $ac_abs_top_srcdir/doc/SystemTap_Beginners_Guide/en-US $ac_abs_top_builddir/doc/beginners/en-US && ln -s $ac_abs_top_srcdir/testsuite $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite ;;
7fbd9d09 10902
2f1a1aea 10903 esac
7fbd9d09 10904done # for ac_tag
2f1a1aea 10905
2f1a1aea 10906
e6364d79 10907{ (exit 0); exit 0; }
2f1a1aea 10908_ACEOF
e6364d79 10909chmod +x $CONFIG_STATUS
2f1a1aea
FCE
10910ac_clean_files=$ac_clean_files_save
10911
0710d850 10912test $ac_write_fail = 0 ||
e6364d79
MW
10913 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10914$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10915 { (exit 1); exit 1; }; }
0710d850 10916
2f1a1aea
FCE
10917
10918# configure is writing to config.log, and then calls config.status.
10919# config.status does its own redirection, appending to config.log.
10920# Unfortunately, on DOS this fails, as config.log is still kept open
10921# by configure, so config.status won't be able to write to it; its
10922# output is simply discarded. So we exec the FD to /dev/null,
10923# effectively closing config.log, so it can be properly (re)opened and
10924# appended to by config.status. When coming back to configure, we
10925# need to make the FD available again.
10926if test "$no_create" != yes; then
10927 ac_cs_success=:
10928 ac_config_status_args=
10929 test "$silent" = yes &&
10930 ac_config_status_args="$ac_config_status_args --quiet"
10931 exec 5>/dev/null
10932 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10933 exec 5>>config.log
10934 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10935 # would make configure fail if this is the last instruction.
e6364d79 10936 $ac_cs_success || { (exit 1); exit 1; }
2f1a1aea
FCE
10937fi
10938
5ba96b90
FCE
10939#
10940# CONFIG_SUBDIRS section.
10941#
10942if test "$no_recursion" != yes; then
10943
0710d850
DS
10944 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10945 # so they do not pile up.
5ba96b90
FCE
10946 ac_sub_configure_args=
10947 ac_prev=
7fbd9d09
FCE
10948 eval "set x $ac_configure_args"
10949 shift
10950 for ac_arg
10951 do
5ba96b90
FCE
10952 if test -n "$ac_prev"; then
10953 ac_prev=
10954 continue
10955 fi
10956 case $ac_arg in
10957 -cache-file | --cache-file | --cache-fil | --cache-fi \
10958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10959 ac_prev=cache_file ;;
10960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10962 | --c=*)
10963 ;;
10964 --config-cache | -C)
10965 ;;
10966 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10967 ac_prev=srcdir ;;
10968 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10969 ;;
10970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10971 ac_prev=prefix ;;
10972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10973 ;;
0710d850
DS
10974 --disable-option-checking)
10975 ;;
7fbd9d09
FCE
10976 *)
10977 case $ac_arg in
0710d850 10978 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fbd9d09 10979 esac
e6364d79 10980 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
5ba96b90
FCE
10981 esac
10982 done
10983
10984 # Always prepend --prefix to ensure using the same prefix
10985 # in subdir configurations.
7fbd9d09
FCE
10986 ac_arg="--prefix=$prefix"
10987 case $ac_arg in
0710d850 10988 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fbd9d09
FCE
10989 esac
10990 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10991
10992 # Pass --silent
10993 if test "$silent" = yes; then
10994 ac_sub_configure_args="--silent $ac_sub_configure_args"
10995 fi
daae650d 10996
0710d850
DS
10997 # Always prepend --disable-option-checking to silence warnings, since
10998 # different subdirs can have different --enable and --with options.
10999 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11000
5ba96b90
FCE
11001 ac_popdir=`pwd`
11002 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11003
11004 # Do not complain, so a configure script can configure whichever
11005 # parts of a large source tree are present.
7fbd9d09
FCE
11006 test -d "$srcdir/$ac_dir" || continue
11007
11008 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
e6364d79 11009 $as_echo "$as_me:$LINENO: $ac_msg" >&5
0710d850 11010 $as_echo "$ac_msg" >&6
e6364d79
MW
11011 { as_dir="$ac_dir"
11012 case $as_dir in #(
11013 -*) as_dir=./$as_dir;;
11014 esac
11015 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11016 as_dirs=
11017 while :; do
11018 case $as_dir in #(
11019 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11020 *) as_qdir=$as_dir;;
11021 esac
11022 as_dirs="'$as_qdir' $as_dirs"
11023 as_dir=`$as_dirname -- "$as_dir" ||
11024$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11025 X"$as_dir" : 'X\(//\)[^/]' \| \
11026 X"$as_dir" : 'X\(//\)$' \| \
11027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11028$as_echo X"$as_dir" |
11029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11030 s//\1/
11031 q
11032 }
11033 /^X\(\/\/\)[^/].*/{
11034 s//\1/
11035 q
11036 }
11037 /^X\(\/\/\)$/{
11038 s//\1/
11039 q
11040 }
11041 /^X\(\/\).*/{
11042 s//\1/
11043 q
11044 }
11045 s/.*/./; q'`
11046 test -d "$as_dir" && break
11047 done
11048 test -z "$as_dirs" || eval "mkdir $as_dirs"
11049 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11050$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11051 { (exit 1); exit 1; }; }; }
5ba96b90
FCE
11052 ac_builddir=.
11053
7fbd9d09
FCE
11054case "$ac_dir" in
11055.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11056*)
0710d850 11057 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 11058 # A ".." for each directory in $ac_dir_suffix.
0710d850 11059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
11060 case $ac_top_builddir_sub in
11061 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11062 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11063 esac ;;
11064esac
11065ac_abs_top_builddir=$ac_pwd
11066ac_abs_builddir=$ac_pwd$ac_dir_suffix
11067# for backward compatibility:
11068ac_top_builddir=$ac_top_build_prefix
5ba96b90
FCE
11069
11070case $srcdir in
7fbd9d09 11071 .) # We are building in place.
5ba96b90 11072 ac_srcdir=.
7fbd9d09
FCE
11073 ac_top_srcdir=$ac_top_builddir_sub
11074 ac_abs_top_srcdir=$ac_pwd ;;
11075 [\\/]* | ?:[\\/]* ) # Absolute name.
5ba96b90 11076 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
11077 ac_top_srcdir=$srcdir
11078 ac_abs_top_srcdir=$srcdir ;;
11079 *) # Relative name.
11080 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11081 ac_top_srcdir=$ac_top_build_prefix$srcdir
11082 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5ba96b90 11083esac
7fbd9d09 11084ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5ba96b90
FCE
11085
11086
7fbd9d09 11087 cd "$ac_dir"
5ba96b90
FCE
11088
11089 # Check for guested configure; otherwise get Cygnus style configure.
7fbd9d09
FCE
11090 if test -f "$ac_srcdir/configure.gnu"; then
11091 ac_sub_configure=$ac_srcdir/configure.gnu
11092 elif test -f "$ac_srcdir/configure"; then
11093 ac_sub_configure=$ac_srcdir/configure
11094 elif test -f "$ac_srcdir/configure.in"; then
11095 # This should be Cygnus configure.
11096 ac_sub_configure=$ac_aux_dir/configure
5ba96b90 11097 else
e6364d79 11098 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
0710d850 11099$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
5ba96b90
FCE
11100 ac_sub_configure=
11101 fi
11102
11103 # The recursion is here.
11104 if test -n "$ac_sub_configure"; then
11105 # Make the cache file name correct relative to the subdirectory.
11106 case $cache_file in
11107 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7fbd9d09
FCE
11108 *) # Relative name.
11109 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5ba96b90
FCE
11110 esac
11111
e6364d79 11112 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
0710d850 11113$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5ba96b90 11114 # The eval makes quoting arguments work.
7fbd9d09
FCE
11115 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11116 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
e6364d79
MW
11117 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
11118$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
11119 { (exit 1); exit 1; }; }
5ba96b90
FCE
11120 fi
11121
7fbd9d09 11122 cd "$ac_popdir"
5ba96b90
FCE
11123 done
11124fi
0710d850 11125if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
e6364d79 11126 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
0710d850
DS
11127$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11128fi
5ba96b90 11129
4d9087fc 11130
af29024d 11131if test "${prefix}" = "/usr/local"; then
e6364d79 11132 { $as_echo "$as_me:$LINENO: " >&5
0710d850 11133$as_echo "$as_me: " >&6;}
e6364d79 11134 { $as_echo "$as_me:$LINENO: For a private or temporary build of systemtap, we recommend" >&5
0710d850 11135$as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
e6364d79 11136 { $as_echo "$as_me:$LINENO: configuring with a prefix. For example, try" >&5
0710d850 11137$as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
e6364d79 11138 { $as_echo "$as_me:$LINENO: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
0710d850 11139$as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
e6364d79 11140 { $as_echo "$as_me:$LINENO: Running systemtap uninstalled, entirely out of the build tree," >&5
0710d850 11141$as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
e6364d79 11142 { $as_echo "$as_me:$LINENO: is not supported." >&5
0710d850 11143$as_echo "$as_me: is not supported." >&6;}
af29024d 11144fi
This page took 2.298611 seconds and 5 git commands to generate.