]> sourceware.org Git - systemtap.git/blob - configure
bump version numbers
[systemtap.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for systemtap 4.3.
4 #
5 # Report bugs to <systemtap@sourceware.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: systemtap@sourceware.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='systemtap'
582 PACKAGE_TARNAME='systemtap'
583 PACKAGE_VERSION='4.3'
584 PACKAGE_STRING='systemtap 4.3'
585 PACKAGE_BUGREPORT='systemtap@sourceware.org'
586 PACKAGE_URL=''
587
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 # include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 # include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 gt_needs=
625 enable_option_checking=no
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 subdirs
631 STAP_PREFIX
632 NEED_BASE_CLIENT_CODE_FALSE
633 NEED_BASE_CLIENT_CODE_TRUE
634 HAVE_HTTP_SUPPORT_FALSE
635 HAVE_HTTP_SUPPORT_TRUE
636 libcurl_LIBS
637 libcurl_CFLAGS
638 uuid_LIBS
639 uuid_CFLAGS
640 libmicrohttpd_LIBS
641 libmicrohttpd_CFLAGS
642 STAP_EXTRA_VERSION
643 LOCALEDIR
644 ENABLE_NLS
645 HAVE_JAVA_FALSE
646 HAVE_JAVA_TRUE
647 JAVADIR
648 have_jar
649 have_javac
650 HAVE_SELINUX_FALSE
651 HAVE_SELINUX_TRUE
652 selinux_LIBS
653 selinux_CFLAGS
654 HAVE_BPF_DECLS_FALSE
655 HAVE_BPF_DECLS_TRUE
656 support_section_question
657 HAVE_MONITOR_LIBS_FALSE
658 HAVE_MONITOR_LIBS_TRUE
659 ncurses_LIBS
660 ncurses_CFLAGS
661 jsonc_LIBS
662 jsonc_CFLAGS
663 HAVE_PYTHON_PROBES_FALSE
664 HAVE_PYTHON_PROBES_TRUE
665 HAVE_PYTHON3_PROBES_FALSE
666 HAVE_PYTHON3_PROBES_TRUE
667 PYTHON3_CPPFLAGS
668 PYTHON3_CONFIG
669 HAVE_PYTHON2_PROBES_FALSE
670 HAVE_PYTHON2_PROBES_TRUE
671 PYTHON_CPPFLAGS
672 PYTHON_CONFIG
673 BUILD_VIRT_FALSE
674 BUILD_VIRT_TRUE
675 HAVE_LIBXML2_FALSE
676 HAVE_LIBXML2_TRUE
677 libxml2_LIBS
678 libxml2_CFLAGS
679 HAVE_LIBVIRT_FALSE
680 HAVE_LIBVIRT_TRUE
681 libvirt_LIBS
682 libvirt_CFLAGS
683 HAVE_DYNINST_FALSE
684 HAVE_DYNINST_TRUE
685 DYNINST_LDFLAGS
686 DYNINST_CXXFLAGS
687 BOOST_SYSTEM_LIB
688 CXXCPP
689 stapbpf_LIBS
690 staprun_LIBS
691 stap_LIBS
692 elfutils_abs_srcdir
693 BUILD_ELFUTILS_FALSE
694 BUILD_ELFUTILS_TRUE
695 preferred_python
696 HAVE_LIBREADLINE_FALSE
697 HAVE_LIBREADLINE_TRUE
698 READLINE_LIBS
699 HAVE_AVAHI_FALSE
700 HAVE_AVAHI_TRUE
701 avahi_LIBS
702 avahi_CFLAGS
703 BUILD_SERVER_FALSE
704 BUILD_SERVER_TRUE
705 dracutbindir
706 dracutstap
707 HAVE_OPENSSL_FALSE
708 HAVE_OPENSSL_TRUE
709 openssl_LIBS
710 openssl_CFLAGS
711 HAVE_NSS_FALSE
712 HAVE_NSS_TRUE
713 nss_LIBS
714 nss_CFLAGS
715 XMLTO_STRINGPARAM_FALSE
716 XMLTO_STRINGPARAM_TRUE
717 BUILD_HTMLDOCS_FALSE
718 BUILD_HTMLDOCS_TRUE
719 HAVE_XMLTO_FALSE
720 HAVE_XMLTO_TRUE
721 HAVE_FOP_FALSE
722 HAVE_FOP_TRUE
723 have_fop
724 have_xmlto
725 BUILD_REFDOCS_FALSE
726 BUILD_REFDOCS_TRUE
727 INSTALL_PREBUILT_DOCS_FALSE
728 INSTALL_PREBUILT_DOCS_TRUE
729 BUILD_DOCS_FALSE
730 BUILD_DOCS_TRUE
731 have_ps2pdf
732 have_dvips
733 have_latex
734 BUILD_CRASHMOD_FALSE
735 BUILD_CRASHMOD_TRUE
736 staplog_CPPFLAGS
737 BUILD_TRANSLATOR_FALSE
738 BUILD_TRANSLATOR_TRUE
739 sqlite3_LIBS
740 sqlite3_CFLAGS
741 PKG_CONFIG_LIBDIR
742 PKG_CONFIG_PATH
743 PKG_CONFIG
744 PIECXXFLAGS
745 PIECFLAGS
746 PIELDFLAGS
747 HAVE_CXX11
748 py3execdir
749 python3dir
750 PYTHON3_PLATFORM
751 PYTHON3_EXEC_PREFIX
752 PYTHON3_PREFIX
753 PYTHON3_VERSION
754 PYTHON3
755 pkgpyexecdir
756 pyexecdir
757 pkgpythondir
758 pythondir
759 PYTHON_PLATFORM
760 PYTHON_EXEC_PREFIX
761 PYTHON_PREFIX
762 PYTHON_VERSION
763 PYTHON
764 PYTHON_UNKNOWN
765 POSUB
766 LTLIBINTL
767 LIBINTL
768 INTLLIBS
769 LTLIBICONV
770 LIBICONV
771 INTL_MACOSX_LIBS
772 XGETTEXT_EXTRA_OPTIONS
773 MSGMERGE
774 XGETTEXT_015
775 XGETTEXT
776 GMSGFMT_015
777 MSGFMT_015
778 GMSGFMT
779 MSGFMT
780 GETTEXT_MACRO_VERSION
781 USE_NLS
782 SED
783 RANLIB
784 am__fastdepCXX_FALSE
785 am__fastdepCXX_TRUE
786 CXXDEPMODE
787 ac_ct_CXX
788 CXXFLAGS
789 CXX
790 LN_S
791 EGREP
792 GREP
793 CPP
794 am__fastdepCC_FALSE
795 am__fastdepCC_TRUE
796 CCDEPMODE
797 am__nodep
798 AMDEPBACKSLASH
799 AMDEP_FALSE
800 AMDEP_TRUE
801 am__include
802 DEPDIR
803 OBJEXT
804 EXEEXT
805 ac_ct_CC
806 CPPFLAGS
807 LDFLAGS
808 CFLAGS
809 CC
810 MAINT
811 MAINTAINER_MODE_FALSE
812 MAINTAINER_MODE_TRUE
813 AM_BACKSLASH
814 AM_DEFAULT_VERBOSITY
815 AM_DEFAULT_V
816 AM_V
817 am__untar
818 am__tar
819 AMTAR
820 am__leading_dot
821 SET_MAKE
822 AWK
823 mkdir_p
824 MKDIR_P
825 INSTALL_STRIP_PROGRAM
826 STRIP
827 install_sh
828 MAKEINFO
829 AUTOHEADER
830 AUTOMAKE
831 AUTOCONF
832 ACLOCAL
833 VERSION
834 PACKAGE
835 CYGPATH_W
836 am__isrc
837 INSTALL_DATA
838 INSTALL_SCRIPT
839 INSTALL_PROGRAM
840 target_os
841 target_vendor
842 target_cpu
843 target
844 host_os
845 host_vendor
846 host_cpu
847 host
848 build_os
849 build_vendor
850 build_cpu
851 build
852 target_alias
853 host_alias
854 build_alias
855 LIBS
856 ECHO_T
857 ECHO_N
858 ECHO_C
859 DEFS
860 mandir
861 localedir
862 libdir
863 psdir
864 pdfdir
865 dvidir
866 htmldir
867 infodir
868 docdir
869 oldincludedir
870 includedir
871 localstatedir
872 sharedstatedir
873 sysconfdir
874 datadir
875 datarootdir
876 libexecdir
877 sbindir
878 bindir
879 program_transform_name
880 prefix
881 exec_prefix
882 PACKAGE_URL
883 PACKAGE_BUGREPORT
884 PACKAGE_STRING
885 PACKAGE_VERSION
886 PACKAGE_TARNAME
887 PACKAGE_NAME
888 PATH_SEPARATOR
889 SHELL
890 am__quote'
891 ac_subst_files=''
892 ac_user_opts='
893 enable_option_checking
894 enable_silent_rules
895 enable_maintainer_mode
896 enable_dependency_tracking
897 enable_largefile
898 enable_nls
899 with_gnu_ld
900 enable_rpath
901 with_libiconv_prefix
902 with_libintl_prefix
903 enable_prologues
904 enable_sdt_probes
905 enable_ssp
906 enable_pie
907 enable_sqlite
908 enable_translator
909 enable_crash
910 enable_docs
911 enable_refdocs
912 enable_htmldocs
913 with_nss
914 with_openssl
915 with_dracutstap
916 with_dracutbindir
917 enable_server
918 with_avahi
919 with_rpm
920 with_python3
921 with_elfutils
922 with_dyninst
923 enable_virt
924 enable_libvirt
925 with_python2_probes
926 with_python3_probes
927 enable_monitor
928 with_bpf
929 with_selinux
930 with_java
931 with_extra_version
932 enable_http
933 '
934 ac_precious_vars='build_alias
935 host_alias
936 target_alias
937 CC
938 CFLAGS
939 LDFLAGS
940 LIBS
941 CPPFLAGS
942 CPP
943 CXX
944 CXXFLAGS
945 CCC
946 PYTHON
947 PKG_CONFIG
948 PKG_CONFIG_PATH
949 PKG_CONFIG_LIBDIR
950 sqlite3_CFLAGS
951 sqlite3_LIBS
952 nss_CFLAGS
953 nss_LIBS
954 openssl_CFLAGS
955 openssl_LIBS
956 avahi_CFLAGS
957 avahi_LIBS
958 CXXCPP
959 libvirt_CFLAGS
960 libvirt_LIBS
961 libxml2_CFLAGS
962 libxml2_LIBS
963 jsonc_CFLAGS
964 jsonc_LIBS
965 ncurses_CFLAGS
966 ncurses_LIBS
967 selinux_CFLAGS
968 selinux_LIBS
969 libmicrohttpd_CFLAGS
970 libmicrohttpd_LIBS
971 uuid_CFLAGS
972 uuid_LIBS
973 libcurl_CFLAGS
974 libcurl_LIBS'
975 ac_subdirs_all='testsuite'
976
977 # Initialize some variables set by options.
978 ac_init_help=
979 ac_init_version=false
980 ac_unrecognized_opts=
981 ac_unrecognized_sep=
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
984 cache_file=/dev/null
985 exec_prefix=NONE
986 no_create=
987 no_recursion=
988 prefix=NONE
989 program_prefix=NONE
990 program_suffix=NONE
991 program_transform_name=s,x,x,
992 silent=
993 site=
994 srcdir=
995 verbose=
996 x_includes=NONE
997 x_libraries=NONE
998
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1017 htmldir='${docdir}'
1018 dvidir='${docdir}'
1019 pdfdir='${docdir}'
1020 psdir='${docdir}'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1024
1025 ac_prev=
1026 ac_dashdash=
1027 for ac_option
1028 do
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\$ac_option
1032 ac_prev=
1033 continue
1034 fi
1035
1036 case $ac_option in
1037 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 *=) ac_optarg= ;;
1039 *) ac_optarg=yes ;;
1040 esac
1041
1042 # Accept the important Cygnus configure options, so we can diagnose typos.
1043
1044 case $ac_dashdash$ac_option in
1045 --)
1046 ac_dashdash=yes ;;
1047
1048 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 ac_prev=bindir ;;
1050 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051 bindir=$ac_optarg ;;
1052
1053 -build | --build | --buil | --bui | --bu)
1054 ac_prev=build_alias ;;
1055 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056 build_alias=$ac_optarg ;;
1057
1058 -cache-file | --cache-file | --cache-fil | --cache-fi \
1059 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060 ac_prev=cache_file ;;
1061 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063 cache_file=$ac_optarg ;;
1064
1065 --config-cache | -C)
1066 cache_file=config.cache ;;
1067
1068 -datadir | --datadir | --datadi | --datad)
1069 ac_prev=datadir ;;
1070 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1071 datadir=$ac_optarg ;;
1072
1073 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074 | --dataroo | --dataro | --datar)
1075 ac_prev=datarootdir ;;
1076 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078 datarootdir=$ac_optarg ;;
1079
1080 -disable-* | --disable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error $? "invalid feature name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1088 *"
1089 "enable_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval enable_$ac_useropt=no ;;
1095
1096 -docdir | --docdir | --docdi | --doc | --do)
1097 ac_prev=docdir ;;
1098 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1099 docdir=$ac_optarg ;;
1100
1101 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1102 ac_prev=dvidir ;;
1103 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1104 dvidir=$ac_optarg ;;
1105
1106 -enable-* | --enable-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid feature name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115 "enable_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval enable_$ac_useropt=\$ac_optarg ;;
1121
1122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1124 | --exec | --exe | --ex)
1125 ac_prev=exec_prefix ;;
1126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1128 | --exec=* | --exe=* | --ex=*)
1129 exec_prefix=$ac_optarg ;;
1130
1131 -gas | --gas | --ga | --g)
1132 # Obsolete; use --with-gas.
1133 with_gas=yes ;;
1134
1135 -help | --help | --hel | --he | -h)
1136 ac_init_help=long ;;
1137 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1138 ac_init_help=recursive ;;
1139 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1140 ac_init_help=short ;;
1141
1142 -host | --host | --hos | --ho)
1143 ac_prev=host_alias ;;
1144 -host=* | --host=* | --hos=* | --ho=*)
1145 host_alias=$ac_optarg ;;
1146
1147 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1148 ac_prev=htmldir ;;
1149 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1150 | --ht=*)
1151 htmldir=$ac_optarg ;;
1152
1153 -includedir | --includedir | --includedi | --included | --include \
1154 | --includ | --inclu | --incl | --inc)
1155 ac_prev=includedir ;;
1156 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1157 | --includ=* | --inclu=* | --incl=* | --inc=*)
1158 includedir=$ac_optarg ;;
1159
1160 -infodir | --infodir | --infodi | --infod | --info | --inf)
1161 ac_prev=infodir ;;
1162 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1163 infodir=$ac_optarg ;;
1164
1165 -libdir | --libdir | --libdi | --libd)
1166 ac_prev=libdir ;;
1167 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1168 libdir=$ac_optarg ;;
1169
1170 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1171 | --libexe | --libex | --libe)
1172 ac_prev=libexecdir ;;
1173 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1174 | --libexe=* | --libex=* | --libe=*)
1175 libexecdir=$ac_optarg ;;
1176
1177 -localedir | --localedir | --localedi | --localed | --locale)
1178 ac_prev=localedir ;;
1179 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1180 localedir=$ac_optarg ;;
1181
1182 -localstatedir | --localstatedir | --localstatedi | --localstated \
1183 | --localstate | --localstat | --localsta | --localst | --locals)
1184 ac_prev=localstatedir ;;
1185 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1186 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1187 localstatedir=$ac_optarg ;;
1188
1189 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1190 ac_prev=mandir ;;
1191 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1192 mandir=$ac_optarg ;;
1193
1194 -nfp | --nfp | --nf)
1195 # Obsolete; use --without-fp.
1196 with_fp=no ;;
1197
1198 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1199 | --no-cr | --no-c | -n)
1200 no_create=yes ;;
1201
1202 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1203 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1204 no_recursion=yes ;;
1205
1206 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1207 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1208 | --oldin | --oldi | --old | --ol | --o)
1209 ac_prev=oldincludedir ;;
1210 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1211 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1212 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1213 oldincludedir=$ac_optarg ;;
1214
1215 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1216 ac_prev=prefix ;;
1217 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1218 prefix=$ac_optarg ;;
1219
1220 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1221 | --program-pre | --program-pr | --program-p)
1222 ac_prev=program_prefix ;;
1223 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1224 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1225 program_prefix=$ac_optarg ;;
1226
1227 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1228 | --program-suf | --program-su | --program-s)
1229 ac_prev=program_suffix ;;
1230 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1231 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1232 program_suffix=$ac_optarg ;;
1233
1234 -program-transform-name | --program-transform-name \
1235 | --program-transform-nam | --program-transform-na \
1236 | --program-transform-n | --program-transform- \
1237 | --program-transform | --program-transfor \
1238 | --program-transfo | --program-transf \
1239 | --program-trans | --program-tran \
1240 | --progr-tra | --program-tr | --program-t)
1241 ac_prev=program_transform_name ;;
1242 -program-transform-name=* | --program-transform-name=* \
1243 | --program-transform-nam=* | --program-transform-na=* \
1244 | --program-transform-n=* | --program-transform-=* \
1245 | --program-transform=* | --program-transfor=* \
1246 | --program-transfo=* | --program-transf=* \
1247 | --program-trans=* | --program-tran=* \
1248 | --progr-tra=* | --program-tr=* | --program-t=*)
1249 program_transform_name=$ac_optarg ;;
1250
1251 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1252 ac_prev=pdfdir ;;
1253 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1254 pdfdir=$ac_optarg ;;
1255
1256 -psdir | --psdir | --psdi | --psd | --ps)
1257 ac_prev=psdir ;;
1258 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1259 psdir=$ac_optarg ;;
1260
1261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262 | -silent | --silent | --silen | --sile | --sil)
1263 silent=yes ;;
1264
1265 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1266 ac_prev=sbindir ;;
1267 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1268 | --sbi=* | --sb=*)
1269 sbindir=$ac_optarg ;;
1270
1271 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1272 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1273 | --sharedst | --shareds | --shared | --share | --shar \
1274 | --sha | --sh)
1275 ac_prev=sharedstatedir ;;
1276 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1277 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1278 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1279 | --sha=* | --sh=*)
1280 sharedstatedir=$ac_optarg ;;
1281
1282 -site | --site | --sit)
1283 ac_prev=site ;;
1284 -site=* | --site=* | --sit=*)
1285 site=$ac_optarg ;;
1286
1287 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1288 ac_prev=srcdir ;;
1289 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1290 srcdir=$ac_optarg ;;
1291
1292 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1293 | --syscon | --sysco | --sysc | --sys | --sy)
1294 ac_prev=sysconfdir ;;
1295 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1296 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1297 sysconfdir=$ac_optarg ;;
1298
1299 -target | --target | --targe | --targ | --tar | --ta | --t)
1300 ac_prev=target_alias ;;
1301 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1302 target_alias=$ac_optarg ;;
1303
1304 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1305 verbose=yes ;;
1306
1307 -version | --version | --versio | --versi | --vers | -V)
1308 ac_init_version=: ;;
1309
1310 -with-* | --with-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error $? "invalid package name: $ac_useropt"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1318 *"
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=\$ac_optarg ;;
1325
1326 -without-* | --without-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 as_fn_error $? "invalid package name: $ac_useropt"
1331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1334 *"
1335 "with_$ac_useropt"
1336 "*) ;;
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval with_$ac_useropt=no ;;
1341
1342 --x)
1343 # Obsolete; use --with-x.
1344 with_x=yes ;;
1345
1346 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1347 | --x-incl | --x-inc | --x-in | --x-i)
1348 ac_prev=x_includes ;;
1349 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1350 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1351 x_includes=$ac_optarg ;;
1352
1353 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1354 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1355 ac_prev=x_libraries ;;
1356 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1357 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358 x_libraries=$ac_optarg ;;
1359
1360 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1361 Try \`$0 --help' for more information"
1362 ;;
1363
1364 *=*)
1365 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1366 # Reject names that are not valid shell variable names.
1367 case $ac_envvar in #(
1368 '' | [0-9]* | *[!_$as_cr_alnum]* )
1369 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1370 esac
1371 eval $ac_envvar=\$ac_optarg
1372 export $ac_envvar ;;
1373
1374 *)
1375 # FIXME: should be removed in autoconf 3.0.
1376 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1377 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1379 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1380 ;;
1381
1382 esac
1383 done
1384
1385 if test -n "$ac_prev"; then
1386 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387 as_fn_error $? "missing argument to $ac_option"
1388 fi
1389
1390 if test -n "$ac_unrecognized_opts"; then
1391 case $enable_option_checking in
1392 no) ;;
1393 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1394 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1395 esac
1396 fi
1397
1398 # Check all directory arguments for consistency.
1399 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1400 datadir sysconfdir sharedstatedir localstatedir includedir \
1401 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1402 libdir localedir mandir
1403 do
1404 eval ac_val=\$$ac_var
1405 # Remove trailing slashes.
1406 case $ac_val in
1407 */ )
1408 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1409 eval $ac_var=\$ac_val;;
1410 esac
1411 # Be sure to have absolute directory names.
1412 case $ac_val in
1413 [\\/$]* | ?:[\\/]* ) continue;;
1414 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1415 esac
1416 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1417 done
1418
1419 # There might be people who depend on the old broken behavior: `$host'
1420 # used to hold the argument of --host etc.
1421 # FIXME: To remove some day.
1422 build=$build_alias
1423 host=$host_alias
1424 target=$target_alias
1425
1426 # FIXME: To remove some day.
1427 if test "x$host_alias" != x; then
1428 if test "x$build_alias" = x; then
1429 cross_compiling=maybe
1430 elif test "x$build_alias" != "x$host_alias"; then
1431 cross_compiling=yes
1432 fi
1433 fi
1434
1435 ac_tool_prefix=
1436 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1437
1438 test "$silent" = yes && exec 6>/dev/null
1439
1440
1441 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1442 ac_ls_di=`ls -di .` &&
1443 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1444 as_fn_error $? "working directory cannot be determined"
1445 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1446 as_fn_error $? "pwd does not report name of working directory"
1447
1448
1449 # Find the source files, if location was not specified.
1450 if test -z "$srcdir"; then
1451 ac_srcdir_defaulted=yes
1452 # Try the directory containing this script, then the parent directory.
1453 ac_confdir=`$as_dirname -- "$as_myself" ||
1454 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1455 X"$as_myself" : 'X\(//\)[^/]' \| \
1456 X"$as_myself" : 'X\(//\)$' \| \
1457 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1458 $as_echo X"$as_myself" |
1459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1460 s//\1/
1461 q
1462 }
1463 /^X\(\/\/\)[^/].*/{
1464 s//\1/
1465 q
1466 }
1467 /^X\(\/\/\)$/{
1468 s//\1/
1469 q
1470 }
1471 /^X\(\/\).*/{
1472 s//\1/
1473 q
1474 }
1475 s/.*/./; q'`
1476 srcdir=$ac_confdir
1477 if test ! -r "$srcdir/$ac_unique_file"; then
1478 srcdir=..
1479 fi
1480 else
1481 ac_srcdir_defaulted=no
1482 fi
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1484 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1485 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1486 fi
1487 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1488 ac_abs_confdir=`(
1489 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1490 pwd)`
1491 # When building in place, set srcdir=.
1492 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 srcdir=.
1494 fi
1495 # Remove unnecessary trailing slashes from srcdir.
1496 # Double slashes in file names in object file debugging info
1497 # mess up M-x gdb in Emacs.
1498 case $srcdir in
1499 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 esac
1501 for ac_var in $ac_precious_vars; do
1502 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_env_${ac_var}_value=\$${ac_var}
1504 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1505 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506 done
1507
1508 #
1509 # Report the --help message.
1510 #
1511 if test "$ac_init_help" = "long"; then
1512 # Omit some internal or obsolete options to make the list less imposing.
1513 # This message is too long to be a string in the A/UX 3.1 sh.
1514 cat <<_ACEOF
1515 \`configure' configures systemtap 4.3 to adapt to many kinds of systems.
1516
1517 Usage: $0 [OPTION]... [VAR=VALUE]...
1518
1519 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520 VAR=VALUE. See below for descriptions of some of the useful variables.
1521
1522 Defaults for the options are specified in brackets.
1523
1524 Configuration:
1525 -h, --help display this help and exit
1526 --help=short display options specific to this package
1527 --help=recursive display the short help of all the included packages
1528 -V, --version display version information and exit
1529 -q, --quiet, --silent do not print \`checking ...' messages
1530 --cache-file=FILE cache test results in FILE [disabled]
1531 -C, --config-cache alias for \`--cache-file=config.cache'
1532 -n, --no-create do not create output files
1533 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1534
1535 Installation directories:
1536 --prefix=PREFIX install architecture-independent files in PREFIX
1537 [$ac_default_prefix]
1538 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 [PREFIX]
1540
1541 By default, \`make install' will install all the files in
1542 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1543 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544 for instance \`--prefix=\$HOME'.
1545
1546 For better control, use the options below.
1547
1548 Fine tuning of the installation directories:
1549 --bindir=DIR user executables [EPREFIX/bin]
1550 --sbindir=DIR system admin executables [EPREFIX/sbin]
1551 --libexecdir=DIR program executables [EPREFIX/libexec]
1552 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1553 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1554 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1555 --libdir=DIR object code libraries [EPREFIX/lib]
1556 --includedir=DIR C header files [PREFIX/include]
1557 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560 --infodir=DIR info documentation [DATAROOTDIR/info]
1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562 --mandir=DIR man documentation [DATAROOTDIR/man]
1563 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1564 --htmldir=DIR html documentation [DOCDIR]
1565 --dvidir=DIR dvi documentation [DOCDIR]
1566 --pdfdir=DIR pdf documentation [DOCDIR]
1567 --psdir=DIR ps documentation [DOCDIR]
1568 _ACEOF
1569
1570 cat <<\_ACEOF
1571
1572 Program names:
1573 --program-prefix=PREFIX prepend PREFIX to installed program names
1574 --program-suffix=SUFFIX append SUFFIX to installed program names
1575 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1576
1577 System types:
1578 --build=BUILD configure for building on BUILD [guessed]
1579 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1580 --target=TARGET configure for building compilers for TARGET [HOST]
1581 _ACEOF
1582 fi
1583
1584 if test -n "$ac_init_help"; then
1585 case $ac_init_help in
1586 short | recursive ) echo "Configuration of systemtap 4.3:";;
1587 esac
1588 cat <<\_ACEOF
1589
1590 Optional Features:
1591 --disable-option-checking ignore unrecognized --enable/--with options
1592 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1593 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1594 --enable-silent-rules less verbose build output (undo: "make V=1")
1595 --disable-silent-rules verbose build output (undo: "make V=0")
1596 --enable-maintainer-mode
1597 enable make rules and dependencies not useful (and
1598 sometimes confusing) to the casual installer
1599 --enable-dependency-tracking
1600 do not reject slow dependency extractors
1601 --disable-dependency-tracking
1602 speeds up one-time build
1603 --disable-largefile omit support for large files
1604 --disable-nls do not use Native Language Support
1605 --disable-rpath do not hardcode runtime library paths
1606 --enable-prologues make -P prologue-searching default
1607 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
1608 --disable-ssp disable gcc stack-protector
1609 --enable-pie enable position-independent-executable
1610 --enable-sqlite build with sqlite support
1611 --disable-translator build only runtime utilities
1612 --enable-crash[=DIRECTORY]
1613 enable crash extension (default is disabled).
1614 Optional DIRECTORY is the path to the crash header
1615 file (needed if installed in a non-standard
1616 location).
1617 --enable-docs enable building documentation (default to only
1618 installing prebuilt docs).
1619 --enable-refdocs enable building reference documentation (default on
1620 if other documentation built).
1621 --enable-htmldocs enable building html documentation (default off).
1622 --enable-server enable building of stap-server (default on if nss
1623 etc. found).
1624 --enable-virt enable building of stapvirt support (default on if
1625 libvirt etc. found).
1626 --disable-libvirt Do not use libvirt even if present
1627 --disable-monitor Disable monitor
1628 --enable-http Enable building http web compilation service, if
1629 possible
1630
1631 Optional Packages:
1632 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1633 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1634 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1635 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1636 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1637 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1638 --without-libintl-prefix don't search for libintl in includedir and libdir
1639 --without-nss Do not use NSS even if present
1640 --without-openssl Do not use OPENSSL even if present
1641 --with-dracutstap=DIR Install dracut module files in DIR
1642 --with-dracutbindir=DIR Use the dracut binary located in DIR
1643 --without-avahi Do not use Avahi even if present
1644 --with-rpm query rpm database for missing debuginfos
1645 --with-python3 prefer python version 3
1646 --with-elfutils=DIRECTORY
1647 find elfutils source code in DIRECTORY
1648 --with-dyninst=DIRECTORY
1649 find dyninst headers/libraries in DIRECTORY
1650 --without-python2-probes
1651 Disable building python version 2 probe support,
1652 even if it is available
1653 --without-python3-probes
1654 Disable building python version 3 probe support,
1655 even if it is available
1656 --without-bpf Do not try to build BPF components
1657 --without-selinux Do not use libselinux even if present
1658 --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so
1659 against (default is /usr/lib/jvm/java)
1660 --with-extra-version=STRING
1661 Add STRING to stap -V version
1662
1663 Some influential environment variables:
1664 CC C compiler command
1665 CFLAGS C compiler flags
1666 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1667 nonstandard directory <lib dir>
1668 LIBS libraries to pass to the linker, e.g. -l<library>
1669 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1670 you have headers in a nonstandard directory <include dir>
1671 CPP C preprocessor
1672 CXX C++ compiler command
1673 CXXFLAGS C++ compiler flags
1674 PYTHON the Python interpreter
1675 PKG_CONFIG path to pkg-config utility
1676 PKG_CONFIG_PATH
1677 directories to add to pkg-config's search path
1678 PKG_CONFIG_LIBDIR
1679 path overriding pkg-config's built-in search path
1680 sqlite3_CFLAGS
1681 C compiler flags for sqlite3, overriding pkg-config
1682 sqlite3_LIBS
1683 linker flags for sqlite3, overriding pkg-config
1684 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1685 nss_LIBS linker flags for nss, overriding pkg-config
1686 openssl_CFLAGS
1687 C compiler flags for openssl, overriding pkg-config
1688 openssl_LIBS
1689 linker flags for openssl, overriding pkg-config
1690 avahi_CFLAGS
1691 C compiler flags for avahi, overriding pkg-config
1692 avahi_LIBS linker flags for avahi, overriding pkg-config
1693 CXXCPP C++ preprocessor
1694 libvirt_CFLAGS
1695 C compiler flags for libvirt, overriding pkg-config
1696 libvirt_LIBS
1697 linker flags for libvirt, overriding pkg-config
1698 libxml2_CFLAGS
1699 C compiler flags for libxml2, overriding pkg-config
1700 libxml2_LIBS
1701 linker flags for libxml2, overriding pkg-config
1702 jsonc_CFLAGS
1703 C compiler flags for jsonc, overriding pkg-config
1704 jsonc_LIBS linker flags for jsonc, overriding pkg-config
1705 ncurses_CFLAGS
1706 C compiler flags for ncurses, overriding pkg-config
1707 ncurses_LIBS
1708 linker flags for ncurses, overriding pkg-config
1709 selinux_CFLAGS
1710 C compiler flags for selinux, overriding pkg-config
1711 selinux_LIBS
1712 linker flags for selinux, overriding pkg-config
1713 libmicrohttpd_CFLAGS
1714 C compiler flags for libmicrohttpd, overriding pkg-config
1715 libmicrohttpd_LIBS
1716 linker flags for libmicrohttpd, overriding pkg-config
1717 uuid_CFLAGS C compiler flags for uuid, overriding pkg-config
1718 uuid_LIBS linker flags for uuid, overriding pkg-config
1719 libcurl_CFLAGS
1720 C compiler flags for libcurl, overriding pkg-config
1721 libcurl_LIBS
1722 linker flags for libcurl, overriding pkg-config
1723
1724 Use these variables to override the choices made by `configure' or to help
1725 it to find libraries and programs with nonstandard names/locations.
1726
1727 Report bugs to <systemtap@sourceware.org>.
1728 _ACEOF
1729 ac_status=$?
1730 fi
1731
1732 if test "$ac_init_help" = "recursive"; then
1733 # If there are subdirs, report their specific --help.
1734 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1735 test -d "$ac_dir" ||
1736 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1737 continue
1738 ac_builddir=.
1739
1740 case "$ac_dir" in
1741 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742 *)
1743 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1744 # A ".." for each directory in $ac_dir_suffix.
1745 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1746 case $ac_top_builddir_sub in
1747 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1748 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1749 esac ;;
1750 esac
1751 ac_abs_top_builddir=$ac_pwd
1752 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1753 # for backward compatibility:
1754 ac_top_builddir=$ac_top_build_prefix
1755
1756 case $srcdir in
1757 .) # We are building in place.
1758 ac_srcdir=.
1759 ac_top_srcdir=$ac_top_builddir_sub
1760 ac_abs_top_srcdir=$ac_pwd ;;
1761 [\\/]* | ?:[\\/]* ) # Absolute name.
1762 ac_srcdir=$srcdir$ac_dir_suffix;
1763 ac_top_srcdir=$srcdir
1764 ac_abs_top_srcdir=$srcdir ;;
1765 *) # Relative name.
1766 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1767 ac_top_srcdir=$ac_top_build_prefix$srcdir
1768 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1769 esac
1770 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1771
1772 cd "$ac_dir" || { ac_status=$?; continue; }
1773 # Check for guested configure.
1774 if test -f "$ac_srcdir/configure.gnu"; then
1775 echo &&
1776 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1777 elif test -f "$ac_srcdir/configure"; then
1778 echo &&
1779 $SHELL "$ac_srcdir/configure" --help=recursive
1780 else
1781 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1782 fi || ac_status=$?
1783 cd "$ac_pwd" || { ac_status=$?; break; }
1784 done
1785 fi
1786
1787 test -n "$ac_init_help" && exit $ac_status
1788 if $ac_init_version; then
1789 cat <<\_ACEOF
1790 systemtap configure 4.3
1791 generated by GNU Autoconf 2.69
1792
1793 Copyright (C) 2012 Free Software Foundation, Inc.
1794 This configure script is free software; the Free Software Foundation
1795 gives unlimited permission to copy, distribute and modify it.
1796 _ACEOF
1797 exit
1798 fi
1799
1800 ## ------------------------ ##
1801 ## Autoconf initialization. ##
1802 ## ------------------------ ##
1803
1804 # ac_fn_c_try_compile LINENO
1805 # --------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_compile ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext
1811 if { { ac_try="$ac_compile"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1824 fi
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=1
1836 fi
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1839
1840 } # ac_fn_c_try_compile
1841
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_cpp ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_cpp conftest.$ac_ext"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } > conftest.i && {
1864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1866 }; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873 fi
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_cpp
1878
1879 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882 # the include files in INCLUDES and setting the cache variable VAR
1883 # accordingly.
1884 ac_fn_c_check_header_mongrel ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if eval \${$3+:} false; then :
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892 fi
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 else
1897 # Is the header compilable?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899 $as_echo_n "checking $2 usability... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 $4
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 ac_header_compiler=yes
1907 else
1908 ac_header_compiler=no
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912 $as_echo "$ac_header_compiler" >&6; }
1913
1914 # Is the header present?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916 $as_echo_n "checking $2 presence... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_cpp "$LINENO"; then :
1922 ac_header_preproc=yes
1923 else
1924 ac_header_preproc=no
1925 fi
1926 rm -f conftest.err conftest.i conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928 $as_echo "$ac_header_preproc" >&6; }
1929
1930 # So? What about this header?
1931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1932 yes:no: )
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 ;;
1938 no:yes:* )
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1942 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1946 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949 ( $as_echo "## --------------------------------------- ##
1950 ## Report this to systemtap@sourceware.org ##
1951 ## --------------------------------------- ##"
1952 ) | sed "s/^/$as_me: WARNING: /" >&2
1953 ;;
1954 esac
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956 $as_echo_n "checking for $2... " >&6; }
1957 if eval \${$3+:} false; then :
1958 $as_echo_n "(cached) " >&6
1959 else
1960 eval "$3=\$ac_header_compiler"
1961 fi
1962 eval ac_res=\$$3
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 fi
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967
1968 } # ac_fn_c_check_header_mongrel
1969
1970 # ac_fn_c_try_run LINENO
1971 # ----------------------
1972 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1973 # that executables *can* be run.
1974 ac_fn_c_try_run ()
1975 {
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 if { { ac_try="$ac_link"
1978 case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_link") 2>&5
1985 ac_status=$?
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1988 { { case "(($ac_try" in
1989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990 *) ac_try_echo=$ac_try;;
1991 esac
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994 (eval "$ac_try") 2>&5
1995 ac_status=$?
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; }; }; then :
1998 ac_retval=0
1999 else
2000 $as_echo "$as_me: program exited with status $ac_status" >&5
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 ac_retval=$ac_status
2005 fi
2006 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 as_fn_set_status $ac_retval
2009
2010 } # ac_fn_c_try_run
2011
2012 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2013 # -------------------------------------------------------
2014 # Tests whether HEADER exists and can be compiled using the include files in
2015 # INCLUDES, setting the cache variable VAR accordingly.
2016 ac_fn_c_check_header_compile ()
2017 {
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2023 else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 $4
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 eval "$3=yes"
2031 else
2032 eval "$3=no"
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 fi
2036 eval ac_res=\$$3
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040
2041 } # ac_fn_c_check_header_compile
2042
2043 # ac_fn_cxx_try_compile LINENO
2044 # ----------------------------
2045 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2046 ac_fn_cxx_try_compile ()
2047 {
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 rm -f conftest.$ac_objext
2050 if { { ac_try="$ac_compile"
2051 case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2054 esac
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_compile") 2>conftest.err
2058 ac_status=$?
2059 if test -s conftest.err; then
2060 grep -v '^ *+' conftest.err >conftest.er1
2061 cat conftest.er1 >&5
2062 mv -f conftest.er1 conftest.err
2063 fi
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && {
2066 test -z "$ac_cxx_werror_flag" ||
2067 test ! -s conftest.err
2068 } && test -s conftest.$ac_objext; then :
2069 ac_retval=0
2070 else
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_retval=1
2075 fi
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 as_fn_set_status $ac_retval
2078
2079 } # ac_fn_cxx_try_compile
2080
2081 # ac_fn_c_try_link LINENO
2082 # -----------------------
2083 # Try to link conftest.$ac_ext, and return whether this succeeded.
2084 ac_fn_c_try_link ()
2085 {
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 rm -f conftest.$ac_objext conftest$ac_exeext
2088 if { { ac_try="$ac_link"
2089 case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092 esac
2093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094 $as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_link") 2>conftest.err
2096 ac_status=$?
2097 if test -s conftest.err; then
2098 grep -v '^ *+' conftest.err >conftest.er1
2099 cat conftest.er1 >&5
2100 mv -f conftest.er1 conftest.err
2101 fi
2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103 test $ac_status = 0; } && {
2104 test -z "$ac_c_werror_flag" ||
2105 test ! -s conftest.err
2106 } && test -s conftest$ac_exeext && {
2107 test "$cross_compiling" = yes ||
2108 test -x conftest$ac_exeext
2109 }; then :
2110 ac_retval=0
2111 else
2112 $as_echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2114
2115 ac_retval=1
2116 fi
2117 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2118 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2119 # interfere with the next link command; also delete a directory that is
2120 # left behind by Apple's compiler. We do this before executing the actions.
2121 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 as_fn_set_status $ac_retval
2124
2125 } # ac_fn_c_try_link
2126
2127 # ac_fn_c_check_func LINENO FUNC VAR
2128 # ----------------------------------
2129 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2130 ac_fn_c_check_func ()
2131 {
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134 $as_echo_n "checking for $2... " >&6; }
2135 if eval \${$3+:} false; then :
2136 $as_echo_n "(cached) " >&6
2137 else
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2140 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2142 #define $2 innocuous_$2
2143
2144 /* System header to define __stub macros and hopefully few prototypes,
2145 which can conflict with char $2 (); below.
2146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2147 <limits.h> exists even on freestanding compilers. */
2148
2149 #ifdef __STDC__
2150 # include <limits.h>
2151 #else
2152 # include <assert.h>
2153 #endif
2154
2155 #undef $2
2156
2157 /* Override any GCC internal prototype to avoid an error.
2158 Use char because int might match the return type of a GCC
2159 builtin and then its argument prototype would still apply. */
2160 #ifdef __cplusplus
2161 extern "C"
2162 #endif
2163 char $2 ();
2164 /* The GNU C library defines this for functions which it implements
2165 to always fail with ENOSYS. Some functions are actually named
2166 something starting with __ and the normal name is an alias. */
2167 #if defined __stub_$2 || defined __stub___$2
2168 choke me
2169 #endif
2170
2171 int
2172 main ()
2173 {
2174 return $2 ();
2175 ;
2176 return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_c_try_link "$LINENO"; then :
2180 eval "$3=yes"
2181 else
2182 eval "$3=no"
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext \
2185 conftest$ac_exeext conftest.$ac_ext
2186 fi
2187 eval ac_res=\$$3
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191
2192 } # ac_fn_c_check_func
2193
2194 # ac_fn_cxx_try_cpp LINENO
2195 # ------------------------
2196 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2197 ac_fn_cxx_try_cpp ()
2198 {
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 if { { ac_try="$ac_cpp conftest.$ac_ext"
2201 case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2204 esac
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2208 ac_status=$?
2209 if test -s conftest.err; then
2210 grep -v '^ *+' conftest.err >conftest.er1
2211 cat conftest.er1 >&5
2212 mv -f conftest.er1 conftest.err
2213 fi
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; } > conftest.i && {
2216 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2217 test ! -s conftest.err
2218 }; then :
2219 ac_retval=0
2220 else
2221 $as_echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2223
2224 ac_retval=1
2225 fi
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227 as_fn_set_status $ac_retval
2228
2229 } # ac_fn_cxx_try_cpp
2230
2231 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2232 # ---------------------------------------------------------
2233 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2234 # the include files in INCLUDES and setting the cache variable VAR
2235 # accordingly.
2236 ac_fn_cxx_check_header_mongrel ()
2237 {
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 if eval \${$3+:} false; then :
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval \${$3+:} false; then :
2243 $as_echo_n "(cached) " >&6
2244 fi
2245 eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 else
2249 # Is the header compilable?
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2251 $as_echo_n "checking $2 usability... " >&6; }
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 $4
2255 #include <$2>
2256 _ACEOF
2257 if ac_fn_cxx_try_compile "$LINENO"; then :
2258 ac_header_compiler=yes
2259 else
2260 ac_header_compiler=no
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2264 $as_echo "$ac_header_compiler" >&6; }
2265
2266 # Is the header present?
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2268 $as_echo_n "checking $2 presence... " >&6; }
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 #include <$2>
2272 _ACEOF
2273 if ac_fn_cxx_try_cpp "$LINENO"; then :
2274 ac_header_preproc=yes
2275 else
2276 ac_header_preproc=no
2277 fi
2278 rm -f conftest.err conftest.i conftest.$ac_ext
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2280 $as_echo "$ac_header_preproc" >&6; }
2281
2282 # So? What about this header?
2283 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2284 yes:no: )
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2286 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2288 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2289 ;;
2290 no:yes:* )
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2292 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2294 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2296 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2298 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2300 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2301 ( $as_echo "## --------------------------------------- ##
2302 ## Report this to systemtap@sourceware.org ##
2303 ## --------------------------------------- ##"
2304 ) | sed "s/^/$as_me: WARNING: /" >&2
2305 ;;
2306 esac
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if eval \${$3+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 eval "$3=\$ac_header_compiler"
2313 fi
2314 eval ac_res=\$$3
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316 $as_echo "$ac_res" >&6; }
2317 fi
2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319
2320 } # ac_fn_cxx_check_header_mongrel
2321
2322 # ac_fn_cxx_try_link LINENO
2323 # -------------------------
2324 # Try to link conftest.$ac_ext, and return whether this succeeded.
2325 ac_fn_cxx_try_link ()
2326 {
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 rm -f conftest.$ac_objext conftest$ac_exeext
2329 if { { ac_try="$ac_link"
2330 case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2333 esac
2334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335 $as_echo "$ac_try_echo"; } >&5
2336 (eval "$ac_link") 2>conftest.err
2337 ac_status=$?
2338 if test -s conftest.err; then
2339 grep -v '^ *+' conftest.err >conftest.er1
2340 cat conftest.er1 >&5
2341 mv -f conftest.er1 conftest.err
2342 fi
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && {
2345 test -z "$ac_cxx_werror_flag" ||
2346 test ! -s conftest.err
2347 } && test -s conftest$ac_exeext && {
2348 test "$cross_compiling" = yes ||
2349 test -x conftest$ac_exeext
2350 }; then :
2351 ac_retval=0
2352 else
2353 $as_echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 ac_retval=1
2357 fi
2358 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2359 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2360 # interfere with the next link command; also delete a directory that is
2361 # left behind by Apple's compiler. We do this before executing the actions.
2362 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 as_fn_set_status $ac_retval
2365
2366 } # ac_fn_cxx_try_link
2367
2368 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2369 # ---------------------------------------------
2370 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2371 # accordingly.
2372 ac_fn_c_check_decl ()
2373 {
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 as_decl_name=`echo $2|sed 's/ *(.*//'`
2376 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2378 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2379 if eval \${$3+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2384 $4
2385 int
2386 main ()
2387 {
2388 #ifndef $as_decl_name
2389 #ifdef __cplusplus
2390 (void) $as_decl_use;
2391 #else
2392 (void) $as_decl_name;
2393 #endif
2394 #endif
2395
2396 ;
2397 return 0;
2398 }
2399 _ACEOF
2400 if ac_fn_c_try_compile "$LINENO"; then :
2401 eval "$3=yes"
2402 else
2403 eval "$3=no"
2404 fi
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 fi
2407 eval ac_res=\$$3
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2409 $as_echo "$ac_res" >&6; }
2410 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2411
2412 } # ac_fn_c_check_decl
2413 cat >config.log <<_ACEOF
2414 This file contains any messages produced by compilers while
2415 running configure, to aid debugging if configure makes a mistake.
2416
2417 It was created by systemtap $as_me 4.3, which was
2418 generated by GNU Autoconf 2.69. Invocation command line was
2419
2420 $ $0 $@
2421
2422 _ACEOF
2423 exec 5>>config.log
2424 {
2425 cat <<_ASUNAME
2426 ## --------- ##
2427 ## Platform. ##
2428 ## --------- ##
2429
2430 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2431 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2432 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2433 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2434 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2435
2436 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2437 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2438
2439 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2440 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2441 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2442 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2443 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2444 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2445 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2446
2447 _ASUNAME
2448
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 $as_echo "PATH: $as_dir"
2455 done
2456 IFS=$as_save_IFS
2457
2458 } >&5
2459
2460 cat >&5 <<_ACEOF
2461
2462
2463 ## ----------- ##
2464 ## Core tests. ##
2465 ## ----------- ##
2466
2467 _ACEOF
2468
2469
2470 # Keep a trace of the command line.
2471 # Strip out --no-create and --no-recursion so they do not pile up.
2472 # Strip out --silent because we don't want to record it for future runs.
2473 # Also quote any args containing shell meta-characters.
2474 # Make two passes to allow for proper duplicate-argument suppression.
2475 ac_configure_args=
2476 ac_configure_args0=
2477 ac_configure_args1=
2478 ac_must_keep_next=false
2479 for ac_pass in 1 2
2480 do
2481 for ac_arg
2482 do
2483 case $ac_arg in
2484 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2486 | -silent | --silent | --silen | --sile | --sil)
2487 continue ;;
2488 *\'*)
2489 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2490 esac
2491 case $ac_pass in
2492 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2493 2)
2494 as_fn_append ac_configure_args1 " '$ac_arg'"
2495 if test $ac_must_keep_next = true; then
2496 ac_must_keep_next=false # Got value, back to normal.
2497 else
2498 case $ac_arg in
2499 *=* | --config-cache | -C | -disable-* | --disable-* \
2500 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2501 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2502 | -with-* | --with-* | -without-* | --without-* | --x)
2503 case "$ac_configure_args0 " in
2504 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2505 esac
2506 ;;
2507 -* ) ac_must_keep_next=true ;;
2508 esac
2509 fi
2510 as_fn_append ac_configure_args " '$ac_arg'"
2511 ;;
2512 esac
2513 done
2514 done
2515 { ac_configure_args0=; unset ac_configure_args0;}
2516 { ac_configure_args1=; unset ac_configure_args1;}
2517
2518 # When interrupted or exit'd, cleanup temporary files, and complete
2519 # config.log. We remove comments because anyway the quotes in there
2520 # would cause problems or look ugly.
2521 # WARNING: Use '\'' to represent an apostrophe within the trap.
2522 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2523 trap 'exit_status=$?
2524 # Save into config.log some information that might help in debugging.
2525 {
2526 echo
2527
2528 $as_echo "## ---------------- ##
2529 ## Cache variables. ##
2530 ## ---------------- ##"
2531 echo
2532 # The following way of writing the cache mishandles newlines in values,
2533 (
2534 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2535 eval ac_val=\$$ac_var
2536 case $ac_val in #(
2537 *${as_nl}*)
2538 case $ac_var in #(
2539 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2540 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2541 esac
2542 case $ac_var in #(
2543 _ | IFS | as_nl) ;; #(
2544 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2545 *) { eval $ac_var=; unset $ac_var;} ;;
2546 esac ;;
2547 esac
2548 done
2549 (set) 2>&1 |
2550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2551 *${as_nl}ac_space=\ *)
2552 sed -n \
2553 "s/'\''/'\''\\\\'\'''\''/g;
2554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2555 ;; #(
2556 *)
2557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2558 ;;
2559 esac |
2560 sort
2561 )
2562 echo
2563
2564 $as_echo "## ----------------- ##
2565 ## Output variables. ##
2566 ## ----------------- ##"
2567 echo
2568 for ac_var in $ac_subst_vars
2569 do
2570 eval ac_val=\$$ac_var
2571 case $ac_val in
2572 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2573 esac
2574 $as_echo "$ac_var='\''$ac_val'\''"
2575 done | sort
2576 echo
2577
2578 if test -n "$ac_subst_files"; then
2579 $as_echo "## ------------------- ##
2580 ## File substitutions. ##
2581 ## ------------------- ##"
2582 echo
2583 for ac_var in $ac_subst_files
2584 do
2585 eval ac_val=\$$ac_var
2586 case $ac_val in
2587 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2588 esac
2589 $as_echo "$ac_var='\''$ac_val'\''"
2590 done | sort
2591 echo
2592 fi
2593
2594 if test -s confdefs.h; then
2595 $as_echo "## ----------- ##
2596 ## confdefs.h. ##
2597 ## ----------- ##"
2598 echo
2599 cat confdefs.h
2600 echo
2601 fi
2602 test "$ac_signal" != 0 &&
2603 $as_echo "$as_me: caught signal $ac_signal"
2604 $as_echo "$as_me: exit $exit_status"
2605 } >&5
2606 rm -f core *.core core.conftest.* &&
2607 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2608 exit $exit_status
2609 ' 0
2610 for ac_signal in 1 2 13 15; do
2611 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2612 done
2613 ac_signal=0
2614
2615 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2616 rm -f -r conftest* confdefs.h
2617
2618 $as_echo "/* confdefs.h */" > confdefs.h
2619
2620 # Predefined preprocessor variables.
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_NAME "$PACKAGE_NAME"
2624 _ACEOF
2625
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2628 _ACEOF
2629
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2632 _ACEOF
2633
2634 cat >>confdefs.h <<_ACEOF
2635 #define PACKAGE_STRING "$PACKAGE_STRING"
2636 _ACEOF
2637
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2640 _ACEOF
2641
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_URL "$PACKAGE_URL"
2644 _ACEOF
2645
2646
2647 # Let the site file select an alternate cache file if it wants to.
2648 # Prefer an explicitly selected file to automatically selected ones.
2649 ac_site_file1=NONE
2650 ac_site_file2=NONE
2651 if test -n "$CONFIG_SITE"; then
2652 # We do not want a PATH search for config.site.
2653 case $CONFIG_SITE in #((
2654 -*) ac_site_file1=./$CONFIG_SITE;;
2655 */*) ac_site_file1=$CONFIG_SITE;;
2656 *) ac_site_file1=./$CONFIG_SITE;;
2657 esac
2658 elif test "x$prefix" != xNONE; then
2659 ac_site_file1=$prefix/share/config.site
2660 ac_site_file2=$prefix/etc/config.site
2661 else
2662 ac_site_file1=$ac_default_prefix/share/config.site
2663 ac_site_file2=$ac_default_prefix/etc/config.site
2664 fi
2665 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2666 do
2667 test "x$ac_site_file" = xNONE && continue
2668 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2670 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2671 sed 's/^/| /' "$ac_site_file" >&5
2672 . "$ac_site_file" \
2673 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675 as_fn_error $? "failed to load site script $ac_site_file
2676 See \`config.log' for more details" "$LINENO" 5; }
2677 fi
2678 done
2679
2680 if test -r "$cache_file"; then
2681 # Some versions of bash will fail to source /dev/null (special files
2682 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2683 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2685 $as_echo "$as_me: loading cache $cache_file" >&6;}
2686 case $cache_file in
2687 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2688 *) . "./$cache_file";;
2689 esac
2690 fi
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2693 $as_echo "$as_me: creating cache $cache_file" >&6;}
2694 >$cache_file
2695 fi
2696
2697 gt_needs="$gt_needs "
2698 # Check that the precious variables saved in the cache have kept the same
2699 # value.
2700 ac_cache_corrupted=false
2701 for ac_var in $ac_precious_vars; do
2702 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2703 eval ac_new_set=\$ac_env_${ac_var}_set
2704 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2705 eval ac_new_val=\$ac_env_${ac_var}_value
2706 case $ac_old_set,$ac_new_set in
2707 set,)
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2709 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2710 ac_cache_corrupted=: ;;
2711 ,set)
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2713 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2714 ac_cache_corrupted=: ;;
2715 ,);;
2716 *)
2717 if test "x$ac_old_val" != "x$ac_new_val"; then
2718 # differences in whitespace do not lead to failure.
2719 ac_old_val_w=`echo x $ac_old_val`
2720 ac_new_val_w=`echo x $ac_new_val`
2721 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2723 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2724 ac_cache_corrupted=:
2725 else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2727 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2728 eval $ac_var=\$ac_old_val
2729 fi
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2731 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2733 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2734 fi;;
2735 esac
2736 # Pass precious variables to config.status.
2737 if test "$ac_new_set" = set; then
2738 case $ac_new_val in
2739 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2740 *) ac_arg=$ac_var=$ac_new_val ;;
2741 esac
2742 case " $ac_configure_args " in
2743 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2744 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2745 esac
2746 fi
2747 done
2748 if $ac_cache_corrupted; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2752 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2753 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2754 fi
2755 ## -------------------- ##
2756 ## Main body of script. ##
2757 ## -------------------- ##
2758
2759 ac_ext=c
2760 ac_cpp='$CPP $CPPFLAGS'
2761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764
2765
2766
2767 ac_aux_dir=
2768 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2769 if test -f "$ac_dir/install-sh"; then
2770 ac_aux_dir=$ac_dir
2771 ac_install_sh="$ac_aux_dir/install-sh -c"
2772 break
2773 elif test -f "$ac_dir/install.sh"; then
2774 ac_aux_dir=$ac_dir
2775 ac_install_sh="$ac_aux_dir/install.sh -c"
2776 break
2777 elif test -f "$ac_dir/shtool"; then
2778 ac_aux_dir=$ac_dir
2779 ac_install_sh="$ac_aux_dir/shtool install -c"
2780 break
2781 fi
2782 done
2783 if test -z "$ac_aux_dir"; then
2784 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2785 fi
2786
2787 # These three variables are undocumented and unsupported,
2788 # and are intended to be withdrawn in a future Autoconf release.
2789 # They can cause serious problems if a builder's source tree is in a directory
2790 # whose full name contains unusual characters.
2791 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2792 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2793 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2794
2795
2796 # Make sure we can run config.sub.
2797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2798 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2799
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2801 $as_echo_n "checking build system type... " >&6; }
2802 if ${ac_cv_build+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 ac_build_alias=$build_alias
2806 test "x$ac_build_alias" = x &&
2807 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2808 test "x$ac_build_alias" = x &&
2809 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2810 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2811 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2812
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2815 $as_echo "$ac_cv_build" >&6; }
2816 case $ac_cv_build in
2817 *-*-*) ;;
2818 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2819 esac
2820 build=$ac_cv_build
2821 ac_save_IFS=$IFS; IFS='-'
2822 set x $ac_cv_build
2823 shift
2824 build_cpu=$1
2825 build_vendor=$2
2826 shift; shift
2827 # Remember, the first character of IFS is used to create $*,
2828 # except with old shells:
2829 build_os=$*
2830 IFS=$ac_save_IFS
2831 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2832
2833
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2835 $as_echo_n "checking host system type... " >&6; }
2836 if ${ac_cv_host+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test "x$host_alias" = x; then
2840 ac_cv_host=$ac_cv_build
2841 else
2842 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2843 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2844 fi
2845
2846 fi
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2848 $as_echo "$ac_cv_host" >&6; }
2849 case $ac_cv_host in
2850 *-*-*) ;;
2851 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2852 esac
2853 host=$ac_cv_host
2854 ac_save_IFS=$IFS; IFS='-'
2855 set x $ac_cv_host
2856 shift
2857 host_cpu=$1
2858 host_vendor=$2
2859 shift; shift
2860 # Remember, the first character of IFS is used to create $*,
2861 # except with old shells:
2862 host_os=$*
2863 IFS=$ac_save_IFS
2864 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2865
2866
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2868 $as_echo_n "checking target system type... " >&6; }
2869 if ${ac_cv_target+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if test "x$target_alias" = x; then
2873 ac_cv_target=$ac_cv_host
2874 else
2875 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2877 fi
2878
2879 fi
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2881 $as_echo "$ac_cv_target" >&6; }
2882 case $ac_cv_target in
2883 *-*-*) ;;
2884 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2885 esac
2886 target=$ac_cv_target
2887 ac_save_IFS=$IFS; IFS='-'
2888 set x $ac_cv_target
2889 shift
2890 target_cpu=$1
2891 target_vendor=$2
2892 shift; shift
2893 # Remember, the first character of IFS is used to create $*,
2894 # except with old shells:
2895 target_os=$*
2896 IFS=$ac_save_IFS
2897 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2898
2899
2900 # The aliases save the names the user supplied, while $host etc.
2901 # will get canonicalized.
2902 test -n "$target_alias" &&
2903 test "$program_prefix$program_suffix$program_transform_name" = \
2904 NONENONEs,x,x, &&
2905 program_prefix=${target_alias}-
2906
2907
2908 am__api_version='1.16'
2909
2910 # Find a good install program. We prefer a C program (faster),
2911 # so one script is as good as another. But avoid the broken or
2912 # incompatible versions:
2913 # SysV /etc/install, /usr/sbin/install
2914 # SunOS /usr/etc/install
2915 # IRIX /sbin/install
2916 # AIX /bin/install
2917 # AmigaOS /C/install, which installs bootblocks on floppy discs
2918 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2919 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2920 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2921 # OS/2's system install, which has a completely different semantic
2922 # ./install, which can be erroneously created by make from ./install.sh.
2923 # Reject install programs that cannot install multiple files.
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2925 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2926 if test -z "$INSTALL"; then
2927 if ${ac_cv_path_install+:} false; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 # Account for people who put trailing slashes in PATH elements.
2936 case $as_dir/ in #((
2937 ./ | .// | /[cC]/* | \
2938 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2939 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2940 /usr/ucb/* ) ;;
2941 *)
2942 # OSF1 and SCO ODT 3.0 have their own names for install.
2943 # Don't use installbsd from OSF since it installs stuff as root
2944 # by default.
2945 for ac_prog in ginstall scoinst install; do
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2948 if test $ac_prog = install &&
2949 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2950 # AIX install. It has an incompatible calling convention.
2951 :
2952 elif test $ac_prog = install &&
2953 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2954 # program-specific install script used by HP pwplus--don't use.
2955 :
2956 else
2957 rm -rf conftest.one conftest.two conftest.dir
2958 echo one > conftest.one
2959 echo two > conftest.two
2960 mkdir conftest.dir
2961 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2962 test -s conftest.one && test -s conftest.two &&
2963 test -s conftest.dir/conftest.one &&
2964 test -s conftest.dir/conftest.two
2965 then
2966 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2967 break 3
2968 fi
2969 fi
2970 fi
2971 done
2972 done
2973 ;;
2974 esac
2975
2976 done
2977 IFS=$as_save_IFS
2978
2979 rm -rf conftest.one conftest.two conftest.dir
2980
2981 fi
2982 if test "${ac_cv_path_install+set}" = set; then
2983 INSTALL=$ac_cv_path_install
2984 else
2985 # As a last resort, use the slow shell script. Don't cache a
2986 # value for INSTALL within a source directory, because that will
2987 # break other packages using the cache if that directory is
2988 # removed, or if the value is a relative name.
2989 INSTALL=$ac_install_sh
2990 fi
2991 fi
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2993 $as_echo "$INSTALL" >&6; }
2994
2995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2996 # It thinks the first close brace ends the variable substitution.
2997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2998
2999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3000
3001 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3002
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3004 $as_echo_n "checking whether build environment is sane... " >&6; }
3005 # Reject unsafe characters in $srcdir or the absolute working directory
3006 # name. Accept space and tab only in the latter.
3007 am_lf='
3008 '
3009 case `pwd` in
3010 *[\\\"\#\$\&\'\`$am_lf]*)
3011 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3012 esac
3013 case $srcdir in
3014 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3015 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3016 esac
3017
3018 # Do 'set' in a subshell so we don't clobber the current shell's
3019 # arguments. Must try -L first in case configure is actually a
3020 # symlink; some systems play weird games with the mod time of symlinks
3021 # (eg FreeBSD returns the mod time of the symlink's containing
3022 # directory).
3023 if (
3024 am_has_slept=no
3025 for am_try in 1 2; do
3026 echo "timestamp, slept: $am_has_slept" > conftest.file
3027 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3028 if test "$*" = "X"; then
3029 # -L didn't work.
3030 set X `ls -t "$srcdir/configure" conftest.file`
3031 fi
3032 if test "$*" != "X $srcdir/configure conftest.file" \
3033 && test "$*" != "X conftest.file $srcdir/configure"; then
3034
3035 # If neither matched, then we have a broken ls. This can happen
3036 # if, for instance, CONFIG_SHELL is bash and it inherits a
3037 # broken ls alias from the environment. This has actually
3038 # happened. Such a system could not be considered "sane".
3039 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3040 alias in your environment" "$LINENO" 5
3041 fi
3042 if test "$2" = conftest.file || test $am_try -eq 2; then
3043 break
3044 fi
3045 # Just in case.
3046 sleep 1
3047 am_has_slept=yes
3048 done
3049 test "$2" = conftest.file
3050 )
3051 then
3052 # Ok.
3053 :
3054 else
3055 as_fn_error $? "newly created file is older than distributed files!
3056 Check your system clock" "$LINENO" 5
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059 $as_echo "yes" >&6; }
3060 # If we didn't sleep, we still need to ensure time stamps of config.status and
3061 # generated files are strictly newer.
3062 am_sleep_pid=
3063 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3064 ( sleep 1 ) &
3065 am_sleep_pid=$!
3066 fi
3067
3068 rm -f conftest.file
3069
3070 test "$program_prefix" != NONE &&
3071 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3072 # Use a double $ so make ignores it.
3073 test "$program_suffix" != NONE &&
3074 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3075 # Double any \ or $.
3076 # By default was `s,x,x', remove it if useless.
3077 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3078 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3079
3080 # Expand $ac_aux_dir to an absolute path.
3081 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3082
3083 if test x"${MISSING+set}" != xset; then
3084 case $am_aux_dir in
3085 *\ * | *\ *)
3086 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3087 *)
3088 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3089 esac
3090 fi
3091 # Use eval to expand $SHELL
3092 if eval "$MISSING --is-lightweight"; then
3093 am_missing_run="$MISSING "
3094 else
3095 am_missing_run=
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3097 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3098 fi
3099
3100 if test x"${install_sh+set}" != xset; then
3101 case $am_aux_dir in
3102 *\ * | *\ *)
3103 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3104 *)
3105 install_sh="\${SHELL} $am_aux_dir/install-sh"
3106 esac
3107 fi
3108
3109 # Installed binaries are usually stripped using 'strip' when the user
3110 # run "make install-strip". However 'strip' might not be the right
3111 # tool to use in cross-compilation environments, therefore Automake
3112 # will honor the 'STRIP' environment variable to overrule this program.
3113 if test "$cross_compiling" != no; then
3114 if test -n "$ac_tool_prefix"; then
3115 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3116 set dummy ${ac_tool_prefix}strip; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_STRIP+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$STRIP"; then
3123 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 STRIP=$ac_cv_prog_STRIP
3143 if test -n "$STRIP"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3145 $as_echo "$STRIP" >&6; }
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151
3152 fi
3153 if test -z "$ac_cv_prog_STRIP"; then
3154 ac_ct_STRIP=$STRIP
3155 # Extract the first word of "strip", so it can be a program name with args.
3156 set dummy strip; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$ac_ct_STRIP"; then
3163 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_ac_ct_STRIP="strip"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3175 fi
3176 done
3177 done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3183 if test -n "$ac_ct_STRIP"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3185 $as_echo "$ac_ct_STRIP" >&6; }
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191 if test "x$ac_ct_STRIP" = x; then
3192 STRIP=":"
3193 else
3194 case $cross_compiling:$ac_tool_warned in
3195 yes:)
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3198 ac_tool_warned=yes ;;
3199 esac
3200 STRIP=$ac_ct_STRIP
3201 fi
3202 else
3203 STRIP="$ac_cv_prog_STRIP"
3204 fi
3205
3206 fi
3207 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3208
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3210 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3211 if test -z "$MKDIR_P"; then
3212 if ${ac_cv_path_mkdir+:} false; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3217 do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_prog in mkdir gmkdir; do
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3223 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3224 'mkdir (GNU coreutils) '* | \
3225 'mkdir (coreutils) '* | \
3226 'mkdir (fileutils) '4.1*)
3227 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3228 break 3;;
3229 esac
3230 done
3231 done
3232 done
3233 IFS=$as_save_IFS
3234
3235 fi
3236
3237 test -d ./--version && rmdir ./--version
3238 if test "${ac_cv_path_mkdir+set}" = set; then
3239 MKDIR_P="$ac_cv_path_mkdir -p"
3240 else
3241 # As a last resort, use the slow shell script. Don't cache a
3242 # value for MKDIR_P within a source directory, because that will
3243 # break other packages using the cache if that directory is
3244 # removed, or if the value is a relative name.
3245 MKDIR_P="$ac_install_sh -d"
3246 fi
3247 fi
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3249 $as_echo "$MKDIR_P" >&6; }
3250
3251 for ac_prog in gawk mawk nawk awk
3252 do
3253 # Extract the first word of "$ac_prog", so it can be a program name with args.
3254 set dummy $ac_prog; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_AWK+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$AWK"; then
3261 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_AWK="$ac_prog"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 AWK=$ac_cv_prog_AWK
3281 if test -n "$AWK"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3283 $as_echo "$AWK" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290 test -n "$AWK" && break
3291 done
3292
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3294 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3295 set x ${MAKE-make}
3296 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3297 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3300 cat >conftest.make <<\_ACEOF
3301 SHELL = /bin/sh
3302 all:
3303 @echo '@@@%%%=$(MAKE)=@@@%%%'
3304 _ACEOF
3305 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3306 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3307 *@@@%%%=?*=@@@%%%*)
3308 eval ac_cv_prog_make_${ac_make}_set=yes;;
3309 *)
3310 eval ac_cv_prog_make_${ac_make}_set=no;;
3311 esac
3312 rm -f conftest.make
3313 fi
3314 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 SET_MAKE=
3318 else
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321 SET_MAKE="MAKE=${MAKE-make}"
3322 fi
3323
3324 rm -rf .tst 2>/dev/null
3325 mkdir .tst 2>/dev/null
3326 if test -d .tst; then
3327 am__leading_dot=.
3328 else
3329 am__leading_dot=_
3330 fi
3331 rmdir .tst 2>/dev/null
3332
3333 # Check whether --enable-silent-rules was given.
3334 if test "${enable_silent_rules+set}" = set; then :
3335 enableval=$enable_silent_rules;
3336 fi
3337
3338 case $enable_silent_rules in # (((
3339 yes) AM_DEFAULT_VERBOSITY=0;;
3340 no) AM_DEFAULT_VERBOSITY=1;;
3341 *) AM_DEFAULT_VERBOSITY=1;;
3342 esac
3343 am_make=${MAKE-make}
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3345 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3346 if ${am_cv_make_support_nested_variables+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 if $as_echo 'TRUE=$(BAR$(V))
3350 BAR0=false
3351 BAR1=true
3352 V=1
3353 am__doit:
3354 @$(TRUE)
3355 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3356 am_cv_make_support_nested_variables=yes
3357 else
3358 am_cv_make_support_nested_variables=no
3359 fi
3360 fi
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3362 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3363 if test $am_cv_make_support_nested_variables = yes; then
3364 AM_V='$(V)'
3365 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3366 else
3367 AM_V=$AM_DEFAULT_VERBOSITY
3368 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3369 fi
3370 AM_BACKSLASH='\'
3371
3372 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3373 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3374 # is not polluted with repeated "-I."
3375 am__isrc=' -I$(srcdir)'
3376 # test to see if srcdir already configured
3377 if test -f $srcdir/config.status; then
3378 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3379 fi
3380 fi
3381
3382 # test whether we have cygpath
3383 if test -z "$CYGPATH_W"; then
3384 if (cygpath --version) >/dev/null 2>/dev/null; then
3385 CYGPATH_W='cygpath -w'
3386 else
3387 CYGPATH_W=echo
3388 fi
3389 fi
3390
3391
3392 # Define the identity of the package.
3393 PACKAGE='systemtap'
3394 VERSION='4.3'
3395
3396
3397 cat >>confdefs.h <<_ACEOF
3398 #define PACKAGE "$PACKAGE"
3399 _ACEOF
3400
3401
3402 cat >>confdefs.h <<_ACEOF
3403 #define VERSION "$VERSION"
3404 _ACEOF
3405
3406 # Some tools Automake needs.
3407
3408 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3409
3410
3411 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3412
3413
3414 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3415
3416
3417 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3418
3419
3420 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3421
3422 # For better backward compatibility. To be removed once Automake 1.9.x
3423 # dies out for good. For more background, see:
3424 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3425 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3426 mkdir_p='$(MKDIR_P)'
3427
3428 # We need awk for the "check" target (and possibly the TAP driver). The
3429 # system "awk" is bad on some platforms.
3430 # Always define AMTAR for backward compatibility. Yes, it's still used
3431 # in the wild :-( We should find a proper way to deprecate it ...
3432 AMTAR='$${TAR-tar}'
3433
3434
3435 # We'll loop over all known methods to create a tar archive until one works.
3436 _am_tools='gnutar pax cpio none'
3437
3438 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3439
3440
3441
3442
3443
3444
3445 # POSIX will say in a future version that running "rm -f" with no argument
3446 # is OK; and we want to be able to make that assumption in our Makefile
3447 # recipes. So use an aggressive probe to check that the usage we want is
3448 # actually supported "in the wild" to an acceptable degree.
3449 # See automake bug#10828.
3450 # To make any issue more visible, cause the running configure to be aborted
3451 # by default if the 'rm' program in use doesn't match our expectations; the
3452 # user can still override this though.
3453 if rm -f && rm -fr && rm -rf; then : OK; else
3454 cat >&2 <<'END'
3455 Oops!
3456
3457 Your 'rm' program seems unable to run without file operands specified
3458 on the command line, even when the '-f' option is present. This is contrary
3459 to the behaviour of most rm programs out there, and not conforming with
3460 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3461
3462 Please tell bug-automake@gnu.org about your system, including the value
3463 of your $PATH and any error possibly output before this message. This
3464 can help us improve future automake versions.
3465
3466 END
3467 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3468 echo 'Configuration will proceed anyway, since you have set the' >&2
3469 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3470 echo >&2
3471 else
3472 cat >&2 <<'END'
3473 Aborting the configuration process, to ensure you take notice of the issue.
3474
3475 You can download and install GNU coreutils to get an 'rm' implementation
3476 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3477
3478 If you want to complete the configuration process using your problematic
3479 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3480 to "yes", and re-run configure.
3481
3482 END
3483 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3484 fi
3485 fi
3486
3487
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3489 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3490 # Check whether --enable-maintainer-mode was given.
3491 if test "${enable_maintainer_mode+set}" = set; then :
3492 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3493 else
3494 USE_MAINTAINER_MODE=no
3495 fi
3496
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3498 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3499 if test $USE_MAINTAINER_MODE = yes; then
3500 MAINTAINER_MODE_TRUE=
3501 MAINTAINER_MODE_FALSE='#'
3502 else
3503 MAINTAINER_MODE_TRUE='#'
3504 MAINTAINER_MODE_FALSE=
3505 fi
3506
3507 MAINT=$MAINTAINER_MODE_TRUE
3508
3509
3510
3511 # Check whether --enable-silent-rules was given.
3512 if test "${enable_silent_rules+set}" = set; then :
3513 enableval=$enable_silent_rules;
3514 fi
3515
3516 case $enable_silent_rules in # (((
3517 yes) AM_DEFAULT_VERBOSITY=0;;
3518 no) AM_DEFAULT_VERBOSITY=1;;
3519 *) AM_DEFAULT_VERBOSITY=0;;
3520 esac
3521 am_make=${MAKE-make}
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3523 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3524 if ${am_cv_make_support_nested_variables+:} false; then :
3525 $as_echo_n "(cached) " >&6
3526 else
3527 if $as_echo 'TRUE=$(BAR$(V))
3528 BAR0=false
3529 BAR1=true
3530 V=1
3531 am__doit:
3532 @$(TRUE)
3533 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3534 am_cv_make_support_nested_variables=yes
3535 else
3536 am_cv_make_support_nested_variables=no
3537 fi
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3540 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3541 if test $am_cv_make_support_nested_variables = yes; then
3542 AM_V='$(V)'
3543 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3544 else
3545 AM_V=$AM_DEFAULT_VERBOSITY
3546 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3547 fi
3548 AM_BACKSLASH='\'
3549
3550
3551 DEPDIR="${am__leading_dot}deps"
3552
3553 ac_config_commands="$ac_config_commands depfiles"
3554
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3556 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3557 cat > confinc.mk << 'END'
3558 am__doit:
3559 @echo this is the am__doit target >confinc.out
3560 .PHONY: am__doit
3561 END
3562 am__include="#"
3563 am__quote=
3564 # BSD make does it like this.
3565 echo '.include "confinc.mk" # ignored' > confmf.BSD
3566 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3567 echo 'include confinc.mk # ignored' > confmf.GNU
3568 _am_result=no
3569 for s in GNU BSD; do
3570 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3571 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }
3575 case $?:`cat confinc.out 2>/dev/null` in #(
3576 '0:this is the am__doit target') :
3577 case $s in #(
3578 BSD) :
3579 am__include='.include' am__quote='"' ;; #(
3580 *) :
3581 am__include='include' am__quote='' ;;
3582 esac ;; #(
3583 *) :
3584 ;;
3585 esac
3586 if test "$am__include" != "#"; then
3587 _am_result="yes ($s style)"
3588 break
3589 fi
3590 done
3591 rm -f confinc.* confmf.*
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3593 $as_echo "${_am_result}" >&6; }
3594
3595 # Check whether --enable-dependency-tracking was given.
3596 if test "${enable_dependency_tracking+set}" = set; then :
3597 enableval=$enable_dependency_tracking;
3598 fi
3599
3600 if test "x$enable_dependency_tracking" != xno; then
3601 am_depcomp="$ac_aux_dir/depcomp"
3602 AMDEPBACKSLASH='\'
3603 am__nodep='_no'
3604 fi
3605 if test "x$enable_dependency_tracking" != xno; then
3606 AMDEP_TRUE=
3607 AMDEP_FALSE='#'
3608 else
3609 AMDEP_TRUE='#'
3610 AMDEP_FALSE=
3611 fi
3612
3613
3614 ac_ext=c
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619 if test -n "$ac_tool_prefix"; then
3620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if ${ac_cv_prog_CC+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 if test -n "$CC"; then
3628 ac_cv_prog_CC="$CC" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 break 2
3640 fi
3641 done
3642 done
3643 IFS=$as_save_IFS
3644
3645 fi
3646 fi
3647 CC=$ac_cv_prog_CC
3648 if test -n "$CC"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3650 $as_echo "$CC" >&6; }
3651 else
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 fi
3655
3656
3657 fi
3658 if test -z "$ac_cv_prog_CC"; then
3659 ac_ct_CC=$CC
3660 # Extract the first word of "gcc", so it can be a program name with args.
3661 set dummy gcc; ac_word=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 if test -n "$ac_ct_CC"; then
3668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_ac_ct_CC="gcc"
3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681 done
3682 done
3683 IFS=$as_save_IFS
3684
3685 fi
3686 fi
3687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3688 if test -n "$ac_ct_CC"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3690 $as_echo "$ac_ct_CC" >&6; }
3691 else
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3694 fi
3695
3696 if test "x$ac_ct_CC" = x; then
3697 CC=""
3698 else
3699 case $cross_compiling:$ac_tool_warned in
3700 yes:)
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3703 ac_tool_warned=yes ;;
3704 esac
3705 CC=$ac_ct_CC
3706 fi
3707 else
3708 CC="$ac_cv_prog_CC"
3709 fi
3710
3711 if test -z "$CC"; then
3712 if test -n "$ac_tool_prefix"; then
3713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3714 set dummy ${ac_tool_prefix}cc; ac_word=$2
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 $as_echo_n "checking for $ac_word... " >&6; }
3717 if ${ac_cv_prog_CC+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 if test -n "$CC"; then
3721 ac_cv_prog_CC="$CC" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730 ac_cv_prog_CC="${ac_tool_prefix}cc"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3733 fi
3734 done
3735 done
3736 IFS=$as_save_IFS
3737
3738 fi
3739 fi
3740 CC=$ac_cv_prog_CC
3741 if test -n "$CC"; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3743 $as_echo "$CC" >&6; }
3744 else
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3747 fi
3748
3749
3750 fi
3751 fi
3752 if test -z "$CC"; then
3753 # Extract the first word of "cc", so it can be a program name with args.
3754 set dummy cc; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if ${ac_cv_prog_CC+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 if test -n "$CC"; then
3761 ac_cv_prog_CC="$CC" # Let the user override the test.
3762 else
3763 ac_prog_rejected=no
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3772 ac_prog_rejected=yes
3773 continue
3774 fi
3775 ac_cv_prog_CC="cc"
3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3778 fi
3779 done
3780 done
3781 IFS=$as_save_IFS
3782
3783 if test $ac_prog_rejected = yes; then
3784 # We found a bogon in the path, so make sure we never use it.
3785 set dummy $ac_cv_prog_CC
3786 shift
3787 if test $# != 0; then
3788 # We chose a different compiler from the bogus one.
3789 # However, it has the same basename, so the bogon will be chosen
3790 # first if we set CC to just the basename; use the full file name.
3791 shift
3792 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3793 fi
3794 fi
3795 fi
3796 fi
3797 CC=$ac_cv_prog_CC
3798 if test -n "$CC"; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3800 $as_echo "$CC" >&6; }
3801 else
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3804 fi
3805
3806
3807 fi
3808 if test -z "$CC"; then
3809 if test -n "$ac_tool_prefix"; then
3810 for ac_prog in cl.exe
3811 do
3812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_CC+:} false; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 if test -n "$CC"; then
3820 ac_cv_prog_CC="$CC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833 done
3834 done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 CC=$ac_cv_prog_CC
3840 if test -n "$CC"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3842 $as_echo "$CC" >&6; }
3843 else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 fi
3847
3848
3849 test -n "$CC" && break
3850 done
3851 fi
3852 if test -z "$CC"; then
3853 ac_ct_CC=$CC
3854 for ac_prog in cl.exe
3855 do
3856 # Extract the first word of "$ac_prog", so it can be a program name with args.
3857 set dummy $ac_prog; ac_word=$2
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3859 $as_echo_n "checking for $ac_word... " >&6; }
3860 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 if test -n "$ac_ct_CC"; then
3864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3865 else
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH
3868 do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3873 ac_cv_prog_ac_ct_CC="$ac_prog"
3874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 break 2
3876 fi
3877 done
3878 done
3879 IFS=$as_save_IFS
3880
3881 fi
3882 fi
3883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3884 if test -n "$ac_ct_CC"; then
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3886 $as_echo "$ac_ct_CC" >&6; }
3887 else
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3890 fi
3891
3892
3893 test -n "$ac_ct_CC" && break
3894 done
3895
3896 if test "x$ac_ct_CC" = x; then
3897 CC=""
3898 else
3899 case $cross_compiling:$ac_tool_warned in
3900 yes:)
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3903 ac_tool_warned=yes ;;
3904 esac
3905 CC=$ac_ct_CC
3906 fi
3907 fi
3908
3909 fi
3910
3911
3912 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3914 as_fn_error $? "no acceptable C compiler found in \$PATH
3915 See \`config.log' for more details" "$LINENO" 5; }
3916
3917 # Provide some information about the compiler.
3918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3919 set X $ac_compile
3920 ac_compiler=$2
3921 for ac_option in --version -v -V -qversion; do
3922 { { ac_try="$ac_compiler $ac_option >&5"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3930 ac_status=$?
3931 if test -s conftest.err; then
3932 sed '10a\
3933 ... rest of stderr output deleted ...
3934 10q' conftest.err >conftest.er1
3935 cat conftest.er1 >&5
3936 fi
3937 rm -f conftest.er1 conftest.err
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }
3940 done
3941
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944
3945 int
3946 main ()
3947 {
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 ac_clean_files_save=$ac_clean_files
3954 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3955 # Try to create an executable without -o first, disregard a.out.
3956 # It will help us diagnose broken compilers, and finding out an intuition
3957 # of exeext.
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3959 $as_echo_n "checking whether the C compiler works... " >&6; }
3960 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3961
3962 # The possible output files:
3963 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3964
3965 ac_rmfiles=
3966 for ac_file in $ac_files
3967 do
3968 case $ac_file in
3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3970 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3971 esac
3972 done
3973 rm -f $ac_rmfiles
3974
3975 if { { ac_try="$ac_link_default"
3976 case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979 esac
3980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3981 $as_echo "$ac_try_echo"; } >&5
3982 (eval "$ac_link_default") 2>&5
3983 ac_status=$?
3984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3985 test $ac_status = 0; }; then :
3986 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3987 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3988 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3989 # so that the user can short-circuit this test for compilers unknown to
3990 # Autoconf.
3991 for ac_file in $ac_files ''
3992 do
3993 test -f "$ac_file" || continue
3994 case $ac_file in
3995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3996 ;;
3997 [ab].out )
3998 # We found the default executable, but exeext='' is most
3999 # certainly right.
4000 break;;
4001 *.* )
4002 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4003 then :; else
4004 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4005 fi
4006 # We set ac_cv_exeext here because the later test for it is not
4007 # safe: cross compilers may not add the suffix if given an `-o'
4008 # argument, so we may need to know it at that point already.
4009 # Even if this section looks crufty: it has the advantage of
4010 # actually working.
4011 break;;
4012 * )
4013 break;;
4014 esac
4015 done
4016 test "$ac_cv_exeext" = no && ac_cv_exeext=
4017
4018 else
4019 ac_file=''
4020 fi
4021 if test -z "$ac_file"; then :
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4024 $as_echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error 77 "C compiler cannot create executables
4030 See \`config.log' for more details" "$LINENO" 5; }
4031 else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4033 $as_echo "yes" >&6; }
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4036 $as_echo_n "checking for C compiler default output file name... " >&6; }
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4038 $as_echo "$ac_file" >&6; }
4039 ac_exeext=$ac_cv_exeext
4040
4041 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4042 ac_clean_files=$ac_clean_files_save
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4044 $as_echo_n "checking for suffix of executables... " >&6; }
4045 if { { ac_try="$ac_link"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_link") 2>&5
4053 ac_status=$?
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }; then :
4056 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4057 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4058 # work properly (i.e., refer to `conftest.exe'), while it won't with
4059 # `rm'.
4060 for ac_file in conftest.exe conftest conftest.*; do
4061 test -f "$ac_file" || continue
4062 case $ac_file in
4063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4064 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4065 break;;
4066 * ) break;;
4067 esac
4068 done
4069 else
4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4073 See \`config.log' for more details" "$LINENO" 5; }
4074 fi
4075 rm -f conftest conftest$ac_cv_exeext
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4077 $as_echo "$ac_cv_exeext" >&6; }
4078
4079 rm -f conftest.$ac_ext
4080 EXEEXT=$ac_cv_exeext
4081 ac_exeext=$EXEEXT
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084 #include <stdio.h>
4085 int
4086 main ()
4087 {
4088 FILE *f = fopen ("conftest.out", "w");
4089 return ferror (f) || fclose (f) != 0;
4090
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 ac_clean_files="$ac_clean_files conftest.out"
4096 # Check that the compiler produces executables we can run. If not, either
4097 # the compiler is broken, or we cross compile.
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4099 $as_echo_n "checking whether we are cross compiling... " >&6; }
4100 if test "$cross_compiling" != yes; then
4101 { { ac_try="$ac_link"
4102 case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105 esac
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 $as_echo "$ac_try_echo"; } >&5
4108 (eval "$ac_link") 2>&5
4109 ac_status=$?
4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }
4112 if { ac_try='./conftest$ac_cv_exeext'
4113 { { case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119 (eval "$ac_try") 2>&5
4120 ac_status=$?
4121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }; }; then
4123 cross_compiling=no
4124 else
4125 if test "$cross_compiling" = maybe; then
4126 cross_compiling=yes
4127 else
4128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130 as_fn_error $? "cannot run C compiled programs.
4131 If you meant to cross compile, use \`--host'.
4132 See \`config.log' for more details" "$LINENO" 5; }
4133 fi
4134 fi
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4137 $as_echo "$cross_compiling" >&6; }
4138
4139 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4140 ac_clean_files=$ac_clean_files_save
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4142 $as_echo_n "checking for suffix of object files... " >&6; }
4143 if ${ac_cv_objext+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148
4149 int
4150 main ()
4151 {
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.o conftest.obj
4158 if { { ac_try="$ac_compile"
4159 case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162 esac
4163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4164 $as_echo "$ac_try_echo"; } >&5
4165 (eval "$ac_compile") 2>&5
4166 ac_status=$?
4167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4168 test $ac_status = 0; }; then :
4169 for ac_file in conftest.o conftest.obj conftest.*; do
4170 test -f "$ac_file" || continue;
4171 case $ac_file in
4172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4174 break;;
4175 esac
4176 done
4177 else
4178 $as_echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4183 as_fn_error $? "cannot compute suffix of object files: cannot compile
4184 See \`config.log' for more details" "$LINENO" 5; }
4185 fi
4186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4189 $as_echo "$ac_cv_objext" >&6; }
4190 OBJEXT=$ac_cv_objext
4191 ac_objext=$OBJEXT
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4193 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4194 if ${ac_cv_c_compiler_gnu+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199
4200 int
4201 main ()
4202 {
4203 #ifndef __GNUC__
4204 choke me
4205 #endif
4206
4207 ;
4208 return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212 ac_compiler_gnu=yes
4213 else
4214 ac_compiler_gnu=no
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4218
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4222 if test $ac_compiler_gnu = yes; then
4223 GCC=yes
4224 else
4225 GCC=
4226 fi
4227 ac_test_CFLAGS=${CFLAGS+set}
4228 ac_save_CFLAGS=$CFLAGS
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4231 if ${ac_cv_prog_cc_g+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 ac_save_c_werror_flag=$ac_c_werror_flag
4235 ac_c_werror_flag=yes
4236 ac_cv_prog_cc_g=no
4237 CFLAGS="-g"
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240
4241 int
4242 main ()
4243 {
4244
4245 ;
4246 return 0;
4247 }
4248 _ACEOF
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250 ac_cv_prog_cc_g=yes
4251 else
4252 CFLAGS=""
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255
4256 int
4257 main ()
4258 {
4259
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265
4266 else
4267 ac_c_werror_flag=$ac_save_c_werror_flag
4268 CFLAGS="-g"
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271
4272 int
4273 main ()
4274 {
4275
4276 ;
4277 return 0;
4278 }
4279 _ACEOF
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281 ac_cv_prog_cc_g=yes
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 fi
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 ac_c_werror_flag=$ac_save_c_werror_flag
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4291 $as_echo "$ac_cv_prog_cc_g" >&6; }
4292 if test "$ac_test_CFLAGS" = set; then
4293 CFLAGS=$ac_save_CFLAGS
4294 elif test $ac_cv_prog_cc_g = yes; then
4295 if test "$GCC" = yes; then
4296 CFLAGS="-g -O2"
4297 else
4298 CFLAGS="-g"
4299 fi
4300 else
4301 if test "$GCC" = yes; then
4302 CFLAGS="-O2"
4303 else
4304 CFLAGS=
4305 fi
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4308 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4309 if ${ac_cv_prog_cc_c89+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 ac_cv_prog_cc_c89=no
4313 ac_save_CC=$CC
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #include <stdarg.h>
4317 #include <stdio.h>
4318 struct stat;
4319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4320 struct buf { int x; };
4321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4322 static char *e (p, i)
4323 char **p;
4324 int i;
4325 {
4326 return p[i];
4327 }
4328 static char *f (char * (*g) (char **, int), char **p, ...)
4329 {
4330 char *s;
4331 va_list v;
4332 va_start (v,p);
4333 s = g (p, va_arg (v,int));
4334 va_end (v);
4335 return s;
4336 }
4337
4338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4339 function prototypes and stuff, but not '\xHH' hex character constants.
4340 These don't provoke an error unfortunately, instead are silently treated
4341 as 'x'. The following induces an error, until -std is added to get
4342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4343 array size at least. It's necessary to write '\x00'==0 to get something
4344 that's true only with -std. */
4345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4346
4347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4348 inside strings and character constants. */
4349 #define FOO(x) 'x'
4350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4351
4352 int test (int i, double x);
4353 struct s1 {int (*f) (int a);};
4354 struct s2 {int (*f) (double a);};
4355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4356 int argc;
4357 char **argv;
4358 int
4359 main ()
4360 {
4361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4362 ;
4363 return 0;
4364 }
4365 _ACEOF
4366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4368 do
4369 CC="$ac_save_CC $ac_arg"
4370 if ac_fn_c_try_compile "$LINENO"; then :
4371 ac_cv_prog_cc_c89=$ac_arg
4372 fi
4373 rm -f core conftest.err conftest.$ac_objext
4374 test "x$ac_cv_prog_cc_c89" != "xno" && break
4375 done
4376 rm -f conftest.$ac_ext
4377 CC=$ac_save_CC
4378
4379 fi
4380 # AC_CACHE_VAL
4381 case "x$ac_cv_prog_cc_c89" in
4382 x)
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4384 $as_echo "none needed" >&6; } ;;
4385 xno)
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4387 $as_echo "unsupported" >&6; } ;;
4388 *)
4389 CC="$CC $ac_cv_prog_cc_c89"
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4392 esac
4393 if test "x$ac_cv_prog_cc_c89" != xno; then :
4394
4395 fi
4396
4397 ac_ext=c
4398 ac_cpp='$CPP $CPPFLAGS'
4399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402
4403 ac_ext=c
4404 ac_cpp='$CPP $CPPFLAGS'
4405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4409 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4410 if ${am_cv_prog_cc_c_o+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415
4416 int
4417 main ()
4418 {
4419
4420 ;
4421 return 0;
4422 }
4423 _ACEOF
4424 # Make sure it works both with $CC and with simple cc.
4425 # Following AC_PROG_CC_C_O, we do the test twice because some
4426 # compilers refuse to overwrite an existing .o file with -o,
4427 # though they will create one.
4428 am_cv_prog_cc_c_o=yes
4429 for am_i in 1 2; do
4430 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4431 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } \
4435 && test -f conftest2.$ac_objext; then
4436 : OK
4437 else
4438 am_cv_prog_cc_c_o=no
4439 break
4440 fi
4441 done
4442 rm -f core conftest*
4443 unset am_i
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4446 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4447 if test "$am_cv_prog_cc_c_o" != yes; then
4448 # Losing compiler, so override with the script.
4449 # FIXME: It is wrong to rewrite CC.
4450 # But if we don't then we get into trouble of one sort or another.
4451 # A longer-term fix would be to have automake use am__CC in this case,
4452 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4453 CC="$am_aux_dir/compile $CC"
4454 fi
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461
4462 depcc="$CC" am_compiler_list=
4463
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4465 $as_echo_n "checking dependency style of $depcc... " >&6; }
4466 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4470 # We make a subdir and do the tests there. Otherwise we can end up
4471 # making bogus files that we don't know about and never remove. For
4472 # instance it was reported that on HP-UX the gcc test will end up
4473 # making a dummy file named 'D' -- because '-MD' means "put the output
4474 # in D".
4475 rm -rf conftest.dir
4476 mkdir conftest.dir
4477 # Copy depcomp to subdir because otherwise we won't find it if we're
4478 # using a relative directory.
4479 cp "$am_depcomp" conftest.dir
4480 cd conftest.dir
4481 # We will build objects and dependencies in a subdirectory because
4482 # it helps to detect inapplicable dependency modes. For instance
4483 # both Tru64's cc and ICC support -MD to output dependencies as a
4484 # side effect of compilation, but ICC will put the dependencies in
4485 # the current directory while Tru64 will put them in the object
4486 # directory.
4487 mkdir sub
4488
4489 am_cv_CC_dependencies_compiler_type=none
4490 if test "$am_compiler_list" = ""; then
4491 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4492 fi
4493 am__universal=false
4494 case " $depcc " in #(
4495 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4496 esac
4497
4498 for depmode in $am_compiler_list; do
4499 # Setup a source with many dependencies, because some compilers
4500 # like to wrap large dependency lists on column 80 (with \), and
4501 # we should not choose a depcomp mode which is confused by this.
4502 #
4503 # We need to recreate these files for each test, as the compiler may
4504 # overwrite some of them when testing with obscure command lines.
4505 # This happens at least with the AIX C compiler.
4506 : > sub/conftest.c
4507 for i in 1 2 3 4 5 6; do
4508 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4509 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4510 # Solaris 10 /bin/sh.
4511 echo '/* dummy */' > sub/conftst$i.h
4512 done
4513 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4514
4515 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4516 # mode. It turns out that the SunPro C++ compiler does not properly
4517 # handle '-M -o', and we need to detect this. Also, some Intel
4518 # versions had trouble with output in subdirs.
4519 am__obj=sub/conftest.${OBJEXT-o}
4520 am__minus_obj="-o $am__obj"
4521 case $depmode in
4522 gcc)
4523 # This depmode causes a compiler race in universal mode.
4524 test "$am__universal" = false || continue
4525 ;;
4526 nosideeffect)
4527 # After this tag, mechanisms are not by side-effect, so they'll
4528 # only be used when explicitly requested.
4529 if test "x$enable_dependency_tracking" = xyes; then
4530 continue
4531 else
4532 break
4533 fi
4534 ;;
4535 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4536 # This compiler won't grok '-c -o', but also, the minuso test has
4537 # not run yet. These depmodes are late enough in the game, and
4538 # so weak that their functioning should not be impacted.
4539 am__obj=conftest.${OBJEXT-o}
4540 am__minus_obj=
4541 ;;
4542 none) break ;;
4543 esac
4544 if depmode=$depmode \
4545 source=sub/conftest.c object=$am__obj \
4546 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4547 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4548 >/dev/null 2>conftest.err &&
4549 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4550 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4551 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4552 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4553 # icc doesn't choke on unknown options, it will just issue warnings
4554 # or remarks (even with -Werror). So we grep stderr for any message
4555 # that says an option was ignored or not supported.
4556 # When given -MP, icc 7.0 and 7.1 complain thusly:
4557 # icc: Command line warning: ignoring option '-M'; no argument required
4558 # The diagnosis changed in icc 8.0:
4559 # icc: Command line remark: option '-MP' not supported
4560 if (grep 'ignoring option' conftest.err ||
4561 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4562 am_cv_CC_dependencies_compiler_type=$depmode
4563 break
4564 fi
4565 fi
4566 done
4567
4568 cd ..
4569 rm -rf conftest.dir
4570 else
4571 am_cv_CC_dependencies_compiler_type=none
4572 fi
4573
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4576 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4577 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4578
4579 if
4580 test "x$enable_dependency_tracking" != xno \
4581 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4582 am__fastdepCC_TRUE=
4583 am__fastdepCC_FALSE='#'
4584 else
4585 am__fastdepCC_TRUE='#'
4586 am__fastdepCC_FALSE=
4587 fi
4588
4589
4590
4591 ac_ext=c
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4597 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4598 # On Suns, sometimes $CPP names a directory.
4599 if test -n "$CPP" && test -d "$CPP"; then
4600 CPP=
4601 fi
4602 if test -z "$CPP"; then
4603 if ${ac_cv_prog_CPP+:} false; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 # Double quotes because CPP needs to be expanded
4607 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4608 do
4609 ac_preproc_ok=false
4610 for ac_c_preproc_warn_flag in '' yes
4611 do
4612 # Use a header file that comes with gcc, so configuring glibc
4613 # with a fresh cross-compiler works.
4614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4615 # <limits.h> exists even on freestanding compilers.
4616 # On the NeXT, cc -E runs the code through the compiler's parser,
4617 # not just through cpp. "Syntax error" is here to catch this case.
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620 #ifdef __STDC__
4621 # include <limits.h>
4622 #else
4623 # include <assert.h>
4624 #endif
4625 Syntax error
4626 _ACEOF
4627 if ac_fn_c_try_cpp "$LINENO"; then :
4628
4629 else
4630 # Broken: fails on valid input.
4631 continue
4632 fi
4633 rm -f conftest.err conftest.i conftest.$ac_ext
4634
4635 # OK, works on sane cases. Now check whether nonexistent headers
4636 # can be detected and how.
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 #include <ac_nonexistent.h>
4640 _ACEOF
4641 if ac_fn_c_try_cpp "$LINENO"; then :
4642 # Broken: success on invalid input.
4643 continue
4644 else
4645 # Passes both tests.
4646 ac_preproc_ok=:
4647 break
4648 fi
4649 rm -f conftest.err conftest.i conftest.$ac_ext
4650
4651 done
4652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4653 rm -f conftest.i conftest.err conftest.$ac_ext
4654 if $ac_preproc_ok; then :
4655 break
4656 fi
4657
4658 done
4659 ac_cv_prog_CPP=$CPP
4660
4661 fi
4662 CPP=$ac_cv_prog_CPP
4663 else
4664 ac_cv_prog_CPP=$CPP
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4667 $as_echo "$CPP" >&6; }
4668 ac_preproc_ok=false
4669 for ac_c_preproc_warn_flag in '' yes
4670 do
4671 # Use a header file that comes with gcc, so configuring glibc
4672 # with a fresh cross-compiler works.
4673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4674 # <limits.h> exists even on freestanding compilers.
4675 # On the NeXT, cc -E runs the code through the compiler's parser,
4676 # not just through cpp. "Syntax error" is here to catch this case.
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 #ifdef __STDC__
4680 # include <limits.h>
4681 #else
4682 # include <assert.h>
4683 #endif
4684 Syntax error
4685 _ACEOF
4686 if ac_fn_c_try_cpp "$LINENO"; then :
4687
4688 else
4689 # Broken: fails on valid input.
4690 continue
4691 fi
4692 rm -f conftest.err conftest.i conftest.$ac_ext
4693
4694 # OK, works on sane cases. Now check whether nonexistent headers
4695 # can be detected and how.
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 #include <ac_nonexistent.h>
4699 _ACEOF
4700 if ac_fn_c_try_cpp "$LINENO"; then :
4701 # Broken: success on invalid input.
4702 continue
4703 else
4704 # Passes both tests.
4705 ac_preproc_ok=:
4706 break
4707 fi
4708 rm -f conftest.err conftest.i conftest.$ac_ext
4709
4710 done
4711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4712 rm -f conftest.i conftest.err conftest.$ac_ext
4713 if $ac_preproc_ok; then :
4714
4715 else
4716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4718 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4719 See \`config.log' for more details" "$LINENO" 5; }
4720 fi
4721
4722 ac_ext=c
4723 ac_cpp='$CPP $CPPFLAGS'
4724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727
4728
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4730 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4731 if ${ac_cv_path_GREP+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 if test -z "$GREP"; then
4735 ac_path_GREP_found=false
4736 # Loop through the user's path and test for each of PROGNAME-LIST
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4739 do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_prog in grep ggrep; do
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4745 as_fn_executable_p "$ac_path_GREP" || continue
4746 # Check for GNU ac_path_GREP and select it if it is found.
4747 # Check for GNU $ac_path_GREP
4748 case `"$ac_path_GREP" --version 2>&1` in
4749 *GNU*)
4750 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4751 *)
4752 ac_count=0
4753 $as_echo_n 0123456789 >"conftest.in"
4754 while :
4755 do
4756 cat "conftest.in" "conftest.in" >"conftest.tmp"
4757 mv "conftest.tmp" "conftest.in"
4758 cp "conftest.in" "conftest.nl"
4759 $as_echo 'GREP' >> "conftest.nl"
4760 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4762 as_fn_arith $ac_count + 1 && ac_count=$as_val
4763 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4764 # Best one so far, save it but keep looking for a better one
4765 ac_cv_path_GREP="$ac_path_GREP"
4766 ac_path_GREP_max=$ac_count
4767 fi
4768 # 10*(2^10) chars as input seems more than enough
4769 test $ac_count -gt 10 && break
4770 done
4771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4772 esac
4773
4774 $ac_path_GREP_found && break 3
4775 done
4776 done
4777 done
4778 IFS=$as_save_IFS
4779 if test -z "$ac_cv_path_GREP"; then
4780 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4781 fi
4782 else
4783 ac_cv_path_GREP=$GREP
4784 fi
4785
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4788 $as_echo "$ac_cv_path_GREP" >&6; }
4789 GREP="$ac_cv_path_GREP"
4790
4791
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4793 $as_echo_n "checking for egrep... " >&6; }
4794 if ${ac_cv_path_EGREP+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4798 then ac_cv_path_EGREP="$GREP -E"
4799 else
4800 if test -z "$EGREP"; then
4801 ac_path_EGREP_found=false
4802 # Loop through the user's path and test for each of PROGNAME-LIST
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4805 do
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_prog in egrep; do
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4811 as_fn_executable_p "$ac_path_EGREP" || continue
4812 # Check for GNU ac_path_EGREP and select it if it is found.
4813 # Check for GNU $ac_path_EGREP
4814 case `"$ac_path_EGREP" --version 2>&1` in
4815 *GNU*)
4816 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4817 *)
4818 ac_count=0
4819 $as_echo_n 0123456789 >"conftest.in"
4820 while :
4821 do
4822 cat "conftest.in" "conftest.in" >"conftest.tmp"
4823 mv "conftest.tmp" "conftest.in"
4824 cp "conftest.in" "conftest.nl"
4825 $as_echo 'EGREP' >> "conftest.nl"
4826 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4828 as_fn_arith $ac_count + 1 && ac_count=$as_val
4829 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4830 # Best one so far, save it but keep looking for a better one
4831 ac_cv_path_EGREP="$ac_path_EGREP"
4832 ac_path_EGREP_max=$ac_count
4833 fi
4834 # 10*(2^10) chars as input seems more than enough
4835 test $ac_count -gt 10 && break
4836 done
4837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4838 esac
4839
4840 $ac_path_EGREP_found && break 3
4841 done
4842 done
4843 done
4844 IFS=$as_save_IFS
4845 if test -z "$ac_cv_path_EGREP"; then
4846 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4847 fi
4848 else
4849 ac_cv_path_EGREP=$EGREP
4850 fi
4851
4852 fi
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4855 $as_echo "$ac_cv_path_EGREP" >&6; }
4856 EGREP="$ac_cv_path_EGREP"
4857
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4860 $as_echo_n "checking for ANSI C header files... " >&6; }
4861 if ${ac_cv_header_stdc+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 #include <stdlib.h>
4867 #include <stdarg.h>
4868 #include <string.h>
4869 #include <float.h>
4870
4871 int
4872 main ()
4873 {
4874
4875 ;
4876 return 0;
4877 }
4878 _ACEOF
4879 if ac_fn_c_try_compile "$LINENO"; then :
4880 ac_cv_header_stdc=yes
4881 else
4882 ac_cv_header_stdc=no
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885
4886 if test $ac_cv_header_stdc = yes; then
4887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 #include <string.h>
4891
4892 _ACEOF
4893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4894 $EGREP "memchr" >/dev/null 2>&1; then :
4895
4896 else
4897 ac_cv_header_stdc=no
4898 fi
4899 rm -f conftest*
4900
4901 fi
4902
4903 if test $ac_cv_header_stdc = yes; then
4904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907 #include <stdlib.h>
4908
4909 _ACEOF
4910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4911 $EGREP "free" >/dev/null 2>&1; then :
4912
4913 else
4914 ac_cv_header_stdc=no
4915 fi
4916 rm -f conftest*
4917
4918 fi
4919
4920 if test $ac_cv_header_stdc = yes; then
4921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4922 if test "$cross_compiling" = yes; then :
4923 :
4924 else
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 #include <ctype.h>
4928 #include <stdlib.h>
4929 #if ((' ' & 0x0FF) == 0x020)
4930 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4931 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4932 #else
4933 # define ISLOWER(c) \
4934 (('a' <= (c) && (c) <= 'i') \
4935 || ('j' <= (c) && (c) <= 'r') \
4936 || ('s' <= (c) && (c) <= 'z'))
4937 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4938 #endif
4939
4940 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4941 int
4942 main ()
4943 {
4944 int i;
4945 for (i = 0; i < 256; i++)
4946 if (XOR (islower (i), ISLOWER (i))
4947 || toupper (i) != TOUPPER (i))
4948 return 2;
4949 return 0;
4950 }
4951 _ACEOF
4952 if ac_fn_c_try_run "$LINENO"; then :
4953
4954 else
4955 ac_cv_header_stdc=no
4956 fi
4957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4958 conftest.$ac_objext conftest.beam conftest.$ac_ext
4959 fi
4960
4961 fi
4962 fi
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4964 $as_echo "$ac_cv_header_stdc" >&6; }
4965 if test $ac_cv_header_stdc = yes; then
4966
4967 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4968
4969 fi
4970
4971 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4972 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4973 inttypes.h stdint.h unistd.h
4974 do :
4975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4976 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4977 "
4978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4979 cat >>confdefs.h <<_ACEOF
4980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4981 _ACEOF
4982
4983 fi
4984
4985 done
4986
4987
4988
4989 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4990 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4991 MINIX=yes
4992 else
4993 MINIX=
4994 fi
4995
4996
4997 if test "$MINIX" = yes; then
4998
4999 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5000
5001
5002 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5003
5004
5005 $as_echo "#define _MINIX 1" >>confdefs.h
5006
5007 fi
5008
5009
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5011 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5012 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017
5018 # define __EXTENSIONS__ 1
5019 $ac_includes_default
5020 int
5021 main ()
5022 {
5023
5024 ;
5025 return 0;
5026 }
5027 _ACEOF
5028 if ac_fn_c_try_compile "$LINENO"; then :
5029 ac_cv_safe_to_define___extensions__=yes
5030 else
5031 ac_cv_safe_to_define___extensions__=no
5032 fi
5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5036 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5037 test $ac_cv_safe_to_define___extensions__ = yes &&
5038 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5039
5040 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5041
5042 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5043
5044 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5045
5046 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5047
5048
5049
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5052 $as_echo_n "checking whether ln -s works... " >&6; }
5053 LN_S=$as_ln_s
5054 if test "$LN_S" = "ln -s"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5056 $as_echo "yes" >&6; }
5057 else
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5059 $as_echo "no, using $LN_S" >&6; }
5060 fi
5061
5062 ac_ext=c
5063 ac_cpp='$CPP $CPPFLAGS'
5064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5067 if test -n "$ac_tool_prefix"; then
5068 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5069 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_prog_CC+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 if test -n "$CC"; then
5076 ac_cv_prog_CC="$CC" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089 done
5090 done
5091 IFS=$as_save_IFS
5092
5093 fi
5094 fi
5095 CC=$ac_cv_prog_CC
5096 if test -n "$CC"; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5098 $as_echo "$CC" >&6; }
5099 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5102 fi
5103
5104
5105 fi
5106 if test -z "$ac_cv_prog_CC"; then
5107 ac_ct_CC=$CC
5108 # Extract the first word of "gcc", so it can be a program name with args.
5109 set dummy gcc; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 if test -n "$ac_ct_CC"; then
5116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125 ac_cv_prog_ac_ct_CC="gcc"
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5128 fi
5129 done
5130 done
5131 IFS=$as_save_IFS
5132
5133 fi
5134 fi
5135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5136 if test -n "$ac_ct_CC"; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5138 $as_echo "$ac_ct_CC" >&6; }
5139 else
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5142 fi
5143
5144 if test "x$ac_ct_CC" = x; then
5145 CC=""
5146 else
5147 case $cross_compiling:$ac_tool_warned in
5148 yes:)
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5151 ac_tool_warned=yes ;;
5152 esac
5153 CC=$ac_ct_CC
5154 fi
5155 else
5156 CC="$ac_cv_prog_CC"
5157 fi
5158
5159 if test -z "$CC"; then
5160 if test -n "$ac_tool_prefix"; then
5161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5162 set dummy ${ac_tool_prefix}cc; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_prog_CC+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$CC"; then
5169 ac_cv_prog_CC="$CC" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_CC="${ac_tool_prefix}cc"
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 CC=$ac_cv_prog_CC
5189 if test -n "$CC"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5191 $as_echo "$CC" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5195 fi
5196
5197
5198 fi
5199 fi
5200 if test -z "$CC"; then
5201 # Extract the first word of "cc", so it can be a program name with args.
5202 set dummy cc; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if ${ac_cv_prog_CC+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$CC"; then
5209 ac_cv_prog_CC="$CC" # Let the user override the test.
5210 else
5211 ac_prog_rejected=no
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5214 do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5220 ac_prog_rejected=yes
5221 continue
5222 fi
5223 ac_cv_prog_CC="cc"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 if test $ac_prog_rejected = yes; then
5232 # We found a bogon in the path, so make sure we never use it.
5233 set dummy $ac_cv_prog_CC
5234 shift
5235 if test $# != 0; then
5236 # We chose a different compiler from the bogus one.
5237 # However, it has the same basename, so the bogon will be chosen
5238 # first if we set CC to just the basename; use the full file name.
5239 shift
5240 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5241 fi
5242 fi
5243 fi
5244 fi
5245 CC=$ac_cv_prog_CC
5246 if test -n "$CC"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5248 $as_echo "$CC" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254
5255 fi
5256 if test -z "$CC"; then
5257 if test -n "$ac_tool_prefix"; then
5258 for ac_prog in cl.exe
5259 do
5260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_prog_CC+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test -n "$CC"; then
5268 ac_cv_prog_CC="$CC" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281 done
5282 done
5283 IFS=$as_save_IFS
5284
5285 fi
5286 fi
5287 CC=$ac_cv_prog_CC
5288 if test -n "$CC"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5290 $as_echo "$CC" >&6; }
5291 else
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5294 fi
5295
5296
5297 test -n "$CC" && break
5298 done
5299 fi
5300 if test -z "$CC"; then
5301 ac_ct_CC=$CC
5302 for ac_prog in cl.exe
5303 do
5304 # Extract the first word of "$ac_prog", so it can be a program name with args.
5305 set dummy $ac_prog; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 if test -n "$ac_ct_CC"; then
5312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_ac_ct_CC="$ac_prog"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325 done
5326 done
5327 IFS=$as_save_IFS
5328
5329 fi
5330 fi
5331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5332 if test -n "$ac_ct_CC"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5334 $as_echo "$ac_ct_CC" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338 fi
5339
5340
5341 test -n "$ac_ct_CC" && break
5342 done
5343
5344 if test "x$ac_ct_CC" = x; then
5345 CC=""
5346 else
5347 case $cross_compiling:$ac_tool_warned in
5348 yes:)
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5351 ac_tool_warned=yes ;;
5352 esac
5353 CC=$ac_ct_CC
5354 fi
5355 fi
5356
5357 fi
5358
5359
5360 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5362 as_fn_error $? "no acceptable C compiler found in \$PATH
5363 See \`config.log' for more details" "$LINENO" 5; }
5364
5365 # Provide some information about the compiler.
5366 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5367 set X $ac_compile
5368 ac_compiler=$2
5369 for ac_option in --version -v -V -qversion; do
5370 { { ac_try="$ac_compiler $ac_option >&5"
5371 case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374 esac
5375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5376 $as_echo "$ac_try_echo"; } >&5
5377 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5378 ac_status=$?
5379 if test -s conftest.err; then
5380 sed '10a\
5381 ... rest of stderr output deleted ...
5382 10q' conftest.err >conftest.er1
5383 cat conftest.er1 >&5
5384 fi
5385 rm -f conftest.er1 conftest.err
5386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5387 test $ac_status = 0; }
5388 done
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5391 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5392 if ${ac_cv_c_compiler_gnu+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5397
5398 int
5399 main ()
5400 {
5401 #ifndef __GNUC__
5402 choke me
5403 #endif
5404
5405 ;
5406 return 0;
5407 }
5408 _ACEOF
5409 if ac_fn_c_try_compile "$LINENO"; then :
5410 ac_compiler_gnu=yes
5411 else
5412 ac_compiler_gnu=no
5413 fi
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5416
5417 fi
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5419 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5420 if test $ac_compiler_gnu = yes; then
5421 GCC=yes
5422 else
5423 GCC=
5424 fi
5425 ac_test_CFLAGS=${CFLAGS+set}
5426 ac_save_CFLAGS=$CFLAGS
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5428 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5429 if ${ac_cv_prog_cc_g+:} false; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 ac_save_c_werror_flag=$ac_c_werror_flag
5433 ac_c_werror_flag=yes
5434 ac_cv_prog_cc_g=no
5435 CFLAGS="-g"
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438
5439 int
5440 main ()
5441 {
5442
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 if ac_fn_c_try_compile "$LINENO"; then :
5448 ac_cv_prog_cc_g=yes
5449 else
5450 CFLAGS=""
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453
5454 int
5455 main ()
5456 {
5457
5458 ;
5459 return 0;
5460 }
5461 _ACEOF
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463
5464 else
5465 ac_c_werror_flag=$ac_save_c_werror_flag
5466 CFLAGS="-g"
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469
5470 int
5471 main ()
5472 {
5473
5474 ;
5475 return 0;
5476 }
5477 _ACEOF
5478 if ac_fn_c_try_compile "$LINENO"; then :
5479 ac_cv_prog_cc_g=yes
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 ac_c_werror_flag=$ac_save_c_werror_flag
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5489 $as_echo "$ac_cv_prog_cc_g" >&6; }
5490 if test "$ac_test_CFLAGS" = set; then
5491 CFLAGS=$ac_save_CFLAGS
5492 elif test $ac_cv_prog_cc_g = yes; then
5493 if test "$GCC" = yes; then
5494 CFLAGS="-g -O2"
5495 else
5496 CFLAGS="-g"
5497 fi
5498 else
5499 if test "$GCC" = yes; then
5500 CFLAGS="-O2"
5501 else
5502 CFLAGS=
5503 fi
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5506 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5507 if ${ac_cv_prog_cc_c89+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 ac_cv_prog_cc_c89=no
5511 ac_save_CC=$CC
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 #include <stdarg.h>
5515 #include <stdio.h>
5516 struct stat;
5517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5518 struct buf { int x; };
5519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5520 static char *e (p, i)
5521 char **p;
5522 int i;
5523 {
5524 return p[i];
5525 }
5526 static char *f (char * (*g) (char **, int), char **p, ...)
5527 {
5528 char *s;
5529 va_list v;
5530 va_start (v,p);
5531 s = g (p, va_arg (v,int));
5532 va_end (v);
5533 return s;
5534 }
5535
5536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5537 function prototypes and stuff, but not '\xHH' hex character constants.
5538 These don't provoke an error unfortunately, instead are silently treated
5539 as 'x'. The following induces an error, until -std is added to get
5540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5541 array size at least. It's necessary to write '\x00'==0 to get something
5542 that's true only with -std. */
5543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5544
5545 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5546 inside strings and character constants. */
5547 #define FOO(x) 'x'
5548 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5549
5550 int test (int i, double x);
5551 struct s1 {int (*f) (int a);};
5552 struct s2 {int (*f) (double a);};
5553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5554 int argc;
5555 char **argv;
5556 int
5557 main ()
5558 {
5559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5565 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5566 do
5567 CC="$ac_save_CC $ac_arg"
5568 if ac_fn_c_try_compile "$LINENO"; then :
5569 ac_cv_prog_cc_c89=$ac_arg
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext
5572 test "x$ac_cv_prog_cc_c89" != "xno" && break
5573 done
5574 rm -f conftest.$ac_ext
5575 CC=$ac_save_CC
5576
5577 fi
5578 # AC_CACHE_VAL
5579 case "x$ac_cv_prog_cc_c89" in
5580 x)
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5582 $as_echo "none needed" >&6; } ;;
5583 xno)
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5585 $as_echo "unsupported" >&6; } ;;
5586 *)
5587 CC="$CC $ac_cv_prog_cc_c89"
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5589 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5590 esac
5591 if test "x$ac_cv_prog_cc_c89" != xno; then :
5592
5593 fi
5594
5595 ac_ext=c
5596 ac_cpp='$CPP $CPPFLAGS'
5597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600
5601 ac_ext=c
5602 ac_cpp='$CPP $CPPFLAGS'
5603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5607 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5608 if ${am_cv_prog_cc_c_o+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613
5614 int
5615 main ()
5616 {
5617
5618 ;
5619 return 0;
5620 }
5621 _ACEOF
5622 # Make sure it works both with $CC and with simple cc.
5623 # Following AC_PROG_CC_C_O, we do the test twice because some
5624 # compilers refuse to overwrite an existing .o file with -o,
5625 # though they will create one.
5626 am_cv_prog_cc_c_o=yes
5627 for am_i in 1 2; do
5628 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5629 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } \
5633 && test -f conftest2.$ac_objext; then
5634 : OK
5635 else
5636 am_cv_prog_cc_c_o=no
5637 break
5638 fi
5639 done
5640 rm -f core conftest*
5641 unset am_i
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5644 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5645 if test "$am_cv_prog_cc_c_o" != yes; then
5646 # Losing compiler, so override with the script.
5647 # FIXME: It is wrong to rewrite CC.
5648 # But if we don't then we get into trouble of one sort or another.
5649 # A longer-term fix would be to have automake use am__CC in this case,
5650 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5651 CC="$am_aux_dir/compile $CC"
5652 fi
5653 ac_ext=c
5654 ac_cpp='$CPP $CPPFLAGS'
5655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5658
5659
5660 depcc="$CC" am_compiler_list=
5661
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5663 $as_echo_n "checking dependency style of $depcc... " >&6; }
5664 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5668 # We make a subdir and do the tests there. Otherwise we can end up
5669 # making bogus files that we don't know about and never remove. For
5670 # instance it was reported that on HP-UX the gcc test will end up
5671 # making a dummy file named 'D' -- because '-MD' means "put the output
5672 # in D".
5673 rm -rf conftest.dir
5674 mkdir conftest.dir
5675 # Copy depcomp to subdir because otherwise we won't find it if we're
5676 # using a relative directory.
5677 cp "$am_depcomp" conftest.dir
5678 cd conftest.dir
5679 # We will build objects and dependencies in a subdirectory because
5680 # it helps to detect inapplicable dependency modes. For instance
5681 # both Tru64's cc and ICC support -MD to output dependencies as a
5682 # side effect of compilation, but ICC will put the dependencies in
5683 # the current directory while Tru64 will put them in the object
5684 # directory.
5685 mkdir sub
5686
5687 am_cv_CC_dependencies_compiler_type=none
5688 if test "$am_compiler_list" = ""; then
5689 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5690 fi
5691 am__universal=false
5692 case " $depcc " in #(
5693 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5694 esac
5695
5696 for depmode in $am_compiler_list; do
5697 # Setup a source with many dependencies, because some compilers
5698 # like to wrap large dependency lists on column 80 (with \), and
5699 # we should not choose a depcomp mode which is confused by this.
5700 #
5701 # We need to recreate these files for each test, as the compiler may
5702 # overwrite some of them when testing with obscure command lines.
5703 # This happens at least with the AIX C compiler.
5704 : > sub/conftest.c
5705 for i in 1 2 3 4 5 6; do
5706 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5707 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5708 # Solaris 10 /bin/sh.
5709 echo '/* dummy */' > sub/conftst$i.h
5710 done
5711 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5712
5713 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5714 # mode. It turns out that the SunPro C++ compiler does not properly
5715 # handle '-M -o', and we need to detect this. Also, some Intel
5716 # versions had trouble with output in subdirs.
5717 am__obj=sub/conftest.${OBJEXT-o}
5718 am__minus_obj="-o $am__obj"
5719 case $depmode in
5720 gcc)
5721 # This depmode causes a compiler race in universal mode.
5722 test "$am__universal" = false || continue
5723 ;;
5724 nosideeffect)
5725 # After this tag, mechanisms are not by side-effect, so they'll
5726 # only be used when explicitly requested.
5727 if test "x$enable_dependency_tracking" = xyes; then
5728 continue
5729 else
5730 break
5731 fi
5732 ;;
5733 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5734 # This compiler won't grok '-c -o', but also, the minuso test has
5735 # not run yet. These depmodes are late enough in the game, and
5736 # so weak that their functioning should not be impacted.
5737 am__obj=conftest.${OBJEXT-o}
5738 am__minus_obj=
5739 ;;
5740 none) break ;;
5741 esac
5742 if depmode=$depmode \
5743 source=sub/conftest.c object=$am__obj \
5744 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5745 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5746 >/dev/null 2>conftest.err &&
5747 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5748 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5749 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5750 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5751 # icc doesn't choke on unknown options, it will just issue warnings
5752 # or remarks (even with -Werror). So we grep stderr for any message
5753 # that says an option was ignored or not supported.
5754 # When given -MP, icc 7.0 and 7.1 complain thusly:
5755 # icc: Command line warning: ignoring option '-M'; no argument required
5756 # The diagnosis changed in icc 8.0:
5757 # icc: Command line remark: option '-MP' not supported
5758 if (grep 'ignoring option' conftest.err ||
5759 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5760 am_cv_CC_dependencies_compiler_type=$depmode
5761 break
5762 fi
5763 fi
5764 done
5765
5766 cd ..
5767 rm -rf conftest.dir
5768 else
5769 am_cv_CC_dependencies_compiler_type=none
5770 fi
5771
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5774 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5775 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5776
5777 if
5778 test "x$enable_dependency_tracking" != xno \
5779 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5780 am__fastdepCC_TRUE=
5781 am__fastdepCC_FALSE='#'
5782 else
5783 am__fastdepCC_TRUE='#'
5784 am__fastdepCC_FALSE=
5785 fi
5786
5787
5788 ac_ext=cpp
5789 ac_cpp='$CXXCPP $CPPFLAGS'
5790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5793 if test -z "$CXX"; then
5794 if test -n "$CCC"; then
5795 CXX=$CCC
5796 else
5797 if test -n "$ac_tool_prefix"; then
5798 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5799 do
5800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_CXX+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 if test -n "$CXX"; then
5808 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 CXX=$ac_cv_prog_CXX
5828 if test -n "$CXX"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5830 $as_echo "$CXX" >&6; }
5831 else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836
5837 test -n "$CXX" && break
5838 done
5839 fi
5840 if test -z "$CXX"; then
5841 ac_ct_CXX=$CXX
5842 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5843 do
5844 # Extract the first word of "$ac_prog", so it can be a program name with args.
5845 set dummy $ac_prog; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 if test -n "$ac_ct_CXX"; then
5852 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_ac_ct_CXX="$ac_prog"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865 done
5866 done
5867 IFS=$as_save_IFS
5868
5869 fi
5870 fi
5871 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5872 if test -n "$ac_ct_CXX"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5874 $as_echo "$ac_ct_CXX" >&6; }
5875 else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5878 fi
5879
5880
5881 test -n "$ac_ct_CXX" && break
5882 done
5883
5884 if test "x$ac_ct_CXX" = x; then
5885 CXX="g++"
5886 else
5887 case $cross_compiling:$ac_tool_warned in
5888 yes:)
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891 ac_tool_warned=yes ;;
5892 esac
5893 CXX=$ac_ct_CXX
5894 fi
5895 fi
5896
5897 fi
5898 fi
5899 # Provide some information about the compiler.
5900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5901 set X $ac_compile
5902 ac_compiler=$2
5903 for ac_option in --version -v -V -qversion; do
5904 { { ac_try="$ac_compiler $ac_option >&5"
5905 case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908 esac
5909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5910 $as_echo "$ac_try_echo"; } >&5
5911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5912 ac_status=$?
5913 if test -s conftest.err; then
5914 sed '10a\
5915 ... rest of stderr output deleted ...
5916 10q' conftest.err >conftest.er1
5917 cat conftest.er1 >&5
5918 fi
5919 rm -f conftest.er1 conftest.err
5920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921 test $ac_status = 0; }
5922 done
5923
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5925 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5926 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5931
5932 int
5933 main ()
5934 {
5935 #ifndef __GNUC__
5936 choke me
5937 #endif
5938
5939 ;
5940 return 0;
5941 }
5942 _ACEOF
5943 if ac_fn_cxx_try_compile "$LINENO"; then :
5944 ac_compiler_gnu=yes
5945 else
5946 ac_compiler_gnu=no
5947 fi
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5950
5951 fi
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5953 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5954 if test $ac_compiler_gnu = yes; then
5955 GXX=yes
5956 else
5957 GXX=
5958 fi
5959 ac_test_CXXFLAGS=${CXXFLAGS+set}
5960 ac_save_CXXFLAGS=$CXXFLAGS
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5962 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5963 if ${ac_cv_prog_cxx_g+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5967 ac_cxx_werror_flag=yes
5968 ac_cv_prog_cxx_g=no
5969 CXXFLAGS="-g"
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972
5973 int
5974 main ()
5975 {
5976
5977 ;
5978 return 0;
5979 }
5980 _ACEOF
5981 if ac_fn_cxx_try_compile "$LINENO"; then :
5982 ac_cv_prog_cxx_g=yes
5983 else
5984 CXXFLAGS=""
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987
5988 int
5989 main ()
5990 {
5991
5992 ;
5993 return 0;
5994 }
5995 _ACEOF
5996 if ac_fn_cxx_try_compile "$LINENO"; then :
5997
5998 else
5999 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6000 CXXFLAGS="-g"
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003
6004 int
6005 main ()
6006 {
6007
6008 ;
6009 return 0;
6010 }
6011 _ACEOF
6012 if ac_fn_cxx_try_compile "$LINENO"; then :
6013 ac_cv_prog_cxx_g=yes
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 fi
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 fi
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6021 fi
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6023 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6024 if test "$ac_test_CXXFLAGS" = set; then
6025 CXXFLAGS=$ac_save_CXXFLAGS
6026 elif test $ac_cv_prog_cxx_g = yes; then
6027 if test "$GXX" = yes; then
6028 CXXFLAGS="-g -O2"
6029 else
6030 CXXFLAGS="-g"
6031 fi
6032 else
6033 if test "$GXX" = yes; then
6034 CXXFLAGS="-O2"
6035 else
6036 CXXFLAGS=
6037 fi
6038 fi
6039 ac_ext=c
6040 ac_cpp='$CPP $CPPFLAGS'
6041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6044
6045 depcc="$CXX" am_compiler_list=
6046
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6048 $as_echo_n "checking dependency style of $depcc... " >&6; }
6049 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6053 # We make a subdir and do the tests there. Otherwise we can end up
6054 # making bogus files that we don't know about and never remove. For
6055 # instance it was reported that on HP-UX the gcc test will end up
6056 # making a dummy file named 'D' -- because '-MD' means "put the output
6057 # in D".
6058 rm -rf conftest.dir
6059 mkdir conftest.dir
6060 # Copy depcomp to subdir because otherwise we won't find it if we're
6061 # using a relative directory.
6062 cp "$am_depcomp" conftest.dir
6063 cd conftest.dir
6064 # We will build objects and dependencies in a subdirectory because
6065 # it helps to detect inapplicable dependency modes. For instance
6066 # both Tru64's cc and ICC support -MD to output dependencies as a
6067 # side effect of compilation, but ICC will put the dependencies in
6068 # the current directory while Tru64 will put them in the object
6069 # directory.
6070 mkdir sub
6071
6072 am_cv_CXX_dependencies_compiler_type=none
6073 if test "$am_compiler_list" = ""; then
6074 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6075 fi
6076 am__universal=false
6077 case " $depcc " in #(
6078 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6079 esac
6080
6081 for depmode in $am_compiler_list; do
6082 # Setup a source with many dependencies, because some compilers
6083 # like to wrap large dependency lists on column 80 (with \), and
6084 # we should not choose a depcomp mode which is confused by this.
6085 #
6086 # We need to recreate these files for each test, as the compiler may
6087 # overwrite some of them when testing with obscure command lines.
6088 # This happens at least with the AIX C compiler.
6089 : > sub/conftest.c
6090 for i in 1 2 3 4 5 6; do
6091 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6092 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6093 # Solaris 10 /bin/sh.
6094 echo '/* dummy */' > sub/conftst$i.h
6095 done
6096 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6097
6098 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6099 # mode. It turns out that the SunPro C++ compiler does not properly
6100 # handle '-M -o', and we need to detect this. Also, some Intel
6101 # versions had trouble with output in subdirs.
6102 am__obj=sub/conftest.${OBJEXT-o}
6103 am__minus_obj="-o $am__obj"
6104 case $depmode in
6105 gcc)
6106 # This depmode causes a compiler race in universal mode.
6107 test "$am__universal" = false || continue
6108 ;;
6109 nosideeffect)
6110 # After this tag, mechanisms are not by side-effect, so they'll
6111 # only be used when explicitly requested.
6112 if test "x$enable_dependency_tracking" = xyes; then
6113 continue
6114 else
6115 break
6116 fi
6117 ;;
6118 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6119 # This compiler won't grok '-c -o', but also, the minuso test has
6120 # not run yet. These depmodes are late enough in the game, and
6121 # so weak that their functioning should not be impacted.
6122 am__obj=conftest.${OBJEXT-o}
6123 am__minus_obj=
6124 ;;
6125 none) break ;;
6126 esac
6127 if depmode=$depmode \
6128 source=sub/conftest.c object=$am__obj \
6129 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6130 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6131 >/dev/null 2>conftest.err &&
6132 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6133 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6134 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6135 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6136 # icc doesn't choke on unknown options, it will just issue warnings
6137 # or remarks (even with -Werror). So we grep stderr for any message
6138 # that says an option was ignored or not supported.
6139 # When given -MP, icc 7.0 and 7.1 complain thusly:
6140 # icc: Command line warning: ignoring option '-M'; no argument required
6141 # The diagnosis changed in icc 8.0:
6142 # icc: Command line remark: option '-MP' not supported
6143 if (grep 'ignoring option' conftest.err ||
6144 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6145 am_cv_CXX_dependencies_compiler_type=$depmode
6146 break
6147 fi
6148 fi
6149 done
6150
6151 cd ..
6152 rm -rf conftest.dir
6153 else
6154 am_cv_CXX_dependencies_compiler_type=none
6155 fi
6156
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6159 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6160 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6161
6162 if
6163 test "x$enable_dependency_tracking" != xno \
6164 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6165 am__fastdepCXX_TRUE=
6166 am__fastdepCXX_FALSE='#'
6167 else
6168 am__fastdepCXX_TRUE='#'
6169 am__fastdepCXX_FALSE=
6170 fi
6171
6172
6173 ac_ext=c
6174 ac_cpp='$CPP $CPPFLAGS'
6175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6179 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6180 # On Suns, sometimes $CPP names a directory.
6181 if test -n "$CPP" && test -d "$CPP"; then
6182 CPP=
6183 fi
6184 if test -z "$CPP"; then
6185 if ${ac_cv_prog_CPP+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 # Double quotes because CPP needs to be expanded
6189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6190 do
6191 ac_preproc_ok=false
6192 for ac_c_preproc_warn_flag in '' yes
6193 do
6194 # Use a header file that comes with gcc, so configuring glibc
6195 # with a fresh cross-compiler works.
6196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6197 # <limits.h> exists even on freestanding compilers.
6198 # On the NeXT, cc -E runs the code through the compiler's parser,
6199 # not just through cpp. "Syntax error" is here to catch this case.
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #ifdef __STDC__
6203 # include <limits.h>
6204 #else
6205 # include <assert.h>
6206 #endif
6207 Syntax error
6208 _ACEOF
6209 if ac_fn_c_try_cpp "$LINENO"; then :
6210
6211 else
6212 # Broken: fails on valid input.
6213 continue
6214 fi
6215 rm -f conftest.err conftest.i conftest.$ac_ext
6216
6217 # OK, works on sane cases. Now check whether nonexistent headers
6218 # can be detected and how.
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 #include <ac_nonexistent.h>
6222 _ACEOF
6223 if ac_fn_c_try_cpp "$LINENO"; then :
6224 # Broken: success on invalid input.
6225 continue
6226 else
6227 # Passes both tests.
6228 ac_preproc_ok=:
6229 break
6230 fi
6231 rm -f conftest.err conftest.i conftest.$ac_ext
6232
6233 done
6234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6235 rm -f conftest.i conftest.err conftest.$ac_ext
6236 if $ac_preproc_ok; then :
6237 break
6238 fi
6239
6240 done
6241 ac_cv_prog_CPP=$CPP
6242
6243 fi
6244 CPP=$ac_cv_prog_CPP
6245 else
6246 ac_cv_prog_CPP=$CPP
6247 fi
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6249 $as_echo "$CPP" >&6; }
6250 ac_preproc_ok=false
6251 for ac_c_preproc_warn_flag in '' yes
6252 do
6253 # Use a header file that comes with gcc, so configuring glibc
6254 # with a fresh cross-compiler works.
6255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6256 # <limits.h> exists even on freestanding compilers.
6257 # On the NeXT, cc -E runs the code through the compiler's parser,
6258 # not just through cpp. "Syntax error" is here to catch this case.
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 #ifdef __STDC__
6262 # include <limits.h>
6263 #else
6264 # include <assert.h>
6265 #endif
6266 Syntax error
6267 _ACEOF
6268 if ac_fn_c_try_cpp "$LINENO"; then :
6269
6270 else
6271 # Broken: fails on valid input.
6272 continue
6273 fi
6274 rm -f conftest.err conftest.i conftest.$ac_ext
6275
6276 # OK, works on sane cases. Now check whether nonexistent headers
6277 # can be detected and how.
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #include <ac_nonexistent.h>
6281 _ACEOF
6282 if ac_fn_c_try_cpp "$LINENO"; then :
6283 # Broken: success on invalid input.
6284 continue
6285 else
6286 # Passes both tests.
6287 ac_preproc_ok=:
6288 break
6289 fi
6290 rm -f conftest.err conftest.i conftest.$ac_ext
6291
6292 done
6293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6294 rm -f conftest.i conftest.err conftest.$ac_ext
6295 if $ac_preproc_ok; then :
6296
6297 else
6298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6300 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6301 See \`config.log' for more details" "$LINENO" 5; }
6302 fi
6303
6304 ac_ext=c
6305 ac_cpp='$CPP $CPPFLAGS'
6306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6309
6310
6311 if test -n "$ac_tool_prefix"; then
6312 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6313 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_RANLIB+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 if test -n "$RANLIB"; then
6320 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333 done
6334 done
6335 IFS=$as_save_IFS
6336
6337 fi
6338 fi
6339 RANLIB=$ac_cv_prog_RANLIB
6340 if test -n "$RANLIB"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6342 $as_echo "$RANLIB" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347
6348
6349 fi
6350 if test -z "$ac_cv_prog_RANLIB"; then
6351 ac_ct_RANLIB=$RANLIB
6352 # Extract the first word of "ranlib", so it can be a program name with args.
6353 set dummy ranlib; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if test -n "$ac_ct_RANLIB"; then
6360 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_ac_ct_RANLIB="ranlib"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6372 fi
6373 done
6374 done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6380 if test -n "$ac_ct_RANLIB"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6382 $as_echo "$ac_ct_RANLIB" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388 if test "x$ac_ct_RANLIB" = x; then
6389 RANLIB=":"
6390 else
6391 case $cross_compiling:$ac_tool_warned in
6392 yes:)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395 ac_tool_warned=yes ;;
6396 esac
6397 RANLIB=$ac_ct_RANLIB
6398 fi
6399 else
6400 RANLIB="$ac_cv_prog_RANLIB"
6401 fi
6402
6403
6404
6405
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6407 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6408 set x ${MAKE-make}
6409 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6410 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 cat >conftest.make <<\_ACEOF
6414 SHELL = /bin/sh
6415 all:
6416 @echo '@@@%%%=$(MAKE)=@@@%%%'
6417 _ACEOF
6418 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6419 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6420 *@@@%%%=?*=@@@%%%*)
6421 eval ac_cv_prog_make_${ac_make}_set=yes;;
6422 *)
6423 eval ac_cv_prog_make_${ac_make}_set=no;;
6424 esac
6425 rm -f conftest.make
6426 fi
6427 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6429 $as_echo "yes" >&6; }
6430 SET_MAKE=
6431 else
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6434 SET_MAKE="MAKE=${MAKE-make}"
6435 fi
6436
6437
6438
6439 # Check whether --enable-largefile was given.
6440 if test "${enable_largefile+set}" = set; then :
6441 enableval=$enable_largefile;
6442 fi
6443
6444 if test "$enable_largefile" != no; then
6445
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6447 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6448 if ${ac_cv_sys_largefile_CC+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 ac_cv_sys_largefile_CC=no
6452 if test "$GCC" != yes; then
6453 ac_save_CC=$CC
6454 while :; do
6455 # IRIX 6.2 and later do not support large files by default,
6456 # so use the C compiler's -n32 option if that helps.
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 #include <sys/types.h>
6460 /* Check that off_t can represent 2**63 - 1 correctly.
6461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6462 since some C++ compilers masquerading as C compilers
6463 incorrectly reject 9223372036854775807. */
6464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6466 && LARGE_OFF_T % 2147483647 == 1)
6467 ? 1 : -1];
6468 int
6469 main ()
6470 {
6471
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"; then :
6477 break
6478 fi
6479 rm -f core conftest.err conftest.$ac_objext
6480 CC="$CC -n32"
6481 if ac_fn_c_try_compile "$LINENO"; then :
6482 ac_cv_sys_largefile_CC=' -n32'; break
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext
6485 break
6486 done
6487 CC=$ac_save_CC
6488 rm -f conftest.$ac_ext
6489 fi
6490 fi
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6492 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6493 if test "$ac_cv_sys_largefile_CC" != no; then
6494 CC=$CC$ac_cv_sys_largefile_CC
6495 fi
6496
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6498 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6499 if ${ac_cv_sys_file_offset_bits+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 while :; do
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 #include <sys/types.h>
6506 /* Check that off_t can represent 2**63 - 1 correctly.
6507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6508 since some C++ compilers masquerading as C compilers
6509 incorrectly reject 9223372036854775807. */
6510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6512 && LARGE_OFF_T % 2147483647 == 1)
6513 ? 1 : -1];
6514 int
6515 main ()
6516 {
6517
6518 ;
6519 return 0;
6520 }
6521 _ACEOF
6522 if ac_fn_c_try_compile "$LINENO"; then :
6523 ac_cv_sys_file_offset_bits=no; break
6524 fi
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 #define _FILE_OFFSET_BITS 64
6529 #include <sys/types.h>
6530 /* Check that off_t can represent 2**63 - 1 correctly.
6531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6532 since some C++ compilers masquerading as C compilers
6533 incorrectly reject 9223372036854775807. */
6534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6536 && LARGE_OFF_T % 2147483647 == 1)
6537 ? 1 : -1];
6538 int
6539 main ()
6540 {
6541
6542 ;
6543 return 0;
6544 }
6545 _ACEOF
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547 ac_cv_sys_file_offset_bits=64; break
6548 fi
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 ac_cv_sys_file_offset_bits=unknown
6551 break
6552 done
6553 fi
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6555 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6556 case $ac_cv_sys_file_offset_bits in #(
6557 no | unknown) ;;
6558 *)
6559 cat >>confdefs.h <<_ACEOF
6560 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6561 _ACEOF
6562 ;;
6563 esac
6564 rm -rf conftest*
6565 if test $ac_cv_sys_file_offset_bits = unknown; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6567 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6568 if ${ac_cv_sys_large_files+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 while :; do
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 #include <sys/types.h>
6575 /* Check that off_t can represent 2**63 - 1 correctly.
6576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6577 since some C++ compilers masquerading as C compilers
6578 incorrectly reject 9223372036854775807. */
6579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6581 && LARGE_OFF_T % 2147483647 == 1)
6582 ? 1 : -1];
6583 int
6584 main ()
6585 {
6586
6587 ;
6588 return 0;
6589 }
6590 _ACEOF
6591 if ac_fn_c_try_compile "$LINENO"; then :
6592 ac_cv_sys_large_files=no; break
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 #define _LARGE_FILES 1
6598 #include <sys/types.h>
6599 /* Check that off_t can represent 2**63 - 1 correctly.
6600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6601 since some C++ compilers masquerading as C compilers
6602 incorrectly reject 9223372036854775807. */
6603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6605 && LARGE_OFF_T % 2147483647 == 1)
6606 ? 1 : -1];
6607 int
6608 main ()
6609 {
6610
6611 ;
6612 return 0;
6613 }
6614 _ACEOF
6615 if ac_fn_c_try_compile "$LINENO"; then :
6616 ac_cv_sys_large_files=1; break
6617 fi
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 ac_cv_sys_large_files=unknown
6620 break
6621 done
6622 fi
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6624 $as_echo "$ac_cv_sys_large_files" >&6; }
6625 case $ac_cv_sys_large_files in #(
6626 no | unknown) ;;
6627 *)
6628 cat >>confdefs.h <<_ACEOF
6629 #define _LARGE_FILES $ac_cv_sys_large_files
6630 _ACEOF
6631 ;;
6632 esac
6633 rm -rf conftest*
6634 fi
6635
6636
6637 fi
6638
6639 for ac_func in ppoll
6640 do :
6641 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
6642 if test "x$ac_cv_func_ppoll" = xyes; then :
6643 cat >>confdefs.h <<_ACEOF
6644 #define HAVE_PPOLL 1
6645 _ACEOF
6646
6647 fi
6648 done
6649
6650 for ac_func in openat
6651 do :
6652 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
6653 if test "x$ac_cv_func_openat" = xyes; then :
6654 cat >>confdefs.h <<_ACEOF
6655 #define HAVE_OPENAT 1
6656 _ACEOF
6657
6658 fi
6659 done
6660
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6662 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6663 if ${ac_cv_path_SED+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6667 for ac_i in 1 2 3 4 5 6 7; do
6668 ac_script="$ac_script$as_nl$ac_script"
6669 done
6670 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6671 { ac_script=; unset ac_script;}
6672 if test -z "$SED"; then
6673 ac_path_SED_found=false
6674 # Loop through the user's path and test for each of PROGNAME-LIST
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_prog in sed gsed; do
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6683 as_fn_executable_p "$ac_path_SED" || continue
6684 # Check for GNU ac_path_SED and select it if it is found.
6685 # Check for GNU $ac_path_SED
6686 case `"$ac_path_SED" --version 2>&1` in
6687 *GNU*)
6688 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6689 *)
6690 ac_count=0
6691 $as_echo_n 0123456789 >"conftest.in"
6692 while :
6693 do
6694 cat "conftest.in" "conftest.in" >"conftest.tmp"
6695 mv "conftest.tmp" "conftest.in"
6696 cp "conftest.in" "conftest.nl"
6697 $as_echo '' >> "conftest.nl"
6698 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6699 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6700 as_fn_arith $ac_count + 1 && ac_count=$as_val
6701 if test $ac_count -gt ${ac_path_SED_max-0}; then
6702 # Best one so far, save it but keep looking for a better one
6703 ac_cv_path_SED="$ac_path_SED"
6704 ac_path_SED_max=$ac_count
6705 fi
6706 # 10*(2^10) chars as input seems more than enough
6707 test $ac_count -gt 10 && break
6708 done
6709 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6710 esac
6711
6712 $ac_path_SED_found && break 3
6713 done
6714 done
6715 done
6716 IFS=$as_save_IFS
6717 if test -z "$ac_cv_path_SED"; then
6718 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6719 fi
6720 else
6721 ac_cv_path_SED=$SED
6722 fi
6723
6724 fi
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6726 $as_echo "$ac_cv_path_SED" >&6; }
6727 SED="$ac_cv_path_SED"
6728 rm -f conftest.sed
6729
6730
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6732 $as_echo_n "checking whether NLS is requested... " >&6; }
6733 # Check whether --enable-nls was given.
6734 if test "${enable_nls+set}" = set; then :
6735 enableval=$enable_nls; USE_NLS=$enableval
6736 else
6737 USE_NLS=yes
6738 fi
6739
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6741 $as_echo "$USE_NLS" >&6; }
6742
6743
6744
6745
6746 GETTEXT_MACRO_VERSION=0.19
6747
6748
6749
6750
6751 # Prepare PATH_SEPARATOR.
6752 # The user is always right.
6753 if test "${PATH_SEPARATOR+set}" != set; then
6754 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6755 # contains only /bin. Note that ksh looks also at the FPATH variable,
6756 # so we have to set that as well for the test.
6757 PATH_SEPARATOR=:
6758 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6759 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6760 || PATH_SEPARATOR=';'
6761 }
6762 fi
6763
6764 # Find out how to test for executable files. Don't use a zero-byte file,
6765 # as systems may use methods other than mode bits to determine executability.
6766 cat >conf$$.file <<_ASEOF
6767 #! /bin/sh
6768 exit 0
6769 _ASEOF
6770 chmod +x conf$$.file
6771 if test -x conf$$.file >/dev/null 2>&1; then
6772 ac_executable_p="test -x"
6773 else
6774 ac_executable_p="test -f"
6775 fi
6776 rm -f conf$$.file
6777
6778 # Extract the first word of "msgfmt", so it can be a program name with args.
6779 set dummy msgfmt; ac_word=$2
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781 $as_echo_n "checking for $ac_word... " >&6; }
6782 if ${ac_cv_path_MSGFMT+:} false; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 case "$MSGFMT" in
6786 [\\/]* | ?:[\\/]*)
6787 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6788 ;;
6789 *)
6790 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6791 for ac_dir in $PATH; do
6792 IFS="$ac_save_IFS"
6793 test -z "$ac_dir" && ac_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6796 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6797 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6798 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6799 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6800 break 2
6801 fi
6802 fi
6803 done
6804 done
6805 IFS="$ac_save_IFS"
6806 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6807 ;;
6808 esac
6809 fi
6810 MSGFMT="$ac_cv_path_MSGFMT"
6811 if test "$MSGFMT" != ":"; then
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6813 $as_echo "$MSGFMT" >&6; }
6814 else
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6817 fi
6818
6819 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6820 set dummy gmsgfmt; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_path_GMSGFMT+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 case $GMSGFMT in
6827 [\\/]* | ?:[\\/]*)
6828 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6829 ;;
6830 *)
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6847 ;;
6848 esac
6849 fi
6850 GMSGFMT=$ac_cv_path_GMSGFMT
6851 if test -n "$GMSGFMT"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6853 $as_echo "$GMSGFMT" >&6; }
6854 else
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859
6860
6861 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6862 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6863 *) MSGFMT_015=$MSGFMT ;;
6864 esac
6865
6866 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6867 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6868 *) GMSGFMT_015=$GMSGFMT ;;
6869 esac
6870
6871
6872
6873 # Prepare PATH_SEPARATOR.
6874 # The user is always right.
6875 if test "${PATH_SEPARATOR+set}" != set; then
6876 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6877 # contains only /bin. Note that ksh looks also at the FPATH variable,
6878 # so we have to set that as well for the test.
6879 PATH_SEPARATOR=:
6880 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6881 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6882 || PATH_SEPARATOR=';'
6883 }
6884 fi
6885
6886 # Find out how to test for executable files. Don't use a zero-byte file,
6887 # as systems may use methods other than mode bits to determine executability.
6888 cat >conf$$.file <<_ASEOF
6889 #! /bin/sh
6890 exit 0
6891 _ASEOF
6892 chmod +x conf$$.file
6893 if test -x conf$$.file >/dev/null 2>&1; then
6894 ac_executable_p="test -x"
6895 else
6896 ac_executable_p="test -f"
6897 fi
6898 rm -f conf$$.file
6899
6900 # Extract the first word of "xgettext", so it can be a program name with args.
6901 set dummy xgettext; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_path_XGETTEXT+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 case "$XGETTEXT" in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6910 ;;
6911 *)
6912 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6913 for ac_dir in $PATH; do
6914 IFS="$ac_save_IFS"
6915 test -z "$ac_dir" && ac_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6918 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6919 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6920 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6921 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6922 break 2
6923 fi
6924 fi
6925 done
6926 done
6927 IFS="$ac_save_IFS"
6928 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6929 ;;
6930 esac
6931 fi
6932 XGETTEXT="$ac_cv_path_XGETTEXT"
6933 if test "$XGETTEXT" != ":"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6935 $as_echo "$XGETTEXT" >&6; }
6936 else
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6939 fi
6940
6941 rm -f messages.po
6942
6943 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6944 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6945 *) XGETTEXT_015=$XGETTEXT ;;
6946 esac
6947
6948
6949
6950 # Prepare PATH_SEPARATOR.
6951 # The user is always right.
6952 if test "${PATH_SEPARATOR+set}" != set; then
6953 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6954 # contains only /bin. Note that ksh looks also at the FPATH variable,
6955 # so we have to set that as well for the test.
6956 PATH_SEPARATOR=:
6957 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6958 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6959 || PATH_SEPARATOR=';'
6960 }
6961 fi
6962
6963 # Find out how to test for executable files. Don't use a zero-byte file,
6964 # as systems may use methods other than mode bits to determine executability.
6965 cat >conf$$.file <<_ASEOF
6966 #! /bin/sh
6967 exit 0
6968 _ASEOF
6969 chmod +x conf$$.file
6970 if test -x conf$$.file >/dev/null 2>&1; then
6971 ac_executable_p="test -x"
6972 else
6973 ac_executable_p="test -f"
6974 fi
6975 rm -f conf$$.file
6976
6977 # Extract the first word of "msgmerge", so it can be a program name with args.
6978 set dummy msgmerge; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_path_MSGMERGE+:} false; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 case "$MSGMERGE" in
6985 [\\/]* | ?:[\\/]*)
6986 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6987 ;;
6988 *)
6989 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6990 for ac_dir in $PATH; do
6991 IFS="$ac_save_IFS"
6992 test -z "$ac_dir" && ac_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6995 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6996 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6997 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6998 break 2
6999 fi
7000 fi
7001 done
7002 done
7003 IFS="$ac_save_IFS"
7004 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7005 ;;
7006 esac
7007 fi
7008 MSGMERGE="$ac_cv_path_MSGMERGE"
7009 if test "$MSGMERGE" != ":"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7011 $as_echo "$MSGMERGE" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7015 fi
7016
7017
7018 test -n "$localedir" || localedir='${datadir}/locale'
7019
7020
7021 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7022
7023
7024 ac_config_commands="$ac_config_commands po-directories"
7025
7026
7027
7028 if test "X$prefix" = "XNONE"; then
7029 acl_final_prefix="$ac_default_prefix"
7030 else
7031 acl_final_prefix="$prefix"
7032 fi
7033 if test "X$exec_prefix" = "XNONE"; then
7034 acl_final_exec_prefix='${prefix}'
7035 else
7036 acl_final_exec_prefix="$exec_prefix"
7037 fi
7038 acl_save_prefix="$prefix"
7039 prefix="$acl_final_prefix"
7040 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7041 prefix="$acl_save_prefix"
7042
7043
7044
7045 # Check whether --with-gnu-ld was given.
7046 if test "${with_gnu_ld+set}" = set; then :
7047 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7048 else
7049 with_gnu_ld=no
7050 fi
7051
7052 # Prepare PATH_SEPARATOR.
7053 # The user is always right.
7054 if test "${PATH_SEPARATOR+set}" != set; then
7055 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7056 # contains only /bin. Note that ksh looks also at the FPATH variable,
7057 # so we have to set that as well for the test.
7058 PATH_SEPARATOR=:
7059 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7060 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7061 || PATH_SEPARATOR=';'
7062 }
7063 fi
7064
7065 ac_prog=ld
7066 if test "$GCC" = yes; then
7067 # Check if gcc -print-prog-name=ld gives a path.
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7069 $as_echo_n "checking for ld used by $CC... " >&6; }
7070 case $host in
7071 *-*-mingw*)
7072 # gcc leaves a trailing carriage return which upsets mingw
7073 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7074 *)
7075 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7076 esac
7077 case $ac_prog in
7078 # Accept absolute paths.
7079 [\\/]* | ?:[\\/]*)
7080 re_direlt='/[^/][^/]*/\.\./'
7081 # Canonicalize the pathname of ld
7082 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7083 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7084 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7085 done
7086 test -z "$LD" && LD="$ac_prog"
7087 ;;
7088 "")
7089 # If it fails, then pretend we aren't using GCC.
7090 ac_prog=ld
7091 ;;
7092 *)
7093 # If it is relative, then search for the first ld in PATH.
7094 with_gnu_ld=unknown
7095 ;;
7096 esac
7097 elif test "$with_gnu_ld" = yes; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7099 $as_echo_n "checking for GNU ld... " >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7102 $as_echo_n "checking for non-GNU ld... " >&6; }
7103 fi
7104 if ${acl_cv_path_LD+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 if test -z "$LD"; then
7108 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7109 for ac_dir in $PATH; do
7110 IFS="$acl_save_ifs"
7111 test -z "$ac_dir" && ac_dir=.
7112 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7113 acl_cv_path_LD="$ac_dir/$ac_prog"
7114 # Check to see if the program is GNU ld. I'd rather use --version,
7115 # but apparently some variants of GNU ld only accept -v.
7116 # Break only if it was the GNU/non-GNU ld that we prefer.
7117 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7118 *GNU* | *'with BFD'*)
7119 test "$with_gnu_ld" != no && break
7120 ;;
7121 *)
7122 test "$with_gnu_ld" != yes && break
7123 ;;
7124 esac
7125 fi
7126 done
7127 IFS="$acl_save_ifs"
7128 else
7129 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7130 fi
7131 fi
7132
7133 LD="$acl_cv_path_LD"
7134 if test -n "$LD"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7136 $as_echo "$LD" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7140 fi
7141 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7143 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7144 if ${acl_cv_prog_gnu_ld+:} false; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7148 case `$LD -v 2>&1 </dev/null` in
7149 *GNU* | *'with BFD'*)
7150 acl_cv_prog_gnu_ld=yes
7151 ;;
7152 *)
7153 acl_cv_prog_gnu_ld=no
7154 ;;
7155 esac
7156 fi
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7158 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7159 with_gnu_ld=$acl_cv_prog_gnu_ld
7160
7161
7162
7163
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7165 $as_echo_n "checking for shared library run path origin... " >&6; }
7166 if ${acl_cv_rpath+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169
7170 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7171 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7172 . ./conftest.sh
7173 rm -f ./conftest.sh
7174 acl_cv_rpath=done
7175
7176 fi
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7178 $as_echo "$acl_cv_rpath" >&6; }
7179 wl="$acl_cv_wl"
7180 acl_libext="$acl_cv_libext"
7181 acl_shlibext="$acl_cv_shlibext"
7182 acl_libname_spec="$acl_cv_libname_spec"
7183 acl_library_names_spec="$acl_cv_library_names_spec"
7184 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7185 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7186 acl_hardcode_direct="$acl_cv_hardcode_direct"
7187 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7188 # Check whether --enable-rpath was given.
7189 if test "${enable_rpath+set}" = set; then :
7190 enableval=$enable_rpath; :
7191 else
7192 enable_rpath=yes
7193 fi
7194
7195
7196
7197
7198 acl_libdirstem=lib
7199 acl_libdirstem2=
7200 case "$host_os" in
7201 solaris*)
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7203 $as_echo_n "checking for 64-bit host... " >&6; }
7204 if ${gl_cv_solaris_64bit+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209
7210 #ifdef _LP64
7211 sixtyfour bits
7212 #endif
7213
7214 _ACEOF
7215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7216 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7217 gl_cv_solaris_64bit=yes
7218 else
7219 gl_cv_solaris_64bit=no
7220 fi
7221 rm -f conftest*
7222
7223
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7226 $as_echo "$gl_cv_solaris_64bit" >&6; }
7227 if test $gl_cv_solaris_64bit = yes; then
7228 acl_libdirstem=lib/64
7229 case "$host_cpu" in
7230 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7231 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7232 esac
7233 fi
7234 ;;
7235 *)
7236 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7237 if test -n "$searchpath"; then
7238 acl_save_IFS="${IFS= }"; IFS=":"
7239 for searchdir in $searchpath; do
7240 if test -d "$searchdir"; then
7241 case "$searchdir" in
7242 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7243 */../ | */.. )
7244 # Better ignore directories of this form. They are misleading.
7245 ;;
7246 *) searchdir=`cd "$searchdir" && pwd`
7247 case "$searchdir" in
7248 */lib64 ) acl_libdirstem=lib64 ;;
7249 esac ;;
7250 esac
7251 fi
7252 done
7253 IFS="$acl_save_IFS"
7254 fi
7255 ;;
7256 esac
7257 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270 use_additional=yes
7271
7272 acl_save_prefix="$prefix"
7273 prefix="$acl_final_prefix"
7274 acl_save_exec_prefix="$exec_prefix"
7275 exec_prefix="$acl_final_exec_prefix"
7276
7277 eval additional_includedir=\"$includedir\"
7278 eval additional_libdir=\"$libdir\"
7279
7280 exec_prefix="$acl_save_exec_prefix"
7281 prefix="$acl_save_prefix"
7282
7283
7284 # Check whether --with-libiconv-prefix was given.
7285 if test "${with_libiconv_prefix+set}" = set; then :
7286 withval=$with_libiconv_prefix;
7287 if test "X$withval" = "Xno"; then
7288 use_additional=no
7289 else
7290 if test "X$withval" = "X"; then
7291
7292 acl_save_prefix="$prefix"
7293 prefix="$acl_final_prefix"
7294 acl_save_exec_prefix="$exec_prefix"
7295 exec_prefix="$acl_final_exec_prefix"
7296
7297 eval additional_includedir=\"$includedir\"
7298 eval additional_libdir=\"$libdir\"
7299
7300 exec_prefix="$acl_save_exec_prefix"
7301 prefix="$acl_save_prefix"
7302
7303 else
7304 additional_includedir="$withval/include"
7305 additional_libdir="$withval/$acl_libdirstem"
7306 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7307 && ! test -d "$withval/$acl_libdirstem"; then
7308 additional_libdir="$withval/$acl_libdirstem2"
7309 fi
7310 fi
7311 fi
7312
7313 fi
7314
7315 LIBICONV=
7316 LTLIBICONV=
7317 INCICONV=
7318 LIBICONV_PREFIX=
7319 HAVE_LIBICONV=
7320 rpathdirs=
7321 ltrpathdirs=
7322 names_already_handled=
7323 names_next_round='iconv '
7324 while test -n "$names_next_round"; do
7325 names_this_round="$names_next_round"
7326 names_next_round=
7327 for name in $names_this_round; do
7328 already_handled=
7329 for n in $names_already_handled; do
7330 if test "$n" = "$name"; then
7331 already_handled=yes
7332 break
7333 fi
7334 done
7335 if test -z "$already_handled"; then
7336 names_already_handled="$names_already_handled $name"
7337 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7338 eval value=\"\$HAVE_LIB$uppername\"
7339 if test -n "$value"; then
7340 if test "$value" = yes; then
7341 eval value=\"\$LIB$uppername\"
7342 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7343 eval value=\"\$LTLIB$uppername\"
7344 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7345 else
7346 :
7347 fi
7348 else
7349 found_dir=
7350 found_la=
7351 found_so=
7352 found_a=
7353 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7354 if test -n "$acl_shlibext"; then
7355 shrext=".$acl_shlibext" # typically: shrext=.so
7356 else
7357 shrext=
7358 fi
7359 if test $use_additional = yes; then
7360 dir="$additional_libdir"
7361 if test -n "$acl_shlibext"; then
7362 if test -f "$dir/$libname$shrext"; then
7363 found_dir="$dir"
7364 found_so="$dir/$libname$shrext"
7365 else
7366 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7367 ver=`(cd "$dir" && \
7368 for f in "$libname$shrext".*; do echo "$f"; done \
7369 | sed -e "s,^$libname$shrext\\\\.,," \
7370 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7371 | sed 1q ) 2>/dev/null`
7372 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7373 found_dir="$dir"
7374 found_so="$dir/$libname$shrext.$ver"
7375 fi
7376 else
7377 eval library_names=\"$acl_library_names_spec\"
7378 for f in $library_names; do
7379 if test -f "$dir/$f"; then
7380 found_dir="$dir"
7381 found_so="$dir/$f"
7382 break
7383 fi
7384 done
7385 fi
7386 fi
7387 fi
7388 if test "X$found_dir" = "X"; then
7389 if test -f "$dir/$libname.$acl_libext"; then
7390 found_dir="$dir"
7391 found_a="$dir/$libname.$acl_libext"
7392 fi
7393 fi
7394 if test "X$found_dir" != "X"; then
7395 if test -f "$dir/$libname.la"; then
7396 found_la="$dir/$libname.la"
7397 fi
7398 fi
7399 fi
7400 if test "X$found_dir" = "X"; then
7401 for x in $LDFLAGS $LTLIBICONV; do
7402
7403 acl_save_prefix="$prefix"
7404 prefix="$acl_final_prefix"
7405 acl_save_exec_prefix="$exec_prefix"
7406 exec_prefix="$acl_final_exec_prefix"
7407 eval x=\"$x\"
7408 exec_prefix="$acl_save_exec_prefix"
7409 prefix="$acl_save_prefix"
7410
7411 case "$x" in
7412 -L*)
7413 dir=`echo "X$x" | sed -e 's/^X-L//'`
7414 if test -n "$acl_shlibext"; then
7415 if test -f "$dir/$libname$shrext"; then
7416 found_dir="$dir"
7417 found_so="$dir/$libname$shrext"
7418 else
7419 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7420 ver=`(cd "$dir" && \
7421 for f in "$libname$shrext".*; do echo "$f"; done \
7422 | sed -e "s,^$libname$shrext\\\\.,," \
7423 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7424 | sed 1q ) 2>/dev/null`
7425 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7426 found_dir="$dir"
7427 found_so="$dir/$libname$shrext.$ver"
7428 fi
7429 else
7430 eval library_names=\"$acl_library_names_spec\"
7431 for f in $library_names; do
7432 if test -f "$dir/$f"; then
7433 found_dir="$dir"
7434 found_so="$dir/$f"
7435 break
7436 fi
7437 done
7438 fi
7439 fi
7440 fi
7441 if test "X$found_dir" = "X"; then
7442 if test -f "$dir/$libname.$acl_libext"; then
7443 found_dir="$dir"
7444 found_a="$dir/$libname.$acl_libext"
7445 fi
7446 fi
7447 if test "X$found_dir" != "X"; then
7448 if test -f "$dir/$libname.la"; then
7449 found_la="$dir/$libname.la"
7450 fi
7451 fi
7452 ;;
7453 esac
7454 if test "X$found_dir" != "X"; then
7455 break
7456 fi
7457 done
7458 fi
7459 if test "X$found_dir" != "X"; then
7460 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7461 if test "X$found_so" != "X"; then
7462 if test "$enable_rpath" = no \
7463 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7464 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7466 else
7467 haveit=
7468 for x in $ltrpathdirs; do
7469 if test "X$x" = "X$found_dir"; then
7470 haveit=yes
7471 break
7472 fi
7473 done
7474 if test -z "$haveit"; then
7475 ltrpathdirs="$ltrpathdirs $found_dir"
7476 fi
7477 if test "$acl_hardcode_direct" = yes; then
7478 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7479 else
7480 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7481 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7482 haveit=
7483 for x in $rpathdirs; do
7484 if test "X$x" = "X$found_dir"; then
7485 haveit=yes
7486 break
7487 fi
7488 done
7489 if test -z "$haveit"; then
7490 rpathdirs="$rpathdirs $found_dir"
7491 fi
7492 else
7493 haveit=
7494 for x in $LDFLAGS $LIBICONV; do
7495
7496 acl_save_prefix="$prefix"
7497 prefix="$acl_final_prefix"
7498 acl_save_exec_prefix="$exec_prefix"
7499 exec_prefix="$acl_final_exec_prefix"
7500 eval x=\"$x\"
7501 exec_prefix="$acl_save_exec_prefix"
7502 prefix="$acl_save_prefix"
7503
7504 if test "X$x" = "X-L$found_dir"; then
7505 haveit=yes
7506 break
7507 fi
7508 done
7509 if test -z "$haveit"; then
7510 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7511 fi
7512 if test "$acl_hardcode_minus_L" != no; then
7513 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7514 else
7515 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7516 fi
7517 fi
7518 fi
7519 fi
7520 else
7521 if test "X$found_a" != "X"; then
7522 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7523 else
7524 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7525 fi
7526 fi
7527 additional_includedir=
7528 case "$found_dir" in
7529 */$acl_libdirstem | */$acl_libdirstem/)
7530 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7531 if test "$name" = 'iconv'; then
7532 LIBICONV_PREFIX="$basedir"
7533 fi
7534 additional_includedir="$basedir/include"
7535 ;;
7536 */$acl_libdirstem2 | */$acl_libdirstem2/)
7537 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7538 if test "$name" = 'iconv'; then
7539 LIBICONV_PREFIX="$basedir"
7540 fi
7541 additional_includedir="$basedir/include"
7542 ;;
7543 esac
7544 if test "X$additional_includedir" != "X"; then
7545 if test "X$additional_includedir" != "X/usr/include"; then
7546 haveit=
7547 if test "X$additional_includedir" = "X/usr/local/include"; then
7548 if test -n "$GCC"; then
7549 case $host_os in
7550 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7551 esac
7552 fi
7553 fi
7554 if test -z "$haveit"; then
7555 for x in $CPPFLAGS $INCICONV; do
7556
7557 acl_save_prefix="$prefix"
7558 prefix="$acl_final_prefix"
7559 acl_save_exec_prefix="$exec_prefix"
7560 exec_prefix="$acl_final_exec_prefix"
7561 eval x=\"$x\"
7562 exec_prefix="$acl_save_exec_prefix"
7563 prefix="$acl_save_prefix"
7564
7565 if test "X$x" = "X-I$additional_includedir"; then
7566 haveit=yes
7567 break
7568 fi
7569 done
7570 if test -z "$haveit"; then
7571 if test -d "$additional_includedir"; then
7572 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7573 fi
7574 fi
7575 fi
7576 fi
7577 fi
7578 if test -n "$found_la"; then
7579 save_libdir="$libdir"
7580 case "$found_la" in
7581 */* | *\\*) . "$found_la" ;;
7582 *) . "./$found_la" ;;
7583 esac
7584 libdir="$save_libdir"
7585 for dep in $dependency_libs; do
7586 case "$dep" in
7587 -L*)
7588 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7589 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7590 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7591 haveit=
7592 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7593 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7594 if test -n "$GCC"; then
7595 case $host_os in
7596 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7597 esac
7598 fi
7599 fi
7600 if test -z "$haveit"; then
7601 haveit=
7602 for x in $LDFLAGS $LIBICONV; do
7603
7604 acl_save_prefix="$prefix"
7605 prefix="$acl_final_prefix"
7606 acl_save_exec_prefix="$exec_prefix"
7607 exec_prefix="$acl_final_exec_prefix"
7608 eval x=\"$x\"
7609 exec_prefix="$acl_save_exec_prefix"
7610 prefix="$acl_save_prefix"
7611
7612 if test "X$x" = "X-L$additional_libdir"; then
7613 haveit=yes
7614 break
7615 fi
7616 done
7617 if test -z "$haveit"; then
7618 if test -d "$additional_libdir"; then
7619 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7620 fi
7621 fi
7622 haveit=
7623 for x in $LDFLAGS $LTLIBICONV; do
7624
7625 acl_save_prefix="$prefix"
7626 prefix="$acl_final_prefix"
7627 acl_save_exec_prefix="$exec_prefix"
7628 exec_prefix="$acl_final_exec_prefix"
7629 eval x=\"$x\"
7630 exec_prefix="$acl_save_exec_prefix"
7631 prefix="$acl_save_prefix"
7632
7633 if test "X$x" = "X-L$additional_libdir"; then
7634 haveit=yes
7635 break
7636 fi
7637 done
7638 if test -z "$haveit"; then
7639 if test -d "$additional_libdir"; then
7640 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7641 fi
7642 fi
7643 fi
7644 fi
7645 ;;
7646 -R*)
7647 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7648 if test "$enable_rpath" != no; then
7649 haveit=
7650 for x in $rpathdirs; do
7651 if test "X$x" = "X$dir"; then
7652 haveit=yes
7653 break
7654 fi
7655 done
7656 if test -z "$haveit"; then
7657 rpathdirs="$rpathdirs $dir"
7658 fi
7659 haveit=
7660 for x in $ltrpathdirs; do
7661 if test "X$x" = "X$dir"; then
7662 haveit=yes
7663 break
7664 fi
7665 done
7666 if test -z "$haveit"; then
7667 ltrpathdirs="$ltrpathdirs $dir"
7668 fi
7669 fi
7670 ;;
7671 -l*)
7672 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7673 ;;
7674 *.la)
7675 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7676 ;;
7677 *)
7678 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7679 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7680 ;;
7681 esac
7682 done
7683 fi
7684 else
7685 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7686 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7687 fi
7688 fi
7689 fi
7690 done
7691 done
7692 if test "X$rpathdirs" != "X"; then
7693 if test -n "$acl_hardcode_libdir_separator"; then
7694 alldirs=
7695 for found_dir in $rpathdirs; do
7696 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7697 done
7698 acl_save_libdir="$libdir"
7699 libdir="$alldirs"
7700 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7701 libdir="$acl_save_libdir"
7702 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7703 else
7704 for found_dir in $rpathdirs; do
7705 acl_save_libdir="$libdir"
7706 libdir="$found_dir"
7707 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7708 libdir="$acl_save_libdir"
7709 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7710 done
7711 fi
7712 fi
7713 if test "X$ltrpathdirs" != "X"; then
7714 for found_dir in $ltrpathdirs; do
7715 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7716 done
7717 fi
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7750 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7751 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 gt_save_LIBS="$LIBS"
7755 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7758 #include <CoreFoundation/CFPreferences.h>
7759 int
7760 main ()
7761 {
7762 CFPreferencesCopyAppValue(NULL, NULL)
7763 ;
7764 return 0;
7765 }
7766 _ACEOF
7767 if ac_fn_c_try_link "$LINENO"; then :
7768 gt_cv_func_CFPreferencesCopyAppValue=yes
7769 else
7770 gt_cv_func_CFPreferencesCopyAppValue=no
7771 fi
7772 rm -f core conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7774 LIBS="$gt_save_LIBS"
7775 fi
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7777 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7778 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7779
7780 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7781
7782 fi
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
7784 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7785 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 gt_save_LIBS="$LIBS"
7789 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h. */
7792 #include <CoreFoundation/CFLocale.h>
7793 int
7794 main ()
7795 {
7796 CFLocaleCopyCurrent();
7797 ;
7798 return 0;
7799 }
7800 _ACEOF
7801 if ac_fn_c_try_link "$LINENO"; then :
7802 gt_cv_func_CFLocaleCopyCurrent=yes
7803 else
7804 gt_cv_func_CFLocaleCopyCurrent=no
7805 fi
7806 rm -f core conftest.err conftest.$ac_objext \
7807 conftest$ac_exeext conftest.$ac_ext
7808 LIBS="$gt_save_LIBS"
7809 fi
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7811 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7812 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7813
7814 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7815
7816 fi
7817 INTL_MACOSX_LIBS=
7818 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7819 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7820 fi
7821
7822
7823
7824
7825
7826
7827 LIBINTL=
7828 LTLIBINTL=
7829 POSUB=
7830
7831 case " $gt_needs " in
7832 *" need-formatstring-macros "*) gt_api_version=3 ;;
7833 *" need-ngettext "*) gt_api_version=2 ;;
7834 *) gt_api_version=1 ;;
7835 esac
7836 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7837 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7838
7839 if test "$USE_NLS" = "yes"; then
7840 gt_use_preinstalled_gnugettext=no
7841
7842
7843 if test $gt_api_version -ge 3; then
7844 gt_revision_test_code='
7845 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7846 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7847 #endif
7848 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7849 '
7850 else
7851 gt_revision_test_code=
7852 fi
7853 if test $gt_api_version -ge 2; then
7854 gt_expression_test_code=' + * ngettext ("", "", 0)'
7855 else
7856 gt_expression_test_code=
7857 fi
7858
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7860 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7861 if eval \${$gt_func_gnugettext_libc+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866
7867 #include <libintl.h>
7868 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7869 extern int _nl_msg_cat_cntr;
7870 extern int *_nl_domain_bindings;
7871 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7872 #else
7873 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7874 #endif
7875 $gt_revision_test_code
7876
7877 int
7878 main ()
7879 {
7880
7881 bindtextdomain ("", "");
7882 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7883
7884 ;
7885 return 0;
7886 }
7887 _ACEOF
7888 if ac_fn_c_try_link "$LINENO"; then :
7889 eval "$gt_func_gnugettext_libc=yes"
7890 else
7891 eval "$gt_func_gnugettext_libc=no"
7892 fi
7893 rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 fi
7896 eval ac_res=\$$gt_func_gnugettext_libc
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7898 $as_echo "$ac_res" >&6; }
7899
7900 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7901
7902
7903
7904
7905
7906 am_save_CPPFLAGS="$CPPFLAGS"
7907
7908 for element in $INCICONV; do
7909 haveit=
7910 for x in $CPPFLAGS; do
7911
7912 acl_save_prefix="$prefix"
7913 prefix="$acl_final_prefix"
7914 acl_save_exec_prefix="$exec_prefix"
7915 exec_prefix="$acl_final_exec_prefix"
7916 eval x=\"$x\"
7917 exec_prefix="$acl_save_exec_prefix"
7918 prefix="$acl_save_prefix"
7919
7920 if test "X$x" = "X$element"; then
7921 haveit=yes
7922 break
7923 fi
7924 done
7925 if test -z "$haveit"; then
7926 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7927 fi
7928 done
7929
7930
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7932 $as_echo_n "checking for iconv... " >&6; }
7933 if ${am_cv_func_iconv+:} false; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936
7937 am_cv_func_iconv="no, consider installing GNU libiconv"
7938 am_cv_lib_iconv=no
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941
7942 #include <stdlib.h>
7943 #include <iconv.h>
7944
7945 int
7946 main ()
7947 {
7948 iconv_t cd = iconv_open("","");
7949 iconv(cd,NULL,NULL,NULL,NULL);
7950 iconv_close(cd);
7951 ;
7952 return 0;
7953 }
7954 _ACEOF
7955 if ac_fn_c_try_link "$LINENO"; then :
7956 am_cv_func_iconv=yes
7957 fi
7958 rm -f core conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
7960 if test "$am_cv_func_iconv" != yes; then
7961 am_save_LIBS="$LIBS"
7962 LIBS="$LIBS $LIBICONV"
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7965
7966 #include <stdlib.h>
7967 #include <iconv.h>
7968
7969 int
7970 main ()
7971 {
7972 iconv_t cd = iconv_open("","");
7973 iconv(cd,NULL,NULL,NULL,NULL);
7974 iconv_close(cd);
7975 ;
7976 return 0;
7977 }
7978 _ACEOF
7979 if ac_fn_c_try_link "$LINENO"; then :
7980 am_cv_lib_iconv=yes
7981 am_cv_func_iconv=yes
7982 fi
7983 rm -f core conftest.err conftest.$ac_objext \
7984 conftest$ac_exeext conftest.$ac_ext
7985 LIBS="$am_save_LIBS"
7986 fi
7987
7988 fi
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7990 $as_echo "$am_cv_func_iconv" >&6; }
7991 if test "$am_cv_func_iconv" = yes; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7993 $as_echo_n "checking for working iconv... " >&6; }
7994 if ${am_cv_func_iconv_works+:} false; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997
7998 am_save_LIBS="$LIBS"
7999 if test $am_cv_lib_iconv = yes; then
8000 LIBS="$LIBS $LIBICONV"
8001 fi
8002 am_cv_func_iconv_works=no
8003 for ac_iconv_const in '' 'const'; do
8004 if test "$cross_compiling" = yes; then :
8005 case "$host_os" in
8006 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8007 *) am_cv_func_iconv_works="guessing yes" ;;
8008 esac
8009 else
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012
8013 #include <iconv.h>
8014 #include <string.h>
8015
8016 #ifndef ICONV_CONST
8017 # define ICONV_CONST $ac_iconv_const
8018 #endif
8019
8020 int
8021 main ()
8022 {
8023 int result = 0;
8024 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8025 returns. */
8026 {
8027 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8028 if (cd_utf8_to_88591 != (iconv_t)(-1))
8029 {
8030 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8031 char buf[10];
8032 ICONV_CONST char *inptr = input;
8033 size_t inbytesleft = strlen (input);
8034 char *outptr = buf;
8035 size_t outbytesleft = sizeof (buf);
8036 size_t res = iconv (cd_utf8_to_88591,
8037 &inptr, &inbytesleft,
8038 &outptr, &outbytesleft);
8039 if (res == 0)
8040 result |= 1;
8041 iconv_close (cd_utf8_to_88591);
8042 }
8043 }
8044 /* Test against Solaris 10 bug: Failures are not distinguishable from
8045 successful returns. */
8046 {
8047 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8048 if (cd_ascii_to_88591 != (iconv_t)(-1))
8049 {
8050 static ICONV_CONST char input[] = "\263";
8051 char buf[10];
8052 ICONV_CONST char *inptr = input;
8053 size_t inbytesleft = strlen (input);
8054 char *outptr = buf;
8055 size_t outbytesleft = sizeof (buf);
8056 size_t res = iconv (cd_ascii_to_88591,
8057 &inptr, &inbytesleft,
8058 &outptr, &outbytesleft);
8059 if (res == 0)
8060 result |= 2;
8061 iconv_close (cd_ascii_to_88591);
8062 }
8063 }
8064 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8065 {
8066 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8067 if (cd_88591_to_utf8 != (iconv_t)(-1))
8068 {
8069 static ICONV_CONST char input[] = "\304";
8070 static char buf[2] = { (char)0xDE, (char)0xAD };
8071 ICONV_CONST char *inptr = input;
8072 size_t inbytesleft = 1;
8073 char *outptr = buf;
8074 size_t outbytesleft = 1;
8075 size_t res = iconv (cd_88591_to_utf8,
8076 &inptr, &inbytesleft,
8077 &outptr, &outbytesleft);
8078 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8079 result |= 4;
8080 iconv_close (cd_88591_to_utf8);
8081 }
8082 }
8083 #if 0 /* This bug could be worked around by the caller. */
8084 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8085 {
8086 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8087 if (cd_88591_to_utf8 != (iconv_t)(-1))
8088 {
8089 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8090 char buf[50];
8091 ICONV_CONST char *inptr = input;
8092 size_t inbytesleft = strlen (input);
8093 char *outptr = buf;
8094 size_t outbytesleft = sizeof (buf);
8095 size_t res = iconv (cd_88591_to_utf8,
8096 &inptr, &inbytesleft,
8097 &outptr, &outbytesleft);
8098 if ((int)res > 0)
8099 result |= 8;
8100 iconv_close (cd_88591_to_utf8);
8101 }
8102 }
8103 #endif
8104 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8105 provided. */
8106 if (/* Try standardized names. */
8107 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8108 /* Try IRIX, OSF/1 names. */
8109 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8110 /* Try AIX names. */
8111 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8112 /* Try HP-UX names. */
8113 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8114 result |= 16;
8115 return result;
8116
8117 ;
8118 return 0;
8119 }
8120 _ACEOF
8121 if ac_fn_c_try_run "$LINENO"; then :
8122 am_cv_func_iconv_works=yes
8123 fi
8124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8125 conftest.$ac_objext conftest.beam conftest.$ac_ext
8126 fi
8127
8128 test "$am_cv_func_iconv_works" = no || break
8129 done
8130 LIBS="$am_save_LIBS"
8131
8132 fi
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8134 $as_echo "$am_cv_func_iconv_works" >&6; }
8135 case "$am_cv_func_iconv_works" in
8136 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8137 *) am_func_iconv=yes ;;
8138 esac
8139 else
8140 am_func_iconv=no am_cv_lib_iconv=no
8141 fi
8142 if test "$am_func_iconv" = yes; then
8143
8144 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8145
8146 fi
8147 if test "$am_cv_lib_iconv" = yes; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8149 $as_echo_n "checking how to link with libiconv... " >&6; }
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8151 $as_echo "$LIBICONV" >&6; }
8152 else
8153 CPPFLAGS="$am_save_CPPFLAGS"
8154 LIBICONV=
8155 LTLIBICONV=
8156 fi
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168 use_additional=yes
8169
8170 acl_save_prefix="$prefix"
8171 prefix="$acl_final_prefix"
8172 acl_save_exec_prefix="$exec_prefix"
8173 exec_prefix="$acl_final_exec_prefix"
8174
8175 eval additional_includedir=\"$includedir\"
8176 eval additional_libdir=\"$libdir\"
8177
8178 exec_prefix="$acl_save_exec_prefix"
8179 prefix="$acl_save_prefix"
8180
8181
8182 # Check whether --with-libintl-prefix was given.
8183 if test "${with_libintl_prefix+set}" = set; then :
8184 withval=$with_libintl_prefix;
8185 if test "X$withval" = "Xno"; then
8186 use_additional=no
8187 else
8188 if test "X$withval" = "X"; then
8189
8190 acl_save_prefix="$prefix"
8191 prefix="$acl_final_prefix"
8192 acl_save_exec_prefix="$exec_prefix"
8193 exec_prefix="$acl_final_exec_prefix"
8194
8195 eval additional_includedir=\"$includedir\"
8196 eval additional_libdir=\"$libdir\"
8197
8198 exec_prefix="$acl_save_exec_prefix"
8199 prefix="$acl_save_prefix"
8200
8201 else
8202 additional_includedir="$withval/include"
8203 additional_libdir="$withval/$acl_libdirstem"
8204 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8205 && ! test -d "$withval/$acl_libdirstem"; then
8206 additional_libdir="$withval/$acl_libdirstem2"
8207 fi
8208 fi
8209 fi
8210
8211 fi
8212
8213 LIBINTL=
8214 LTLIBINTL=
8215 INCINTL=
8216 LIBINTL_PREFIX=
8217 HAVE_LIBINTL=
8218 rpathdirs=
8219 ltrpathdirs=
8220 names_already_handled=
8221 names_next_round='intl '
8222 while test -n "$names_next_round"; do
8223 names_this_round="$names_next_round"
8224 names_next_round=
8225 for name in $names_this_round; do
8226 already_handled=
8227 for n in $names_already_handled; do
8228 if test "$n" = "$name"; then
8229 already_handled=yes
8230 break
8231 fi
8232 done
8233 if test -z "$already_handled"; then
8234 names_already_handled="$names_already_handled $name"
8235 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8236 eval value=\"\$HAVE_LIB$uppername\"
8237 if test -n "$value"; then
8238 if test "$value" = yes; then
8239 eval value=\"\$LIB$uppername\"
8240 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8241 eval value=\"\$LTLIB$uppername\"
8242 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8243 else
8244 :
8245 fi
8246 else
8247 found_dir=
8248 found_la=
8249 found_so=
8250 found_a=
8251 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8252 if test -n "$acl_shlibext"; then
8253 shrext=".$acl_shlibext" # typically: shrext=.so
8254 else
8255 shrext=
8256 fi
8257 if test $use_additional = yes; then
8258 dir="$additional_libdir"
8259 if test -n "$acl_shlibext"; then
8260 if test -f "$dir/$libname$shrext"; then
8261 found_dir="$dir"
8262 found_so="$dir/$libname$shrext"
8263 else
8264 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8265 ver=`(cd "$dir" && \
8266 for f in "$libname$shrext".*; do echo "$f"; done \
8267 | sed -e "s,^$libname$shrext\\\\.,," \
8268 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8269 | sed 1q ) 2>/dev/null`
8270 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8271 found_dir="$dir"
8272 found_so="$dir/$libname$shrext.$ver"
8273 fi
8274 else
8275 eval library_names=\"$acl_library_names_spec\"
8276 for f in $library_names; do
8277 if test -f "$dir/$f"; then
8278 found_dir="$dir"
8279 found_so="$dir/$f"
8280 break
8281 fi
8282 done
8283 fi
8284 fi
8285 fi
8286 if test "X$found_dir" = "X"; then
8287 if test -f "$dir/$libname.$acl_libext"; then
8288 found_dir="$dir"
8289 found_a="$dir/$libname.$acl_libext"
8290 fi
8291 fi
8292 if test "X$found_dir" != "X"; then
8293 if test -f "$dir/$libname.la"; then
8294 found_la="$dir/$libname.la"
8295 fi
8296 fi
8297 fi
8298 if test "X$found_dir" = "X"; then
8299 for x in $LDFLAGS $LTLIBINTL; do
8300
8301 acl_save_prefix="$prefix"
8302 prefix="$acl_final_prefix"
8303 acl_save_exec_prefix="$exec_prefix"
8304 exec_prefix="$acl_final_exec_prefix"
8305 eval x=\"$x\"
8306 exec_prefix="$acl_save_exec_prefix"
8307 prefix="$acl_save_prefix"
8308
8309 case "$x" in
8310 -L*)
8311 dir=`echo "X$x" | sed -e 's/^X-L//'`
8312 if test -n "$acl_shlibext"; then
8313 if test -f "$dir/$libname$shrext"; then
8314 found_dir="$dir"
8315 found_so="$dir/$libname$shrext"
8316 else
8317 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8318 ver=`(cd "$dir" && \
8319 for f in "$libname$shrext".*; do echo "$f"; done \
8320 | sed -e "s,^$libname$shrext\\\\.,," \
8321 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8322 | sed 1q ) 2>/dev/null`
8323 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8324 found_dir="$dir"
8325 found_so="$dir/$libname$shrext.$ver"
8326 fi
8327 else
8328 eval library_names=\"$acl_library_names_spec\"
8329 for f in $library_names; do
8330 if test -f "$dir/$f"; then
8331 found_dir="$dir"
8332 found_so="$dir/$f"
8333 break
8334 fi
8335 done
8336 fi
8337 fi
8338 fi
8339 if test "X$found_dir" = "X"; then
8340 if test -f "$dir/$libname.$acl_libext"; then
8341 found_dir="$dir"
8342 found_a="$dir/$libname.$acl_libext"
8343 fi
8344 fi
8345 if test "X$found_dir" != "X"; then
8346 if test -f "$dir/$libname.la"; then
8347 found_la="$dir/$libname.la"
8348 fi
8349 fi
8350 ;;
8351 esac
8352 if test "X$found_dir" != "X"; then
8353 break
8354 fi
8355 done
8356 fi
8357 if test "X$found_dir" != "X"; then
8358 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8359 if test "X$found_so" != "X"; then
8360 if test "$enable_rpath" = no \
8361 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8362 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8363 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8364 else
8365 haveit=
8366 for x in $ltrpathdirs; do
8367 if test "X$x" = "X$found_dir"; then
8368 haveit=yes
8369 break
8370 fi
8371 done
8372 if test -z "$haveit"; then
8373 ltrpathdirs="$ltrpathdirs $found_dir"
8374 fi
8375 if test "$acl_hardcode_direct" = yes; then
8376 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8377 else
8378 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8379 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8380 haveit=
8381 for x in $rpathdirs; do
8382 if test "X$x" = "X$found_dir"; then
8383 haveit=yes
8384 break
8385 fi
8386 done
8387 if test -z "$haveit"; then
8388 rpathdirs="$rpathdirs $found_dir"
8389 fi
8390 else
8391 haveit=
8392 for x in $LDFLAGS $LIBINTL; do
8393
8394 acl_save_prefix="$prefix"
8395 prefix="$acl_final_prefix"
8396 acl_save_exec_prefix="$exec_prefix"
8397 exec_prefix="$acl_final_exec_prefix"
8398 eval x=\"$x\"
8399 exec_prefix="$acl_save_exec_prefix"
8400 prefix="$acl_save_prefix"
8401
8402 if test "X$x" = "X-L$found_dir"; then
8403 haveit=yes
8404 break
8405 fi
8406 done
8407 if test -z "$haveit"; then
8408 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8409 fi
8410 if test "$acl_hardcode_minus_L" != no; then
8411 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8412 else
8413 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8414 fi
8415 fi
8416 fi
8417 fi
8418 else
8419 if test "X$found_a" != "X"; then
8420 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8421 else
8422 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8423 fi
8424 fi
8425 additional_includedir=
8426 case "$found_dir" in
8427 */$acl_libdirstem | */$acl_libdirstem/)
8428 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8429 if test "$name" = 'intl'; then
8430 LIBINTL_PREFIX="$basedir"
8431 fi
8432 additional_includedir="$basedir/include"
8433 ;;
8434 */$acl_libdirstem2 | */$acl_libdirstem2/)
8435 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8436 if test "$name" = 'intl'; then
8437 LIBINTL_PREFIX="$basedir"
8438 fi
8439 additional_includedir="$basedir/include"
8440 ;;
8441 esac
8442 if test "X$additional_includedir" != "X"; then
8443 if test "X$additional_includedir" != "X/usr/include"; then
8444 haveit=
8445 if test "X$additional_includedir" = "X/usr/local/include"; then
8446 if test -n "$GCC"; then
8447 case $host_os in
8448 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8449 esac
8450 fi
8451 fi
8452 if test -z "$haveit"; then
8453 for x in $CPPFLAGS $INCINTL; do
8454
8455 acl_save_prefix="$prefix"
8456 prefix="$acl_final_prefix"
8457 acl_save_exec_prefix="$exec_prefix"
8458 exec_prefix="$acl_final_exec_prefix"
8459 eval x=\"$x\"
8460 exec_prefix="$acl_save_exec_prefix"
8461 prefix="$acl_save_prefix"
8462
8463 if test "X$x" = "X-I$additional_includedir"; then
8464 haveit=yes
8465 break
8466 fi
8467 done
8468 if test -z "$haveit"; then
8469 if test -d "$additional_includedir"; then
8470 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8471 fi
8472 fi
8473 fi
8474 fi
8475 fi
8476 if test -n "$found_la"; then
8477 save_libdir="$libdir"
8478 case "$found_la" in
8479 */* | *\\*) . "$found_la" ;;
8480 *) . "./$found_la" ;;
8481 esac
8482 libdir="$save_libdir"
8483 for dep in $dependency_libs; do
8484 case "$dep" in
8485 -L*)
8486 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8487 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8488 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8489 haveit=
8490 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8491 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8492 if test -n "$GCC"; then
8493 case $host_os in
8494 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8495 esac
8496 fi
8497 fi
8498 if test -z "$haveit"; then
8499 haveit=
8500 for x in $LDFLAGS $LIBINTL; do
8501
8502 acl_save_prefix="$prefix"
8503 prefix="$acl_final_prefix"
8504 acl_save_exec_prefix="$exec_prefix"
8505 exec_prefix="$acl_final_exec_prefix"
8506 eval x=\"$x\"
8507 exec_prefix="$acl_save_exec_prefix"
8508 prefix="$acl_save_prefix"
8509
8510 if test "X$x" = "X-L$additional_libdir"; then
8511 haveit=yes
8512 break
8513 fi
8514 done
8515 if test -z "$haveit"; then
8516 if test -d "$additional_libdir"; then
8517 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8518 fi
8519 fi
8520 haveit=
8521 for x in $LDFLAGS $LTLIBINTL; do
8522
8523 acl_save_prefix="$prefix"
8524 prefix="$acl_final_prefix"
8525 acl_save_exec_prefix="$exec_prefix"
8526 exec_prefix="$acl_final_exec_prefix"
8527 eval x=\"$x\"
8528 exec_prefix="$acl_save_exec_prefix"
8529 prefix="$acl_save_prefix"
8530
8531 if test "X$x" = "X-L$additional_libdir"; then
8532 haveit=yes
8533 break
8534 fi
8535 done
8536 if test -z "$haveit"; then
8537 if test -d "$additional_libdir"; then
8538 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8539 fi
8540 fi
8541 fi
8542 fi
8543 ;;
8544 -R*)
8545 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8546 if test "$enable_rpath" != no; then
8547 haveit=
8548 for x in $rpathdirs; do
8549 if test "X$x" = "X$dir"; then
8550 haveit=yes
8551 break
8552 fi
8553 done
8554 if test -z "$haveit"; then
8555 rpathdirs="$rpathdirs $dir"
8556 fi
8557 haveit=
8558 for x in $ltrpathdirs; do
8559 if test "X$x" = "X$dir"; then
8560 haveit=yes
8561 break
8562 fi
8563 done
8564 if test -z "$haveit"; then
8565 ltrpathdirs="$ltrpathdirs $dir"
8566 fi
8567 fi
8568 ;;
8569 -l*)
8570 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8571 ;;
8572 *.la)
8573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8574 ;;
8575 *)
8576 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8577 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8578 ;;
8579 esac
8580 done
8581 fi
8582 else
8583 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8584 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8585 fi
8586 fi
8587 fi
8588 done
8589 done
8590 if test "X$rpathdirs" != "X"; then
8591 if test -n "$acl_hardcode_libdir_separator"; then
8592 alldirs=
8593 for found_dir in $rpathdirs; do
8594 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8595 done
8596 acl_save_libdir="$libdir"
8597 libdir="$alldirs"
8598 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8599 libdir="$acl_save_libdir"
8600 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8601 else
8602 for found_dir in $rpathdirs; do
8603 acl_save_libdir="$libdir"
8604 libdir="$found_dir"
8605 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8606 libdir="$acl_save_libdir"
8607 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8608 done
8609 fi
8610 fi
8611 if test "X$ltrpathdirs" != "X"; then
8612 for found_dir in $ltrpathdirs; do
8613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8614 done
8615 fi
8616
8617
8618
8619
8620
8621
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8623 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8624 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 gt_save_CPPFLAGS="$CPPFLAGS"
8628 CPPFLAGS="$CPPFLAGS $INCINTL"
8629 gt_save_LIBS="$LIBS"
8630 LIBS="$LIBS $LIBINTL"
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633
8634 #include <libintl.h>
8635 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8636 extern int _nl_msg_cat_cntr;
8637 extern
8638 #ifdef __cplusplus
8639 "C"
8640 #endif
8641 const char *_nl_expand_alias (const char *);
8642 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8643 #else
8644 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8645 #endif
8646 $gt_revision_test_code
8647
8648 int
8649 main ()
8650 {
8651
8652 bindtextdomain ("", "");
8653 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8654
8655 ;
8656 return 0;
8657 }
8658 _ACEOF
8659 if ac_fn_c_try_link "$LINENO"; then :
8660 eval "$gt_func_gnugettext_libintl=yes"
8661 else
8662 eval "$gt_func_gnugettext_libintl=no"
8663 fi
8664 rm -f core conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
8666 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8667 LIBS="$LIBS $LIBICONV"
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8670
8671 #include <libintl.h>
8672 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8673 extern int _nl_msg_cat_cntr;
8674 extern
8675 #ifdef __cplusplus
8676 "C"
8677 #endif
8678 const char *_nl_expand_alias (const char *);
8679 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8680 #else
8681 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8682 #endif
8683 $gt_revision_test_code
8684
8685 int
8686 main ()
8687 {
8688
8689 bindtextdomain ("", "");
8690 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8691
8692 ;
8693 return 0;
8694 }
8695 _ACEOF
8696 if ac_fn_c_try_link "$LINENO"; then :
8697 LIBINTL="$LIBINTL $LIBICONV"
8698 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8699 eval "$gt_func_gnugettext_libintl=yes"
8700
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8704 fi
8705 CPPFLAGS="$gt_save_CPPFLAGS"
8706 LIBS="$gt_save_LIBS"
8707 fi
8708 eval ac_res=\$$gt_func_gnugettext_libintl
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8710 $as_echo "$ac_res" >&6; }
8711 fi
8712
8713 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8714 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8715 && test "$PACKAGE" != gettext-runtime \
8716 && test "$PACKAGE" != gettext-tools; }; then
8717 gt_use_preinstalled_gnugettext=yes
8718 else
8719 LIBINTL=
8720 LTLIBINTL=
8721 INCINTL=
8722 fi
8723
8724
8725
8726 if test -n "$INTL_MACOSX_LIBS"; then
8727 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8728 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8729 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8730 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8731 fi
8732 fi
8733
8734 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8735 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8736
8737 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8738
8739 else
8740 USE_NLS=no
8741 fi
8742 fi
8743
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8745 $as_echo_n "checking whether to use NLS... " >&6; }
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8747 $as_echo "$USE_NLS" >&6; }
8748 if test "$USE_NLS" = "yes"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8750 $as_echo_n "checking where the gettext function comes from... " >&6; }
8751 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8752 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8753 gt_source="external libintl"
8754 else
8755 gt_source="libc"
8756 fi
8757 else
8758 gt_source="included intl directory"
8759 fi
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8761 $as_echo "$gt_source" >&6; }
8762 fi
8763
8764 if test "$USE_NLS" = "yes"; then
8765
8766 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8767 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8769 $as_echo_n "checking how to link with libintl... " >&6; }
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8771 $as_echo "$LIBINTL" >&6; }
8772
8773 for element in $INCINTL; do
8774 haveit=
8775 for x in $CPPFLAGS; do
8776
8777 acl_save_prefix="$prefix"
8778 prefix="$acl_final_prefix"
8779 acl_save_exec_prefix="$exec_prefix"
8780 exec_prefix="$acl_final_exec_prefix"
8781 eval x=\"$x\"
8782 exec_prefix="$acl_save_exec_prefix"
8783 prefix="$acl_save_prefix"
8784
8785 if test "X$x" = "X$element"; then
8786 haveit=yes
8787 break
8788 fi
8789 done
8790 if test -z "$haveit"; then
8791 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8792 fi
8793 done
8794
8795 fi
8796
8797
8798 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8799
8800
8801 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8802
8803 fi
8804
8805 POSUB=po
8806 fi
8807
8808
8809
8810 INTLLIBS="$LIBINTL"
8811
8812
8813
8814
8815
8816
8817
8818
8819 # We want the 'PYTHON' varible to be python version 2. We also want
8820 # our custom 'PYTHON3' varible to be python version 3.
8821 #
8822 # Note that the python2/python3 code was inspired by code in the
8823 # 'abrt' configure:
8824 # <https://github.com/abrt/abrt/blob/master/configure.ac>
8825 #
8826 # First, figure out what version of python is in the executable named
8827 # 'python'. On most systems that is python version 2, but on arch
8828 # linux that is python version 3.
8829 # Extract the first word of "python", so it can be a program name with args.
8830 set dummy python; ac_word=$2
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832 $as_echo_n "checking for $ac_word... " >&6; }
8833 if ${ac_cv_path_PYTHON_UNKNOWN+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 case $PYTHON_UNKNOWN in
8837 [\\/]* | ?:[\\/]*)
8838 ac_cv_path_PYTHON_UNKNOWN="$PYTHON_UNKNOWN" # Let the user override the test with a path.
8839 ;;
8840 *)
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8843 do
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8848 ac_cv_path_PYTHON_UNKNOWN="$as_dir/$ac_word$ac_exec_ext"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 break 2
8851 fi
8852 done
8853 done
8854 IFS=$as_save_IFS
8855
8856 test -z "$ac_cv_path_PYTHON_UNKNOWN" && ac_cv_path_PYTHON_UNKNOWN="no"
8857 ;;
8858 esac
8859 fi
8860 PYTHON_UNKNOWN=$ac_cv_path_PYTHON_UNKNOWN
8861 if test -n "$PYTHON_UNKNOWN"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_UNKNOWN" >&5
8863 $as_echo "$PYTHON_UNKNOWN" >&6; }
8864 else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8867 fi
8868
8869
8870 if test "x$PYTHON_UNKNOWN" != "xno"; then
8871 # OK, we found 'python'. What version is it?
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON_UNKNOWN is version 2 or 3" >&5
8873 $as_echo_n "checking whether $PYTHON_UNKNOWN is version 2 or 3... " >&6; }
8874 if ${ac_cv_python_unknown_version+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 ac_cv_python_unknown_version=`$PYTHON_UNKNOWN -c "import sys; sys.stdout.write(sys.version[:3][0])"`
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_unknown_version" >&5
8880 $as_echo "$ac_cv_python_unknown_version" >&6; }
8881 fi
8882
8883 # Now we'll update the _AM_PYTHON_INTERPRETER_LIST variable (which
8884 # AM_PATH_PYTHON uses) to only be version 2 versions of python. Note
8885 # that the m4_define happens when autoconf is run, but the
8886 # PLAIN_PYTHON_INTERPRETER variable expansion will happen when the
8887 # user runs configure.
8888 #
8889 # Note that for python2, we prefer an executable named 'python2' over
8890 # one just named 'python'.
8891 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$ac_cv_python_unknown_version" = "x2"; then
8892 PLAIN_PYTHON_INTERPRETER=python
8893 else
8894 PLAIN_PYTHON_INTERPRETER=python2
8895 fi
8896
8897
8898 # Now we can call AM_PATH_PYTHON to find python version 2.6+ (and
8899 # version 2 only).
8900
8901
8902
8903
8904
8905
8906 if test -n "$PYTHON"; then
8907 # If the user set $PYTHON, use it and don't search something else.
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
8909 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
8910 prog="import sys
8911 # split strings by '.' and convert to numeric. Append some zeros
8912 # because we need at least 4 digits for the hex conversion.
8913 # map returns an iterator in Python 3.0 and a list in 2.x
8914 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
8915 minverhex = 0
8916 # xrange is not present in Python 3.0 and range returns an iterator
8917 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8918 sys.exit(sys.hexversion < minverhex)"
8919 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
8920 ($PYTHON -c "$prog") >&5 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; then :
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8925 $as_echo "yes" >&6; }
8926 else
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8929 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
8930 fi
8931 am_display_PYTHON=$PYTHON
8932 else
8933 # Otherwise, try each interpreter until we find one that satisfies
8934 # VERSION.
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
8936 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
8937 if ${am_cv_pathless_PYTHON+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940
8941 for am_cv_pathless_PYTHON in python2 $PLAIN_PYTHON_INTERPRETER python2.7 python2.6 none; do
8942 test "$am_cv_pathless_PYTHON" = none && break
8943 prog="import sys
8944 # split strings by '.' and convert to numeric. Append some zeros
8945 # because we need at least 4 digits for the hex conversion.
8946 # map returns an iterator in Python 3.0 and a list in 2.x
8947 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
8948 minverhex = 0
8949 # xrange is not present in Python 3.0 and range returns an iterator
8950 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8951 sys.exit(sys.hexversion < minverhex)"
8952 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
8953 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; then :
8957 break
8958 fi
8959 done
8960 fi
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
8962 $as_echo "$am_cv_pathless_PYTHON" >&6; }
8963 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8964 if test "$am_cv_pathless_PYTHON" = none; then
8965 PYTHON=:
8966 else
8967 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
8968 set dummy $am_cv_pathless_PYTHON; ac_word=$2
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970 $as_echo_n "checking for $ac_word... " >&6; }
8971 if ${ac_cv_path_PYTHON+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 case $PYTHON in
8975 [\\/]* | ?:[\\/]*)
8976 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8977 ;;
8978 *)
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980 for as_dir in $PATH
8981 do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8986 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8989 fi
8990 done
8991 done
8992 IFS=$as_save_IFS
8993
8994 ;;
8995 esac
8996 fi
8997 PYTHON=$ac_cv_path_PYTHON
8998 if test -n "$PYTHON"; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9000 $as_echo "$PYTHON" >&6; }
9001 else
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9004 fi
9005
9006
9007 fi
9008 am_display_PYTHON=$am_cv_pathless_PYTHON
9009 fi
9010
9011
9012 if test "$PYTHON" = :; then
9013 :
9014 else
9015
9016
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
9018 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
9019 if ${am_cv_python_version+:} false; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
9025 $as_echo "$am_cv_python_version" >&6; }
9026 PYTHON_VERSION=$am_cv_python_version
9027
9028
9029
9030 PYTHON_PREFIX='${prefix}'
9031
9032 PYTHON_EXEC_PREFIX='${exec_prefix}'
9033
9034
9035
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
9037 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
9038 if ${am_cv_python_platform+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
9042 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
9044 $as_echo "$am_cv_python_platform" >&6; }
9045 PYTHON_PLATFORM=$am_cv_python_platform
9046
9047
9048 # Just factor out some code duplication.
9049 am_python_setup_sysconfig="\
9050 import sys
9051 # Prefer sysconfig over distutils.sysconfig, for better compatibility
9052 # with python 3.x. See automake bug#10227.
9053 try:
9054 import sysconfig
9055 except ImportError:
9056 can_use_sysconfig = 0
9057 else:
9058 can_use_sysconfig = 1
9059 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
9060 # <https://github.com/pypa/virtualenv/issues/118>
9061 try:
9062 from platform import python_implementation
9063 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
9064 can_use_sysconfig = 0
9065 except ImportError:
9066 pass"
9067
9068
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
9070 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
9071 if ${am_cv_python_pythondir+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 if test "x$prefix" = xNONE
9075 then
9076 am_py_prefix=$ac_default_prefix
9077 else
9078 am_py_prefix=$prefix
9079 fi
9080 am_cv_python_pythondir=`$PYTHON -c "
9081 $am_python_setup_sysconfig
9082 if can_use_sysconfig:
9083 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
9084 else:
9085 from distutils import sysconfig
9086 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
9087 sys.stdout.write(sitedir)"`
9088 case $am_cv_python_pythondir in
9089 $am_py_prefix*)
9090 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
9091 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
9092 ;;
9093 *)
9094 case $am_py_prefix in
9095 /usr|/System*) ;;
9096 *)
9097 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
9098 ;;
9099 esac
9100 ;;
9101 esac
9102
9103 fi
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
9105 $as_echo "$am_cv_python_pythondir" >&6; }
9106 pythondir=$am_cv_python_pythondir
9107
9108
9109
9110 pkgpythondir=\${pythondir}/$PACKAGE
9111
9112
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
9114 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
9115 if ${am_cv_python_pyexecdir+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 if test "x$exec_prefix" = xNONE
9119 then
9120 am_py_exec_prefix=$am_py_prefix
9121 else
9122 am_py_exec_prefix=$exec_prefix
9123 fi
9124 am_cv_python_pyexecdir=`$PYTHON -c "
9125 $am_python_setup_sysconfig
9126 if can_use_sysconfig:
9127 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
9128 else:
9129 from distutils import sysconfig
9130 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
9131 sys.stdout.write(sitedir)"`
9132 case $am_cv_python_pyexecdir in
9133 $am_py_exec_prefix*)
9134 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
9135 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
9136 ;;
9137 *)
9138 case $am_py_exec_prefix in
9139 /usr|/System*) ;;
9140 *)
9141 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
9142 ;;
9143 esac
9144 ;;
9145 esac
9146
9147 fi
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
9149 $as_echo "$am_cv_python_pyexecdir" >&6; }
9150 pyexecdir=$am_cv_python_pyexecdir
9151
9152
9153
9154 pkgpyexecdir=\${pyexecdir}/$PACKAGE
9155
9156
9157
9158 fi
9159
9160
9161 python_basename=$(basename "$PYTHON")
9162
9163 cat >>confdefs.h <<_ACEOF
9164 #define PYTHON_BASENAME "${python_basename}"
9165 _ACEOF
9166
9167 if test "x$PYTHON" != "x:"; then
9168
9169 $as_echo "#define PYTHON_EXISTS /**/" >>confdefs.h
9170
9171 fi
9172
9173 # AM_PATH_PYTHON defines 'pyexecdir'. Make sure the python and
9174 # pyexecdir variables get sent down to the subconfigure in the
9175 # testsuite directory.
9176 as_fn_append ac_configure_args " python='$PYTHON' pyexecdir='$pyexecdir'"
9177
9178 # Now let's try to find python version 3.
9179 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$ac_cv_python_unknown_version" = "x3"; then
9180 # Extract the first word of "python", so it can be a program name with args.
9181 set dummy python; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if ${ac_cv_path_PYTHON3+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 case $PYTHON3 in
9188 [\\/]* | ?:[\\/]*)
9189 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9190 ;;
9191 *)
9192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193 for as_dir in $PATH
9194 do
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9199 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 break 2
9202 fi
9203 done
9204 done
9205 IFS=$as_save_IFS
9206
9207 ;;
9208 esac
9209 fi
9210 PYTHON3=$ac_cv_path_PYTHON3
9211 if test -n "$PYTHON3"; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9213 $as_echo "$PYTHON3" >&6; }
9214 else
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 $as_echo "no" >&6; }
9217 fi
9218
9219
9220 else
9221 for ac_prog in python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0
9222 do
9223 # Extract the first word of "$ac_prog", so it can be a program name with args.
9224 set dummy $ac_prog; ac_word=$2
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226 $as_echo_n "checking for $ac_word... " >&6; }
9227 if ${ac_cv_path_PYTHON3+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 case $PYTHON3 in
9231 [\\/]* | ?:[\\/]*)
9232 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9233 ;;
9234 *)
9235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236 for as_dir in $PATH
9237 do
9238 IFS=$as_save_IFS
9239 test -z "$as_dir" && as_dir=.
9240 for ac_exec_ext in '' $ac_executable_extensions; do
9241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9242 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9244 break 2
9245 fi
9246 done
9247 done
9248 IFS=$as_save_IFS
9249
9250 ;;
9251 esac
9252 fi
9253 PYTHON3=$ac_cv_path_PYTHON3
9254 if test -n "$PYTHON3"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9256 $as_echo "$PYTHON3" >&6; }
9257 else
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9260 fi
9261
9262
9263 test -n "$PYTHON3" && break
9264 done
9265 test -n "$PYTHON3" || PYTHON3=":"
9266
9267 fi
9268 python3_basename=$(basename "$PYTHON3")
9269
9270 cat >>confdefs.h <<_ACEOF
9271 #define PYTHON3_BASENAME "${python3_basename}"
9272 _ACEOF
9273
9274
9275 # If we found python version 3, set up the other variables for python
9276 # version 3 that AM_PATH_PYTHON sets up for python version 2.
9277 if test "x$PYTHON3" != "x:"; then
9278
9279 $as_echo "#define PYTHON3_EXISTS /**/" >>confdefs.h
9280
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 version" >&5
9282 $as_echo_n "checking for python3 version... " >&6; }
9283 if ${ac_cv_python3_version+:} false; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 ac_cv_python3_version=`$PYTHON3 -c "import sys; sys.stdout.write(sys.version[:3])"`
9287 fi
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_version" >&5
9289 $as_echo "$ac_cv_python3_version" >&6; }
9290 PYTHON3_VERSION=$ac_cv_python3_version
9291
9292 PYTHON3_PREFIX='${prefix}'
9293
9294 PYTHON3_EXEC_PREFIX='${exec_prefix}'
9295
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 platform" >&5
9297 $as_echo_n "checking for python3 platform... " >&6; }
9298 if ${ac_cv_python3_platform+:} false; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 ac_cv_python3_platform=`$PYTHON3 -c "import sys; sys.stdout.write(sys.platform)"`
9302 fi
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_platform" >&5
9304 $as_echo "$ac_cv_python3_platform" >&6; }
9305 PYTHON3_PLATFORM=$ac_cv_python3_platform
9306
9307
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 script directory" >&5
9309 $as_echo_n "checking for python3 script directory... " >&6; }
9310 if ${ac_cv_python3_dir+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 ac_cv_python3_dir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(0,0,prefix='$PYTHON3_PREFIX'))"`
9314 fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_dir" >&5
9316 $as_echo "$ac_cv_python3_dir" >&6; }
9317 python3dir=$ac_cv_python3_dir
9318
9319
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 extension module directory" >&5
9321 $as_echo_n "checking for python3 extension module directory... " >&6; }
9322 if ${ac_cv_py3execdir+:} false; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 ac_cv_py3execdir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(1,0,prefix='$PYTHON3_EXEC_PREFIX'))"`
9326 fi
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_py3execdir" >&5
9328 $as_echo "$ac_cv_py3execdir" >&6; }
9329 py3execdir=$ac_cv_py3execdir
9330
9331 fi
9332
9333 # Make sure the python3 and py3execdir variables get sent down to
9334 # the subconfigure in the testsuite directory.
9335 as_fn_append ac_configure_args " python3='$PYTHON3' py3execdir='$ac_cv_py3execdir'"
9336
9337 if test "${enable_prologues+set}" != set; then
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
9339 $as_echo_n "checking to see if prologue searching should be the default... " >&6; }
9340 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
9341 echo ' yes '
9342 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9343 enable_prologues=yes
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9345 $as_echo "yes" >&6; }
9346 else
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9349 fi
9350 fi
9351 # Check whether --enable-prologues was given.
9352 if test "${enable_prologues+set}" = set; then :
9353 enableval=$enable_prologues;
9354 if test "$enable_prologues" = yes; then
9355
9356 $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h
9357
9358 fi
9359 fi
9360
9361
9362
9363 if test "${enable_sdt_probes+set}" != set; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5
9365 $as_echo_n "checking to see if sdt probes should be the default... " >&6; }
9366 if { echo '#if __GNUC__ < 4'
9367 echo ' yes '
9368 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9369 enable_sdt_probes=no
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371 $as_echo "no" >&6; }
9372 else
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9374 $as_echo "yes" >&6; }
9375 fi
9376 fi
9377 # Check whether --enable-sdt-probes was given.
9378 if test "${enable_sdt_probes+set}" = set; then :
9379 enableval=$enable_sdt_probes;
9380 fi
9381
9382 if test "x$enable_sdt_probes" != xno; then :
9383
9384
9385 $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h
9386
9387
9388 fi
9389
9390
9391 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=false
9392 ac_ext=cpp
9393 ac_cpp='$CXXCPP $CPPFLAGS'
9394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9397 ac_success=no
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
9399 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
9400 if ${ax_cv_cxx_compile_cxx11+:} false; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405
9406
9407 // If the compiler admits that it is not ready for C++11, why torture it?
9408 // Hopefully, this will speed up the test.
9409
9410 #ifndef __cplusplus
9411
9412 #error "This is not a C++ compiler"
9413
9414 #elif __cplusplus < 201103L
9415
9416 #error "This is not a C++11 compiler"
9417
9418 #else
9419
9420 namespace cxx11
9421 {
9422
9423 namespace test_static_assert
9424 {
9425
9426 template <typename T>
9427 struct check
9428 {
9429 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9430 };
9431
9432 }
9433
9434 namespace test_final_override
9435 {
9436
9437 struct Base
9438 {
9439 virtual void f() {}
9440 };
9441
9442 struct Derived : public Base
9443 {
9444 virtual void f() override {}
9445 };
9446
9447 }
9448
9449 namespace test_double_right_angle_brackets
9450 {
9451
9452 template < typename T >
9453 struct check {};
9454
9455 typedef check<void> single_type;
9456 typedef check<check<void>> double_type;
9457 typedef check<check<check<void>>> triple_type;
9458 typedef check<check<check<check<void>>>> quadruple_type;
9459
9460 }
9461
9462 namespace test_decltype
9463 {
9464
9465 int
9466 f()
9467 {
9468 int a = 1;
9469 decltype(a) b = 2;
9470 return a + b;
9471 }
9472
9473 }
9474
9475 namespace test_type_deduction
9476 {
9477
9478 template < typename T1, typename T2 >
9479 struct is_same
9480 {
9481 static const bool value = false;
9482 };
9483
9484 template < typename T >
9485 struct is_same<T, T>
9486 {
9487 static const bool value = true;
9488 };
9489
9490 template < typename T1, typename T2 >
9491 auto
9492 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9493 {
9494 return a1 + a2;
9495 }
9496
9497 int
9498 test(const int c, volatile int v)
9499 {
9500 static_assert(is_same<int, decltype(0)>::value == true, "");
9501 static_assert(is_same<int, decltype(c)>::value == false, "");
9502 static_assert(is_same<int, decltype(v)>::value == false, "");
9503 auto ac = c;
9504 auto av = v;
9505 auto sumi = ac + av + 'x';
9506 auto sumf = ac + av + 1.0;
9507 static_assert(is_same<int, decltype(ac)>::value == true, "");
9508 static_assert(is_same<int, decltype(av)>::value == true, "");
9509 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9510 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9511 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9512 return (sumf > 0.0) ? sumi : add(c, v);
9513 }
9514
9515 }
9516
9517 namespace test_noexcept
9518 {
9519
9520 int f() { return 0; }
9521 int g() noexcept { return 0; }
9522
9523 static_assert(noexcept(f()) == false, "");
9524 static_assert(noexcept(g()) == true, "");
9525
9526 }
9527
9528 namespace test_constexpr
9529 {
9530
9531 template < typename CharT >
9532 unsigned long constexpr
9533 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9534 {
9535 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9536 }
9537
9538 template < typename CharT >
9539 unsigned long constexpr
9540 strlen_c(const CharT *const s) noexcept
9541 {
9542 return strlen_c_r(s, 0UL);
9543 }
9544
9545 static_assert(strlen_c("") == 0UL, "");
9546 static_assert(strlen_c("1") == 1UL, "");
9547 static_assert(strlen_c("example") == 7UL, "");
9548 static_assert(strlen_c("another\0example") == 7UL, "");
9549
9550 }
9551
9552 namespace test_rvalue_references
9553 {
9554
9555 template < int N >
9556 struct answer
9557 {
9558 static constexpr int value = N;
9559 };
9560
9561 answer<1> f(int&) { return answer<1>(); }
9562 answer<2> f(const int&) { return answer<2>(); }
9563 answer<3> f(int&&) { return answer<3>(); }
9564
9565 void
9566 test()
9567 {
9568 int i = 0;
9569 const int c = 0;
9570 static_assert(decltype(f(i))::value == 1, "");
9571 static_assert(decltype(f(c))::value == 2, "");
9572 static_assert(decltype(f(0))::value == 3, "");
9573 }
9574
9575 }
9576
9577 namespace test_uniform_initialization
9578 {
9579
9580 struct test
9581 {
9582 static const int zero {};
9583 static const int one {1};
9584 };
9585
9586 static_assert(test::zero == 0, "");
9587 static_assert(test::one == 1, "");
9588
9589 }
9590
9591 namespace test_lambdas
9592 {
9593
9594 void
9595 test1()
9596 {
9597 auto lambda1 = [](){};
9598 auto lambda2 = lambda1;
9599 lambda1();
9600 lambda2();
9601 }
9602
9603 int
9604 test2()
9605 {
9606 auto a = [](int i, int j){ return i + j; }(1, 2);
9607 auto b = []() -> int { return '0'; }();
9608 auto c = [=](){ return a + b; }();
9609 auto d = [&](){ return c; }();
9610 auto e = [a, &b](int x) mutable {
9611 const auto identity = [](int y){ return y; };
9612 for (auto i = 0; i < a; ++i)
9613 a += b--;
9614 return x + identity(a + b);
9615 }(0);
9616 return a + b + c + d + e;
9617 }
9618
9619 int
9620 test3()
9621 {
9622 const auto nullary = [](){ return 0; };
9623 const auto unary = [](int x){ return x; };
9624 using nullary_t = decltype(nullary);
9625 using unary_t = decltype(unary);
9626 const auto higher1st = [](nullary_t f){ return f(); };
9627 const auto higher2nd = [unary](nullary_t f1){
9628 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9629 };
9630 return higher1st(nullary) + higher2nd(nullary)(unary);
9631 }
9632
9633 }
9634
9635 namespace test_variadic_templates
9636 {
9637
9638 template <int...>
9639 struct sum;
9640
9641 template <int N0, int... N1toN>
9642 struct sum<N0, N1toN...>
9643 {
9644 static constexpr auto value = N0 + sum<N1toN...>::value;
9645 };
9646
9647 template <>
9648 struct sum<>
9649 {
9650 static constexpr auto value = 0;
9651 };
9652
9653 static_assert(sum<>::value == 0, "");
9654 static_assert(sum<1>::value == 1, "");
9655 static_assert(sum<23>::value == 23, "");
9656 static_assert(sum<1, 2>::value == 3, "");
9657 static_assert(sum<5, 5, 11>::value == 21, "");
9658 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9659
9660 }
9661
9662 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9663 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9664 // because of this.
9665 namespace test_template_alias_sfinae
9666 {
9667
9668 struct foo {};
9669
9670 template<typename T>
9671 using member = typename T::member_type;
9672
9673 template<typename T>
9674 void func(...) {}
9675
9676 template<typename T>
9677 void func(member<T>*) {}
9678
9679 void test();
9680
9681 void test() { func<foo>(0); }
9682
9683 }
9684
9685 } // namespace cxx11
9686
9687 #endif // __cplusplus >= 201103L
9688
9689
9690
9691 _ACEOF
9692 if ac_fn_cxx_try_compile "$LINENO"; then :
9693 ax_cv_cxx_compile_cxx11=yes
9694 else
9695 ax_cv_cxx_compile_cxx11=no
9696 fi
9697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698 fi
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
9700 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
9701 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
9702 ac_success=yes
9703 fi
9704
9705
9706
9707 if test x$ac_success = xno; then
9708 for alternative in ${ax_cxx_compile_alternatives}; do
9709 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
9710 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
9712 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
9713 if eval \${$cachevar+:} false; then :
9714 $as_echo_n "(cached) " >&6
9715 else
9716 ac_save_CXX="$CXX"
9717 CXX="$CXX $switch"
9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9720
9721
9722 // If the compiler admits that it is not ready for C++11, why torture it?
9723 // Hopefully, this will speed up the test.
9724
9725 #ifndef __cplusplus
9726
9727 #error "This is not a C++ compiler"
9728
9729 #elif __cplusplus < 201103L
9730
9731 #error "This is not a C++11 compiler"
9732
9733 #else
9734
9735 namespace cxx11
9736 {
9737
9738 namespace test_static_assert
9739 {
9740
9741 template <typename T>
9742 struct check
9743 {
9744 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9745 };
9746
9747 }
9748
9749 namespace test_final_override
9750 {
9751
9752 struct Base
9753 {
9754 virtual void f() {}
9755 };
9756
9757 struct Derived : public Base
9758 {
9759 virtual void f() override {}
9760 };
9761
9762 }
9763
9764 namespace test_double_right_angle_brackets
9765 {
9766
9767 template < typename T >
9768 struct check {};
9769
9770 typedef check<void> single_type;
9771 typedef check<check<void>> double_type;
9772 typedef check<check<check<void>>> triple_type;
9773 typedef check<check<check<check<void>>>> quadruple_type;
9774
9775 }
9776
9777 namespace test_decltype
9778 {
9779
9780 int
9781 f()
9782 {
9783 int a = 1;
9784 decltype(a) b = 2;
9785 return a + b;
9786 }
9787
9788 }
9789
9790 namespace test_type_deduction
9791 {
9792
9793 template < typename T1, typename T2 >
9794 struct is_same
9795 {
9796 static const bool value = false;
9797 };
9798
9799 template < typename T >
9800 struct is_same<T, T>
9801 {
9802 static const bool value = true;
9803 };
9804
9805 template < typename T1, typename T2 >
9806 auto
9807 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9808 {
9809 return a1 + a2;
9810 }
9811
9812 int
9813 test(const int c, volatile int v)
9814 {
9815 static_assert(is_same<int, decltype(0)>::value == true, "");
9816 static_assert(is_same<int, decltype(c)>::value == false, "");
9817 static_assert(is_same<int, decltype(v)>::value == false, "");
9818 auto ac = c;
9819 auto av = v;
9820 auto sumi = ac + av + 'x';
9821 auto sumf = ac + av + 1.0;
9822 static_assert(is_same<int, decltype(ac)>::value == true, "");
9823 static_assert(is_same<int, decltype(av)>::value == true, "");
9824 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9825 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9826 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9827 return (sumf > 0.0) ? sumi : add(c, v);
9828 }
9829
9830 }
9831
9832 namespace test_noexcept
9833 {
9834
9835 int f() { return 0; }
9836 int g() noexcept { return 0; }
9837
9838 static_assert(noexcept(f()) == false, "");
9839 static_assert(noexcept(g()) == true, "");
9840
9841 }
9842
9843 namespace test_constexpr
9844 {
9845
9846 template < typename CharT >
9847 unsigned long constexpr
9848 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9849 {
9850 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9851 }
9852
9853 template < typename CharT >
9854 unsigned long constexpr
9855 strlen_c(const CharT *const s) noexcept
9856 {
9857 return strlen_c_r(s, 0UL);
9858 }
9859
9860 static_assert(strlen_c("") == 0UL, "");
9861 static_assert(strlen_c("1") == 1UL, "");
9862 static_assert(strlen_c("example") == 7UL, "");
9863 static_assert(strlen_c("another\0example") == 7UL, "");
9864
9865 }
9866
9867 namespace test_rvalue_references
9868 {
9869
9870 template < int N >
9871 struct answer
9872 {
9873 static constexpr int value = N;
9874 };
9875
9876 answer<1> f(int&) { return answer<1>(); }
9877 answer<2> f(const int&) { return answer<2>(); }
9878 answer<3> f(int&&) { return answer<3>(); }
9879
9880 void
9881 test()
9882 {
9883 int i = 0;
9884 const int c = 0;
9885 static_assert(decltype(f(i))::value == 1, "");
9886 static_assert(decltype(f(c))::value == 2, "");
9887 static_assert(decltype(f(0))::value == 3, "");
9888 }
9889
9890 }
9891
9892 namespace test_uniform_initialization
9893 {
9894
9895 struct test
9896 {
9897 static const int zero {};
9898 static const int one {1};
9899 };
9900
9901 static_assert(test::zero == 0, "");
9902 static_assert(test::one == 1, "");
9903
9904 }
9905
9906 namespace test_lambdas
9907 {
9908
9909 void
9910 test1()
9911 {
9912 auto lambda1 = [](){};
9913 auto lambda2 = lambda1;
9914 lambda1();
9915 lambda2();
9916 }
9917
9918 int
9919 test2()
9920 {
9921 auto a = [](int i, int j){ return i + j; }(1, 2);
9922 auto b = []() -> int { return '0'; }();
9923 auto c = [=](){ return a + b; }();
9924 auto d = [&](){ return c; }();
9925 auto e = [a, &b](int x) mutable {
9926 const auto identity = [](int y){ return y; };
9927 for (auto i = 0; i < a; ++i)
9928 a += b--;
9929 return x + identity(a + b);
9930 }(0);
9931 return a + b + c + d + e;
9932 }
9933
9934 int
9935 test3()
9936 {
9937 const auto nullary = [](){ return 0; };
9938 const auto unary = [](int x){ return x; };
9939 using nullary_t = decltype(nullary);
9940 using unary_t = decltype(unary);
9941 const auto higher1st = [](nullary_t f){ return f(); };
9942 const auto higher2nd = [unary](nullary_t f1){
9943 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9944 };
9945 return higher1st(nullary) + higher2nd(nullary)(unary);
9946 }
9947
9948 }
9949
9950 namespace test_variadic_templates
9951 {
9952
9953 template <int...>
9954 struct sum;
9955
9956 template <int N0, int... N1toN>
9957 struct sum<N0, N1toN...>
9958 {
9959 static constexpr auto value = N0 + sum<N1toN...>::value;
9960 };
9961
9962 template <>
9963 struct sum<>
9964 {
9965 static constexpr auto value = 0;
9966 };
9967
9968 static_assert(sum<>::value == 0, "");
9969 static_assert(sum<1>::value == 1, "");
9970 static_assert(sum<23>::value == 23, "");
9971 static_assert(sum<1, 2>::value == 3, "");
9972 static_assert(sum<5, 5, 11>::value == 21, "");
9973 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9974
9975 }
9976
9977 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9978 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9979 // because of this.
9980 namespace test_template_alias_sfinae
9981 {
9982
9983 struct foo {};
9984
9985 template<typename T>
9986 using member = typename T::member_type;
9987
9988 template<typename T>
9989 void func(...) {}
9990
9991 template<typename T>
9992 void func(member<T>*) {}
9993
9994 void test();
9995
9996 void test() { func<foo>(0); }
9997
9998 }
9999
10000 } // namespace cxx11
10001
10002 #endif // __cplusplus >= 201103L
10003
10004
10005
10006 _ACEOF
10007 if ac_fn_cxx_try_compile "$LINENO"; then :
10008 eval $cachevar=yes
10009 else
10010 eval $cachevar=no
10011 fi
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 CXX="$ac_save_CXX"
10014 fi
10015 eval ac_res=\$$cachevar
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10017 $as_echo "$ac_res" >&6; }
10018 if eval test x\$$cachevar = xyes; then
10019 CXX="$CXX $switch"
10020 if test -n "$CXXCPP" ; then
10021 CXXCPP="$CXXCPP $switch"
10022 fi
10023 ac_success=yes
10024 break
10025 fi
10026 done
10027 if test x$ac_success = xyes; then
10028 break
10029 fi
10030 done
10031 fi
10032 ac_ext=c
10033 ac_cpp='$CPP $CPPFLAGS'
10034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10037
10038 if test x$ax_cxx_compile_cxx11_required = xtrue; then
10039 if test x$ac_success = xno; then
10040 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
10041 fi
10042 fi
10043 if test x$ac_success = xno; then
10044 HAVE_CXX11=0
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
10046 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
10047 else
10048 HAVE_CXX11=1
10049
10050 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
10051
10052 fi
10053
10054
10055
10056 have_cxx0x="no"
10057 if test "x$HAVE_CXX11" != x1; then :
10058
10059 ac_ext=cpp
10060 ac_cpp='$CXXCPP $CPPFLAGS'
10061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10064
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -std=c++0x" >&5
10066 $as_echo_n "checking whether C++ compiler accepts -std=c++0x... " >&6; }
10067 if ${ax_cv_check_cxxflags___std_cpp0x+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070
10071 ax_check_save_flags=$CXXFLAGS
10072 CXXFLAGS="$CXXFLAGS -std=c++0x"
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h. */
10075
10076 int
10077 main ()
10078 {
10079
10080 ;
10081 return 0;
10082 }
10083 _ACEOF
10084 if ac_fn_cxx_try_compile "$LINENO"; then :
10085 ax_cv_check_cxxflags___std_cpp0x=yes
10086 else
10087 ax_cv_check_cxxflags___std_cpp0x=no
10088 fi
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 CXXFLAGS=$ax_check_save_flags
10091 fi
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___std_cpp0x" >&5
10093 $as_echo "$ax_cv_check_cxxflags___std_cpp0x" >&6; }
10094 if test "x$ax_cv_check_cxxflags___std_cpp0x" = xyes; then :
10095
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with -std=c++0x" >&5
10097 $as_echo "$as_me: Compiling with -std=c++0x" >&6;}
10098 CXX="$CXX -std=c++0x"
10099 HAVE_CXX11=1
10100 have_cxx0x="yes"
10101
10102 else
10103
10104 as_fn_error $? "A compiler with C++11 support is required." "$LINENO" 5
10105
10106 fi
10107
10108 ac_ext=c
10109 ac_cpp='$CPP $CPPFLAGS'
10110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10113
10114
10115 fi
10116
10117 # Check whether --enable-ssp was given.
10118 if test "${enable_ssp+set}" = set; then :
10119 enableval=$enable_ssp;
10120 fi
10121
10122 if test "x$enable_ssp" != xno; then :
10123
10124 save_CFLAGS="$CFLAGS"
10125 save_CXXFLAGS="$CXXFLAGS"
10126 CXXFLAGS="-Werror -fstack-protector-all -D_FORTIFY_SOURCE=2 $CXXFLAGS"
10127 CFLAGS="-Werror -fstack-protector-all -D_FORTIFY_SOURCE=2 $CFLAGS"
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10130 int something ();
10131 _ACEOF
10132 if ac_fn_c_try_compile "$LINENO"; then :
10133
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
10135 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
10136 CFLAGS="-fstack-protector-all -D_FORTIFY_SOURCE=2 $save_CFLAGS"
10137 CXXFLAGS="-fstack-protector-all -D_FORTIFY_SOURCE=2 $save_CXXFLAGS"
10138 else
10139
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
10141 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
10142 CFLAGS="$save_CFLAGS"
10143 CXXFLAGS="$save_CXXFLAGS"
10144 fi
10145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10146 fi
10147
10148
10149
10150
10151 # Compiling with fPIE by default (but see PR 9922)
10152 # Check whether --enable-pie was given.
10153 if test "${enable_pie+set}" = set; then :
10154 enableval=$enable_pie;
10155 fi
10156
10157 if test "x$enable_pie" != xno; then :
10158
10159 PIECFLAGS='-fPIE'
10160 PIECXXFLAGS='-fPIE'
10161 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
10162 save_CFLAGS="$CFLAGS"
10163 save_CXXFLAGS="$CXXFLAGS"
10164 save_LDFLAGS="$LDFLAGS"
10165 CFLAGS="$CFLAGS $PIECFLAGS"
10166 CXXFLAGS="$CXXFLAGS $PIECXXFLAGS"
10167 LDFLAGS="$LDFLAGS $PIELDFLAGS"
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 void main () {}
10171 _ACEOF
10172 if ac_fn_c_try_link "$LINENO"; then :
10173
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
10175 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
10176
10177 else
10178
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
10180 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
10181 PIECFLAGS=""
10182 PIECXXFLAGS=""
10183 PIELDFLAGS=""
10184
10185 fi
10186 rm -f core conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188 CFLAGS="$save_CFLAGS"
10189 CXXFLAGS="$save_CXXFLAGS"
10190 LDFLAGS="$save_LDFLAGS"
10191
10192 fi
10193
10194
10195
10196
10197 # Check whether --enable-sqlite was given.
10198 if test "${enable_sqlite+set}" = set; then :
10199 enableval=$enable_sqlite;
10200 else
10201 enable_sqlite=check
10202 fi
10203 sqlite3_LIBS=
10204
10205
10206
10207
10208
10209
10210
10211 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10212 if test -n "$ac_tool_prefix"; then
10213 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10214 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10216 $as_echo_n "checking for $ac_word... " >&6; }
10217 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 case $PKG_CONFIG in
10221 [\\/]* | ?:[\\/]*)
10222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10223 ;;
10224 *)
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10227 do
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10232 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10235 fi
10236 done
10237 done
10238 IFS=$as_save_IFS
10239
10240 ;;
10241 esac
10242 fi
10243 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10244 if test -n "$PKG_CONFIG"; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10246 $as_echo "$PKG_CONFIG" >&6; }
10247 else
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10250 fi
10251
10252
10253 fi
10254 if test -z "$ac_cv_path_PKG_CONFIG"; then
10255 ac_pt_PKG_CONFIG=$PKG_CONFIG
10256 # Extract the first word of "pkg-config", so it can be a program name with args.
10257 set dummy pkg-config; ac_word=$2
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 $as_echo_n "checking for $ac_word... " >&6; }
10260 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10263 case $ac_pt_PKG_CONFIG in
10264 [\\/]* | ?:[\\/]*)
10265 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10266 ;;
10267 *)
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10270 do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10278 fi
10279 done
10280 done
10281 IFS=$as_save_IFS
10282
10283 ;;
10284 esac
10285 fi
10286 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10287 if test -n "$ac_pt_PKG_CONFIG"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10289 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10290 else
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10293 fi
10294
10295 if test "x$ac_pt_PKG_CONFIG" = x; then
10296 PKG_CONFIG=""
10297 else
10298 case $cross_compiling:$ac_tool_warned in
10299 yes:)
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10302 ac_tool_warned=yes ;;
10303 esac
10304 PKG_CONFIG=$ac_pt_PKG_CONFIG
10305 fi
10306 else
10307 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10308 fi
10309
10310 fi
10311 if test -n "$PKG_CONFIG"; then
10312 _pkg_min_version=0.9.0
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10314 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10315 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10317 $as_echo "yes" >&6; }
10318 else
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10321 PKG_CONFIG=""
10322 fi
10323 fi
10324 if test "x$enable_sqlite" != xno; then :
10325
10326 pkg_failed=no
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
10328 $as_echo_n "checking for sqlite3... " >&6; }
10329
10330 if test -n "$sqlite3_CFLAGS"; then
10331 pkg_cv_sqlite3_CFLAGS="$sqlite3_CFLAGS"
10332 elif test -n "$PKG_CONFIG"; then
10333 if test -n "$PKG_CONFIG" && \
10334 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5
10335 ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5
10336 ac_status=$?
10337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10338 test $ac_status = 0; }; then
10339 pkg_cv_sqlite3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 > 3.7" 2>/dev/null`
10340 test "x$?" != "x0" && pkg_failed=yes
10341 else
10342 pkg_failed=yes
10343 fi
10344 else
10345 pkg_failed=untried
10346 fi
10347 if test -n "$sqlite3_LIBS"; then
10348 pkg_cv_sqlite3_LIBS="$sqlite3_LIBS"
10349 elif test -n "$PKG_CONFIG"; then
10350 if test -n "$PKG_CONFIG" && \
10351 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5
10352 ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5
10353 ac_status=$?
10354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10355 test $ac_status = 0; }; then
10356 pkg_cv_sqlite3_LIBS=`$PKG_CONFIG --libs "sqlite3 > 3.7" 2>/dev/null`
10357 test "x$?" != "x0" && pkg_failed=yes
10358 else
10359 pkg_failed=yes
10360 fi
10361 else
10362 pkg_failed=untried
10363 fi
10364
10365
10366
10367 if test $pkg_failed = yes; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369 $as_echo "no" >&6; }
10370
10371 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10372 _pkg_short_errors_supported=yes
10373 else
10374 _pkg_short_errors_supported=no
10375 fi
10376 if test $_pkg_short_errors_supported = yes; then
10377 sqlite3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1`
10378 else
10379 sqlite3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1`
10380 fi
10381 # Put the nasty error message in config.log where it belongs
10382 echo "$sqlite3_PKG_ERRORS" >&5
10383
10384 if test "x$enable_sqlite" != xcheck; then
10385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10387 as_fn_error $? "--enable-sqlite was given, but test for sqlite > 3.7 failed
10388 See \`config.log' for more details" "$LINENO" 5; }
10389 fi
10390 elif test $pkg_failed = untried; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10393 if test "x$enable_sqlite" != xcheck; then
10394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10396 as_fn_error $? "--enable-sqlite was given, but test for sqlite > 3.7 failed
10397 See \`config.log' for more details" "$LINENO" 5; }
10398 fi
10399 else
10400 sqlite3_CFLAGS=$pkg_cv_sqlite3_CFLAGS
10401 sqlite3_LIBS=$pkg_cv_sqlite3_LIBS
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10403 $as_echo "yes" >&6; }
10404
10405 $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
10406
10407 fi
10408 fi
10409
10410 # Check whether --enable-translator was given.
10411 if test "${enable_translator+set}" = set; then :
10412 enableval=$enable_translator;
10413 else
10414 enable_translator="yes"
10415 fi
10416
10417 if test "$enable_translator" == "yes"; then
10418 BUILD_TRANSLATOR_TRUE=
10419 BUILD_TRANSLATOR_FALSE='#'
10420 else
10421 BUILD_TRANSLATOR_TRUE='#'
10422 BUILD_TRANSLATOR_FALSE=
10423 fi
10424
10425
10426 # Check whether --enable-crash was given.
10427 if test "${enable_crash+set}" = set; then :
10428 enableval=$enable_crash; if test "$enable_crash" != "no"; then
10429 save_CPPFLAGS="$CPPFLAGS"
10430 if test "$enable_crash" != "yes"; then
10431 staplog_CPPFLAGS=-I$enable_crash
10432 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
10433
10434 fi
10435 for ac_header in crash/defs.h
10436 do :
10437 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
10438 #define NR_CPUS 256
10439
10440 "
10441 if test "x$ac_cv_header_crash_defs_h" = xyes; then :
10442 cat >>confdefs.h <<_ACEOF
10443 #define HAVE_CRASH_DEFS_H 1
10444 _ACEOF
10445
10446 else
10447 as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5
10448 fi
10449
10450 done
10451
10452 CPPFLAGS="$save_CPPFLAGS"
10453 fi
10454 else
10455 enable_crash="no"
10456 fi
10457
10458 if test "$enable_crash" != "no"; then
10459 BUILD_CRASHMOD_TRUE=
10460 BUILD_CRASHMOD_FALSE='#'
10461 else
10462 BUILD_CRASHMOD_TRUE='#'
10463 BUILD_CRASHMOD_FALSE=
10464 fi
10465
10466
10467 building_docs="no"
10468 installing_prebuilt_docs="yes"
10469 # Check whether --enable-docs was given.
10470 if test "${enable_docs+set}" = set; then :
10471 enableval=$enable_docs; enable_docs=$enableval
10472 else
10473 enable_docs="prebuilt"
10474 fi
10475
10476 # Extract the first word of "latex", so it can be a program name with args.
10477 set dummy latex; ac_word=$2
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10479 $as_echo_n "checking for $ac_word... " >&6; }
10480 if ${ac_cv_prog_have_latex+:} false; then :
10481 $as_echo_n "(cached) " >&6
10482 else
10483 if test -n "$have_latex"; then
10484 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
10485 else
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487 for as_dir in $PATH
10488 do
10489 IFS=$as_save_IFS
10490 test -z "$as_dir" && as_dir=.
10491 for ac_exec_ext in '' $ac_executable_extensions; do
10492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10493 ac_cv_prog_have_latex="yes"
10494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 break 2
10496 fi
10497 done
10498 done
10499 IFS=$as_save_IFS
10500
10501 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
10502 fi
10503 fi
10504 have_latex=$ac_cv_prog_have_latex
10505 if test -n "$have_latex"; then
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
10507 $as_echo "$have_latex" >&6; }
10508 else
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510 $as_echo "no" >&6; }
10511 fi
10512
10513
10514 # Extract the first word of "dvips", so it can be a program name with args.
10515 set dummy dvips; ac_word=$2
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517 $as_echo_n "checking for $ac_word... " >&6; }
10518 if ${ac_cv_prog_have_dvips+:} false; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 if test -n "$have_dvips"; then
10522 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
10523 else
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10526 do
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10531 ac_cv_prog_have_dvips="yes"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10534 fi
10535 done
10536 done
10537 IFS=$as_save_IFS
10538
10539 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
10540 fi
10541 fi
10542 have_dvips=$ac_cv_prog_have_dvips
10543 if test -n "$have_dvips"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
10545 $as_echo "$have_dvips" >&6; }
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10549 fi
10550
10551
10552 # Extract the first word of "ps2pdf", so it can be a program name with args.
10553 set dummy ps2pdf; ac_word=$2
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555 $as_echo_n "checking for $ac_word... " >&6; }
10556 if ${ac_cv_prog_have_ps2pdf+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 if test -n "$have_ps2pdf"; then
10560 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
10561 else
10562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563 for as_dir in $PATH
10564 do
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10569 ac_cv_prog_have_ps2pdf="yes"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 break 2
10572 fi
10573 done
10574 done
10575 IFS=$as_save_IFS
10576
10577 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
10578 fi
10579 fi
10580 have_ps2pdf=$ac_cv_prog_have_ps2pdf
10581 if test -n "$have_ps2pdf"; then
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
10583 $as_echo "$have_ps2pdf" >&6; }
10584 else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10587 fi
10588
10589
10590 if test "x${have_latex}${have_dvips}${have_ps2pdf}" != "xyesyesyes"; then
10591 if test "$enable_docs" == "yes"; then
10592 as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5
10593 fi
10594 if test "$enable_docs" == "check"; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
10596 $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
10597 fi
10598 fi
10599 if test "$enable_docs" == "prebuilt"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: will only install prebuilt documentation" >&5
10601 $as_echo "$as_me: will only install prebuilt documentation" >&6;}
10602 fi
10603 if test "x${have_latex}${have_dvips}${have_ps2pdf}" == "xyesyesyes" -a "$enable_docs" != "no" -a "$enable_docs" != "prebuilt"; then
10604 building_docs="yes"
10605 installing_prebuilt_docs="yes"
10606 fi
10607 if test "$enable_docs" == "no"; then
10608 installing_prebuilt_docs="no"
10609 fi
10610 if test "$building_docs" == "yes"; then
10611 BUILD_DOCS_TRUE=
10612 BUILD_DOCS_FALSE='#'
10613 else
10614 BUILD_DOCS_TRUE='#'
10615 BUILD_DOCS_FALSE=
10616 fi
10617
10618 if test "$installing_prebuilt_docs" == "yes"; then
10619 INSTALL_PREBUILT_DOCS_TRUE=
10620 INSTALL_PREBUILT_DOCS_FALSE='#'
10621 else
10622 INSTALL_PREBUILT_DOCS_TRUE='#'
10623 INSTALL_PREBUILT_DOCS_FALSE=
10624 fi
10625
10626
10627
10628 building_refdocs="no"
10629 # Check whether --enable-refdocs was given.
10630 if test "${enable_refdocs+set}" = set; then :
10631 enableval=$enable_refdocs; enable_refdocs=$enableval
10632 else
10633 enable_refdocs="check"
10634 fi
10635
10636 if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
10637 as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5
10638 fi
10639 if test "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
10640 building_refdocs="yes"
10641 fi
10642 if test "$building_refdocs" == "yes"; then
10643 BUILD_REFDOCS_TRUE=
10644 BUILD_REFDOCS_FALSE='#'
10645 else
10646 BUILD_REFDOCS_TRUE='#'
10647 BUILD_REFDOCS_FALSE=
10648 fi
10649
10650
10651 # Extract the first word of "xmlto", so it can be a program name with args.
10652 set dummy xmlto; ac_word=$2
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10654 $as_echo_n "checking for $ac_word... " >&6; }
10655 if ${ac_cv_prog_have_xmlto+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658 if test -n "$have_xmlto"; then
10659 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
10660 else
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662 for as_dir in $PATH
10663 do
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10668 ac_cv_prog_have_xmlto="yes"
10669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 break 2
10671 fi
10672 done
10673 done
10674 IFS=$as_save_IFS
10675
10676 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
10677 fi
10678 fi
10679 have_xmlto=$ac_cv_prog_have_xmlto
10680 if test -n "$have_xmlto"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
10682 $as_echo "$have_xmlto" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10686 fi
10687
10688
10689 # Extract the first word of "fop", so it can be a program name with args.
10690 set dummy fop; ac_word=$2
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692 $as_echo_n "checking for $ac_word... " >&6; }
10693 if ${ac_cv_prog_have_fop+:} false; then :
10694 $as_echo_n "(cached) " >&6
10695 else
10696 if test -n "$have_fop"; then
10697 ac_cv_prog_have_fop="$have_fop" # Let the user override the test.
10698 else
10699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in $PATH
10701 do
10702 IFS=$as_save_IFS
10703 test -z "$as_dir" && as_dir=.
10704 for ac_exec_ext in '' $ac_executable_extensions; do
10705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10706 ac_cv_prog_have_fop="yes"
10707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10708 break 2
10709 fi
10710 done
10711 done
10712 IFS=$as_save_IFS
10713
10714 test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no"
10715 fi
10716 fi
10717 have_fop=$ac_cv_prog_have_fop
10718 if test -n "$have_fop"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5
10720 $as_echo "$have_fop" >&6; }
10721 else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10724 fi
10725
10726
10727 if test "x${have_fop}" == "xyes"; then
10728 # Due to rhbz505364 / 830266, we must actually test-run fop, not just
10729 # hope that it works.
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5
10731 $as_echo_n "checking to see if xmlto --with-fop actually works... " >&6; }
10732 if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10734 $as_echo "yes" >&6; }
10735 else
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5
10737 $as_echo "it's dead, Jim" >&6; }
10738 have_fop="broken"
10739 fi
10740 rm -f dummy-tapsets.pdf
10741 fi
10742 if test "$have_fop" == "yes"; then
10743 HAVE_FOP_TRUE=
10744 HAVE_FOP_FALSE='#'
10745 else
10746 HAVE_FOP_TRUE='#'
10747 HAVE_FOP_FALSE=
10748 fi
10749
10750 if test "$have_xmlto" == "yes"; then
10751 HAVE_XMLTO_TRUE=
10752 HAVE_XMLTO_FALSE='#'
10753 else
10754 HAVE_XMLTO_TRUE='#'
10755 HAVE_XMLTO_FALSE=
10756 fi
10757
10758
10759 building_htmldocs="no"
10760 # Check whether --enable-htmldocs was given.
10761 if test "${enable_htmldocs+set}" = set; then :
10762 enableval=$enable_htmldocs; building_htmldocs=$enableval
10763 else
10764 building_htmldocs="no"
10765 fi
10766
10767 if test "$have_xmlto" == "no" -a "$building_htmldocs" == "yes"; then
10768 as_fn_error $? "xmlto required for building html documentation" "$LINENO" 5
10769 fi
10770
10771 if test "$building_htmldocs" == "yes"; then
10772 BUILD_HTMLDOCS_TRUE=
10773 BUILD_HTMLDOCS_FALSE='#'
10774 else
10775 BUILD_HTMLDOCS_TRUE='#'
10776 BUILD_HTMLDOCS_FALSE=
10777 fi
10778
10779
10780 cat > conftest.xml << 'EOF'
10781 <?xml version="1.0" encoding="UTF-8"?>
10782 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
10783 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
10784 <book lang="en">
10785 <bookinfo><title>foo</title></bookinfo>
10786 <chapter id="logging.stp"><title>Logging Tapset</title>
10787 <refentry id="API-log"><refnamediv><refname>log</refname>
10788 <refpurpose>logging</refpurpose></refnamediv>
10789 <refsect1><title>Description</title>
10790 <para>baz</para></refsect1></refentry></chapter>
10791 </book>
10792 EOF
10793
10794 if test "x${have_xmlto}" == "xyes"; then
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
10796 $as_echo_n "checking for xmlto --stringparam support... " >&6; }
10797 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
10798 if test $? == 0; then
10799 have_xmlto_stringparam="yes"
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10801 $as_echo "yes" >&6; }
10802 else
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804 $as_echo "no" >&6; }
10805 fi
10806 rm -f conftest.html
10807 fi
10808 if test "$have_xmlto_stringparam" == "yes"; then
10809 XMLTO_STRINGPARAM_TRUE=
10810 XMLTO_STRINGPARAM_FALSE='#'
10811 else
10812 XMLTO_STRINGPARAM_TRUE='#'
10813 XMLTO_STRINGPARAM_FALSE=
10814 fi
10815
10816
10817 rm -f conftest.xml
10818
10819
10820 # Check whether --with-nss was given.
10821 if test "${with_nss+set}" = set; then :
10822 withval=$with_nss;
10823 fi
10824
10825
10826 if test "x$with_nss" != "xno"; then :
10827
10828
10829 pkg_failed=no
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
10831 $as_echo_n "checking for nss... " >&6; }
10832
10833 if test -n "$nss_CFLAGS"; then
10834 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
10835 elif test -n "$PKG_CONFIG"; then
10836 if test -n "$PKG_CONFIG" && \
10837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10838 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10839 ac_status=$?
10840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10841 test $ac_status = 0; }; then
10842 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null`
10843 test "x$?" != "x0" && pkg_failed=yes
10844 else
10845 pkg_failed=yes
10846 fi
10847 else
10848 pkg_failed=untried
10849 fi
10850 if test -n "$nss_LIBS"; then
10851 pkg_cv_nss_LIBS="$nss_LIBS"
10852 elif test -n "$PKG_CONFIG"; then
10853 if test -n "$PKG_CONFIG" && \
10854 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10855 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10856 ac_status=$?
10857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10858 test $ac_status = 0; }; then
10859 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null`
10860 test "x$?" != "x0" && pkg_failed=yes
10861 else
10862 pkg_failed=yes
10863 fi
10864 else
10865 pkg_failed=untried
10866 fi
10867
10868
10869
10870 if test $pkg_failed = yes; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872 $as_echo "no" >&6; }
10873
10874 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10875 _pkg_short_errors_supported=yes
10876 else
10877 _pkg_short_errors_supported=no
10878 fi
10879 if test $_pkg_short_errors_supported = yes; then
10880 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1`
10881 else
10882 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1`
10883 fi
10884 # Put the nasty error message in config.log where it belongs
10885 echo "$nss_PKG_ERRORS" >&5
10886
10887 have_nss=no
10888 elif test $pkg_failed = untried; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10891 have_nss=no
10892 else
10893 nss_CFLAGS=$pkg_cv_nss_CFLAGS
10894 nss_LIBS=$pkg_cv_nss_LIBS
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10896 $as_echo "yes" >&6; }
10897 have_nss=yes
10898
10899 $as_echo "#define HAVE_NSS 1" >>confdefs.h
10900
10901
10902 fi
10903
10904 else
10905 have_nss=no
10906 fi
10907
10908 if test "${have_nss}" = "yes"; then
10909 HAVE_NSS_TRUE=
10910 HAVE_NSS_FALSE='#'
10911 else
10912 HAVE_NSS_TRUE='#'
10913 HAVE_NSS_FALSE=
10914 fi
10915
10916
10917
10918 # Check whether --with-openssl was given.
10919 if test "${with_openssl+set}" = set; then :
10920 withval=$with_openssl;
10921 fi
10922
10923
10924 if test "x$with_openssl" != "xno"; then :
10925
10926
10927 pkg_failed=no
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
10929 $as_echo_n "checking for openssl... " >&6; }
10930
10931 if test -n "$openssl_CFLAGS"; then
10932 pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
10933 elif test -n "$PKG_CONFIG"; then
10934 if test -n "$PKG_CONFIG" && \
10935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
10936 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
10937 ac_status=$?
10938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10939 test $ac_status = 0; }; then
10940 pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
10941 test "x$?" != "x0" && pkg_failed=yes
10942 else
10943 pkg_failed=yes
10944 fi
10945 else
10946 pkg_failed=untried
10947 fi
10948 if test -n "$openssl_LIBS"; then
10949 pkg_cv_openssl_LIBS="$openssl_LIBS"
10950 elif test -n "$PKG_CONFIG"; then
10951 if test -n "$PKG_CONFIG" && \
10952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
10953 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
10954 ac_status=$?
10955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10956 test $ac_status = 0; }; then
10957 pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
10958 test "x$?" != "x0" && pkg_failed=yes
10959 else
10960 pkg_failed=yes
10961 fi
10962 else
10963 pkg_failed=untried
10964 fi
10965
10966
10967
10968 if test $pkg_failed = yes; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10971
10972 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10973 _pkg_short_errors_supported=yes
10974 else
10975 _pkg_short_errors_supported=no
10976 fi
10977 if test $_pkg_short_errors_supported = yes; then
10978 openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
10979 else
10980 openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
10981 fi
10982 # Put the nasty error message in config.log where it belongs
10983 echo "$openssl_PKG_ERRORS" >&5
10984
10985 have_openssl=no
10986 elif test $pkg_failed = untried; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10988 $as_echo "no" >&6; }
10989 have_openssl=no
10990 else
10991 openssl_CFLAGS=$pkg_cv_openssl_CFLAGS
10992 openssl_LIBS=$pkg_cv_openssl_LIBS
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10994 $as_echo "yes" >&6; }
10995 have_openssl=yes
10996
10997 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10998
10999
11000 fi
11001
11002 else
11003 have_openssl=no
11004 fi
11005
11006 if test "${have_openssl}" = "yes"; then
11007 HAVE_OPENSSL_TRUE=
11008 HAVE_OPENSSL_FALSE='#'
11009 else
11010 HAVE_OPENSSL_TRUE='#'
11011 HAVE_OPENSSL_FALSE=
11012 fi
11013
11014
11015
11016 # Check whether --with-dracutstap was given.
11017 if test "${with_dracutstap+set}" = set; then :
11018 withval=$with_dracutstap;
11019 fi
11020
11021 if test "x$with_dracutstap" != "x"; then :
11022 dracutstap="$with_dracutstap"
11023 else
11024 dracutstap=/usr/lib/dracut/modules.d/99stap
11025 fi
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5
11027 $as_echo "$as_me: using dracut module directory $dracutstap" >&6;}
11028
11029
11030
11031 # Check whether --with-dracutbindir was given.
11032 if test "${with_dracutbindir+set}" = set; then :
11033 withval=$with_dracutbindir;
11034 fi
11035
11036 if test "x$with_dracutbindir" != "x"; then :
11037 dracutbindir="$with_dracutbindir"
11038 else
11039 dracutbindir=/sbin
11040 fi
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut binary $dracutbindir" >&5
11042 $as_echo "$as_me: using dracut binary $dracutbindir" >&6;}
11043
11044
11045 # Check whether --enable-server was given.
11046 if test "${enable_server+set}" = set; then :
11047 enableval=$enable_server; enable_server=$enableval
11048 else
11049 enable_server="check"
11050 fi
11051
11052
11053 if test "$enable_server" != "no"; then
11054 if test "x${have_nss}" != "xyes"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5
11056 $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;}
11057 fi
11058 fi
11059 if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then
11060 BUILD_SERVER_TRUE=
11061 BUILD_SERVER_FALSE='#'
11062 else
11063 BUILD_SERVER_TRUE='#'
11064 BUILD_SERVER_FALSE=
11065 fi
11066
11067
11068 if test "${have_nss}" != "yes"; then
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5
11070 $as_echo "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;}
11071 fi
11072
11073
11074 # Check whether --with-avahi was given.
11075 if test "${with_avahi+set}" = set; then :
11076 withval=$with_avahi;
11077 fi
11078
11079
11080 if test "x$with_avahi" != "xno"; then :
11081
11082
11083 pkg_failed=no
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
11085 $as_echo_n "checking for avahi... " >&6; }
11086
11087 if test -n "$avahi_CFLAGS"; then
11088 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
11089 elif test -n "$PKG_CONFIG"; then
11090 if test -n "$PKG_CONFIG" && \
11091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
11092 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
11093 ac_status=$?
11094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11095 test $ac_status = 0; }; then
11096 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
11097 test "x$?" != "x0" && pkg_failed=yes
11098 else
11099 pkg_failed=yes
11100 fi
11101 else
11102 pkg_failed=untried
11103 fi
11104 if test -n "$avahi_LIBS"; then
11105 pkg_cv_avahi_LIBS="$avahi_LIBS"
11106 elif test -n "$PKG_CONFIG"; then
11107 if test -n "$PKG_CONFIG" && \
11108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
11109 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
11110 ac_status=$?
11111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11112 test $ac_status = 0; }; then
11113 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
11114 test "x$?" != "x0" && pkg_failed=yes
11115 else
11116 pkg_failed=yes
11117 fi
11118 else
11119 pkg_failed=untried
11120 fi
11121
11122
11123
11124 if test $pkg_failed = yes; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; }
11127
11128 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11129 _pkg_short_errors_supported=yes
11130 else
11131 _pkg_short_errors_supported=no
11132 fi
11133 if test $_pkg_short_errors_supported = yes; then
11134 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
11135 else
11136 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
11137 fi
11138 # Put the nasty error message in config.log where it belongs
11139 echo "$avahi_PKG_ERRORS" >&5
11140
11141 have_avahi=no
11142 elif test $pkg_failed = untried; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 $as_echo "no" >&6; }
11145 have_avahi=no
11146 else
11147 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
11148 avahi_LIBS=$pkg_cv_avahi_LIBS
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11150 $as_echo "yes" >&6; }
11151 have_avahi=yes
11152
11153 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
11154
11155
11156 fi
11157
11158 else
11159 have_avahi=no
11160 fi
11161
11162 if test "${have_avahi}" = "yes"; then
11163 HAVE_AVAHI_TRUE=
11164 HAVE_AVAHI_FALSE='#'
11165 else
11166 HAVE_AVAHI_TRUE='#'
11167 HAVE_AVAHI_FALSE=
11168 fi
11169
11170
11171 if test "${have_avahi}" != "yes"; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5
11173 $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;}
11174 fi
11175
11176
11177
11178 # Check whether --with-rpm was given.
11179 if test "${with_rpm+set}" = set; then :
11180 withval=$with_rpm;
11181 else
11182 with_rpm="auto"
11183 fi
11184
11185 if test "$with_rpm" != "no"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
11187 $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; }
11188 if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 ac_check_lib_save_LIBS=$LIBS
11192 LIBS="-lrpm $LIBS"
11193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h. */
11195
11196 /* Override any GCC internal prototype to avoid an error.
11197 Use char because int might match the return type of a GCC
11198 builtin and then its argument prototype would still apply. */
11199 #ifdef __cplusplus
11200 extern "C"
11201 #endif
11202 char rpmtsInitIterator ();
11203 int
11204 main ()
11205 {
11206 return rpmtsInitIterator ();
11207 ;
11208 return 0;
11209 }
11210 _ACEOF
11211 if ac_fn_c_try_link "$LINENO"; then :
11212 ac_cv_lib_rpm_rpmtsInitIterator=yes
11213 else
11214 ac_cv_lib_rpm_rpmtsInitIterator=no
11215 fi
11216 rm -f core conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
11218 LIBS=$ac_check_lib_save_LIBS
11219 fi
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
11221 $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
11222 if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then :
11223
11224
11225 $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h
11226
11227 stap_LIBS="$stap_LIBS -lc -lrpm"
11228 have_librpm="yes"
11229 else
11230 have_librpm="no"
11231 fi
11232
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmdbNextIterator in -lrpmdb" >&5
11234 $as_echo_n "checking for rpmdbNextIterator in -lrpmdb... " >&6; }
11235 if ${ac_cv_lib_rpmdb_rpmdbNextIterator+:} false; then :
11236 $as_echo_n "(cached) " >&6
11237 else
11238 ac_check_lib_save_LIBS=$LIBS
11239 LIBS="-lrpmdb $LIBS"
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11242
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11246 #ifdef __cplusplus
11247 extern "C"
11248 #endif
11249 char rpmdbNextIterator ();
11250 int
11251 main ()
11252 {
11253 return rpmdbNextIterator ();
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 if ac_fn_c_try_link "$LINENO"; then :
11259 ac_cv_lib_rpmdb_rpmdbNextIterator=yes
11260 else
11261 ac_cv_lib_rpmdb_rpmdbNextIterator=no
11262 fi
11263 rm -f core conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11265 LIBS=$ac_check_lib_save_LIBS
11266 fi
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmdb_rpmdbNextIterator" >&5
11268 $as_echo "$ac_cv_lib_rpmdb_rpmdbNextIterator" >&6; }
11269 if test "x$ac_cv_lib_rpmdb_rpmdbNextIterator" = xyes; then :
11270
11271 stap_LIBS="$stap_LIBS -lrpmdb"
11272 fi
11273
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
11275 $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; }
11276 if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 ac_check_lib_save_LIBS=$LIBS
11280 LIBS="-lrpmio $LIBS"
11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11283
11284 /* Override any GCC internal prototype to avoid an error.
11285 Use char because int might match the return type of a GCC
11286 builtin and then its argument prototype would still apply. */
11287 #ifdef __cplusplus
11288 extern "C"
11289 #endif
11290 char rpmFreeCrypto ();
11291 int
11292 main ()
11293 {
11294 return rpmFreeCrypto ();
11295 ;
11296 return 0;
11297 }
11298 _ACEOF
11299 if ac_fn_c_try_link "$LINENO"; then :
11300 ac_cv_lib_rpmio_rpmFreeCrypto=yes
11301 else
11302 ac_cv_lib_rpmio_rpmFreeCrypto=no
11303 fi
11304 rm -f core conftest.err conftest.$ac_objext \
11305 conftest$ac_exeext conftest.$ac_ext
11306 LIBS=$ac_check_lib_save_LIBS
11307 fi
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
11309 $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
11310 if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then :
11311
11312
11313 $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h
11314
11315 stap_LIBS="$stap_LIBS -lc -lrpmio"
11316 have_librpmio="yes"
11317 else
11318 have_librpmio="no"
11319 fi
11320
11321 if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
11322 as_fn_error $? "cannot find librpm" "$LINENO" 5
11323 fi
11324 if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
11326 $as_echo "$as_me: WARNING: cannot find librpmio" >&2;}
11327 fi
11328 fi
11329
11330 LIBS_no_readline=$LIBS
11331
11332 have_libreadline="no"
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
11334 $as_echo_n "checking how to link readline libs... " >&6; }
11335 for libtermcap in "" tinfo ncursesw ncurses curses termcap; do
11336 if test -z "$libtermcap"; then
11337 READLINE_LIBS="-lreadline"
11338 else
11339 READLINE_LIBS="-lreadline -l$libtermcap"
11340 fi
11341 LIBS="$READLINE_LIBS $LIBS_no_readline"
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11344
11345 /* Override any GCC internal prototype to avoid an error.
11346 Use char because int might match the return type of a GCC
11347 builtin and then its argument prototype would still apply. */
11348 #ifdef __cplusplus
11349 extern "C"
11350 #endif
11351 char readline ();
11352 int
11353 main ()
11354 {
11355 return readline ();
11356 ;
11357 return 0;
11358 }
11359 _ACEOF
11360 if ac_fn_c_try_link "$LINENO"; then :
11361 have_libreadline="yes"
11362 fi
11363 rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365 if test "$have_libreadline" = "yes"; then
11366 break
11367 fi
11368 done
11369 if test "$have_libreadline" = "no"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11371 $as_echo "none" >&6; }
11372 READLINE_LIBS=""
11373 else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
11375 $as_echo "$READLINE_LIBS" >&6; }
11376
11377 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11378
11379 fi
11380
11381 if test "$have_libreadline" == "yes"; then
11382 HAVE_LIBREADLINE_TRUE=
11383 HAVE_LIBREADLINE_FALSE='#'
11384 else
11385 HAVE_LIBREADLINE_TRUE='#'
11386 HAVE_LIBREADLINE_FALSE=
11387 fi
11388
11389
11390 LIBS=$LIBS_no_readline
11391
11392
11393 # Check whether --with-python3 was given.
11394 if test "${with_python3+set}" = set; then :
11395 withval=$with_python3;
11396 else
11397 with_python3="auto"
11398 fi
11399
11400 if test "x$with_python3" = "xyes"; then :
11401 if test "x$PYTHON3" = "x:"; then :
11402 as_fn_error $? "python version 3 is required" "$LINENO" 5
11403 else
11404 preferred_python=$PYTHON3
11405
11406 fi
11407 elif test "x$with_python3" = "xno"; then :
11408 if test "x$PYTHON" = "x:"; then :
11409 as_fn_error $? "python version 2 is required" "$LINENO" 5
11410 else
11411 preferred_python=$PYTHON
11412
11413 fi
11414 elif test "x$PYTHON3" != "x:"; then :
11415 preferred_python=$PYTHON3
11416
11417 elif test "x$PYTHON" != "x:"; then :
11418 preferred_python=$PYTHON
11419
11420 else
11421 as_fn_error $? "neither python version 2 nor 3 found" "$LINENO" 5
11422 fi
11423
11424 build_elfutils=no
11425
11426 # Check whether --with-elfutils was given.
11427 if test "${with_elfutils+set}" = set; then :
11428 withval=$with_elfutils;
11429 case "$with_elfutils" in
11430 yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;;
11431 ''|no) ;;
11432 *) build_elfutils=yes ;;
11433 esac
11434 fi
11435
11436 if test $build_elfutils = yes; then
11437 BUILD_ELFUTILS_TRUE=
11438 BUILD_ELFUTILS_FALSE='#'
11439 else
11440 BUILD_ELFUTILS_TRUE='#'
11441 BUILD_ELFUTILS_FALSE=
11442 fi
11443
11444 elfutils_abs_srcdir=`if test $build_elfutils = yes; then :
11445 cd $with_elfutils && pwd
11446 fi`
11447
11448
11449 if test $enable_translator = yes; then
11450 if test $build_elfutils = no; then
11451 # Need libdwfl-capable recent elfutils http://elfutils.org/
11452
11453 # On modern debian/ubuntu, libebl has been merged into libdw
11454 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
11455 save_LIBS="$LIBS"
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
11457 $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
11458 if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 ac_check_lib_save_LIBS=$LIBS
11462 LIBS="-lebl $LIBS"
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11465
11466 /* Override any GCC internal prototype to avoid an error.
11467 Use char because int might match the return type of a GCC
11468 builtin and then its argument prototype would still apply. */
11469 #ifdef __cplusplus
11470 extern "C"
11471 #endif
11472 char ebl_get_elfmachine ();
11473 int
11474 main ()
11475 {
11476 return ebl_get_elfmachine ();
11477 ;
11478 return 0;
11479 }
11480 _ACEOF
11481 if ac_fn_c_try_link "$LINENO"; then :
11482 ac_cv_lib_ebl_ebl_get_elfmachine=yes
11483 else
11484 ac_cv_lib_ebl_ebl_get_elfmachine=no
11485 fi
11486 rm -f core conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11489 fi
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
11491 $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
11492 if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then :
11493 ebl_LIBS=-lebl
11494 else
11495 ebl_LIBS=
11496 fi
11497
11498 LIBS="$save_LIBS"
11499
11500 save_LIBS="$LIBS"
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
11502 $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
11503 if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 ac_check_lib_save_LIBS=$LIBS
11507 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11514 #ifdef __cplusplus
11515 extern "C"
11516 #endif
11517 char dwfl_module_getsym ();
11518 int
11519 main ()
11520 {
11521 return dwfl_module_getsym ();
11522 ;
11523 return 0;
11524 }
11525 _ACEOF
11526 if ac_fn_c_try_link "$LINENO"; then :
11527 ac_cv_lib_dw_dwfl_module_getsym=yes
11528 else
11529 ac_cv_lib_dw_dwfl_module_getsym=no
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11533 LIBS=$ac_check_lib_save_LIBS
11534 fi
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
11536 $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
11537 if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then :
11538 cat >>confdefs.h <<_ACEOF
11539 #define HAVE_LIBDW 1
11540 _ACEOF
11541
11542 LIBS="-ldw $LIBS"
11543
11544 else
11545
11546 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
11547 fi
11548
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5
11550 $as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; }
11551 if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then :
11552 $as_echo_n "(cached) " >&6
11553 else
11554 ac_check_lib_save_LIBS=$LIBS
11555 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11558
11559 /* Override any GCC internal prototype to avoid an error.
11560 Use char because int might match the return type of a GCC
11561 builtin and then its argument prototype would still apply. */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 char dwarf_next_unit ();
11566 int
11567 main ()
11568 {
11569 return dwarf_next_unit ();
11570 ;
11571 return 0;
11572 }
11573 _ACEOF
11574 if ac_fn_c_try_link "$LINENO"; then :
11575 ac_cv_lib_dw_dwarf_next_unit=yes
11576 else
11577 ac_cv_lib_dw_dwarf_next_unit=no
11578 fi
11579 rm -f core conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11581 LIBS=$ac_check_lib_save_LIBS
11582 fi
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5
11584 $as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; }
11585 if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then :
11586 cat >>confdefs.h <<_ACEOF
11587 #define HAVE_LIBDW 1
11588 _ACEOF
11589
11590 LIBS="-ldw $LIBS"
11591
11592 else
11593
11594 as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5
11595 fi
11596
11597 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
11598 LIBS="$save_LIBS"
11599 else
11600 # We built our own and stap_LDFLAGS points at the install.
11601 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
11602 fi
11603 fi
11604
11605
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
11607 $as_echo "$as_me: stap will link $stap_LIBS" >&6;}
11608
11609 # staprun has more modest libelf needs
11610 if test $build_elfutils = no; then
11611 save_LIBS="$LIBS"
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
11613 $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; }
11614 if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 ac_check_lib_save_LIBS=$LIBS
11618 LIBS="-lelf $LIBS"
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h. */
11621
11622 /* Override any GCC internal prototype to avoid an error.
11623 Use char because int might match the return type of a GCC
11624 builtin and then its argument prototype would still apply. */
11625 #ifdef __cplusplus
11626 extern "C"
11627 #endif
11628 char elf_getshdrstrndx ();
11629 int
11630 main ()
11631 {
11632 return elf_getshdrstrndx ();
11633 ;
11634 return 0;
11635 }
11636 _ACEOF
11637 if ac_fn_c_try_link "$LINENO"; then :
11638 ac_cv_lib_elf_elf_getshdrstrndx=yes
11639 else
11640 ac_cv_lib_elf_elf_getshdrstrndx=no
11641 fi
11642 rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644 LIBS=$ac_check_lib_save_LIBS
11645 fi
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
11647 $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
11648 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
11649 cat >>confdefs.h <<_ACEOF
11650 #define HAVE_LIBELF 1
11651 _ACEOF
11652
11653 LIBS="-lelf $LIBS"
11654
11655 else
11656
11657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11659 as_fn_error $? "libelf too old, need 0.142+
11660 See \`config.log' for more details" "$LINENO" 5; }
11661 fi
11662
11663 staprun_LIBS="$staprun_LIBS -lelf"
11664 stapbpf_LIBS="$stapbpf_LIBS -lelf"
11665 LIBS="$save_LIBS"
11666 else
11667 # We built our own and staprun_LDFLAGS points at the install.
11668 staprun_LIBS="$staprun_LIBS -lelf"
11669 stapbpf_LIBS="$stapbpf_LIBS -lelf"
11670 fi
11671
11672
11673
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5
11675 $as_echo "$as_me: staprun will link $staprun_LIBS" >&6;}
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: stapbpf will link $stapbpf_LIBS" >&5
11677 $as_echo "$as_me: stapbpf will link $stapbpf_LIBS" >&6;}
11678
11679 # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
11680 # being compiled on 32-bit userspace but running against 64-bit kernels.
11681 # This is no longer necessary.
11682
11683 ac_ext=cpp
11684 ac_cpp='$CXXCPP $CPPFLAGS'
11685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11688
11689 # Use boost::string_ref if available
11690 ac_ext=cpp
11691 ac_cpp='$CXXCPP $CPPFLAGS'
11692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11696 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11697 if test -z "$CXXCPP"; then
11698 if ${ac_cv_prog_CXXCPP+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 # Double quotes because CXXCPP needs to be expanded
11702 for CXXCPP in "$CXX -E" "/lib/cpp"
11703 do
11704 ac_preproc_ok=false
11705 for ac_cxx_preproc_warn_flag in '' yes
11706 do
11707 # Use a header file that comes with gcc, so configuring glibc
11708 # with a fresh cross-compiler works.
11709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11710 # <limits.h> exists even on freestanding compilers.
11711 # On the NeXT, cc -E runs the code through the compiler's parser,
11712 # not just through cpp. "Syntax error" is here to catch this case.
11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11715 #ifdef __STDC__
11716 # include <limits.h>
11717 #else
11718 # include <assert.h>
11719 #endif
11720 Syntax error
11721 _ACEOF
11722 if ac_fn_cxx_try_cpp "$LINENO"; then :
11723
11724 else
11725 # Broken: fails on valid input.
11726 continue
11727 fi
11728 rm -f conftest.err conftest.i conftest.$ac_ext
11729
11730 # OK, works on sane cases. Now check whether nonexistent headers
11731 # can be detected and how.
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11734 #include <ac_nonexistent.h>
11735 _ACEOF
11736 if ac_fn_cxx_try_cpp "$LINENO"; then :
11737 # Broken: success on invalid input.
11738 continue
11739 else
11740 # Passes both tests.
11741 ac_preproc_ok=:
11742 break
11743 fi
11744 rm -f conftest.err conftest.i conftest.$ac_ext
11745
11746 done
11747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11748 rm -f conftest.i conftest.err conftest.$ac_ext
11749 if $ac_preproc_ok; then :
11750 break
11751 fi
11752
11753 done
11754 ac_cv_prog_CXXCPP=$CXXCPP
11755
11756 fi
11757 CXXCPP=$ac_cv_prog_CXXCPP
11758 else
11759 ac_cv_prog_CXXCPP=$CXXCPP
11760 fi
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11762 $as_echo "$CXXCPP" >&6; }
11763 ac_preproc_ok=false
11764 for ac_cxx_preproc_warn_flag in '' yes
11765 do
11766 # Use a header file that comes with gcc, so configuring glibc
11767 # with a fresh cross-compiler works.
11768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11769 # <limits.h> exists even on freestanding compilers.
11770 # On the NeXT, cc -E runs the code through the compiler's parser,
11771 # not just through cpp. "Syntax error" is here to catch this case.
11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11774 #ifdef __STDC__
11775 # include <limits.h>
11776 #else
11777 # include <assert.h>
11778 #endif
11779 Syntax error
11780 _ACEOF
11781 if ac_fn_cxx_try_cpp "$LINENO"; then :
11782
11783 else
11784 # Broken: fails on valid input.
11785 continue
11786 fi
11787 rm -f conftest.err conftest.i conftest.$ac_ext
11788
11789 # OK, works on sane cases. Now check whether nonexistent headers
11790 # can be detected and how.
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h. */
11793 #include <ac_nonexistent.h>
11794 _ACEOF
11795 if ac_fn_cxx_try_cpp "$LINENO"; then :
11796 # Broken: success on invalid input.
11797 continue
11798 else
11799 # Passes both tests.
11800 ac_preproc_ok=:
11801 break
11802 fi
11803 rm -f conftest.err conftest.i conftest.$ac_ext
11804
11805 done
11806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11807 rm -f conftest.i conftest.err conftest.$ac_ext
11808 if $ac_preproc_ok; then :
11809
11810 else
11811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11813 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11814 See \`config.log' for more details" "$LINENO" 5; }
11815 fi
11816
11817 ac_ext=cpp
11818 ac_cpp='$CXXCPP $CPPFLAGS'
11819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11822
11823
11824 for ac_header in boost/utility/string_ref.hpp
11825 do :
11826 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/utility/string_ref.hpp" "ac_cv_header_boost_utility_string_ref_hpp" "$ac_includes_default"
11827 if test "x$ac_cv_header_boost_utility_string_ref_hpp" = xyes; then :
11828 cat >>confdefs.h <<_ACEOF
11829 #define HAVE_BOOST_UTILITY_STRING_REF_HPP 1
11830 _ACEOF
11831
11832 fi
11833
11834 done
11835
11836 # add boost_system bits for stapdyn with dyninst 10+
11837 saved_LIBS="$LIBS"
11838 LIBS="-lboost_system $LIBS"
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking need for -lboost_system library" >&5
11840 $as_echo_n "checking need for -lboost_system library... " >&6; }
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843
11844 #include <boost/system/system_error.hpp>
11845 int main() {
11846 boost::system::error_condition e();
11847 }
11848
11849 _ACEOF
11850 if ac_fn_cxx_try_link "$LINENO"; then :
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yup" >&5
11852 $as_echo "yup" >&6; }
11853 BOOST_SYSTEM_LIB="-lboost_system"
11854
11855 else
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nope" >&5
11857 $as_echo "nope" >&6; }
11858 BOOST_SYSTEM_LIB=""
11859
11860 fi
11861 rm -f core conftest.err conftest.$ac_objext \
11862 conftest$ac_exeext conftest.$ac_ext
11863 LIBS="$saved_LIBS"
11864
11865
11866 ac_ext=c
11867 ac_cpp='$CPP $CPPFLAGS'
11868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11871
11872
11873 # Check for Dyninst headers and libraries
11874
11875 # Check whether --with-dyninst was given.
11876 if test "${with_dyninst+set}" = set; then :
11877 withval=$with_dyninst;
11878 fi
11879
11880
11881 case "$with_dyninst" in
11882 no) ;;
11883 ''|yes) # Try a simple-minded distro search
11884 DYNINST_CXXFLAGS="-I/usr/include/dyninst"
11885 DYNINST_LDFLAGS="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?!
11886 ;;
11887 *) # Use paths in the user-specified prefix
11888 DYNINST_CXXFLAGS="-I$with_dyninst/include"
11889 DYNINST_LDFLAGS="-L$with_dyninst/lib/" # XXX need lib64 too?
11890 ;;
11891 esac
11892 if test "$with_dyninst" != "no"; then
11893 ac_ext=cpp
11894 ac_cpp='$CXXCPP $CPPFLAGS'
11895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11898
11899 old_CPPFLAGS="$CPPFLAGS"
11900 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5
11902 $as_echo "$as_me: checking dyninst support" >&6;}
11903 for ac_header in BPatch_object.h
11904 do :
11905 ac_fn_cxx_check_header_mongrel "$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default"
11906 if test "x$ac_cv_header_BPatch_object_h" = xyes; then :
11907 cat >>confdefs.h <<_ACEOF
11908 #define HAVE_BPATCH_OBJECT_H 1
11909 _ACEOF
11910
11911
11912
11913
11914 $as_echo "#define HAVE_DYNINST 1" >>confdefs.h
11915
11916 have_dyninst=yes
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5
11918 $as_echo "$as_me: dyninst support available" >&6;}
11919 fi
11920
11921 done
11922
11923 if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then
11924 as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5
11925 fi
11926 CPPFLAGS="$old_CPPFLAGS"
11927 ac_ext=c
11928 ac_cpp='$CPP $CPPFLAGS'
11929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11932
11933 fi
11934 if test "${have_dyninst}" = "yes"; then
11935 HAVE_DYNINST_TRUE=
11936 HAVE_DYNINST_FALSE='#'
11937 else
11938 HAVE_DYNINST_TRUE='#'
11939 HAVE_DYNINST_FALSE=
11940 fi
11941
11942
11943
11944
11945 # Check whether --enable-virt was given.
11946 if test "${enable_virt+set}" = set; then :
11947 enableval=$enable_virt; enable_virt=$enableval
11948 else
11949 enable_virt="check"
11950 fi
11951
11952
11953 # Check whether --enable-libvirt was given.
11954 if test "${enable_libvirt+set}" = set; then :
11955 enableval=$enable_libvirt;
11956 fi
11957
11958
11959 if test "$enable_libvirt" != no; then
11960
11961 pkg_failed=no
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5
11963 $as_echo_n "checking for libvirt... " >&6; }
11964
11965 if test -n "$libvirt_CFLAGS"; then
11966 pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS"
11967 elif test -n "$PKG_CONFIG"; then
11968 if test -n "$PKG_CONFIG" && \
11969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11970 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11971 ac_status=$?
11972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11973 test $ac_status = 0; }; then
11974 pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null`
11975 test "x$?" != "x0" && pkg_failed=yes
11976 else
11977 pkg_failed=yes
11978 fi
11979 else
11980 pkg_failed=untried
11981 fi
11982 if test -n "$libvirt_LIBS"; then
11983 pkg_cv_libvirt_LIBS="$libvirt_LIBS"
11984 elif test -n "$PKG_CONFIG"; then
11985 if test -n "$PKG_CONFIG" && \
11986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11987 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11988 ac_status=$?
11989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11990 test $ac_status = 0; }; then
11991 pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null`
11992 test "x$?" != "x0" && pkg_failed=yes
11993 else
11994 pkg_failed=yes
11995 fi
11996 else
11997 pkg_failed=untried
11998 fi
11999
12000
12001
12002 if test $pkg_failed = yes; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12005
12006 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12007 _pkg_short_errors_supported=yes
12008 else
12009 _pkg_short_errors_supported=no
12010 fi
12011 if test $_pkg_short_errors_supported = yes; then
12012 libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
12013 else
12014 libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
12015 fi
12016 # Put the nasty error message in config.log where it belongs
12017 echo "$libvirt_PKG_ERRORS" >&5
12018
12019 have_libvirt=no
12020 elif test $pkg_failed = untried; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12023 have_libvirt=no
12024 else
12025 libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS
12026 libvirt_LIBS=$pkg_cv_libvirt_LIBS
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12028 $as_echo "yes" >&6; }
12029
12030 have_libvirt=yes
12031
12032 $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h
12033
12034
12035 fi
12036 fi
12037 if test "${have_libvirt}" = "yes"; then
12038 HAVE_LIBVIRT_TRUE=
12039 HAVE_LIBVIRT_FALSE='#'
12040 else
12041 HAVE_LIBVIRT_TRUE='#'
12042 HAVE_LIBVIRT_FALSE=
12043 fi
12044
12045
12046 pkg_failed=no
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
12048 $as_echo_n "checking for libxml2... " >&6; }
12049
12050 if test -n "$libxml2_CFLAGS"; then
12051 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
12052 elif test -n "$PKG_CONFIG"; then
12053 if test -n "$PKG_CONFIG" && \
12054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12055 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12056 ac_status=$?
12057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12058 test $ac_status = 0; }; then
12059 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
12060 test "x$?" != "x0" && pkg_failed=yes
12061 else
12062 pkg_failed=yes
12063 fi
12064 else
12065 pkg_failed=untried
12066 fi
12067 if test -n "$libxml2_LIBS"; then
12068 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
12069 elif test -n "$PKG_CONFIG"; then
12070 if test -n "$PKG_CONFIG" && \
12071 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12072 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12073 ac_status=$?
12074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12075 test $ac_status = 0; }; then
12076 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
12077 test "x$?" != "x0" && pkg_failed=yes
12078 else
12079 pkg_failed=yes
12080 fi
12081 else
12082 pkg_failed=untried
12083 fi
12084
12085
12086
12087 if test $pkg_failed = yes; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 $as_echo "no" >&6; }
12090
12091 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12092 _pkg_short_errors_supported=yes
12093 else
12094 _pkg_short_errors_supported=no
12095 fi
12096 if test $_pkg_short_errors_supported = yes; then
12097 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
12098 else
12099 libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
12100 fi
12101 # Put the nasty error message in config.log where it belongs
12102 echo "$libxml2_PKG_ERRORS" >&5
12103
12104 have_libxml2=no
12105 elif test $pkg_failed = untried; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12108 have_libxml2=no
12109 else
12110 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
12111 libxml2_LIBS=$pkg_cv_libxml2_LIBS
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12113 $as_echo "yes" >&6; }
12114
12115 have_libxml2=yes
12116
12117 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12118
12119
12120 fi
12121 if test "${have_libxml2}" = "yes"; then
12122 HAVE_LIBXML2_TRUE=
12123 HAVE_LIBXML2_FALSE='#'
12124 else
12125 HAVE_LIBXML2_TRUE='#'
12126 HAVE_LIBXML2_FALSE=
12127 fi
12128
12129
12130 if test "$enable_virt" != "no"; then
12131 if test "x${have_libvirt}" != "xyes"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5
12133 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;}
12134 fi
12135 if test "x${have_libxml2}" != "xyes"; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5
12137 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;}
12138 fi
12139 fi
12140 if test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"; then
12141 BUILD_VIRT_TRUE=
12142 BUILD_VIRT_FALSE='#'
12143 else
12144 BUILD_VIRT_TRUE='#'
12145 BUILD_VIRT_FALSE=
12146 fi
12147
12148
12149
12150 # Check whether --with-python2-probes was given.
12151 if test "${with_python2_probes+set}" = set; then :
12152 withval=$with_python2_probes;
12153 fi
12154
12155 have_python2_support=no
12156 if test "x$with_python2_probes" != "xno"; then :
12157 if test "x$PYTHON" != "x:"; then :
12158 for ac_prog in ${python_basename}-config python2-config python-config
12159 do
12160 # Extract the first word of "$ac_prog", so it can be a program name with args.
12161 set dummy $ac_prog; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163 $as_echo_n "checking for $ac_word... " >&6; }
12164 if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 case $PYTHON_CONFIG in
12168 [\\/]* | ?:[\\/]*)
12169 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
12170 ;;
12171 *)
12172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173 for as_dir in $PATH
12174 do
12175 IFS=$as_save_IFS
12176 test -z "$as_dir" && as_dir=.
12177 for ac_exec_ext in '' $ac_executable_extensions; do
12178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12179 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181 break 2
12182 fi
12183 done
12184 done
12185 IFS=$as_save_IFS
12186
12187 ;;
12188 esac
12189 fi
12190 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
12191 if test -n "$PYTHON_CONFIG"; then
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
12193 $as_echo "$PYTHON_CONFIG" >&6; }
12194 else
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196 $as_echo "no" >&6; }
12197 fi
12198
12199
12200 test -n "$PYTHON_CONFIG" && break
12201 done
12202
12203 fi
12204 if test "x$PYTHON_CONFIG" != "x"; then :
12205 PYTHON_CPPFLAGS=`$PYTHON_CONFIG --includes 2> /dev/null`
12206 PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
12207
12208 save_CPPFLAGS="$CPPFLAGS"
12209 CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS"
12210 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
12211 for ac_header in Python.h
12212 do :
12213 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
12214 if test "x$ac_cv_header_Python_h" = xyes; then :
12215 cat >>confdefs.h <<_ACEOF
12216 #define HAVE_PYTHON_H 1
12217 _ACEOF
12218 have_python2_support=yes
12219 fi
12220
12221 done
12222
12223 CPPFLAGS="$save_CPPFLAGS"
12224 fi
12225 fi
12226 if test "x$have_python2_support" = "xyes"; then :
12227
12228 $as_echo "#define HAVE_PYTHON2_PROBES 1" >>confdefs.h
12229
12230 else
12231 if test "x$with_python2_probes" = "xyes"; then :
12232 as_fn_error $? "python version 2 probe support requested but not found" "$LINENO" 5
12233 fi
12234
12235 fi
12236 if test "x$have_python2_support" = "xyes"; then
12237 HAVE_PYTHON2_PROBES_TRUE=
12238 HAVE_PYTHON2_PROBES_FALSE='#'
12239 else
12240 HAVE_PYTHON2_PROBES_TRUE='#'
12241 HAVE_PYTHON2_PROBES_FALSE=
12242 fi
12243
12244
12245
12246 # Check whether --with-python3-probes was given.
12247 if test "${with_python3_probes+set}" = set; then :
12248 withval=$with_python3_probes;
12249 fi
12250
12251 have_python3_support=no
12252 if test "x$with_python3_probes" != "xno"; then :
12253 if test "x$PYTHON3" != "x:" ; then :
12254 # Extract the first word of "${python3_basename}-config", so it can be a program name with args.
12255 set dummy ${python3_basename}-config; ac_word=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 $as_echo_n "checking for $ac_word... " >&6; }
12258 if ${ac_cv_path_PYTHON3_CONFIG+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 case $PYTHON3_CONFIG in
12262 [\\/]* | ?:[\\/]*)
12263 ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path.
12264 ;;
12265 *)
12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH
12268 do
12269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
12271 for ac_exec_ext in '' $ac_executable_extensions; do
12272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12273 ac_cv_path_PYTHON3_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12275 break 2
12276 fi
12277 done
12278 done
12279 IFS=$as_save_IFS
12280
12281 ;;
12282 esac
12283 fi
12284 PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG
12285 if test -n "$PYTHON3_CONFIG"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5
12287 $as_echo "$PYTHON3_CONFIG" >&6; }
12288 else
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12291 fi
12292
12293
12294 fi
12295 if test "x$PYTHON3_CONFIG" != "x"; then :
12296 PYTHON3_CPPFLAGS=`$PYTHON3_CONFIG --includes 2> /dev/null`
12297 PYTHON3_CPPFLAGS=$PYTHON3_CPPFLAGS
12298
12299 save_CPPFLAGS="$CPPFLAGS"
12300 CPPFLAGS="$PYTHON3_CPPFLAGS $CPPFLAGS"
12301 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
12302 for ac_header in Python.h
12303 do :
12304 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
12305 if test "x$ac_cv_header_Python_h" = xyes; then :
12306 cat >>confdefs.h <<_ACEOF
12307 #define HAVE_PYTHON_H 1
12308 _ACEOF
12309 have_python3_support=yes
12310 fi
12311
12312 done
12313
12314 CPPFLAGS="$save_CPPFLAGS"
12315 fi
12316 fi
12317 if test "x$have_python3_support" = "xyes"; then :
12318
12319 $as_echo "#define HAVE_PYTHON3_PROBES 1" >>confdefs.h
12320
12321 else
12322 if test "x$with_python3_probes" = "xyes"; then :
12323 as_fn_error $? "python version 3 probe support requested but not found" "$LINENO" 5
12324 fi
12325
12326 fi
12327 if test "x$have_python3_support" = "xyes"; then
12328 HAVE_PYTHON3_PROBES_TRUE=
12329 HAVE_PYTHON3_PROBES_FALSE='#'
12330 else
12331 HAVE_PYTHON3_PROBES_TRUE='#'
12332 HAVE_PYTHON3_PROBES_FALSE=
12333 fi
12334
12335
12336 if test "x$have_python2_support" = "xyes" -o "x$have_python3_support" = "xyes"; then
12337 HAVE_PYTHON_PROBES_TRUE=
12338 HAVE_PYTHON_PROBES_FALSE='#'
12339 else
12340 HAVE_PYTHON_PROBES_TRUE='#'
12341 HAVE_PYTHON_PROBES_FALSE=
12342 fi
12343
12344
12345 # Check whether --enable-monitor was given.
12346 if test "${enable_monitor+set}" = set; then :
12347 enableval=$enable_monitor;
12348 fi
12349
12350 if test "$enable_monitor" != "no"; then
12351
12352 pkg_failed=no
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jsonc" >&5
12354 $as_echo_n "checking for jsonc... " >&6; }
12355
12356 if test -n "$jsonc_CFLAGS"; then
12357 pkg_cv_jsonc_CFLAGS="$jsonc_CFLAGS"
12358 elif test -n "$PKG_CONFIG"; then
12359 if test -n "$PKG_CONFIG" && \
12360 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
12361 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
12362 ac_status=$?
12363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12364 test $ac_status = 0; }; then
12365 pkg_cv_jsonc_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
12366 test "x$?" != "x0" && pkg_failed=yes
12367 else
12368 pkg_failed=yes
12369 fi
12370 else
12371 pkg_failed=untried
12372 fi
12373 if test -n "$jsonc_LIBS"; then
12374 pkg_cv_jsonc_LIBS="$jsonc_LIBS"
12375 elif test -n "$PKG_CONFIG"; then
12376 if test -n "$PKG_CONFIG" && \
12377 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
12378 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
12379 ac_status=$?
12380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12381 test $ac_status = 0; }; then
12382 pkg_cv_jsonc_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
12383 test "x$?" != "x0" && pkg_failed=yes
12384 else
12385 pkg_failed=yes
12386 fi
12387 else
12388 pkg_failed=untried
12389 fi
12390
12391
12392
12393 if test $pkg_failed = yes; then
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12396
12397 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12398 _pkg_short_errors_supported=yes
12399 else
12400 _pkg_short_errors_supported=no
12401 fi
12402 if test $_pkg_short_errors_supported = yes; then
12403 jsonc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
12404 else
12405 jsonc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
12406 fi
12407 # Put the nasty error message in config.log where it belongs
12408 echo "$jsonc_PKG_ERRORS" >&5
12409
12410 have_jsonc=no
12411 elif test $pkg_failed = untried; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; }
12414 have_jsonc=no
12415 else
12416 jsonc_CFLAGS=$pkg_cv_jsonc_CFLAGS
12417 jsonc_LIBS=$pkg_cv_jsonc_LIBS
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12419 $as_echo "yes" >&6; }
12420 have_jsonc=yes
12421 fi
12422
12423 pkg_failed=no
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
12425 $as_echo_n "checking for ncurses... " >&6; }
12426
12427 if test -n "$ncurses_CFLAGS"; then
12428 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
12429 elif test -n "$PKG_CONFIG"; then
12430 if test -n "$PKG_CONFIG" && \
12431 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12432 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12433 ac_status=$?
12434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12435 test $ac_status = 0; }; then
12436 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
12437 test "x$?" != "x0" && pkg_failed=yes
12438 else
12439 pkg_failed=yes
12440 fi
12441 else
12442 pkg_failed=untried
12443 fi
12444 if test -n "$ncurses_LIBS"; then
12445 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
12446 elif test -n "$PKG_CONFIG"; then
12447 if test -n "$PKG_CONFIG" && \
12448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12449 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12450 ac_status=$?
12451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12452 test $ac_status = 0; }; then
12453 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
12454 test "x$?" != "x0" && pkg_failed=yes
12455 else
12456 pkg_failed=yes
12457 fi
12458 else
12459 pkg_failed=untried
12460 fi
12461
12462
12463
12464 if test $pkg_failed = yes; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466 $as_echo "no" >&6; }
12467
12468 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12469 _pkg_short_errors_supported=yes
12470 else
12471 _pkg_short_errors_supported=no
12472 fi
12473 if test $_pkg_short_errors_supported = yes; then
12474 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
12475 else
12476 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
12477 fi
12478 # Put the nasty error message in config.log where it belongs
12479 echo "$ncurses_PKG_ERRORS" >&5
12480
12481 have_ncurses=no
12482 elif test $pkg_failed = untried; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484 $as_echo "no" >&6; }
12485 have_ncurses=no
12486 else
12487 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
12488 ncurses_LIBS=$pkg_cv_ncurses_LIBS
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12490 $as_echo "yes" >&6; }
12491 have_ncurses=yes
12492 fi
12493 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == yes; then
12494
12495 $as_echo "#define HAVE_MONITOR_LIBS 1" >>confdefs.h
12496
12497 fi
12498 fi
12499 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes" -a "$enable_monitor" != "no"; then
12500 HAVE_MONITOR_LIBS_TRUE=
12501 HAVE_MONITOR_LIBS_FALSE='#'
12502 else
12503 HAVE_MONITOR_LIBS_TRUE='#'
12504 HAVE_MONITOR_LIBS_FALSE=
12505 fi
12506
12507
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
12509 $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; }
12510 if ${stap_cv_sectionq+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513
12514 old_CFLAGS="$CFLAGS"
12515 CFLAGS="$CFLAGS -Wa,--fatal-warnings"
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518 asm(".section .note.foo,\"?\",\"note\"\n"
12519 ".byte 1, 2, 3\n"
12520 ".previous\n"
12521 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
12522 ".byte 1\n"
12523 ".pushsection .note.foo,\"?\",\"note\"\n"
12524 ".byte 4, 5, 6\n"
12525 ".popsection\n"
12526 ".byte 2\n");
12527 _ACEOF
12528 if ac_fn_c_try_compile "$LINENO"; then :
12529 stap_cv_sectionq=yes
12530 else
12531 stap_cv_sectionq=no
12532 fi
12533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534 CFLAGS="$old_CFLAGS"
12535 fi
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
12537 $as_echo "$stap_cv_sectionq" >&6; }
12538
12539 support_section_question=0
12540 if test $stap_cv_sectionq = yes; then
12541 support_section_question=1
12542 fi
12543
12544
12545
12546 # Check whether --with-bpf was given.
12547 if test "${with_bpf+set}" = set; then :
12548 withval=$with_bpf;
12549 fi
12550
12551
12552 if test "x$with_bpf" != "xno"; then :
12553
12554 ac_fn_c_check_decl "$LINENO" "BPF_PROG_TYPE_PERF_EVENT" "ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" "#include <linux/bpf.h>
12555 "
12556 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" = xyes; then :
12557 ac_have_decl=1
12558 else
12559 ac_have_decl=0
12560 fi
12561
12562 cat >>confdefs.h <<_ACEOF
12563 #define HAVE_DECL_BPF_PROG_TYPE_PERF_EVENT $ac_have_decl
12564 _ACEOF
12565 if test $ac_have_decl = 1; then :
12566
12567 $as_echo "#define HAVE_BPF_DECLS 1" >>confdefs.h
12568
12569 fi
12570
12571
12572 fi
12573 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" == "xyes"; then
12574 HAVE_BPF_DECLS_TRUE=
12575 HAVE_BPF_DECLS_FALSE='#'
12576 else
12577 HAVE_BPF_DECLS_TRUE='#'
12578 HAVE_BPF_DECLS_FALSE=
12579 fi
12580
12581 ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
12582
12583
12584 ac_fn_c_check_decl "$LINENO" "BPF_PROG_TYPE_RAW_TRACEPOINT" "ac_cv_have_decl_BPF_PROG_TYPE_RAW_TRACEPOINT" "#include <linux/bpf.h>
12585 "
12586 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_RAW_TRACEPOINT" = xyes; then :
12587 ac_have_decl=1
12588 else
12589 ac_have_decl=0
12590 fi
12591
12592 cat >>confdefs.h <<_ACEOF
12593 #define HAVE_DECL_BPF_PROG_TYPE_RAW_TRACEPOINT $ac_have_decl
12594 _ACEOF
12595 if test $ac_have_decl = 1; then :
12596
12597 $as_echo "#define HAVE_BPF_PROG_TYPE_RAW_TRACEPOINT 1" >>confdefs.h
12598
12599 fi
12600
12601
12602 if test $build_elfutils = yes -a $enable_translator = yes; then
12603 here=`pwd`
12604 case "$with_elfutils" in
12605 /*) elfutils_srcdir="$with_elfutils" ;;
12606 *) elfutils_srcdir="${here}/$with_elfutils" ;;
12607 esac
12608
12609 if ! test -f ${elfutils_srcdir}/configure; then
12610 as_fn_error $? "No ${elfutils_srcdir}/configure, forgot to run autoreconf -i?" "$LINENO" 5
12611 fi
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5
12613 $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
12614
12615 save_CFLAGS="$CFLAGS"
12616 save_CXXFLAGS="$CXXFLAGS"
12617 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
12618 CFLAGS="$CFLAGS -fgnu89-inline"
12619 gnu89_inline_flag=""
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12622 int something ();
12623 _ACEOF
12624 if ac_fn_c_try_compile "$LINENO"; then :
12625
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5
12627 $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
12628 gnu89_inline_flag="-fgnu89-inline"
12629 else
12630
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5
12632 $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
12633 fi
12634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12635 CFLAGS="$save_CFLAGS"
12636 CXXFLAGS="$save_CXXFLAGS"
12637
12638 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
12639 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
12640 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
12641 # So we must make sure to pass those settings to elfutils configure.
12642 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
12643 # Check whether this is a source release, or a source checkout.
12644 # We need --enable-maintainer-mode if it isn't a source release.
12645 # elfutils.spec is only distributed in source releases.
12646 if test -f ${elfutils_srcdir}/elfutils.spec; then
12647 need_maintainer_option=""
12648 else
12649 need_maintainer_option="--enable-maintainer-mode"
12650 fi
12651 (mkdir -p build-elfutils && cd build-elfutils &&
12652 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
12653 --includedir="${here}/include-elfutils" \
12654 --libdir="${here}/lib-elfutils" \
12655 --exec-prefix="$exec_prefix" \
12656 --prefix="$prefix" \
12657 --enable-dwz \
12658 ${need_maintainer_option} \
12659 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \
12660 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
12661 if test -f ${elfutils_srcdir}/config/version.h.in; then
12662 echo Found elfutils/version.h header...
12663 else
12664 echo elfutils/version.h header not found, need elfutils 0.142+...
12665 exit -1
12666 fi
12667 )
12668 if test $? != 0; then exit -1; fi
12669 fi
12670
12671
12672 # Check whether --with-selinux was given.
12673 if test "${with_selinux+set}" = set; then :
12674 withval=$with_selinux;
12675 fi
12676
12677
12678 if test "x$with_selinux" != "xno"; then :
12679
12680
12681 pkg_failed=no
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5
12683 $as_echo_n "checking for selinux... " >&6; }
12684
12685 if test -n "$selinux_CFLAGS"; then
12686 pkg_cv_selinux_CFLAGS="$selinux_CFLAGS"
12687 elif test -n "$PKG_CONFIG"; then
12688 if test -n "$PKG_CONFIG" && \
12689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12690 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12691 ac_status=$?
12692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12693 test $ac_status = 0; }; then
12694 pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
12695 test "x$?" != "x0" && pkg_failed=yes
12696 else
12697 pkg_failed=yes
12698 fi
12699 else
12700 pkg_failed=untried
12701 fi
12702 if test -n "$selinux_LIBS"; then
12703 pkg_cv_selinux_LIBS="$selinux_LIBS"
12704 elif test -n "$PKG_CONFIG"; then
12705 if test -n "$PKG_CONFIG" && \
12706 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12707 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12708 ac_status=$?
12709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12710 test $ac_status = 0; }; then
12711 pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
12712 test "x$?" != "x0" && pkg_failed=yes
12713 else
12714 pkg_failed=yes
12715 fi
12716 else
12717 pkg_failed=untried
12718 fi
12719
12720
12721
12722 if test $pkg_failed = yes; then
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12725
12726 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12727 _pkg_short_errors_supported=yes
12728 else
12729 _pkg_short_errors_supported=no
12730 fi
12731 if test $_pkg_short_errors_supported = yes; then
12732 selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
12733 else
12734 selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
12735 fi
12736 # Put the nasty error message in config.log where it belongs
12737 echo "$selinux_PKG_ERRORS" >&5
12738
12739 have_selinux=no
12740 elif test $pkg_failed = untried; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12743 have_selinux=no
12744 else
12745 selinux_CFLAGS=$pkg_cv_selinux_CFLAGS
12746 selinux_LIBS=$pkg_cv_selinux_LIBS
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12748 $as_echo "yes" >&6; }
12749 have_selinux=yes
12750
12751 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
12752
12753
12754 fi
12755
12756 else
12757 have_selinux=no
12758 fi
12759
12760 if test "${have_selinux}" = "yes"; then
12761 HAVE_SELINUX_TRUE=
12762 HAVE_SELINUX_FALSE='#'
12763 else
12764 HAVE_SELINUX_TRUE='#'
12765 HAVE_SELINUX_FALSE=
12766 fi
12767
12768
12769 ac_fn_c_check_decl "$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "#include <fcntl.h>
12770 "
12771 if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes; then :
12772
12773 $as_echo "#define HAVE_F_SETPIPE_SZ 1" >>confdefs.h
12774
12775 fi
12776
12777
12778 # Extract the first word of "javac", so it can be a program name with args.
12779 set dummy javac; ac_word=$2
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781 $as_echo_n "checking for $ac_word... " >&6; }
12782 if ${ac_cv_prog_have_javac+:} false; then :
12783 $as_echo_n "(cached) " >&6
12784 else
12785 if test -n "$have_javac"; then
12786 ac_cv_prog_have_javac="$have_javac" # Let the user override the test.
12787 else
12788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789 for as_dir in $PATH
12790 do
12791 IFS=$as_save_IFS
12792 test -z "$as_dir" && as_dir=.
12793 for ac_exec_ext in '' $ac_executable_extensions; do
12794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12795 ac_cv_prog_have_javac="yes"
12796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12797 break 2
12798 fi
12799 done
12800 done
12801 IFS=$as_save_IFS
12802
12803 test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no"
12804 fi
12805 fi
12806 have_javac=$ac_cv_prog_have_javac
12807 if test -n "$have_javac"; then
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5
12809 $as_echo "$have_javac" >&6; }
12810 else
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 $as_echo "no" >&6; }
12813 fi
12814
12815
12816 # Extract the first word of "jar", so it can be a program name with args.
12817 set dummy jar; ac_word=$2
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819 $as_echo_n "checking for $ac_word... " >&6; }
12820 if ${ac_cv_prog_have_jar+:} false; then :
12821 $as_echo_n "(cached) " >&6
12822 else
12823 if test -n "$have_jar"; then
12824 ac_cv_prog_have_jar="$have_jar" # Let the user override the test.
12825 else
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12828 do
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
12831 for ac_exec_ext in '' $ac_executable_extensions; do
12832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12833 ac_cv_prog_have_jar="yes"
12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12835 break 2
12836 fi
12837 done
12838 done
12839 IFS=$as_save_IFS
12840
12841 test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no"
12842 fi
12843 fi
12844 have_jar=$ac_cv_prog_have_jar
12845 if test -n "$have_jar"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5
12847 $as_echo "$have_jar" >&6; }
12848 else
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12851 fi
12852
12853
12854 if test "$have_javac" != no -a "$have_jar" != no; then
12855 echo java found, will try to configure Byteman support
12856
12857
12858 # Check whether --with-java was given.
12859 if test "${with_java+set}" = set; then :
12860 withval=$with_java;
12861 else
12862 with_java=/usr/lib/jvm/java
12863 fi
12864
12865 if test ! -d "$with_java"; then
12866 with_java=no
12867 fi
12868 JAVADIR="${with_java}"
12869 # always needed to compile
12870
12871 if test "$with_java" != "no"; then
12872
12873 cat >>confdefs.h <<_ACEOF
12874 #define HAVE_JAVA "1"
12875 _ACEOF
12876
12877 fi
12878
12879 if test "$with_java" != "no"; then
12880 HAVE_JAVA_TRUE=
12881 HAVE_JAVA_FALSE='#'
12882 else
12883 HAVE_JAVA_TRUE='#'
12884 HAVE_JAVA_FALSE=
12885 fi
12886
12887
12888 else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5
12890 $as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;}
12891 if false; then
12892 HAVE_JAVA_TRUE=
12893 HAVE_JAVA_FALSE='#'
12894 else
12895 HAVE_JAVA_TRUE='#'
12896 HAVE_JAVA_FALSE=
12897 fi
12898
12899 fi # java+byteman support
12900
12901 ENABLE_NLS="$USE_NLS"
12902
12903 localedir="$localedir"
12904
12905 LOCALEDIR="$localedir"
12906
12907
12908
12909 # Check whether --with-extra-version was given.
12910 if test "${with_extra_version+set}" = set; then :
12911 withval=$with_extra_version;
12912 fi
12913
12914 if test "x$with_extra_version" != "xno"; then :
12915
12916 stap_extra_version="$with_extra_version"
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5
12918 $as_echo "$as_me: Adding extra version $stap_extra_version" >&6;}
12919 else
12920
12921 stap_extra_version=""
12922 fi
12923
12924 cat >>confdefs.h <<_ACEOF
12925 #define STAP_EXTRA_VERSION "$stap_extra_version"
12926 _ACEOF
12927
12928 STAP_EXTRA_VERSION="$stap_extra_version"
12929
12930
12931 # Check whether --enable-http was given.
12932 if test "${enable_http+set}" = set; then :
12933 enableval=$enable_http;
12934 fi
12935
12936 have_http_support=no
12937 if test "x$enable_http" = "xyes"; then :
12938
12939 pkg_failed=no
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
12941 $as_echo_n "checking for libmicrohttpd... " >&6; }
12942
12943 if test -n "$libmicrohttpd_CFLAGS"; then
12944 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
12945 elif test -n "$PKG_CONFIG"; then
12946 if test -n "$PKG_CONFIG" && \
12947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
12948 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
12949 ac_status=$?
12950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12951 test $ac_status = 0; }; then
12952 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.0" 2>/dev/null`
12953 test "x$?" != "x0" && pkg_failed=yes
12954 else
12955 pkg_failed=yes
12956 fi
12957 else
12958 pkg_failed=untried
12959 fi
12960 if test -n "$libmicrohttpd_LIBS"; then
12961 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
12962 elif test -n "$PKG_CONFIG"; then
12963 if test -n "$PKG_CONFIG" && \
12964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
12965 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
12966 ac_status=$?
12967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12968 test $ac_status = 0; }; then
12969 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.0" 2>/dev/null`
12970 test "x$?" != "x0" && pkg_failed=yes
12971 else
12972 pkg_failed=yes
12973 fi
12974 else
12975 pkg_failed=untried
12976 fi
12977
12978
12979
12980 if test $pkg_failed = yes; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982 $as_echo "no" >&6; }
12983
12984 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12985 _pkg_short_errors_supported=yes
12986 else
12987 _pkg_short_errors_supported=no
12988 fi
12989 if test $_pkg_short_errors_supported = yes; then
12990 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
12991 else
12992 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
12993 fi
12994 # Put the nasty error message in config.log where it belongs
12995 echo "$libmicrohttpd_PKG_ERRORS" >&5
12996
12997 have_libmicrohttpd=false
12998 elif test $pkg_failed = untried; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13001 have_libmicrohttpd=false
13002 else
13003 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
13004 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13006 $as_echo "yes" >&6; }
13007 have_libmicrohttpd=true
13008 fi
13009
13010
13011 pkg_failed=no
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid" >&5
13013 $as_echo_n "checking for uuid... " >&6; }
13014
13015 if test -n "$uuid_CFLAGS"; then
13016 pkg_cv_uuid_CFLAGS="$uuid_CFLAGS"
13017 elif test -n "$PKG_CONFIG"; then
13018 if test -n "$PKG_CONFIG" && \
13019 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
13020 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
13021 ac_status=$?
13022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13023 test $ac_status = 0; }; then
13024 pkg_cv_uuid_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.17.0" 2>/dev/null`
13025 test "x$?" != "x0" && pkg_failed=yes
13026 else
13027 pkg_failed=yes
13028 fi
13029 else
13030 pkg_failed=untried
13031 fi
13032 if test -n "$uuid_LIBS"; then
13033 pkg_cv_uuid_LIBS="$uuid_LIBS"
13034 elif test -n "$PKG_CONFIG"; then
13035 if test -n "$PKG_CONFIG" && \
13036 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
13037 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
13038 ac_status=$?
13039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13040 test $ac_status = 0; }; then
13041 pkg_cv_uuid_LIBS=`$PKG_CONFIG --libs "uuid >= 2.17.0" 2>/dev/null`
13042 test "x$?" != "x0" && pkg_failed=yes
13043 else
13044 pkg_failed=yes
13045 fi
13046 else
13047 pkg_failed=untried
13048 fi
13049
13050
13051
13052 if test $pkg_failed = yes; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 $as_echo "no" >&6; }
13055
13056 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13057 _pkg_short_errors_supported=yes
13058 else
13059 _pkg_short_errors_supported=no
13060 fi
13061 if test $_pkg_short_errors_supported = yes; then
13062 uuid_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
13063 else
13064 uuid_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
13065 fi
13066 # Put the nasty error message in config.log where it belongs
13067 echo "$uuid_PKG_ERRORS" >&5
13068
13069 have_libuuid=false
13070 elif test $pkg_failed = untried; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13073 have_libuuid=false
13074 else
13075 uuid_CFLAGS=$pkg_cv_uuid_CFLAGS
13076 uuid_LIBS=$pkg_cv_uuid_LIBS
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13078 $as_echo "yes" >&6; }
13079 have_libuuid=true
13080 fi
13081
13082
13083 pkg_failed=no
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
13085 $as_echo_n "checking for libcurl... " >&6; }
13086
13087 if test -n "$libcurl_CFLAGS"; then
13088 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
13089 elif test -n "$PKG_CONFIG"; then
13090 if test -n "$PKG_CONFIG" && \
13091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.7\""; } >&5
13092 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.7") 2>&5
13093 ac_status=$?
13094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13095 test $ac_status = 0; }; then
13096 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.19.7" 2>/dev/null`
13097 test "x$?" != "x0" && pkg_failed=yes
13098 else
13099 pkg_failed=yes
13100 fi
13101 else
13102 pkg_failed=untried
13103 fi
13104 if test -n "$libcurl_LIBS"; then
13105 pkg_cv_libcurl_LIBS="$libcurl_LIBS"
13106 elif test -n "$PKG_CONFIG"; then
13107 if test -n "$PKG_CONFIG" && \
13108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.7\""; } >&5
13109 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.7") 2>&5
13110 ac_status=$?
13111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13112 test $ac_status = 0; }; then
13113 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.19.7" 2>/dev/null`
13114 test "x$?" != "x0" && pkg_failed=yes
13115 else
13116 pkg_failed=yes
13117 fi
13118 else
13119 pkg_failed=untried
13120 fi
13121
13122
13123
13124 if test $pkg_failed = yes; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 $as_echo "no" >&6; }
13127
13128 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13129 _pkg_short_errors_supported=yes
13130 else
13131 _pkg_short_errors_supported=no
13132 fi
13133 if test $_pkg_short_errors_supported = yes; then
13134 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.19.7" 2>&1`
13135 else
13136 libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.19.7" 2>&1`
13137 fi
13138 # Put the nasty error message in config.log where it belongs
13139 echo "$libcurl_PKG_ERRORS" >&5
13140
13141 have_libcurl=false
13142 elif test $pkg_failed = untried; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 $as_echo "no" >&6; }
13145 have_libcurl=false
13146 else
13147 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
13148 libcurl_LIBS=$pkg_cv_libcurl_LIBS
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13150 $as_echo "yes" >&6; }
13151 have_libcurl=true
13152 fi
13153
13154 if test "x$have_libmicrohttpd" == "xtrue" -a "x$have_libuuid" == "xtrue" -a "x$have_libcurl" == "xtrue" -a "x$have_jsonc" == "xyes" -a "x$have_nss" == "xyes" -a "x$have_openssl" == "xyes" -a "x$have_cxx0x" == "xno"; then :
13155 have_http_support=yes
13156 fi
13157 fi
13158
13159 if test "x$have_http_support" = "xyes"; then :
13160
13161 $as_echo "#define HAVE_HTTP_SUPPORT 1" >>confdefs.h
13162
13163 else
13164 if test "x$enable_http" = "xyes"; then :
13165 as_fn_error $? "http service support requested but not found" "$LINENO" 5
13166 fi
13167
13168 fi
13169 if test "x$have_http_support" = "xyes"; then
13170 HAVE_HTTP_SUPPORT_TRUE=
13171 HAVE_HTTP_SUPPORT_FALSE='#'
13172 else
13173 HAVE_HTTP_SUPPORT_TRUE='#'
13174 HAVE_HTTP_SUPPORT_FALSE=
13175 fi
13176
13177
13178 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"; then
13179 NEED_BASE_CLIENT_CODE_TRUE=
13180 NEED_BASE_CLIENT_CODE_FALSE='#'
13181 else
13182 NEED_BASE_CLIENT_CODE_TRUE='#'
13183 NEED_BASE_CLIENT_CODE_FALSE=
13184 fi
13185
13186 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"; then :
13187
13188
13189 $as_echo "#define NEED_BASE_CLIENT_CODE 1" >>confdefs.h
13190
13191
13192 fi
13193
13194
13195 stap_prefix=$prefix
13196 test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
13197
13198 cat >>confdefs.h <<_ACEOF
13199 #define STAP_PREFIX "$stap_prefix"
13200 _ACEOF
13201
13202 STAP_PREFIX="$stap_prefix"
13203
13204
13205 ac_config_headers="$ac_config_headers config.h:config.in"
13206
13207
13208
13209 ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile man/cs/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile man/stap.1 man/stappaths.7 man/systemtap-service.8 man/cs/stap.1 man/cs/stappaths.7 man/cs/systemtap.8 initscript/config.systemtap initscript/config.stap-server initscript/systemtap initscript/stap-server initscript/99stap/module-setup.sh initscript/99stap/install initscript/99stap/check"
13210
13211
13212
13213 subdirs="$subdirs testsuite"
13214
13215 if test $enable_translator == "yes"; then
13216 ac_config_files="$ac_config_files run-stap"
13217
13218 fi
13219 ac_config_files="$ac_config_files dtrace"
13220
13221 ac_config_files="$ac_config_files stapdyn/Makefile"
13222
13223 ac_config_files="$ac_config_files java/Makefile"
13224
13225 ac_config_files="$ac_config_files java/stapbm"
13226
13227 ac_config_files="$ac_config_files python/Makefile"
13228
13229 ac_config_files="$ac_config_files staprun/Makefile"
13230
13231 ac_config_files="$ac_config_files stapbpf/Makefile"
13232
13233 ac_config_files="$ac_config_files httpd/Makefile httpd/docker/Makefile"
13234
13235 ac_config_files="$ac_config_files staprun/run-staprun"
13236
13237 ac_config_files="$ac_config_files staprun/guest/stapshd"
13238
13239 ac_config_files="$ac_config_files staprun/guest/stapsh-daemon"
13240
13241 ac_config_files="$ac_config_files staprun/guest/stapsh@.service"
13242
13243 ac_config_files="$ac_config_files stap-exporter/Makefile"
13244
13245
13246
13247 # Setup "shadow" directory doc/beginners that has the basic directories setup for
13248 # xmlto in one directory (through directory links if necessary).
13249 # It would be nice to use AC_CONFIG_LINKS, but automake complains when
13250 # the src is a directory and not a file.
13251 ac_config_commands="$ac_config_commands doc/beginners"
13252
13253
13254 cat >confcache <<\_ACEOF
13255 # This file is a shell script that caches the results of configure
13256 # tests run on this system so they can be shared between configure
13257 # scripts and configure runs, see configure's option --config-cache.
13258 # It is not useful on other systems. If it contains results you don't
13259 # want to keep, you may remove or edit it.
13260 #
13261 # config.status only pays attention to the cache file if you give it
13262 # the --recheck option to rerun configure.
13263 #
13264 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13265 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13266 # following values.
13267
13268 _ACEOF
13269
13270 # The following way of writing the cache mishandles newlines in values,
13271 # but we know of no workaround that is simple, portable, and efficient.
13272 # So, we kill variables containing newlines.
13273 # Ultrix sh set writes to stderr and can't be redirected directly,
13274 # and sets the high bit in the cache file unless we assign to the vars.
13275 (
13276 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13277 eval ac_val=\$$ac_var
13278 case $ac_val in #(
13279 *${as_nl}*)
13280 case $ac_var in #(
13281 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13282 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13283 esac
13284 case $ac_var in #(
13285 _ | IFS | as_nl) ;; #(
13286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13287 *) { eval $ac_var=; unset $ac_var;} ;;
13288 esac ;;
13289 esac
13290 done
13291
13292 (set) 2>&1 |
13293 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13294 *${as_nl}ac_space=\ *)
13295 # `set' does not quote correctly, so add quotes: double-quote
13296 # substitution turns \\\\ into \\, and sed turns \\ into \.
13297 sed -n \
13298 "s/'/'\\\\''/g;
13299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13300 ;; #(
13301 *)
13302 # `set' quotes correctly as required by POSIX, so do not add quotes.
13303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13304 ;;
13305 esac |
13306 sort
13307 ) |
13308 sed '
13309 /^ac_cv_env_/b end
13310 t clear
13311 :clear
13312 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13313 t end
13314 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13315 :end' >>confcache
13316 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13317 if test -w "$cache_file"; then
13318 if test "x$cache_file" != "x/dev/null"; then
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13320 $as_echo "$as_me: updating cache $cache_file" >&6;}
13321 if test ! -f "$cache_file" || test -h "$cache_file"; then
13322 cat confcache >"$cache_file"
13323 else
13324 case $cache_file in #(
13325 */* | ?:*)
13326 mv -f confcache "$cache_file"$$ &&
13327 mv -f "$cache_file"$$ "$cache_file" ;; #(
13328 *)
13329 mv -f confcache "$cache_file" ;;
13330 esac
13331 fi
13332 fi
13333 else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13335 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13336 fi
13337 fi
13338 rm -f confcache
13339
13340 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13341 # Let make expand exec_prefix.
13342 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13343
13344 DEFS=-DHAVE_CONFIG_H
13345
13346 ac_libobjs=
13347 ac_ltlibobjs=
13348 U=
13349 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13350 # 1. Remove the extension, and $U if already installed.
13351 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13352 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13353 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13354 # will be set to the directory where LIBOBJS objects are built.
13355 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13356 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13357 done
13358 LIBOBJS=$ac_libobjs
13359
13360 LTLIBOBJS=$ac_ltlibobjs
13361
13362
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13364 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13365 if test -n "$am_sleep_pid"; then
13366 # Hide warnings about reused PIDs.
13367 wait $am_sleep_pid 2>/dev/null
13368 fi
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13370 $as_echo "done" >&6; }
13371 if test -n "$EXEEXT"; then
13372 am__EXEEXT_TRUE=
13373 am__EXEEXT_FALSE='#'
13374 else
13375 am__EXEEXT_TRUE='#'
13376 am__EXEEXT_FALSE=
13377 fi
13378
13379 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13380 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13382 fi
13383 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13384 as_fn_error $? "conditional \"AMDEP\" was never defined.
13385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13386 fi
13387 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13388 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13390 fi
13391 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13392 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13394 fi
13395 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13396 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
13397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13398 fi
13399 if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
13400 as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined.
13401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13402 fi
13403 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
13404 as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined.
13405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13406 fi
13407 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
13408 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
13409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13410 fi
13411 if test -z "${INSTALL_PREBUILT_DOCS_TRUE}" && test -z "${INSTALL_PREBUILT_DOCS_FALSE}"; then
13412 as_fn_error $? "conditional \"INSTALL_PREBUILT_DOCS\" was never defined.
13413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13414 fi
13415 if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
13416 as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined.
13417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13418 fi
13419 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
13420 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
13421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13422 fi
13423 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
13424 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
13425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13426 fi
13427 if test -z "${BUILD_HTMLDOCS_TRUE}" && test -z "${BUILD_HTMLDOCS_FALSE}"; then
13428 as_fn_error $? "conditional \"BUILD_HTMLDOCS\" was never defined.
13429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13430 fi
13431 if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
13432 as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined.
13433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13434 fi
13435 if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
13436 as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
13437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13438 fi
13439 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
13440 as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined.
13441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13442 fi
13443 if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
13444 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined.
13445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13446 fi
13447 if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
13448 as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
13449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13450 fi
13451 if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then
13452 as_fn_error $? "conditional \"HAVE_LIBREADLINE\" was never defined.
13453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13454 fi
13455 if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
13456 as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined.
13457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13458 fi
13459 if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then
13460 as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined.
13461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13462 fi
13463 if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
13464 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined.
13465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13466 fi
13467 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
13468 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
13469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13470 fi
13471 if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then
13472 as_fn_error $? "conditional \"BUILD_VIRT\" was never defined.
13473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13474 fi
13475 if test -z "${HAVE_PYTHON2_PROBES_TRUE}" && test -z "${HAVE_PYTHON2_PROBES_FALSE}"; then
13476 as_fn_error $? "conditional \"HAVE_PYTHON2_PROBES\" was never defined.
13477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13478 fi
13479 if test -z "${HAVE_PYTHON3_PROBES_TRUE}" && test -z "${HAVE_PYTHON3_PROBES_FALSE}"; then
13480 as_fn_error $? "conditional \"HAVE_PYTHON3_PROBES\" was never defined.
13481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13482 fi
13483 if test -z "${HAVE_PYTHON_PROBES_TRUE}" && test -z "${HAVE_PYTHON_PROBES_FALSE}"; then
13484 as_fn_error $? "conditional \"HAVE_PYTHON_PROBES\" was never defined.
13485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13486 fi
13487 if test -z "${HAVE_MONITOR_LIBS_TRUE}" && test -z "${HAVE_MONITOR_LIBS_FALSE}"; then
13488 as_fn_error $? "conditional \"HAVE_MONITOR_LIBS\" was never defined.
13489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13490 fi
13491 if test -z "${HAVE_BPF_DECLS_TRUE}" && test -z "${HAVE_BPF_DECLS_FALSE}"; then
13492 as_fn_error $? "conditional \"HAVE_BPF_DECLS\" was never defined.
13493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13494 fi
13495 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
13496 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
13497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13498 fi
13499 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13500 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
13501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13502 fi
13503 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13504 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
13505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13506 fi
13507 if test -z "${HAVE_HTTP_SUPPORT_TRUE}" && test -z "${HAVE_HTTP_SUPPORT_FALSE}"; then
13508 as_fn_error $? "conditional \"HAVE_HTTP_SUPPORT\" was never defined.
13509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13510 fi
13511 if test -z "${NEED_BASE_CLIENT_CODE_TRUE}" && test -z "${NEED_BASE_CLIENT_CODE_FALSE}"; then
13512 as_fn_error $? "conditional \"NEED_BASE_CLIENT_CODE\" was never defined.
13513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13514 fi
13515
13516 : "${CONFIG_STATUS=./config.status}"
13517 ac_write_fail=0
13518 ac_clean_files_save=$ac_clean_files
13519 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13521 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13522 as_write_fail=0
13523 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13524 #! $SHELL
13525 # Generated by $as_me.
13526 # Run this file to recreate the current configuration.
13527 # Compiler output produced by configure, useful for debugging
13528 # configure, is in config.log if it exists.
13529
13530 debug=false
13531 ac_cs_recheck=false
13532 ac_cs_silent=false
13533
13534 SHELL=\${CONFIG_SHELL-$SHELL}
13535 export SHELL
13536 _ASEOF
13537 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13538 ## -------------------- ##
13539 ## M4sh Initialization. ##
13540 ## -------------------- ##
13541
13542 # Be more Bourne compatible
13543 DUALCASE=1; export DUALCASE # for MKS sh
13544 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13545 emulate sh
13546 NULLCMD=:
13547 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13548 # is contrary to our usage. Disable this feature.
13549 alias -g '${1+"$@"}'='"$@"'
13550 setopt NO_GLOB_SUBST
13551 else
13552 case `(set -o) 2>/dev/null` in #(
13553 *posix*) :
13554 set -o posix ;; #(
13555 *) :
13556 ;;
13557 esac
13558 fi
13559
13560
13561 as_nl='
13562 '
13563 export as_nl
13564 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13565 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13567 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13568 # Prefer a ksh shell builtin over an external printf program on Solaris,
13569 # but without wasting forks for bash or zsh.
13570 if test -z "$BASH_VERSION$ZSH_VERSION" \
13571 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13572 as_echo='print -r --'
13573 as_echo_n='print -rn --'
13574 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13575 as_echo='printf %s\n'
13576 as_echo_n='printf %s'
13577 else
13578 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13579 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13580 as_echo_n='/usr/ucb/echo -n'
13581 else
13582 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13583 as_echo_n_body='eval
13584 arg=$1;
13585 case $arg in #(
13586 *"$as_nl"*)
13587 expr "X$arg" : "X\\(.*\\)$as_nl";
13588 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13589 esac;
13590 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13591 '
13592 export as_echo_n_body
13593 as_echo_n='sh -c $as_echo_n_body as_echo'
13594 fi
13595 export as_echo_body
13596 as_echo='sh -c $as_echo_body as_echo'
13597 fi
13598
13599 # The user is always right.
13600 if test "${PATH_SEPARATOR+set}" != set; then
13601 PATH_SEPARATOR=:
13602 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13603 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13604 PATH_SEPARATOR=';'
13605 }
13606 fi
13607
13608
13609 # IFS
13610 # We need space, tab and new line, in precisely that order. Quoting is
13611 # there to prevent editors from complaining about space-tab.
13612 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13613 # splitting by setting IFS to empty value.)
13614 IFS=" "" $as_nl"
13615
13616 # Find who we are. Look in the path if we contain no directory separator.
13617 as_myself=
13618 case $0 in #((
13619 *[\\/]* ) as_myself=$0 ;;
13620 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13621 for as_dir in $PATH
13622 do
13623 IFS=$as_save_IFS
13624 test -z "$as_dir" && as_dir=.
13625 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13626 done
13627 IFS=$as_save_IFS
13628
13629 ;;
13630 esac
13631 # We did not find ourselves, most probably we were run as `sh COMMAND'
13632 # in which case we are not to be found in the path.
13633 if test "x$as_myself" = x; then
13634 as_myself=$0
13635 fi
13636 if test ! -f "$as_myself"; then
13637 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13638 exit 1
13639 fi
13640
13641 # Unset variables that we do not need and which cause bugs (e.g. in
13642 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13643 # suppresses any "Segmentation fault" message there. '((' could
13644 # trigger a bug in pdksh 5.2.14.
13645 for as_var in BASH_ENV ENV MAIL MAILPATH
13646 do eval test x\${$as_var+set} = xset \
13647 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13648 done
13649 PS1='$ '
13650 PS2='> '
13651 PS4='+ '
13652
13653 # NLS nuisances.
13654 LC_ALL=C
13655 export LC_ALL
13656 LANGUAGE=C
13657 export LANGUAGE
13658
13659 # CDPATH.
13660 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13661
13662
13663 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13664 # ----------------------------------------
13665 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13666 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13667 # script with STATUS, using 1 if that was 0.
13668 as_fn_error ()
13669 {
13670 as_status=$1; test $as_status -eq 0 && as_status=1
13671 if test "$4"; then
13672 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13673 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13674 fi
13675 $as_echo "$as_me: error: $2" >&2
13676 as_fn_exit $as_status
13677 } # as_fn_error
13678
13679
13680 # as_fn_set_status STATUS
13681 # -----------------------
13682 # Set $? to STATUS, without forking.
13683 as_fn_set_status ()
13684 {
13685 return $1
13686 } # as_fn_set_status
13687
13688 # as_fn_exit STATUS
13689 # -----------------
13690 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13691 as_fn_exit ()
13692 {
13693 set +e
13694 as_fn_set_status $1
13695 exit $1
13696 } # as_fn_exit
13697
13698 # as_fn_unset VAR
13699 # ---------------
13700 # Portably unset VAR.
13701 as_fn_unset ()
13702 {
13703 { eval $1=; unset $1;}
13704 }
13705 as_unset=as_fn_unset
13706 # as_fn_append VAR VALUE
13707 # ----------------------
13708 # Append the text in VALUE to the end of the definition contained in VAR. Take
13709 # advantage of any shell optimizations that allow amortized linear growth over
13710 # repeated appends, instead of the typical quadratic growth present in naive
13711 # implementations.
13712 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13713 eval 'as_fn_append ()
13714 {
13715 eval $1+=\$2
13716 }'
13717 else
13718 as_fn_append ()
13719 {
13720 eval $1=\$$1\$2
13721 }
13722 fi # as_fn_append
13723
13724 # as_fn_arith ARG...
13725 # ------------------
13726 # Perform arithmetic evaluation on the ARGs, and store the result in the
13727 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13728 # must be portable across $(()) and expr.
13729 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13730 eval 'as_fn_arith ()
13731 {
13732 as_val=$(( $* ))
13733 }'
13734 else
13735 as_fn_arith ()
13736 {
13737 as_val=`expr "$@" || test $? -eq 1`
13738 }
13739 fi # as_fn_arith
13740
13741
13742 if expr a : '\(a\)' >/dev/null 2>&1 &&
13743 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13744 as_expr=expr
13745 else
13746 as_expr=false
13747 fi
13748
13749 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13750 as_basename=basename
13751 else
13752 as_basename=false
13753 fi
13754
13755 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13756 as_dirname=dirname
13757 else
13758 as_dirname=false
13759 fi
13760
13761 as_me=`$as_basename -- "$0" ||
13762 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13763 X"$0" : 'X\(//\)$' \| \
13764 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13765 $as_echo X/"$0" |
13766 sed '/^.*\/\([^/][^/]*\)\/*$/{
13767 s//\1/
13768 q
13769 }
13770 /^X\/\(\/\/\)$/{
13771 s//\1/
13772 q
13773 }
13774 /^X\/\(\/\).*/{
13775 s//\1/
13776 q
13777 }
13778 s/.*/./; q'`
13779
13780 # Avoid depending upon Character Ranges.
13781 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13782 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13783 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13784 as_cr_digits='0123456789'
13785 as_cr_alnum=$as_cr_Letters$as_cr_digits
13786
13787 ECHO_C= ECHO_N= ECHO_T=
13788 case `echo -n x` in #(((((
13789 -n*)
13790 case `echo 'xy\c'` in
13791 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13792 xy) ECHO_C='\c';;
13793 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13794 ECHO_T=' ';;
13795 esac;;
13796 *)
13797 ECHO_N='-n';;
13798 esac
13799
13800 rm -f conf$$ conf$$.exe conf$$.file
13801 if test -d conf$$.dir; then
13802 rm -f conf$$.dir/conf$$.file
13803 else
13804 rm -f conf$$.dir
13805 mkdir conf$$.dir 2>/dev/null
13806 fi
13807 if (echo >conf$$.file) 2>/dev/null; then
13808 if ln -s conf$$.file conf$$ 2>/dev/null; then
13809 as_ln_s='ln -s'
13810 # ... but there are two gotchas:
13811 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13812 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13813 # In both cases, we have to default to `cp -pR'.
13814 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13815 as_ln_s='cp -pR'
13816 elif ln conf$$.file conf$$ 2>/dev/null; then
13817 as_ln_s=ln
13818 else
13819 as_ln_s='cp -pR'
13820 fi
13821 else
13822 as_ln_s='cp -pR'
13823 fi
13824 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13825 rmdir conf$$.dir 2>/dev/null
13826
13827
13828 # as_fn_mkdir_p
13829 # -------------
13830 # Create "$as_dir" as a directory, including parents if necessary.
13831 as_fn_mkdir_p ()
13832 {
13833
13834 case $as_dir in #(
13835 -*) as_dir=./$as_dir;;
13836 esac
13837 test -d "$as_dir" || eval $as_mkdir_p || {
13838 as_dirs=
13839 while :; do
13840 case $as_dir in #(
13841 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13842 *) as_qdir=$as_dir;;
13843 esac
13844 as_dirs="'$as_qdir' $as_dirs"
13845 as_dir=`$as_dirname -- "$as_dir" ||
13846 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13847 X"$as_dir" : 'X\(//\)[^/]' \| \
13848 X"$as_dir" : 'X\(//\)$' \| \
13849 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13850 $as_echo X"$as_dir" |
13851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13852 s//\1/
13853 q
13854 }
13855 /^X\(\/\/\)[^/].*/{
13856 s//\1/
13857 q
13858 }
13859 /^X\(\/\/\)$/{
13860 s//\1/
13861 q
13862 }
13863 /^X\(\/\).*/{
13864 s//\1/
13865 q
13866 }
13867 s/.*/./; q'`
13868 test -d "$as_dir" && break
13869 done
13870 test -z "$as_dirs" || eval "mkdir $as_dirs"
13871 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13872
13873
13874 } # as_fn_mkdir_p
13875 if mkdir -p . 2>/dev/null; then
13876 as_mkdir_p='mkdir -p "$as_dir"'
13877 else
13878 test -d ./-p && rmdir ./-p
13879 as_mkdir_p=false
13880 fi
13881
13882
13883 # as_fn_executable_p FILE
13884 # -----------------------
13885 # Test if FILE is an executable regular file.
13886 as_fn_executable_p ()
13887 {
13888 test -f "$1" && test -x "$1"
13889 } # as_fn_executable_p
13890 as_test_x='test -x'
13891 as_executable_p=as_fn_executable_p
13892
13893 # Sed expression to map a string onto a valid CPP name.
13894 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13895
13896 # Sed expression to map a string onto a valid variable name.
13897 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13898
13899
13900 exec 6>&1
13901 ## ----------------------------------- ##
13902 ## Main body of $CONFIG_STATUS script. ##
13903 ## ----------------------------------- ##
13904 _ASEOF
13905 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13906
13907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13908 # Save the log message, to keep $0 and so on meaningful, and to
13909 # report actual input values of CONFIG_FILES etc. instead of their
13910 # values after options handling.
13911 ac_log="
13912 This file was extended by systemtap $as_me 4.3, which was
13913 generated by GNU Autoconf 2.69. Invocation command line was
13914
13915 CONFIG_FILES = $CONFIG_FILES
13916 CONFIG_HEADERS = $CONFIG_HEADERS
13917 CONFIG_LINKS = $CONFIG_LINKS
13918 CONFIG_COMMANDS = $CONFIG_COMMANDS
13919 $ $0 $@
13920
13921 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13922 "
13923
13924 _ACEOF
13925
13926 case $ac_config_files in *"
13927 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13928 esac
13929
13930 case $ac_config_headers in *"
13931 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13932 esac
13933
13934
13935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13936 # Files that config.status was made for.
13937 config_files="$ac_config_files"
13938 config_headers="$ac_config_headers"
13939 config_commands="$ac_config_commands"
13940
13941 _ACEOF
13942
13943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13944 ac_cs_usage="\
13945 \`$as_me' instantiates files and other configuration actions
13946 from templates according to the current configuration. Unless the files
13947 and actions are specified as TAGs, all are instantiated by default.
13948
13949 Usage: $0 [OPTION]... [TAG]...
13950
13951 -h, --help print this help, then exit
13952 -V, --version print version number and configuration settings, then exit
13953 --config print configuration, then exit
13954 -q, --quiet, --silent
13955 do not print progress messages
13956 -d, --debug don't remove temporary files
13957 --recheck update $as_me by reconfiguring in the same conditions
13958 --file=FILE[:TEMPLATE]
13959 instantiate the configuration file FILE
13960 --header=FILE[:TEMPLATE]
13961 instantiate the configuration header FILE
13962
13963 Configuration files:
13964 $config_files
13965
13966 Configuration headers:
13967 $config_headers
13968
13969 Configuration commands:
13970 $config_commands
13971
13972 Report bugs to <systemtap@sourceware.org>."
13973
13974 _ACEOF
13975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13976 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13977 ac_cs_version="\\
13978 systemtap config.status 4.3
13979 configured by $0, generated by GNU Autoconf 2.69,
13980 with options \\"\$ac_cs_config\\"
13981
13982 Copyright (C) 2012 Free Software Foundation, Inc.
13983 This config.status script is free software; the Free Software Foundation
13984 gives unlimited permission to copy, distribute and modify it."
13985
13986 ac_pwd='$ac_pwd'
13987 srcdir='$srcdir'
13988 INSTALL='$INSTALL'
13989 MKDIR_P='$MKDIR_P'
13990 AWK='$AWK'
13991 test -n "\$AWK" || AWK=awk
13992 _ACEOF
13993
13994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13995 # The default lists apply if the user does not specify any file.
13996 ac_need_defaults=:
13997 while test $# != 0
13998 do
13999 case $1 in
14000 --*=?*)
14001 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14002 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14003 ac_shift=:
14004 ;;
14005 --*=)
14006 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14007 ac_optarg=
14008 ac_shift=:
14009 ;;
14010 *)
14011 ac_option=$1
14012 ac_optarg=$2
14013 ac_shift=shift
14014 ;;
14015 esac
14016
14017 case $ac_option in
14018 # Handling of the options.
14019 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14020 ac_cs_recheck=: ;;
14021 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14022 $as_echo "$ac_cs_version"; exit ;;
14023 --config | --confi | --conf | --con | --co | --c )
14024 $as_echo "$ac_cs_config"; exit ;;
14025 --debug | --debu | --deb | --de | --d | -d )
14026 debug=: ;;
14027 --file | --fil | --fi | --f )
14028 $ac_shift
14029 case $ac_optarg in
14030 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14031 '') as_fn_error $? "missing file argument" ;;
14032 esac
14033 as_fn_append CONFIG_FILES " '$ac_optarg'"
14034 ac_need_defaults=false;;
14035 --header | --heade | --head | --hea )
14036 $ac_shift
14037 case $ac_optarg in
14038 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14039 esac
14040 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14041 ac_need_defaults=false;;
14042 --he | --h)
14043 # Conflict between --help and --header
14044 as_fn_error $? "ambiguous option: \`$1'
14045 Try \`$0 --help' for more information.";;
14046 --help | --hel | -h )
14047 $as_echo "$ac_cs_usage"; exit ;;
14048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14049 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14050 ac_cs_silent=: ;;
14051
14052 # This is an error.
14053 -*) as_fn_error $? "unrecognized option: \`$1'
14054 Try \`$0 --help' for more information." ;;
14055
14056 *) as_fn_append ac_config_targets " $1"
14057 ac_need_defaults=false ;;
14058
14059 esac
14060 shift
14061 done
14062
14063 ac_configure_extra_args=
14064
14065 if $ac_cs_silent; then
14066 exec 6>/dev/null
14067 ac_configure_extra_args="$ac_configure_extra_args --silent"
14068 fi
14069
14070 _ACEOF
14071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14072 if \$ac_cs_recheck; then
14073 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14074 shift
14075 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14076 CONFIG_SHELL='$SHELL'
14077 export CONFIG_SHELL
14078 exec "\$@"
14079 fi
14080
14081 _ACEOF
14082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14083 exec 5>>config.log
14084 {
14085 echo
14086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14087 ## Running $as_me. ##
14088 _ASBOX
14089 $as_echo "$ac_log"
14090 } >&5
14091
14092 _ACEOF
14093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14094 #
14095 # INIT-COMMANDS
14096 #
14097 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14098 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14099 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14100 # from automake < 1.5.
14101 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14102 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14103 LINGUAS="${LINGUAS-%UNSET%}"
14104
14105
14106 _ACEOF
14107
14108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14109
14110 # Handling of arguments.
14111 for ac_config_target in $ac_config_targets
14112 do
14113 case $ac_config_target in
14114 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14115 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14116 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
14117 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14118 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14119 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14120 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14121 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14122 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
14123 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
14124 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
14125 "man/stap.1") CONFIG_FILES="$CONFIG_FILES man/stap.1" ;;
14126 "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;;
14127 "man/systemtap-service.8") CONFIG_FILES="$CONFIG_FILES man/systemtap-service.8" ;;
14128 "man/cs/stap.1") CONFIG_FILES="$CONFIG_FILES man/cs/stap.1" ;;
14129 "man/cs/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/cs/stappaths.7" ;;
14130 "man/cs/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/cs/systemtap.8" ;;
14131 "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;;
14132 "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;;
14133 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
14134 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
14135 "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;;
14136 "initscript/99stap/install") CONFIG_FILES="$CONFIG_FILES initscript/99stap/install" ;;
14137 "initscript/99stap/check") CONFIG_FILES="$CONFIG_FILES initscript/99stap/check" ;;
14138 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
14139 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
14140 "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;;
14141 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
14142 "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;;
14143 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
14144 "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;;
14145 "stapbpf/Makefile") CONFIG_FILES="$CONFIG_FILES stapbpf/Makefile" ;;
14146 "httpd/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/Makefile" ;;
14147 "httpd/docker/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/docker/Makefile" ;;
14148 "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;;
14149 "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;;
14150 "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;;
14151 "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;;
14152 "stap-exporter/Makefile") CONFIG_FILES="$CONFIG_FILES stap-exporter/Makefile" ;;
14153 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
14154
14155 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14156 esac
14157 done
14158
14159
14160 # If the user did not use the arguments to specify the items to instantiate,
14161 # then the envvar interface is used. Set only those that are not.
14162 # We use the long form for the default assignment because of an extremely
14163 # bizarre bug on SunOS 4.1.3.
14164 if $ac_need_defaults; then
14165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14168 fi
14169
14170 # Have a temporary directory for convenience. Make it in the build tree
14171 # simply because there is no reason against having it here, and in addition,
14172 # creating and moving files from /tmp can sometimes cause problems.
14173 # Hook for its removal unless debugging.
14174 # Note that there is a small window in which the directory will not be cleaned:
14175 # after its creation but before its name has been assigned to `$tmp'.
14176 $debug ||
14177 {
14178 tmp= ac_tmp=
14179 trap 'exit_status=$?
14180 : "${ac_tmp:=$tmp}"
14181 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14182 ' 0
14183 trap 'as_fn_exit 1' 1 2 13 15
14184 }
14185 # Create a (secure) tmp directory for tmp files.
14186
14187 {
14188 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14189 test -d "$tmp"
14190 } ||
14191 {
14192 tmp=./conf$$-$RANDOM
14193 (umask 077 && mkdir "$tmp")
14194 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14195 ac_tmp=$tmp
14196
14197 # Set up the scripts for CONFIG_FILES section.
14198 # No need to generate them if there are no CONFIG_FILES.
14199 # This happens for instance with `./config.status config.h'.
14200 if test -n "$CONFIG_FILES"; then
14201
14202
14203 ac_cr=`echo X | tr X '\015'`
14204 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14205 # But we know of no other shell where ac_cr would be empty at this
14206 # point, so we can use a bashism as a fallback.
14207 if test "x$ac_cr" = x; then
14208 eval ac_cr=\$\'\\r\'
14209 fi
14210 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14211 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14212 ac_cs_awk_cr='\\r'
14213 else
14214 ac_cs_awk_cr=$ac_cr
14215 fi
14216
14217 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14218 _ACEOF
14219
14220
14221 {
14222 echo "cat >conf$$subs.awk <<_ACEOF" &&
14223 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14224 echo "_ACEOF"
14225 } >conf$$subs.sh ||
14226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14227 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14228 ac_delim='%!_!# '
14229 for ac_last_try in false false false false false :; do
14230 . ./conf$$subs.sh ||
14231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14232
14233 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14234 if test $ac_delim_n = $ac_delim_num; then
14235 break
14236 elif $ac_last_try; then
14237 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14238 else
14239 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14240 fi
14241 done
14242 rm -f conf$$subs.sh
14243
14244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14245 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14246 _ACEOF
14247 sed -n '
14248 h
14249 s/^/S["/; s/!.*/"]=/
14250 p
14251 g
14252 s/^[^!]*!//
14253 :repl
14254 t repl
14255 s/'"$ac_delim"'$//
14256 t delim
14257 :nl
14258 h
14259 s/\(.\{148\}\)..*/\1/
14260 t more1
14261 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14262 p
14263 n
14264 b repl
14265 :more1
14266 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14267 p
14268 g
14269 s/.\{148\}//
14270 t nl
14271 :delim
14272 h
14273 s/\(.\{148\}\)..*/\1/
14274 t more2
14275 s/["\\]/\\&/g; s/^/"/; s/$/"/
14276 p
14277 b
14278 :more2
14279 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14280 p
14281 g
14282 s/.\{148\}//
14283 t delim
14284 ' <conf$$subs.awk | sed '
14285 /^[^""]/{
14286 N
14287 s/\n//
14288 }
14289 ' >>$CONFIG_STATUS || ac_write_fail=1
14290 rm -f conf$$subs.awk
14291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14292 _ACAWK
14293 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14294 for (key in S) S_is_set[key] = 1
14295 FS = "\a"
14296
14297 }
14298 {
14299 line = $ 0
14300 nfields = split(line, field, "@")
14301 substed = 0
14302 len = length(field[1])
14303 for (i = 2; i < nfields; i++) {
14304 key = field[i]
14305 keylen = length(key)
14306 if (S_is_set[key]) {
14307 value = S[key]
14308 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14309 len += length(value) + length(field[++i])
14310 substed = 1
14311 } else
14312 len += 1 + keylen
14313 }
14314
14315 print line
14316 }
14317
14318 _ACAWK
14319 _ACEOF
14320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14321 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14322 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14323 else
14324 cat
14325 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14326 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14327 _ACEOF
14328
14329 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14330 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14331 # trailing colons and then remove the whole line if VPATH becomes empty
14332 # (actually we leave an empty line to preserve line numbers).
14333 if test "x$srcdir" = x.; then
14334 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14335 h
14336 s///
14337 s/^/:/
14338 s/[ ]*$/:/
14339 s/:\$(srcdir):/:/g
14340 s/:\${srcdir}:/:/g
14341 s/:@srcdir@:/:/g
14342 s/^:*//
14343 s/:*$//
14344 x
14345 s/\(=[ ]*\).*/\1/
14346 G
14347 s/\n//
14348 s/^[^=]*=[ ]*$//
14349 }'
14350 fi
14351
14352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14353 fi # test -n "$CONFIG_FILES"
14354
14355 # Set up the scripts for CONFIG_HEADERS section.
14356 # No need to generate them if there are no CONFIG_HEADERS.
14357 # This happens for instance with `./config.status Makefile'.
14358 if test -n "$CONFIG_HEADERS"; then
14359 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14360 BEGIN {
14361 _ACEOF
14362
14363 # Transform confdefs.h into an awk script `defines.awk', embedded as
14364 # here-document in config.status, that substitutes the proper values into
14365 # config.h.in to produce config.h.
14366
14367 # Create a delimiter string that does not exist in confdefs.h, to ease
14368 # handling of long lines.
14369 ac_delim='%!_!# '
14370 for ac_last_try in false false :; do
14371 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14372 if test -z "$ac_tt"; then
14373 break
14374 elif $ac_last_try; then
14375 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14376 else
14377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14378 fi
14379 done
14380
14381 # For the awk script, D is an array of macro values keyed by name,
14382 # likewise P contains macro parameters if any. Preserve backslash
14383 # newline sequences.
14384
14385 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14386 sed -n '
14387 s/.\{148\}/&'"$ac_delim"'/g
14388 t rset
14389 :rset
14390 s/^[ ]*#[ ]*define[ ][ ]*/ /
14391 t def
14392 d
14393 :def
14394 s/\\$//
14395 t bsnl
14396 s/["\\]/\\&/g
14397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14398 D["\1"]=" \3"/p
14399 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14400 d
14401 :bsnl
14402 s/["\\]/\\&/g
14403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14404 D["\1"]=" \3\\\\\\n"\\/p
14405 t cont
14406 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14407 t cont
14408 d
14409 :cont
14410 n
14411 s/.\{148\}/&'"$ac_delim"'/g
14412 t clear
14413 :clear
14414 s/\\$//
14415 t bsnlc
14416 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14417 d
14418 :bsnlc
14419 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14420 b cont
14421 ' <confdefs.h | sed '
14422 s/'"$ac_delim"'/"\\\
14423 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14424
14425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14426 for (key in D) D_is_set[key] = 1
14427 FS = "\a"
14428 }
14429 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14430 line = \$ 0
14431 split(line, arg, " ")
14432 if (arg[1] == "#") {
14433 defundef = arg[2]
14434 mac1 = arg[3]
14435 } else {
14436 defundef = substr(arg[1], 2)
14437 mac1 = arg[2]
14438 }
14439 split(mac1, mac2, "(") #)
14440 macro = mac2[1]
14441 prefix = substr(line, 1, index(line, defundef) - 1)
14442 if (D_is_set[macro]) {
14443 # Preserve the white space surrounding the "#".
14444 print prefix "define", macro P[macro] D[macro]
14445 next
14446 } else {
14447 # Replace #undef with comments. This is necessary, for example,
14448 # in the case of _POSIX_SOURCE, which is predefined and required
14449 # on some systems where configure will not decide to define it.
14450 if (defundef == "undef") {
14451 print "/*", prefix defundef, macro, "*/"
14452 next
14453 }
14454 }
14455 }
14456 { print }
14457 _ACAWK
14458 _ACEOF
14459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14460 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14461 fi # test -n "$CONFIG_HEADERS"
14462
14463
14464 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14465 shift
14466 for ac_tag
14467 do
14468 case $ac_tag in
14469 :[FHLC]) ac_mode=$ac_tag; continue;;
14470 esac
14471 case $ac_mode$ac_tag in
14472 :[FHL]*:*);;
14473 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14474 :[FH]-) ac_tag=-:-;;
14475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14476 esac
14477 ac_save_IFS=$IFS
14478 IFS=:
14479 set x $ac_tag
14480 IFS=$ac_save_IFS
14481 shift
14482 ac_file=$1
14483 shift
14484
14485 case $ac_mode in
14486 :L) ac_source=$1;;
14487 :[FH])
14488 ac_file_inputs=
14489 for ac_f
14490 do
14491 case $ac_f in
14492 -) ac_f="$ac_tmp/stdin";;
14493 *) # Look for the file first in the build tree, then in the source tree
14494 # (if the path is not absolute). The absolute path cannot be DOS-style,
14495 # because $ac_f cannot contain `:'.
14496 test -f "$ac_f" ||
14497 case $ac_f in
14498 [\\/$]*) false;;
14499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14500 esac ||
14501 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14502 esac
14503 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14504 as_fn_append ac_file_inputs " '$ac_f'"
14505 done
14506
14507 # Let's still pretend it is `configure' which instantiates (i.e., don't
14508 # use $as_me), people would be surprised to read:
14509 # /* config.h. Generated by config.status. */
14510 configure_input='Generated from '`
14511 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14512 `' by configure.'
14513 if test x"$ac_file" != x-; then
14514 configure_input="$ac_file. $configure_input"
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14516 $as_echo "$as_me: creating $ac_file" >&6;}
14517 fi
14518 # Neutralize special characters interpreted by sed in replacement strings.
14519 case $configure_input in #(
14520 *\&* | *\|* | *\\* )
14521 ac_sed_conf_input=`$as_echo "$configure_input" |
14522 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14523 *) ac_sed_conf_input=$configure_input;;
14524 esac
14525
14526 case $ac_tag in
14527 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14529 esac
14530 ;;
14531 esac
14532
14533 ac_dir=`$as_dirname -- "$ac_file" ||
14534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14535 X"$ac_file" : 'X\(//\)[^/]' \| \
14536 X"$ac_file" : 'X\(//\)$' \| \
14537 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14538 $as_echo X"$ac_file" |
14539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14540 s//\1/
14541 q
14542 }
14543 /^X\(\/\/\)[^/].*/{
14544 s//\1/
14545 q
14546 }
14547 /^X\(\/\/\)$/{
14548 s//\1/
14549 q
14550 }
14551 /^X\(\/\).*/{
14552 s//\1/
14553 q
14554 }
14555 s/.*/./; q'`
14556 as_dir="$ac_dir"; as_fn_mkdir_p
14557 ac_builddir=.
14558
14559 case "$ac_dir" in
14560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14561 *)
14562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14563 # A ".." for each directory in $ac_dir_suffix.
14564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14565 case $ac_top_builddir_sub in
14566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14568 esac ;;
14569 esac
14570 ac_abs_top_builddir=$ac_pwd
14571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14572 # for backward compatibility:
14573 ac_top_builddir=$ac_top_build_prefix
14574
14575 case $srcdir in
14576 .) # We are building in place.
14577 ac_srcdir=.
14578 ac_top_srcdir=$ac_top_builddir_sub
14579 ac_abs_top_srcdir=$ac_pwd ;;
14580 [\\/]* | ?:[\\/]* ) # Absolute name.
14581 ac_srcdir=$srcdir$ac_dir_suffix;
14582 ac_top_srcdir=$srcdir
14583 ac_abs_top_srcdir=$srcdir ;;
14584 *) # Relative name.
14585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14586 ac_top_srcdir=$ac_top_build_prefix$srcdir
14587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14588 esac
14589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14590
14591
14592 case $ac_mode in
14593 :F)
14594 #
14595 # CONFIG_FILE
14596 #
14597
14598 case $INSTALL in
14599 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14600 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14601 esac
14602 ac_MKDIR_P=$MKDIR_P
14603 case $MKDIR_P in
14604 [\\/$]* | ?:[\\/]* ) ;;
14605 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14606 esac
14607 _ACEOF
14608
14609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14610 # If the template does not know about datarootdir, expand it.
14611 # FIXME: This hack should be removed a few years after 2.60.
14612 ac_datarootdir_hack=; ac_datarootdir_seen=
14613 ac_sed_dataroot='
14614 /datarootdir/ {
14615 p
14616 q
14617 }
14618 /@datadir@/p
14619 /@docdir@/p
14620 /@infodir@/p
14621 /@localedir@/p
14622 /@mandir@/p'
14623 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14624 *datarootdir*) ac_datarootdir_seen=yes;;
14625 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14627 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14628 _ACEOF
14629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14630 ac_datarootdir_hack='
14631 s&@datadir@&$datadir&g
14632 s&@docdir@&$docdir&g
14633 s&@infodir@&$infodir&g
14634 s&@localedir@&$localedir&g
14635 s&@mandir@&$mandir&g
14636 s&\\\${datarootdir}&$datarootdir&g' ;;
14637 esac
14638 _ACEOF
14639
14640 # Neutralize VPATH when `$srcdir' = `.'.
14641 # Shell code in configure.ac might set extrasub.
14642 # FIXME: do we really want to maintain this feature?
14643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14644 ac_sed_extra="$ac_vpsub
14645 $extrasub
14646 _ACEOF
14647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14648 :t
14649 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14650 s|@configure_input@|$ac_sed_conf_input|;t t
14651 s&@top_builddir@&$ac_top_builddir_sub&;t t
14652 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14653 s&@srcdir@&$ac_srcdir&;t t
14654 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14655 s&@top_srcdir@&$ac_top_srcdir&;t t
14656 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14657 s&@builddir@&$ac_builddir&;t t
14658 s&@abs_builddir@&$ac_abs_builddir&;t t
14659 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14660 s&@INSTALL@&$ac_INSTALL&;t t
14661 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14662 $ac_datarootdir_hack
14663 "
14664 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14665 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14666
14667 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14668 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14669 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14670 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14672 which seems to be undefined. Please make sure it is defined" >&5
14673 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14674 which seems to be undefined. Please make sure it is defined" >&2;}
14675
14676 rm -f "$ac_tmp/stdin"
14677 case $ac_file in
14678 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14679 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14680 esac \
14681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14682 ;;
14683 :H)
14684 #
14685 # CONFIG_HEADER
14686 #
14687 if test x"$ac_file" != x-; then
14688 {
14689 $as_echo "/* $configure_input */" \
14690 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14691 } >"$ac_tmp/config.h" \
14692 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14693 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14695 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14696 else
14697 rm -f "$ac_file"
14698 mv "$ac_tmp/config.h" "$ac_file" \
14699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14700 fi
14701 else
14702 $as_echo "/* $configure_input */" \
14703 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14704 || as_fn_error $? "could not create -" "$LINENO" 5
14705 fi
14706 # Compute "$ac_file"'s index in $config_headers.
14707 _am_arg="$ac_file"
14708 _am_stamp_count=1
14709 for _am_header in $config_headers :; do
14710 case $_am_header in
14711 $_am_arg | $_am_arg:* )
14712 break ;;
14713 * )
14714 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14715 esac
14716 done
14717 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14718 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14719 X"$_am_arg" : 'X\(//\)[^/]' \| \
14720 X"$_am_arg" : 'X\(//\)$' \| \
14721 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14722 $as_echo X"$_am_arg" |
14723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14724 s//\1/
14725 q
14726 }
14727 /^X\(\/\/\)[^/].*/{
14728 s//\1/
14729 q
14730 }
14731 /^X\(\/\/\)$/{
14732 s//\1/
14733 q
14734 }
14735 /^X\(\/\).*/{
14736 s//\1/
14737 q
14738 }
14739 s/.*/./; q'`/stamp-h$_am_stamp_count
14740 ;;
14741
14742 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14743 $as_echo "$as_me: executing $ac_file commands" >&6;}
14744 ;;
14745 esac
14746
14747
14748 case $ac_file$ac_mode in
14749 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14750 # Older Autoconf quotes --file arguments for eval, but not when files
14751 # are listed without --file. Let's play safe and only enable the eval
14752 # if we detect the quoting.
14753 # TODO: see whether this extra hack can be removed once we start
14754 # requiring Autoconf 2.70 or later.
14755 case $CONFIG_FILES in #(
14756 *\'*) :
14757 eval set x "$CONFIG_FILES" ;; #(
14758 *) :
14759 set x $CONFIG_FILES ;; #(
14760 *) :
14761 ;;
14762 esac
14763 shift
14764 # Used to flag and report bootstrapping failures.
14765 am_rc=0
14766 for am_mf
14767 do
14768 # Strip MF so we end up with the name of the file.
14769 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14770 # Check whether this is an Automake generated Makefile which includes
14771 # dependency-tracking related rules and includes.
14772 # Grep'ing the whole file directly is not great: AIX grep has a line
14773 # limit of 2048, but all sed's we know have understand at least 4000.
14774 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14775 || continue
14776 am_dirpart=`$as_dirname -- "$am_mf" ||
14777 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14778 X"$am_mf" : 'X\(//\)[^/]' \| \
14779 X"$am_mf" : 'X\(//\)$' \| \
14780 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14781 $as_echo X"$am_mf" |
14782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14783 s//\1/
14784 q
14785 }
14786 /^X\(\/\/\)[^/].*/{
14787 s//\1/
14788 q
14789 }
14790 /^X\(\/\/\)$/{
14791 s//\1/
14792 q
14793 }
14794 /^X\(\/\).*/{
14795 s//\1/
14796 q
14797 }
14798 s/.*/./; q'`
14799 am_filepart=`$as_basename -- "$am_mf" ||
14800 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14801 X"$am_mf" : 'X\(//\)$' \| \
14802 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14803 $as_echo X/"$am_mf" |
14804 sed '/^.*\/\([^/][^/]*\)\/*$/{
14805 s//\1/
14806 q
14807 }
14808 /^X\/\(\/\/\)$/{
14809 s//\1/
14810 q
14811 }
14812 /^X\/\(\/\).*/{
14813 s//\1/
14814 q
14815 }
14816 s/.*/./; q'`
14817 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14818 && sed -e '/# am--include-marker/d' "$am_filepart" \
14819 | $MAKE -f - am--depfiles" >&5
14820 (cd "$am_dirpart" \
14821 && sed -e '/# am--include-marker/d' "$am_filepart" \
14822 | $MAKE -f - am--depfiles) >&5 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } || am_rc=$?
14826 done
14827 if test $am_rc -ne 0; then
14828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14830 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14831 for automatic dependency tracking. Try re-running configure with the
14832 '--disable-dependency-tracking' option to at least be able to build
14833 the package (albeit without support for automatic dependency tracking).
14834 See \`config.log' for more details" "$LINENO" 5; }
14835 fi
14836 { am_dirpart=; unset am_dirpart;}
14837 { am_filepart=; unset am_filepart;}
14838 { am_mf=; unset am_mf;}
14839 { am_rc=; unset am_rc;}
14840 rm -f conftest-deps.mk
14841 }
14842 ;;
14843 "po-directories":C)
14844 for ac_file in $CONFIG_FILES; do
14845 # Support "outfile[:infile[:infile...]]"
14846 case "$ac_file" in
14847 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14848 esac
14849 # PO directories have a Makefile.in generated from Makefile.in.in.
14850 case "$ac_file" in */Makefile.in)
14851 # Adjust a relative srcdir.
14852 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14853 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14854 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14855 # In autoconf-2.13 it is called $ac_given_srcdir.
14856 # In autoconf-2.50 it is called $srcdir.
14857 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14858 case "$ac_given_srcdir" in
14859 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14860 /*) top_srcdir="$ac_given_srcdir" ;;
14861 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14862 esac
14863 # Treat a directory as a PO directory if and only if it has a
14864 # POTFILES.in file. This allows packages to have multiple PO
14865 # directories under different names or in different locations.
14866 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14867 rm -f "$ac_dir/POTFILES"
14868 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14869 gt_tab=`printf '\t'`
14870 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14871 POMAKEFILEDEPS="POTFILES.in"
14872 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14873 # on $ac_dir but don't depend on user-specified configuration
14874 # parameters.
14875 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14876 # The LINGUAS file contains the set of available languages.
14877 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14878 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14879 fi
14880 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14881 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14882 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14883 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14884 else
14885 # The set of available languages was given in configure.in.
14886 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14887 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14888 fi
14889 # Compute POFILES
14890 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14891 # Compute UPDATEPOFILES
14892 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14893 # Compute DUMMYPOFILES
14894 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14895 # Compute GMOFILES
14896 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14897 case "$ac_given_srcdir" in
14898 .) srcdirpre= ;;
14899 *) srcdirpre='$(srcdir)/' ;;
14900 esac
14901 POFILES=
14902 UPDATEPOFILES=
14903 DUMMYPOFILES=
14904 GMOFILES=
14905 for lang in $ALL_LINGUAS; do
14906 POFILES="$POFILES $srcdirpre$lang.po"
14907 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14908 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14909 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14910 done
14911 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14912 # environment variable.
14913 INST_LINGUAS=
14914 if test -n "$ALL_LINGUAS"; then
14915 for presentlang in $ALL_LINGUAS; do
14916 useit=no
14917 if test "%UNSET%" != "$LINGUAS"; then
14918 desiredlanguages="$LINGUAS"
14919 else
14920 desiredlanguages="$ALL_LINGUAS"
14921 fi
14922 for desiredlang in $desiredlanguages; do
14923 # Use the presentlang catalog if desiredlang is
14924 # a. equal to presentlang, or
14925 # b. a variant of presentlang (because in this case,
14926 # presentlang can be used as a fallback for messages
14927 # which are not translated in the desiredlang catalog).
14928 case "$desiredlang" in
14929 "$presentlang"*) useit=yes;;
14930 esac
14931 done
14932 if test $useit = yes; then
14933 INST_LINGUAS="$INST_LINGUAS $presentlang"
14934 fi
14935 done
14936 fi
14937 CATALOGS=
14938 if test -n "$INST_LINGUAS"; then
14939 for lang in $INST_LINGUAS; do
14940 CATALOGS="$CATALOGS $lang.gmo"
14941 done
14942 fi
14943 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14944 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14945 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14946 if test -f "$f"; then
14947 case "$f" in
14948 *.orig | *.bak | *~) ;;
14949 *) cat "$f" >> "$ac_dir/Makefile" ;;
14950 esac
14951 fi
14952 done
14953 fi
14954 ;;
14955 esac
14956 done ;;
14957 "run-stap":F) chmod +x run-stap ;;
14958 "dtrace":F) chmod +x dtrace ;;
14959 "java/stapbm":F) chmod +x java/stapbm ;;
14960 "staprun/run-staprun":F) chmod +x staprun/run-staprun ;;
14961 "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;;
14962 "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;;
14963 "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 ;;
14964
14965 esac
14966 done # for ac_tag
14967
14968
14969 as_fn_exit 0
14970 _ACEOF
14971 ac_clean_files=$ac_clean_files_save
14972
14973 test $ac_write_fail = 0 ||
14974 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14975
14976
14977 # configure is writing to config.log, and then calls config.status.
14978 # config.status does its own redirection, appending to config.log.
14979 # Unfortunately, on DOS this fails, as config.log is still kept open
14980 # by configure, so config.status won't be able to write to it; its
14981 # output is simply discarded. So we exec the FD to /dev/null,
14982 # effectively closing config.log, so it can be properly (re)opened and
14983 # appended to by config.status. When coming back to configure, we
14984 # need to make the FD available again.
14985 if test "$no_create" != yes; then
14986 ac_cs_success=:
14987 ac_config_status_args=
14988 test "$silent" = yes &&
14989 ac_config_status_args="$ac_config_status_args --quiet"
14990 exec 5>/dev/null
14991 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14992 exec 5>>config.log
14993 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14994 # would make configure fail if this is the last instruction.
14995 $ac_cs_success || as_fn_exit 1
14996 fi
14997
14998 #
14999 # CONFIG_SUBDIRS section.
15000 #
15001 if test "$no_recursion" != yes; then
15002
15003 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15004 # so they do not pile up.
15005 ac_sub_configure_args=
15006 ac_prev=
15007 eval "set x $ac_configure_args"
15008 shift
15009 for ac_arg
15010 do
15011 if test -n "$ac_prev"; then
15012 ac_prev=
15013 continue
15014 fi
15015 case $ac_arg in
15016 -cache-file | --cache-file | --cache-fil | --cache-fi \
15017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15018 ac_prev=cache_file ;;
15019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15021 | --c=*)
15022 ;;
15023 --config-cache | -C)
15024 ;;
15025 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15026 ac_prev=srcdir ;;
15027 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15028 ;;
15029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15030 ac_prev=prefix ;;
15031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15032 ;;
15033 --disable-option-checking)
15034 ;;
15035 *)
15036 case $ac_arg in
15037 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15038 esac
15039 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15040 esac
15041 done
15042
15043 # Always prepend --prefix to ensure using the same prefix
15044 # in subdir configurations.
15045 ac_arg="--prefix=$prefix"
15046 case $ac_arg in
15047 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15048 esac
15049 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15050
15051 # Pass --silent
15052 if test "$silent" = yes; then
15053 ac_sub_configure_args="--silent $ac_sub_configure_args"
15054 fi
15055
15056 # Always prepend --disable-option-checking to silence warnings, since
15057 # different subdirs can have different --enable and --with options.
15058 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15059
15060 ac_popdir=`pwd`
15061 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15062
15063 # Do not complain, so a configure script can configure whichever
15064 # parts of a large source tree are present.
15065 test -d "$srcdir/$ac_dir" || continue
15066
15067 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15068 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15069 $as_echo "$ac_msg" >&6
15070 as_dir="$ac_dir"; as_fn_mkdir_p
15071 ac_builddir=.
15072
15073 case "$ac_dir" in
15074 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15075 *)
15076 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15077 # A ".." for each directory in $ac_dir_suffix.
15078 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15079 case $ac_top_builddir_sub in
15080 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15081 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15082 esac ;;
15083 esac
15084 ac_abs_top_builddir=$ac_pwd
15085 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15086 # for backward compatibility:
15087 ac_top_builddir=$ac_top_build_prefix
15088
15089 case $srcdir in
15090 .) # We are building in place.
15091 ac_srcdir=.
15092 ac_top_srcdir=$ac_top_builddir_sub
15093 ac_abs_top_srcdir=$ac_pwd ;;
15094 [\\/]* | ?:[\\/]* ) # Absolute name.
15095 ac_srcdir=$srcdir$ac_dir_suffix;
15096 ac_top_srcdir=$srcdir
15097 ac_abs_top_srcdir=$srcdir ;;
15098 *) # Relative name.
15099 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15100 ac_top_srcdir=$ac_top_build_prefix$srcdir
15101 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15102 esac
15103 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15104
15105
15106 cd "$ac_dir"
15107
15108 # Check for guested configure; otherwise get Cygnus style configure.
15109 if test -f "$ac_srcdir/configure.gnu"; then
15110 ac_sub_configure=$ac_srcdir/configure.gnu
15111 elif test -f "$ac_srcdir/configure"; then
15112 ac_sub_configure=$ac_srcdir/configure
15113 elif test -f "$ac_srcdir/configure.in"; then
15114 # This should be Cygnus configure.
15115 ac_sub_configure=$ac_aux_dir/configure
15116 else
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15118 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15119 ac_sub_configure=
15120 fi
15121
15122 # The recursion is here.
15123 if test -n "$ac_sub_configure"; then
15124 # Make the cache file name correct relative to the subdirectory.
15125 case $cache_file in
15126 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15127 *) # Relative name.
15128 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15129 esac
15130
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15132 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15133 # The eval makes quoting arguments work.
15134 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15135 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15136 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15137 fi
15138
15139 cd "$ac_popdir"
15140 done
15141 fi
15142 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15144 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15145 fi
15146
15147
15148 if test "${prefix}" = "/usr/local"; then
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
15150 $as_echo "$as_me: " >&6;}
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
15152 $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
15154 $as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
15156 $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
15158 $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5
15160 $as_echo "$as_me: is not supported." >&6;}
15161 fi
This page took 0.779861 seconds and 5 git commands to generate.